[llvm-branch-commits] [clang] [llvm] [DirectX] Updating Root Signature Metadata to contain Static Sampler flags (PR #160210)

2025-09-23 Thread via llvm-branch-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/160210 >From 6b191d041990ad667d86b6b07eeed7c802e3fe45 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Mon, 22 Sep 2025 15:31:47 -0700 Subject: [PATCH 1/3] adding metadata static sampler flags --- clang/test/Cod

[llvm-branch-commits] [clang] [llvm] [DirectX] Updating Root Signature Metadata to contain Static Sampler flags (PR #160210)

2025-09-23 Thread via llvm-branch-commits
@@ -212,6 +212,7 @@ MDNode *MetadataBuilder::BuildStaticSampler(const StaticSampler &Sampler) { ConstantAsMetadata::get(Builder.getInt32(Sampler.Space)), ConstantAsMetadata::get( Builder.getInt32(to_underlying(Sampler.Visibility))), + ConstantAsMetad

[llvm-branch-commits] [clang] [llvm] [DirectX] Updating Root Signature Metadata to contain Static Sampler flags (PR #160210)

2025-09-23 Thread via llvm-branch-commits
joaosaffran wrote: Sorry, made a mistake, I will fix it in the next commit https://github.com/llvm/llvm-project/pull/160210 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.or

[llvm-branch-commits] [clang] [clang] simplify placeholder type deduction for constant template parameters (PR #160439)

2025-09-23 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matheus Izvekov (mizvekov) Changes This makes the deduction for dependent types operate in more similar ways to the non-dependent one, such as when matching template template parameters, making errors in those generate similar diagnostics

[llvm-branch-commits] [llvm] b708aea - [SCEV] Don't perform implication checks with many predicates (#158652)

2025-09-23 Thread Tom Stellard via llvm-branch-commits
Author: Nikita Popov Date: 2025-09-23T12:22:24-07:00 New Revision: b708aea0bc7127adf4ec643660699c8bcdde1273 URL: https://github.com/llvm/llvm-project/commit/b708aea0bc7127adf4ec643660699c8bcdde1273 DIFF: https://github.com/llvm/llvm-project/commit/b708aea0bc7127adf4ec643660699c8bcdde1273.diff

[llvm-branch-commits] [clang] port 5b4819e to release (PR #159209)

2025-09-23 Thread David Blaikie via llvm-branch-commits
dwblaikie wrote: > Are the test failures legitimate? sync and merge seems to have cleared them up https://github.com/llvm/llvm-project/pull/159209 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[llvm-branch-commits] [llvm] RegAllocGreedy: Check if copied lanes are live in trySplitAroundHintReg (PR #160424)

2025-09-23 Thread Matt Arsenault via llvm-branch-commits
arsenm wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/160424?utm_source=stack-comment-downstack-mergeability-warning";

[llvm-branch-commits] [llvm] 113f01a - [PowerPC] Implement AES Acceleration Instructions (#157725)

2025-09-23 Thread via llvm-branch-commits
Author: Lei Huang Date: 2025-09-23T10:44:18-04:00 New Revision: 113f01aa82d055410f22a9d03b3468fa68600589 URL: https://github.com/llvm/llvm-project/commit/113f01aa82d055410f22a9d03b3468fa68600589 DIFF: https://github.com/llvm/llvm-project/commit/113f01aa82d055410f22a9d03b3468fa68600589.diff LOG

[llvm-branch-commits] [clang] [AllocToken, Clang] Implement TypeHashPointerSplit mode (PR #156840)

2025-09-23 Thread Hans Wennborg via llvm-branch-commits
@@ -1272,18 +1272,84 @@ void CodeGenFunction::EmitBoundsCheckImpl(const Expr *E, llvm::Value *Bound, EmitCheck(std::make_pair(Check, CheckKind), CheckHandler, StaticData, Index); } +static bool +typeContainsPointer(QualType T, +llvm::SmallPtrSet &Visited

[llvm-branch-commits] [lldb] 6007a4d - [vscode-lldb] Restart server when lldb-dap binary has changed (#159797)

2025-09-23 Thread via llvm-branch-commits
Author: Roy Shi Date: 2025-09-23T07:44:50-07:00 New Revision: 6007a4dbed2d8867c75bd571e1eb38e10ae14a27 URL: https://github.com/llvm/llvm-project/commit/6007a4dbed2d8867c75bd571e1eb38e10ae14a27 DIFF: https://github.com/llvm/llvm-project/commit/6007a4dbed2d8867c75bd571e1eb38e10ae14a27.diff LOG:

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: optionally assume auth traps on failure (PR #139778)

2025-09-23 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/139778 >From 85c52e988a046ed31c176431da967f657cf112ff Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Tue, 13 May 2025 19:50:41 +0300 Subject: [PATCH 1/2] [BOLT] Gadget scanner: optionally assume auth traps

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: optionally assume auth traps on failure (PR #139778)

2025-09-23 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/139778 >From 85c52e988a046ed31c176431da967f657cf112ff Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Tue, 13 May 2025 19:50:41 +0300 Subject: [PATCH 1/2] [BOLT] Gadget scanner: optionally assume auth traps

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: prevent false positives due to jump tables (PR #138884)

2025-09-23 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/138884 >From bc28368e0940ff440cdb5556a70f768ee6e32f2e Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Tue, 6 May 2025 11:31:03 +0300 Subject: [PATCH] [BOLT] Gadget scanner: prevent false positives due to ju

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: prevent false positives due to jump tables (PR #138884)

2025-09-23 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/138884 >From bc28368e0940ff440cdb5556a70f768ee6e32f2e Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Tue, 6 May 2025 11:31:03 +0300 Subject: [PATCH] [BOLT] Gadget scanner: prevent false positives due to ju

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: make use of C++17 features and LLVM helpers (PR #141665)

2025-09-23 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/141665 >From 63bb5f84ce94b89acd3125969147fc3c3031a9ed Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Tue, 27 May 2025 21:06:03 +0300 Subject: [PATCH] [BOLT] Gadget scanner: make use of C++17 features and L

[llvm-branch-commits] [clang] [LifetimeSafety] Introduce a liveness-based lifetime policy (PR #159991)

2025-09-23 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/159991 >From 56856961f02009003fd863b38424b8d02d39aa85 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sun, 21 Sep 2025 16:30:28 + Subject: [PATCH] liveness-based-lifetime-policy --- .../clang/Analysis/Analyses/

[llvm-branch-commits] [clang] [LifetimeSafety] Introduce a liveness-based lifetime policy (PR #159991)

2025-09-23 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/159991 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in DECLARE_VARIANT (PR #160371)

2025-09-23 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/160371 >From 38cf6a6c6291845ec4899ae9faf357b9a633 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Tue, 23 Sep 2025 13:40:10 -0500 Subject: [PATCH 1/2] [flang][OpenMP] Use OmpDirectiveSpecification in DEC

[llvm-branch-commits] [llvm] [ConstantFolding] Avoid use of isNonIntegralPointerType() (PR #159959)

2025-09-23 Thread Alexander Richardson via llvm-branch-commits
https://github.com/arichardson updated https://github.com/llvm/llvm-project/pull/159959 >From 690f3086eda24b46fc5cc6e9093327c675c0ce21 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Sun, 21 Sep 2025 14:56:22 -0700 Subject: [PATCH 1/2] fix typo in comment Created using spr 1.3.8-beta.1 --

[llvm-branch-commits] [llvm] release/21.x: [SCEV] Don't perform implication checks with many predicates (#158652) (PR #158798)

2025-09-23 Thread via llvm-branch-commits
github-actions[bot] wrote: @nikic (or anyone else). If you would like to add a note about this fix in the release notes (completely optional). Please reply to this comment with a one or two sentence description of the fix. When you are done, please add the release:note label to this PR. htt

[llvm-branch-commits] [llvm] release/21.x: [SCEV] Don't perform implication checks with many predicates (#158652) (PR #158798)

2025-09-23 Thread Tom Stellard via llvm-branch-commits
https://github.com/tstellar closed https://github.com/llvm/llvm-project/pull/158798 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] release/21.x: [RISCV] Reduce RISCV code generation build time (PR #158164)

2025-09-23 Thread via llvm-branch-commits
github-actions[bot] wrote: @Steelskin (or anyone else). If you would like to add a note about this fix in the release notes (completely optional). Please reply to this comment with a one or two sentence description of the fix. When you are done, please add the release:note label to this PR.

[llvm-branch-commits] [clang] 77a3b0e - [RISCV] Refactor RVV builtin code generation for reduce compilation time [NFC] (#154906)

2025-09-23 Thread Tom Stellard via llvm-branch-commits
Author: Kito Cheng Date: 2025-09-22T18:05:55-07:00 New Revision: 77a3b0eda3610cdda11a9f2bdeda18dc4e49bc95 URL: https://github.com/llvm/llvm-project/commit/77a3b0eda3610cdda11a9f2bdeda18dc4e49bc95 DIFF: https://github.com/llvm/llvm-project/commit/77a3b0eda3610cdda11a9f2bdeda18dc4e49bc95.diff LO

[llvm-branch-commits] [clang] release/21.x: [RISCV] Reduce RISCV code generation build time (PR #158164)

2025-09-23 Thread Tom Stellard via llvm-branch-commits
https://github.com/tstellar closed https://github.com/llvm/llvm-project/pull/158164 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] f14551d - [RISCV] Reduce ManualCodeGen for RVV intrinsics with rounding mode. NFC

2025-09-23 Thread Tom Stellard via llvm-branch-commits
Author: Craig Topper Date: 2025-09-22T18:05:55-07:00 New Revision: f14551dbc4e8b698f59a5757446d5af12880547f URL: https://github.com/llvm/llvm-project/commit/f14551dbc4e8b698f59a5757446d5af12880547f DIFF: https://github.com/llvm/llvm-project/commit/f14551dbc4e8b698f59a5757446d5af12880547f.diff

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in DECLARE_VARIANT (PR #160371)

2025-09-23 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-flang-openmp Author: Krzysztof Parzyszek (kparzysz) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/160371.diff 9 Files Affected: - (modified) flang/include/flang/Parser/openmp-utils.h (+1-3) - (modified) flang/include/flang/Parser

[llvm-branch-commits] [llvm] [AMDGPU] Add test to whole-wave-functions.ll. NFC (PR #160361)

2025-09-23 Thread Stanislav Mekhanoshin via llvm-branch-commits
rampitec wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/160361?utm_source=stack-comment-downstack-mergeability-warning"

[llvm-branch-commits] [clang] [llvm] [DirectX] Updating Root Signature Metadata to contain Static Sampler flags (PR #160210)

2025-09-23 Thread via llvm-branch-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/160210 >From 6b191d041990ad667d86b6b07eeed7c802e3fe45 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Mon, 22 Sep 2025 15:31:47 -0700 Subject: [PATCH 1/2] adding metadata static sampler flags --- clang/test/Cod

[llvm-branch-commits] [llvm] [DirectX] Updating DXContainer logic to read version 1.2 of static samplers (PR #160184)

2025-09-23 Thread Finn Plummer via llvm-branch-commits
https://github.com/inbelic commented: LGTM, just some nits https://github.com/llvm/llvm-project/pull/160184 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [DirectX] Updating DXContainer logic to read version 1.2 of static samplers (PR #160184)

2025-09-23 Thread Finn Plummer via llvm-branch-commits
@@ -209,6 +209,12 @@ DXContainerYAML::RootSignatureYamlDesc::create( NewS.RegisterSpace = S.RegisterSpace; NewS.ShaderVisibility = dxbc::ShaderVisibility(S.ShaderVisibility); +if (Version > 2) { +#define STATIC_SAMPLER_FLAG(Num, Enum, Flag)

[llvm-branch-commits] [llvm] [DirectX] Updating DXContainer logic to read version 1.2 of static samplers (PR #160184)

2025-09-23 Thread Finn Plummer via llvm-branch-commits
https://github.com/inbelic edited https://github.com/llvm/llvm-project/pull/160184 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [LifetimeSafety] Implement support for lifetimebound attribute (PR #158489)

2025-09-23 Thread Utkarsh Saxena via llvm-branch-commits
@@ -624,34 +668,68 @@ class FactGenerator : public ConstStmtVisitor { if (CCE->getNumArgs() != 1) return; if (hasOrigin(CCE->getArg(0))) - addAssignOriginFact(*CCE, *CCE->getArg(0)); + addOriginFlowFact(*CCE, *CCE->getArg(0)); else // This c

[llvm-branch-commits] [clang] [LifetimeSafety] Introduce a liveness-based lifetime policy (PR #159991)

2025-09-23 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/159991 >From 1fea50f712f1cd7fec1ddc6dfa59bb185cb96b58 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sun, 21 Sep 2025 16:30:28 + Subject: [PATCH] liveness-based-lifetime-policy --- .../clang/Analysis/Analyses/

[llvm-branch-commits] [llvm] [SimplifyCFG] Avoid using isNonIntegralPointerType() (PR #159890)

2025-09-23 Thread Alexander Richardson via llvm-branch-commits
https://github.com/arichardson updated https://github.com/llvm/llvm-project/pull/159890 >From 318e921e83ca607732637bcfa1994e525928759e Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Fri, 19 Sep 2025 18:42:03 -0700 Subject: [PATCH 1/3] remove todo comment Created using spr 1.3.8-beta.1 --

[llvm-branch-commits] [clang] release/21.x: [RISCV] Reduce RISCV code generation build time (PR #158164)

2025-09-23 Thread Fabrice de Gans via llvm-branch-commits
Steelskin wrote: @tstellar If we're all good, can you land it, please? https://github.com/llvm/llvm-project/pull/158164 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-

[llvm-branch-commits] [llvm] 0240295 - Revert "[DebugInfo][DwarfDebug] Separate creation and population of abstract …"

2025-09-23 Thread via llvm-branch-commits
Author: Vladislav Dzhidzhoev Date: 2025-09-23T19:36:33+02:00 New Revision: 0240295c21020e869f92c162ce80785f13dac358 URL: https://github.com/llvm/llvm-project/commit/0240295c21020e869f92c162ce80785f13dac358 DIFF: https://github.com/llvm/llvm-project/commit/0240295c21020e869f92c162ce80785f13dac35

[llvm-branch-commits] [clang] port 5b4819e to release (PR #159209)

2025-09-23 Thread David Blaikie via llvm-branch-commits
https://github.com/dwblaikie updated https://github.com/llvm/llvm-project/pull/159209 >From 0c9d972fae57b4af2712632d829ed042381ab9ab Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 16 Sep 2025 22:42:55 + Subject: [PATCH] Port 5b4819e to release/21.x Fix for the port of 665e875 to r

[llvm-branch-commits] [clang] [LifetimeSafety] Implement support for lifetimebound attribute (PR #158489)

2025-09-23 Thread Gábor Horváth via llvm-branch-commits
https://github.com/Xazax-hun approved this pull request. https://github.com/llvm/llvm-project/pull/158489 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [llvm][mustache] Avoid excessive hash lookups in EscapeStringStream (PR #160166)

2025-09-23 Thread Paul Kirth via llvm-branch-commits
ilovepi wrote: > In these tests, at which point are you constructing the std::array? Is it > inside each EscapeStream or once when Template is constructed? > Once when the template is constructed. I used a function w/ a static variable to provide the default escapes. > It's possible that `st

[llvm-branch-commits] [clang] [HLSL] NonUniformResourceIndex implementation (PR #159655)

2025-09-23 Thread Helena Kotas via llvm-branch-commits
https://github.com/hekota closed https://github.com/llvm/llvm-project/pull/159655 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [LifetimeSafety] Implement support for lifetimebound attribute (PR #158489)

2025-09-23 Thread Utkarsh Saxena via llvm-branch-commits
@@ -353,6 +366,23 @@ class UseFact : public Fact { } }; +class KillOriginFact : public Fact { usx95 wrote: Makes sense to reuse it for this purpose. https://github.com/llvm/llvm-project/pull/158489 ___ llvm-branc

[llvm-branch-commits] [clang] [LifetimeSafety] Introduce a liveness-based lifetime policy (PR #159991)

2025-09-23 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/159991 >From 73f7069f9100441ccb3027b0890284b5d7fcf80e Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sun, 21 Sep 2025 16:30:28 + Subject: [PATCH] liveness-based-lifetime-policy --- .../clang/Analysis/Analyses/

[llvm-branch-commits] [clang] [LifetimeSafety] Implement support for lifetimebound attribute (PR #158489)

2025-09-23 Thread Gábor Horváth via llvm-branch-commits
@@ -0,0 +1,35 @@ +//===- LifetimeAnnotations.h - -*--- C++*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[llvm-branch-commits] [llvm] 2800ac2 - [Support] Use "inline static" to initialize Registry (NFC) (#160235)

2025-09-23 Thread via llvm-branch-commits
Author: Kazu Hirata Date: 2025-09-23T08:11:00-07:00 New Revision: 2800ac203cba9e82f31334ff5439b9a91f7444fa URL: https://github.com/llvm/llvm-project/commit/2800ac203cba9e82f31334ff5439b9a91f7444fa DIFF: https://github.com/llvm/llvm-project/commit/2800ac203cba9e82f31334ff5439b9a91f7444fa.diff L

[llvm-branch-commits] [clang] [LifetimeSafety] Implement support for lifetimebound attribute (PR #158489)

2025-09-23 Thread Gábor Horváth via llvm-branch-commits
@@ -353,6 +366,23 @@ class UseFact : public Fact { } }; +class KillOriginFact : public Fact { Xazax-hun wrote: Do we still need this now that `OriginFlowFact` has a `KillDest`? https://github.com/llvm/llvm-project/pull/158489 __

[llvm-branch-commits] [clang] [LifetimeSafety] Implement support for lifetimebound attribute (PR #158489)

2025-09-23 Thread Gábor Horváth via llvm-branch-commits
@@ -371,3 +371,152 @@ void no_error_if_dangle_then_rescue_gsl() { v = safe;// 'v' is "rescued" before use by reassigning to a valid object. v.use(); // This is safe. } + + +//===--===// +// Lifetime

[llvm-branch-commits] [llvm] 6d4bb20 - [X86] Invalid fp16 comparison fix (#160304)

2025-09-23 Thread via llvm-branch-commits
Author: azwolski Date: 2025-09-23T17:24:59+02:00 New Revision: 6d4bb2088818784c89eea8ecc799852ea48e086b URL: https://github.com/llvm/llvm-project/commit/6d4bb2088818784c89eea8ecc799852ea48e086b DIFF: https://github.com/llvm/llvm-project/commit/6d4bb2088818784c89eea8ecc799852ea48e086b.diff LOG:

[llvm-branch-commits] [llvm] c2fe408 - [ADT] Use list-initialization for returning pairs (#160238)

2025-09-23 Thread via llvm-branch-commits
Author: Kazu Hirata Date: 2025-09-23T08:11:16-07:00 New Revision: c2fe408dda2977c17f47a4b11433c2244c7cd6dc URL: https://github.com/llvm/llvm-project/commit/c2fe408dda2977c17f47a4b11433c2244c7cd6dc DIFF: https://github.com/llvm/llvm-project/commit/c2fe408dda2977c17f47a4b11433c2244c7cd6dc.diff L

[llvm-branch-commits] [clang] 99618de - [Tooling] Simplify a use of std::is_same (NFC) (#160237)

2025-09-23 Thread via llvm-branch-commits
Author: Kazu Hirata Date: 2025-09-23T08:11:08-07:00 New Revision: 99618dec185e985db4f19ca5e61e00d30b9a8b74 URL: https://github.com/llvm/llvm-project/commit/99618dec185e985db4f19ca5e61e00d30b9a8b74 DIFF: https://github.com/llvm/llvm-project/commit/99618dec185e985db4f19ca5e61e00d30b9a8b74.diff L

[llvm-branch-commits] [llvm] a3ab719 - [NFC][MC][ARM] Reorder decoder functions N/N (#158767)

2025-09-23 Thread via llvm-branch-commits
Author: Rahul Joshi Date: 2025-09-23T08:04:25-07:00 New Revision: a3ab7191a73412d5bfe85d416158999b8d5d6e19 URL: https://github.com/llvm/llvm-project/commit/a3ab7191a73412d5bfe85d416158999b8d5d6e19 DIFF: https://github.com/llvm/llvm-project/commit/a3ab7191a73412d5bfe85d416158999b8d5d6e19.diff L

[llvm-branch-commits] [clang] [LifetimeSafety] Implement support for lifetimebound attribute (PR #158489)

2025-09-23 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/158489 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [LifetimeSafety] Implement support for lifetimebound attribute (PR #158489)

2025-09-23 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/158489 >From 082d8a297d78a7bc9ea386f4493d0d1addb7bcec Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sun, 14 Sep 2025 14:46:45 + Subject: [PATCH] lifetime-analysis-lifetimebound --- .../Analysis/Analyses/Lifet

[llvm-branch-commits] [clang] [LifetimeSafety] Introduce a liveness-based lifetime policy (PR #159991)

2025-09-23 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/159991 >From 37c03435445d85f6fda1b20428ea41285f4ab716 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sun, 21 Sep 2025 16:30:28 + Subject: [PATCH] liveness-based-lifetime-policy --- .../clang/Analysis/Analyses/

[llvm-branch-commits] [clang] [LifetimeSafety] Introduce a liveness-based lifetime policy (PR #159991)

2025-09-23 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/159991 >From 37c03435445d85f6fda1b20428ea41285f4ab716 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sun, 21 Sep 2025 16:30:28 + Subject: [PATCH] liveness-based-lifetime-policy --- .../clang/Analysis/Analyses/

[llvm-branch-commits] [llvm] [AMDGPU][AsmParser] Introduce MC representation for lit() and lit64(). (PR #160316)

2025-09-23 Thread Ivan Kosarev via llvm-branch-commits
https://github.com/kosarev ready_for_review https://github.com/llvm/llvm-project/pull/160316 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [AllocToken] Introduce AllocToken instrumentation pass (PR #156838)

2025-09-23 Thread Nikita Popov via llvm-branch-commits
@@ -0,0 +1,469 @@ +//===- AllocToken.cpp - Allocation token instrumentation --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[llvm-branch-commits] [llvm] [AllocToken] Introduce AllocToken instrumentation pass (PR #156838)

2025-09-23 Thread Nikita Popov via llvm-branch-commits
https://github.com/nikic commented: (drive-by comments only) https://github.com/llvm/llvm-project/pull/156838 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [AllocToken] Introduce AllocToken instrumentation pass (PR #156838)

2025-09-23 Thread Hans Wennborg via llvm-branch-commits
@@ -0,0 +1,471 @@ +//===- AllocToken.cpp - Allocation token instrumentation --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[llvm-branch-commits] [llvm] [AllocToken] Introduce AllocToken instrumentation pass (PR #156838)

2025-09-23 Thread Hans Wennborg via llvm-branch-commits
https://github.com/zmodem edited https://github.com/llvm/llvm-project/pull/156838 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] Add user search (PR #160310)

2025-09-23 Thread Ivan Kosarev via llvm-branch-commits
kosarev wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/160310?utm_source=stack-comment-downstack-mergeability-warning";

[llvm-branch-commits] [llvm] Add frontend for search (PR #160308)

2025-09-23 Thread Ivan Kosarev via llvm-branch-commits
https://github.com/kosarev updated https://github.com/llvm/llvm-project/pull/160308 >From 0f530793bdc1c6f364cc1b9238790c21262e6c97 Mon Sep 17 00:00:00 2001 From: Ivan Kosarev Date: Tue, 23 Sep 2025 15:17:50 +0100 Subject: [PATCH] Add frontend for search --- .../Target/AMDGPU/graphite-demo/fro

[llvm-branch-commits] [AllocToken, Clang] Infer type hints from sizeof expressions and casts (PR #156841)

2025-09-23 Thread Hans Wennborg via llvm-branch-commits
@@ -1353,6 +1354,92 @@ void CodeGenFunction::EmitAllocToken(llvm::CallBase *CB, QualType AllocType) { CB->setMetadata(llvm::LLVMContext::MD_alloc_token, MDN); } +/// Infer type from a simple sizeof expression. +static QualType inferTypeFromSizeofExpr(const Expr *E) { + con

[llvm-branch-commits] [llvm] Add frontend for search (PR #160308)

2025-09-23 Thread Ivan Kosarev via llvm-branch-commits
kosarev wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/160308?utm_source=stack-comment-downstack-mergeability-warning";

[llvm-branch-commits] [flang] [llvm] [openmp] [Flang] Add standalone tile support (PR #160298)

2025-09-23 Thread Michael Kruse via llvm-branch-commits
https://github.com/Meinersbur updated https://github.com/llvm/llvm-project/pull/160298 >From bfe9c6b642ebc01f113dbf0a574e424e83f7162a Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Tue, 23 Sep 2025 15:33:52 +0200 Subject: [PATCH 1/2] [flang] Add standalone tile support --- flang/lib/Lower

[llvm-branch-commits] [mlir] [mlir][OpenMP] Improve canonloop/iv naming (PR #159773)

2025-09-23 Thread Michael Kruse via llvm-branch-commits
https://github.com/Meinersbur updated https://github.com/llvm/llvm-project/pull/159773 >From b3919715ebe223b39dd789dcd471a864666d7008 Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Fri, 19 Sep 2025 14:43:48 +0200 Subject: [PATCH 1/2] Improve canonloop/iv naming --- mlir/lib/Dialect/OpenMP

[llvm-branch-commits] [mlir] [mlir][omp] Add omp.tile operation (PR #160292)

2025-09-23 Thread Michael Kruse via llvm-branch-commits
https://github.com/Meinersbur updated https://github.com/llvm/llvm-project/pull/160292 >From ff4eccb41e2973e1179734dd455f1e797e89d9be Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Tue, 23 Sep 2025 14:45:45 +0200 Subject: [PATCH] Add omp.tile operation --- .../mlir/Dialect/OpenMP/OpenMPCl

[llvm-branch-commits] [flang] [flang][OpenMP] Avoid extra newline when unparsing OmpReductionCombiner (PR #160200)

2025-09-23 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/160200 >From 672c1ad9f0b473f883b12c9a2aff70b7c3de80ac Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Mon, 22 Sep 2025 15:30:42 -0500 Subject: [PATCH] [flang][OpenMP] Avoid extra newline when unparsing OmpRe

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in DECLARE_REDUCTION (PR #160192)

2025-09-23 Thread Krzysztof Parzyszek via llvm-branch-commits
https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/160192 >From d04b0664a612b1060897834160395cfe2a3ca492 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Mon, 22 Sep 2025 14:42:16 -0500 Subject: [PATCH] [flang][OpenMP] Use OmpDirectiveSpecification in DECLARE

[llvm-branch-commits] [flang] [llvm] [mlir] [openmp] [Flang] Add standalone tile support (PR #160298)

2025-09-23 Thread Michael Kruse via llvm-branch-commits
https://github.com/Meinersbur edited https://github.com/llvm/llvm-project/pull/160298 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [AllocToken, Clang] Implement TypeHashPointerSplit mode (PR #156840)

2025-09-23 Thread Hans Wennborg via llvm-branch-commits
@@ -1272,18 +1272,84 @@ void CodeGenFunction::EmitBoundsCheckImpl(const Expr *E, llvm::Value *Bound, EmitCheck(std::make_pair(Check, CheckKind), CheckHandler, StaticData, Index); } +static bool +typeContainsPointer(QualType T, +llvm::SmallPtrSet &Visited

[llvm-branch-commits] [clang] [AllocToken, Clang] Implement TypeHashPointerSplit mode (PR #156840)

2025-09-23 Thread Hans Wennborg via llvm-branch-commits
@@ -205,6 +231,26 @@ class TypeHashMode : public ModeBase { } }; +/// Implementation for TokenMode::TypeHashPointerSplit. +class TypeHashPointerSplitMode : public TypeHashMode { +public: + using TypeHashMode::TypeHashMode; + + uint64_t operator()(const CallBase &CB, Optimi

[llvm-branch-commits] [clang] [AllocToken, Clang] Implement TypeHashPointerSplit mode (PR #156840)

2025-09-23 Thread Hans Wennborg via llvm-branch-commits
@@ -0,0 +1,177 @@ +// Check -fsanitize=alloc-token TypeHashPointerSplit mode with only 2 +// tokens so we effectively only test the contains-pointer logic. +// +// RUN: %clang_cc1-fsanitize=alloc-token -falloc-token-max=2 -triple x86_64-linux-gnu -std=c++20 -emit-llvm %s -o -

[llvm-branch-commits] [clang] [AllocToken, Clang] Implement TypeHashPointerSplit mode (PR #156840)

2025-09-23 Thread Hans Wennborg via llvm-branch-commits
@@ -205,6 +231,26 @@ class TypeHashMode : public ModeBase { } }; +/// Implementation for TokenMode::TypeHashPointerSplit. +class TypeHashPointerSplitMode : public TypeHashMode { +public: + using TypeHashMode::TypeHashMode; + + uint64_t operator()(const CallBase &CB, Optimi

[llvm-branch-commits] [mlir] [mlir][OpenMP] Improve canonloop/iv naming (PR #159773)

2025-09-23 Thread Michael Kruse via llvm-branch-commits
https://github.com/Meinersbur edited https://github.com/llvm/llvm-project/pull/159773 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] [Clang] Introduce -fsanitize=alloc-token (PR #156839)

2025-09-23 Thread Hans Wennborg via llvm-branch-commits
@@ -13,6 +13,7 @@ #include "llvm/Option/Arg.h" #include "llvm/Option/ArgList.h" #include "llvm/Transforms/Instrumentation/AddressSanitizerOptions.h" +#include zmodem wrote: not used? https://github.com/llvm/llvm-project/pull/156839 __

[llvm-branch-commits] [clang] [Clang] Introduce -fsanitize=alloc-token (PR #156839)

2025-09-23 Thread Hans Wennborg via llvm-branch-commits
@@ -1272,6 +1272,21 @@ void CodeGenFunction::EmitBoundsCheckImpl(const Expr *E, llvm::Value *Bound, EmitCheck(std::make_pair(Check, CheckKind), CheckHandler, StaticData, Index); } +void CodeGenFunction::EmitAllocToken(llvm::CallBase *CB, QualType AllocType) { + assert(SanO

[llvm-branch-commits] [clang] [Clang] Introduce -fsanitize=alloc-token (PR #156839)

2025-09-23 Thread Hans Wennborg via llvm-branch-commits
@@ -2194,6 +2194,8 @@ are listed below. protection against stack-based memory corruption errors. - ``-fsanitize=realtime``: :doc:`RealtimeSanitizer`, a real-time safety checker. + - ``-fsanitize=alloc-token``: :doc:`AllocToken`, + allocation token instru

[llvm-branch-commits] [clang] [Clang] Introduce -fsanitize=alloc-token (PR #156839)

2025-09-23 Thread Hans Wennborg via llvm-branch-commits
@@ -726,6 +726,7 @@ SanitizerMask BareMetal::getSupportedSanitizers() const { Res |= SanitizerKind::SafeStack; Res |= SanitizerKind::Thread; Res |= SanitizerKind::Scudo; + Res |= SanitizerKind::AllocToken; zmodem wrote: Can't we just add this in the bas

[llvm-branch-commits] [clang] [LifetimeSafety] Introduce a liveness-based lifetime policy (PR #159991)

2025-09-23 Thread Utkarsh Saxena via llvm-branch-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/159991 >From f49485d0faf49de565a1db8cde342b9ba68a9d6c Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sun, 21 Sep 2025 16:30:28 + Subject: [PATCH] liveness-based-lifetime-policy --- .../clang/Analysis/Analyses/

[llvm-branch-commits] [lldb] release/21.x: [lldb][Instrumentation] Set selected frame to outside sanitizer libraries (PR #157568)

2025-09-23 Thread via llvm-branch-commits
https://github.com/llvmbot updated https://github.com/llvm/llvm-project/pull/157568 >From 54896838ca5e1f69f0f3040fe6847546db0463d4 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Mon, 8 Sep 2025 17:18:25 +0100 Subject: [PATCH 1/4] [lldb][Target] Clear selected frame index after a StopInfo::P

[llvm-branch-commits] [llvm] [llvm][mustache] Avoid excessive hash lookups in EscapeStringStream (PR #160166)

2025-09-23 Thread Nikita Popov via llvm-branch-commits
nikic wrote: In these tests, at which point are you constructing the std::array? Is it inside each EscapeStream or once when Template is constructed? It's possible that `std::array` wasn't the right suggestion -- maybe the fact that it stores std::string makes it too large. But if you check wh

[llvm-branch-commits] [llvm] [AllocToken] Introduce AllocToken instrumentation pass (PR #156838)

2025-09-23 Thread Hans Wennborg via llvm-branch-commits
@@ -0,0 +1,30 @@ +; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5 +; Test for all allocation functions that should be ignored by default. +; +; RUN: opt < %s -passes=inferattrs,alloc-token -S | FileCheck %s + +target datalayout = "

[llvm-branch-commits] [llvm] [LV] Mask off possibly aliasing vector lanes (PR #100579)

2025-09-23 Thread Florian Hahn via llvm-branch-commits
@@ -479,7 +479,11 @@ class LoopVectorizationPlanner { /// Build VPlans for the specified \p UserVF and \p UserIC if they are /// non-zero or all applicable candidate VFs otherwise. If vectorization and /// interleaving should be avoided up-front, no plans are generated. -

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in DECLARE_REDUCTION (PR #160192)

2025-09-23 Thread Tom Eccles via llvm-branch-commits
@@ -1559,12 +1559,7 @@ class OmpVisitor : public virtual DeclarationVisitor { bool Pre(const parser::OpenMPDeclareReductionConstruct &x) { AddOmpSourceRange(x.source); -parser::OmpClauseList empty(std::list{}); -auto &maybeClauses{std::get>(x.t)}; -ProcessRed

[llvm-branch-commits] [flang] [flang][OpenMP] Use OmpDirectiveSpecification in DECLARE_MAPPER (PR #160169)

2025-09-23 Thread Tom Eccles via llvm-branch-commits
https://github.com/tblah approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/160169 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [LV] Add ExtNegatedMulAccReduction expression type (PR #160154)

2025-09-23 Thread Sander de Smalen via llvm-branch-commits
@@ -2861,12 +2861,17 @@ InstructionCost VPExpressionRecipe::computeCost(ElementCount VF, return Ctx.TTI.getMulAccReductionCost(false, Opcode, RedTy, SrcVecTy, Ctx.CostKind); - case ExpressionTypes::ExtMulAccReduction: + case Exp

[llvm-branch-commits] [llvm] [LV] Add ExtNegatedMulAccReduction expression type (PR #160154)

2025-09-23 Thread Sander de Smalen via llvm-branch-commits
@@ -2989,6 +2989,12 @@ class VPExpressionRecipe : public VPSingleDefRecipe { /// vector operands, performing a reduction.add on the result, and adding /// the scalar result to a chain. MulAccReduction, +/// Represent an inloop multiply-accumulate reduction, mult

[llvm-branch-commits] [llvm] [LV] Add ExtNegatedMulAccReduction expression type (PR #160154)

2025-09-23 Thread Sander de Smalen via llvm-branch-commits
@@ -3012,6 +3018,11 @@ class VPExpressionRecipe : public VPSingleDefRecipe { VPWidenRecipe *Mul, VPReductionRecipe *Red) : VPExpressionRecipe(ExpressionTypes::ExtMulAccReduction, {Ext0, Ext1, Mul, Red}) {} + VPExpressionRec

[llvm-branch-commits] [llvm] [LV] Add ExtNegatedMulAccReduction expression type (PR #160154)

2025-09-23 Thread Sander de Smalen via llvm-branch-commits
@@ -3524,14 +3524,22 @@ tryToMatchAndCreateMulAccumulateReduction(VPReductionRecipe *Red, }; VPValue *VecOp = Red->getVecOp(); + VPValue *Mul = nullptr; + VPValue *Sub = nullptr; VPValue *A, *B; + // Sub reductions could have a sub between the add reduction and vec

[llvm-branch-commits] [llvm] [LV] Mask off possibly aliasing vector lanes (PR #100579)

2025-09-23 Thread Florian Hahn via llvm-branch-commits
@@ -1347,6 +1354,11 @@ class TargetTransformInfo { PartialReductionExtendKind OpBExtend, std::optional BinOp, TTI::TargetCostKind CostKind) const; + /// \return true if a mask should be formed that disables lanes that could + /// alias between two pointers. The m

[llvm-branch-commits] [llvm] [AMDGPU] SIMemoryLegalizer: Factor out check if memory operations can affect the global AS (PR #160129)

2025-09-23 Thread Fabian Ritter via llvm-branch-commits
https://github.com/ritter-x2a updated https://github.com/llvm/llvm-project/pull/160129 >From 9c10c3e64323070347be3cef1baec7bf9b062ba1 Mon Sep 17 00:00:00 2001 From: Fabian Ritter Date: Mon, 22 Sep 2025 11:20:16 -0400 Subject: [PATCH 1/2] [AMDGPU] SIMemoryLegalizer: Factor out check if memory o

[llvm-branch-commits] [llvm] [llvm-remarkutil] Introduce filter command (PR #159784)

2025-09-23 Thread Florian Hahn via llvm-branch-commits
@@ -14,6 +14,7 @@ #include "RemarkUtilHelpers.h" #include "llvm/ADT/MapVector.h" #include "llvm/Support/Regex.h" +#include fhahn wrote: why do we need to pull this in here now? https://github.com/llvm/llvm-project/pull/159784

[llvm-branch-commits] [llvm] [llvm-remarkutil] Introduce filter command (PR #159784)

2025-09-23 Thread Florian Hahn via llvm-branch-commits
@@ -0,0 +1,84 @@ +//===- RemarkFilter.cpp ---===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[llvm-branch-commits] [llvm] [mlir] [flang][OpenMP] Support multi-block reduction combiner regions on the GPU (PR #156837)

2025-09-23 Thread Kareem Ergawy via llvm-branch-commits
https://github.com/ergawy updated https://github.com/llvm/llvm-project/pull/156837 >From b57797c27fcf88101be08767a5a28475db6187d0 Mon Sep 17 00:00:00 2001 From: ergawy Date: Thu, 4 Sep 2025 01:06:21 -0500 Subject: [PATCH 1/3] [flang][OpenMP] Support multi-block reduction combiner regions on t

[llvm-branch-commits] [llvm] [AMDGPU] SIMemoryLegalizer: Factor out check if memory operations can affect the global AS (PR #160129)

2025-09-23 Thread Fabian Ritter via llvm-branch-commits
https://github.com/ritter-x2a updated https://github.com/llvm/llvm-project/pull/160129 >From 8e61a9cceb44edcec4a7e2bf7d5d732753899ac6 Mon Sep 17 00:00:00 2001 From: Fabian Ritter Date: Mon, 22 Sep 2025 11:20:16 -0400 Subject: [PATCH 1/2] [AMDGPU] SIMemoryLegalizer: Factor out check if memory o