[clang] [Clang][Unittest] Support for `target` update directive and `from` clause in clang unittests (PR #150580)

2025-12-04 Thread Amit Tiwari via cfe-commits
https://github.com/amitamd7 updated https://github.com/llvm/llvm-project/pull/150580 >From a7a8256e75aa6670f417540fc61998469b032596 Mon Sep 17 00:00:00 2001 From: amtiwari Date: Fri, 25 Jul 2025 02:45:34 -0400 Subject: [PATCH 1/2] support_for_target_directive_clang_unittests --- clang/include

[clang] [Serialization] Fix lazy template loading (PR #133057)

2025-12-04 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > > I feel they are workarounds. The `noload_redecls()` new interface may be > > the cleanest solution. > > For the first approach, I can potentially agree, even though we are already > deserializing with the current code so it can hardly be worse than that. For > the other

[clang] [LifetimeSafety] Suggest lifetime annotations (PR #169767)

2025-12-04 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/169767 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Suggest lifetime annotations (PR #169767)

2025-12-04 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 approved this pull request. https://github.com/llvm/llvm-project/pull/169767 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Suggest lifetime annotations (PR #169767)

2025-12-04 Thread Utkarsh Saxena via cfe-commits
@@ -34,46 +34,110 @@ struct AccessPath { AccessPath(const clang::ValueDecl *D) : D(D) {} }; -/// Information about a single borrow, or "Loan". A loan is created when a -/// reference or pointer is created. -struct Loan { +/// An abstract base class for a single borrow, or "L

[clang] [LifetimeSafety] Suggest lifetime annotations (PR #169767)

2025-12-04 Thread Utkarsh Saxena via cfe-commits
@@ -34,46 +34,116 @@ struct AccessPath { AccessPath(const clang::ValueDecl *D) : D(D) {} }; -/// Information about a single borrow, or "Loan". A loan is created when a -/// reference or pointer is created. -struct Loan { +/// An abstract base class for a single "Loan" which

[clang] [LifetimeSafety] Suggest lifetime annotations (PR #169767)

2025-12-04 Thread Utkarsh Saxena via cfe-commits
@@ -34,46 +34,116 @@ struct AccessPath { AccessPath(const clang::ValueDecl *D) : D(D) {} }; -/// Information about a single borrow, or "Loan". A loan is created when a -/// reference or pointer is created. -struct Loan { +/// An abstract base class for a single "Loan" which

[clang] [Serialization] Fix lazy template loading (PR #133057)

2025-12-04 Thread Jonas Hahnfeld via cfe-commits
hahnjo wrote: > I feel they are workarounds. The `noload_redecls()` new interface may be the > cleanest solution. For the first approach, I can potentially agree, even though we are already deserializing with the current code so it can hardly be worse than that. For the other two, can you ple

[clang-tools-extra] [clang-tidy] Avoid expensive AST traversal in RedundantTypenameCheck (PR #170540)

2025-12-04 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/170540 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Avoid expensive AST traversal in RedundantTypenameCheck (PR #170540)

2025-12-04 Thread Victor Chernyakin via cfe-commits
@@ -18,9 +18,13 @@ using namespace clang::ast_matchers; namespace clang::tidy::readability { void RedundantTypenameCheck::registerMatchers(MatchFinder *Finder) { - Finder->addMatcher(typeLoc(unless(hasAncestor(decl(isInstantiated() - .bind("nonDepe

[clang] [Clang] Extend __builtin_counted_by_ref to support pointers with 'counted_by' (PR #170750)

2025-12-04 Thread Kees Cook via cfe-commits
https://github.com/kees closed https://github.com/llvm/llvm-project/pull/170750 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7220268 - [Clang] Extend __builtin_counted_by_ref to support pointers with 'counted_by' (#170750)

2025-12-04 Thread via cfe-commits
Author: Kees Cook Date: 2025-12-04T23:18:39-08:00 New Revision: 722026886fb65f0d61e0384886ffc30e83623edf URL: https://github.com/llvm/llvm-project/commit/722026886fb65f0d61e0384886ffc30e83623edf DIFF: https://github.com/llvm/llvm-project/commit/722026886fb65f0d61e0384886ffc30e83623edf.diff LOG

[clang] [clang-format] Make ignored files unformatted instead of empty. (PR #170416)

2025-12-04 Thread via cfe-commits
@@ -46,15 +46,19 @@ // CHECK5-NEXT: {{Formatting \[4/5] .*foo\.c}} // CHECK5-NOT: foo.js +// Check that ignored files are unformatted, but still output. // RUN: echo "foo.*" > .clang-format-ignore // RUN: echo "int i ;" > foo.c // RUN: clang-format -assume-filename=foo.c <

[clang-tools-extra] [clang-tidy] Avoid expensive AST traversal in RedundantTypenameCheck (PR #170540)

2025-12-04 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/170540 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Make ignored files unformatted instead of empty. (PR #170416)

2025-12-04 Thread via cfe-commits
@@ -46,15 +46,19 @@ // CHECK5-NEXT: {{Formatting \[4/5] .*foo\.c}} // CHECK5-NOT: foo.js +// Check that ignored files are unformatted, but still output. // RUN: echo "foo.*" > .clang-format-ignore // RUN: echo "int i ;" > foo.c // RUN: clang-format -assume-filename=foo.c <

[clang] [clang-format] Make ignored files unformatted instead of empty. (PR #170416)

2025-12-04 Thread via cfe-commits
@@ -46,15 +46,19 @@ // CHECK5-NEXT: {{Formatting \[4/5] .*foo\.c}} // CHECK5-NOT: foo.js +// Check that ignored files are unformatted, but still output. // RUN: echo "foo.*" > .clang-format-ignore // RUN: echo "int i ;" > foo.c // RUN: clang-format -assume-filename=foo.c <

[clang] [clang-format] Make ignored files unformatted instead of empty. (PR #170416)

2025-12-04 Thread via cfe-commits
@@ -401,8 +401,12 @@ class ClangFormatDiagConsumer : public DiagnosticConsumer { }; // Returns true on error. -static bool format(StringRef FileName, bool ErrorOnIncompleteFormat = false) { +static bool format(StringRef FileName, bool ErrorOnIncompleteFormat, +

[clang] [clang-format] Make ignored files unformatted instead of empty. (PR #170416)

2025-12-04 Thread via cfe-commits
@@ -701,9 +711,8 @@ int main(int argc, const char **argv) { } if (FileNames.empty()) { -if (isIgnored(AssumeFileName)) - return 0; -return clang::format::format("-", FailOnIncompleteFormat); +return clang::format::format("-", FailOnIncompleteFormat, +

[clang-tools-extra] [llvm] [Github][CI] Introduce `LintHelper` class in `code-lint-helper.py` (PR #168827)

2025-12-04 Thread via cfe-commits
zeyi2 wrote: Hi, I've changed this part as requested. Please take a look when you have time :) https://github.com/llvm/llvm-project/pull/168827 ___ cfe-commits mailing list [email protected] https://lists.ll

[clang-tools-extra] [clang-tidy] Avoid expensive AST traversal in RedundantTypenameCheck (PR #170540)

2025-12-04 Thread Victor Chernyakin via cfe-commits
@@ -18,9 +18,13 @@ using namespace clang::ast_matchers; namespace clang::tidy::readability { void RedundantTypenameCheck::registerMatchers(MatchFinder *Finder) { - Finder->addMatcher(typeLoc(unless(hasAncestor(decl(isInstantiated() - .bind("nonDepe

[clang-tools-extra] [llvm] [Github][CI] Introduce `LintHelper` class in `code-lint-helper.py` (PR #168827)

2025-12-04 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/168827 >From 9552857532ca486931f0bcb247d1cd5df6a70c4d Mon Sep 17 00:00:00 2001 From: mtx Date: Thu, 20 Nov 2025 13:03:28 +0800 Subject: [PATCH 01/25] [Github][CI] Add `doc8` for clang-tidy documentation formatting ---

[clang] [lldb] [clang][TypePrinter][NFC] Make SuppressInlineNamespaceMode an enum class (PR #170802)

2025-12-04 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/170802 >From 488a3a49972c5b64e617b00399e79c6ad0164c90 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Fri, 5 Dec 2025 13:43:17 +0800 Subject: [PATCH 1/2] [clang][TypePrinter][NFC] Make SuppressInlineNamespaceMode

[clang] [llvm] [PowerPC] Add Support for BCDSHIFT, BCDSHIFTR, BCDTRUNC, BCDUTRUNC, and BCDUSHIFT instruction support (PR #154715)

2025-12-04 Thread Aditi Medhane via cfe-commits
@@ -105,11 +105,67 @@ bool SemaPPC::CheckPPCBuiltinFunctionCall(const TargetInfo &TI, switch (BuiltinID) { default: return false; - case PPC::BI__builtin_ppc_bcdsetsign: case PPC::BI__builtin_ppc_national2packed: case PPC::BI__builtin_ppc_packed2zoned: case P

[clang] [lldb] [clang][TypePrinter][NFC] Make SuppressInlineNamespaceMode an enum class (PR #170802)

2025-12-04 Thread Michael Buch via cfe-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/170802 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Unittest] Support for `target` update directive and `from` clause in clang unittests (PR #150580)

2025-12-04 Thread Amit Tiwari via cfe-commits
amitamd7 wrote: Added here `update to` clause changes too as creating separate PR for this won't make much sense. https://github.com/llvm/llvm-project/pull/150580 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/m

[clang] [Clang][Unittest] Support for `target` update directive and `from` clause in clang unittests (PR #150580)

2025-12-04 Thread Amit Tiwari via cfe-commits
https://github.com/amitamd7 edited https://github.com/llvm/llvm-project/pull/150580 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Unittest] Support for `target` update directive and `from` clause in clang unittests (PR #150580)

2025-12-04 Thread Amit Tiwari via cfe-commits
https://github.com/amitamd7 updated https://github.com/llvm/llvm-project/pull/150580 >From a7a8256e75aa6670f417540fc61998469b032596 Mon Sep 17 00:00:00 2001 From: amtiwari Date: Fri, 25 Jul 2025 02:45:34 -0400 Subject: [PATCH 1/2] support_for_target_directive_clang_unittests --- clang/include

[clang-tools-extra] [llvm] [Github][CI] Introduce `LintHelper` class in `code-lint-helper.py` (PR #168827)

2025-12-04 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/168827 >From 9552857532ca486931f0bcb247d1cd5df6a70c4d Mon Sep 17 00:00:00 2001 From: mtx Date: Thu, 20 Nov 2025 13:03:28 +0800 Subject: [PATCH 01/24] [Github][CI] Add `doc8` for clang-tidy documentation formatting ---

[clang] [clang][bytecode] Fix InterpFrame::dump() (PR #170682)

2025-12-04 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/170682 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 785cadd - [clang][bytecode] Fix InterpFrame::dump() (#170682)

2025-12-04 Thread via cfe-commits
Author: Timm Baeder Date: 2025-12-05T06:53:50+01:00 New Revision: 785cadd1ccf4a9c7d3b4823fa3a58311df94ddda URL: https://github.com/llvm/llvm-project/commit/785cadd1ccf4a9c7d3b4823fa3a58311df94ddda DIFF: https://github.com/llvm/llvm-project/commit/785cadd1ccf4a9c7d3b4823fa3a58311df94ddda.diff L

[clang] [lldb] [clang][TypePrinter][NFC] Make SuppressInlineNamespaceMode an enum class (PR #170802)

2025-12-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-debuginfo Author: Michael Buch (Michael137) Changes The enum cases for `SuppressInlineNamespaceMode` leaked into the rest of `PrintingPolicy`, meaning if we wanted to introduce another enum (which I'm planning on doing in an unrelated PR), then `All`/`

[clang] [lldb] [clang][TypePrinter][NFC] Make SuppressInlineNamespaceMode an enum class (PR #170802)

2025-12-04 Thread Michael Buch via cfe-commits
https://github.com/Michael137 created https://github.com/llvm/llvm-project/pull/170802 The enum cases for `SuppressInlineNamespaceMode` leaked into the rest of `PrintingPolicy`, meaning if we wanted to introduce another enum (which I'm planning on doing in an unrelated PR), then `All`/`None`/`

[clang] [LifetimeSafety] Suggest lifetime annotations (PR #169767)

2025-12-04 Thread Kashika Akhouri via cfe-commits
https://github.com/kashika0112 updated https://github.com/llvm/llvm-project/pull/169767 >From 00494b03dd31a4a1e541fb45bd524ee452541208 Mon Sep 17 00:00:00 2001 From: Kashika Akhouri Date: Thu, 27 Nov 2025 07:13:49 + Subject: [PATCH 01/10] Add lifetime annotation suggestion --- .../Analyse

[clang] [llvm] [x86][AVX-VNNI] Fix VPDPWXXD Argument Types (PR #169456)

2025-12-04 Thread Thurston Dang via cfe-commits
thurstond wrote: They're expected. @BaiXilin had kindly added some AVX2/AVX10 intrinsic cases to MemorySanitizer that I had missed (e.g., @llvm.x86.avx10.vpdpwsud.512; see lines 5972-5989 of llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp); hence the

[clang] [CLANG] Fixes the issue with using bool in builtin_bswapg (PR #169285)

2025-12-04 Thread Ebin Jose via cfe-commits
ebinjose02 wrote: > It looks like this isn't merging cleanly; please update your branch. There were no conflicts showing up. Still I have updated the ticket. Thanks https://github.com/llvm/llvm-project/pull/169285 ___ cfe-commits mailing list cfe-comm

[clang] [CLANG] Fixes the issue with using bool in builtin_bswapg (PR #169285)

2025-12-04 Thread Ebin Jose via cfe-commits
https://github.com/ebinjose02 updated https://github.com/llvm/llvm-project/pull/169285 >From 4baf6aac54499c5fdbeab33a4dc956487b4b5c02 Mon Sep 17 00:00:00 2001 From: ebinjose02 Date: Mon, 24 Nov 2025 07:02:26 + Subject: [PATCH 1/2] Fixes #168690 Prevents assertion in CGBuiltin for i1 - retu

[clang] [llvm] [x86][AVX-VNNI] Fix VPDPWXXD Argument Types (PR #169456)

2025-12-04 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. X86 changes LG, just 2 minors and one question for MemorySanitizer. https://github.com/llvm/llvm-project/pull/169456 ___ cfe-commits mailing list [email protected] https://lists.llvm.or

[clang] [llvm] [x86][AVX-VNNI] Fix VPDPWXXD Argument Types (PR #169456)

2025-12-04 Thread Phoebe Wang via cfe-commits
phoebewang wrote: @thurstond Are these comparison expected? Why didn't we need them in LHS? https://github.com/llvm/llvm-project/pull/169456 ___ cfe-commits mailing list [email protected] https://lists.llvm.o

[clang] [OpenMP] Fix defaultmap(firstprivate:pointer) handling (PR #169622)

2025-12-04 Thread Sairudra More via cfe-commits
@@ -1039,7 +1040,6 @@ CGOpenMPRuntime::CGOpenMPRuntime(CodeGenModule &CGM) hasRequiresUnifiedSharedMemory(), /*HasRequiresDynamicAllocators*/ false); Config.setDefaultTargetAS( CGM.getContext().getTargetInfo().getTargetAddressSpace(LangAS::Default)); - Config.se

[clang] [llvm] [x86][AVX-VNNI] Fix VPDPWXXD Argument Types (PR #169456)

2025-12-04 Thread Phoebe Wang via cfe-commits
phoebewang wrote: ditto. https://github.com/llvm/llvm-project/pull/169456 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [x86][AVX-VNNI] Fix VPDPWXXD Argument Types (PR #169456)

2025-12-04 Thread Phoebe Wang via cfe-commits
phoebewang wrote: Change `-1` to a variable. There's no mask instruction generated. https://github.com/llvm/llvm-project/pull/169456 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-b

[clang] [OpenMP] Fix defaultmap(firstprivate:pointer) handling (PR #169622)

2025-12-04 Thread Sairudra More via cfe-commits
https://github.com/Saieiei updated https://github.com/llvm/llvm-project/pull/169622 >From def235fb45d313b145ee4f9dadcc6b233302d444 Mon Sep 17 00:00:00 2001 From: Sairudra More Date: Wed, 26 Nov 2025 04:18:53 -0600 Subject: [PATCH] [OpenMP] Add OMP_MAP_LITERAL flag for firstprivate pointers ---

[clang-tools-extra] [clang-tidy] Extend `bugprone-use-after-move` to allow custom invalidation functions (PR #170346)

2025-12-04 Thread via cfe-commits
https://github.com/higher-performance closed https://github.com/llvm/llvm-project/pull/170346 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] eecdd4b - [clang-tidy] Extend `bugprone-use-after-move` to allow custom invalidation functions (#170346)

2025-12-04 Thread via cfe-commits
Author: higher-performance Date: 2025-12-04T23:44:47-05:00 New Revision: eecdd4be8aaabcc326dfb2b689dcbfb5c172c98b URL: https://github.com/llvm/llvm-project/commit/eecdd4be8aaabcc326dfb2b689dcbfb5c172c98b DIFF: https://github.com/llvm/llvm-project/commit/eecdd4be8aaabcc326dfb2b689dcbfb5c172c98b.

[clang] [llvm] [AMDGPU] Apply alignment attr for make.buffer.rsrc (PR #166914)

2025-12-04 Thread via cfe-commits
https://github.com/Shoreshen updated https://github.com/llvm/llvm-project/pull/166914 >From 4d3d6e41cb347572b69cd84705218786a01a7b4e Mon Sep 17 00:00:00 2001 From: shore <[email protected]> Date: Fri, 7 Nov 2025 17:52:32 +0800 Subject: [PATCH 01/11] Apply alignment attr for make.buffer.rsrc ---

[clang] [Clang][AMDGPU] Search TheRock-based device libraries (PR #170590)

2025-12-04 Thread Shilei Tian via cfe-commits
@@ -0,0 +1 @@ +../../../rocm/amdgcn shiltian wrote: I c, thanks for the info. https://github.com/llvm/llvm-project/pull/170590 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mail

[clang] [llvm] [AMDGPU] Apply alignment attr for make.buffer.rsrc (PR #166914)

2025-12-04 Thread Shilei Tian via cfe-commits
@@ -5554,6 +5561,18 @@ struct AAAlignCallSiteReturned final std::min(this->getAssumedAlign(), Alignment).value()); break; } + // FIX ME: Should introduce target specific sub-attributes and letting shiltian wrote: ```suggestion

[clang] [llvm] [AMDGPU] Apply alignment attr for make.buffer.rsrc (PR #166914)

2025-12-04 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/166914 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Implement multi-level origins (PR #168344)

2025-12-04 Thread Yitzhak Mandelbaum via cfe-commits
@@ -155,18 +155,19 @@ class OriginEscapesFact : public Fact { class UseFact : public Fact { const Expr *UseExpr; - OriginID OID; + // The origins of the expression being used. + llvm::SmallVector OIDs; // True if this use is a write operation (e.g., left-hand side of

[clang] [LifetimeSafety] Implement multi-level origins (PR #168344)

2025-12-04 Thread Yitzhak Mandelbaum via cfe-commits
@@ -52,41 +62,118 @@ struct Origin { } }; -/// Manages the creation, storage, and retrieval of origins for pointer-like -/// variables and expressions. -class OriginManager { +/// A list of origins representing levels of indirection for pointer-like types. +/// +/// Each no

[clang] [LifetimeSafety] Implement multi-level origins (PR #168344)

2025-12-04 Thread Yitzhak Mandelbaum via cfe-commits
@@ -64,29 +93,42 @@ void FactsGenerator::run() { void FactsGenerator::VisitDeclStmt(const DeclStmt *DS) { for (const Decl *D : DS->decls()) if (const auto *VD = dyn_cast(D)) - if (hasOrigin(VD)) -if (const Expr *InitExpr = VD->getInit()) - killAndFlo

[clang] [LifetimeSafety] Implement multi-level origins (PR #168344)

2025-12-04 Thread Yitzhak Mandelbaum via cfe-commits
@@ -52,41 +62,118 @@ struct Origin { } }; -/// Manages the creation, storage, and retrieval of origins for pointer-like -/// variables and expressions. -class OriginManager { +/// A list of origins representing levels of indirection for pointer-like types.

[clang] [LifetimeSafety] Implement multi-level origins (PR #168344)

2025-12-04 Thread Yitzhak Mandelbaum via cfe-commits
@@ -52,41 +62,118 @@ struct Origin { } }; -/// Manages the creation, storage, and retrieval of origins for pointer-like -/// variables and expressions. -class OriginManager { +/// A list of origins representing levels of indirection for pointer-like types. +/// +/// Each no

[clang] [LifetimeSafety] Implement multi-level origins (PR #168344)

2025-12-04 Thread Yitzhak Mandelbaum via cfe-commits
@@ -155,18 +155,19 @@ class OriginEscapesFact : public Fact { class UseFact : public Fact { const Expr *UseExpr; - OriginID OID; + // The origins of the expression being used. ymand wrote: super nit: maybe explain the choice of 1 as the default length. h

[clang] [LifetimeSafety] Implement multi-level origins (PR #168344)

2025-12-04 Thread Yitzhak Mandelbaum via cfe-commits
https://github.com/ymand edited https://github.com/llvm/llvm-project/pull/168344 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Implement multi-level origins (PR #168344)

2025-12-04 Thread Yitzhak Mandelbaum via cfe-commits
@@ -64,29 +93,42 @@ void FactsGenerator::run() { void FactsGenerator::VisitDeclStmt(const DeclStmt *DS) { for (const Decl *D : DS->decls()) if (const auto *VD = dyn_cast(D)) - if (hasOrigin(VD)) -if (const Expr *InitExpr = VD->getInit()) - killAndFlo

[clang] [LifetimeSafety] Implement multi-level origins (PR #168344)

2025-12-04 Thread Yitzhak Mandelbaum via cfe-commits
https://github.com/ymand commented: Partial review. Looks good so far! https://github.com/llvm/llvm-project/pull/168344 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Implement multi-level origins (PR #168344)

2025-12-04 Thread Yitzhak Mandelbaum via cfe-commits
ymand wrote: > 4. **Multi-Level Flow Propagation**: The `flow` function propagates origins > through all depths of the lists with a critical assertion: >`assert(Dst->getDepth() == Src->getDepth() && "Lists must have the same > length");` This ensures type safety in origin propagation during

[libclc] [libclc] Add OpenCL atomic_*_explicit builtins (PR #168318)

2025-12-04 Thread Wenju He via cfe-commits
https://github.com/wenju-he closed https://github.com/llvm/llvm-project/pull/168318 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] 79620d8 - [libclc] Add OpenCL atomic_*_explicit builtins (#168318)

2025-12-04 Thread via cfe-commits
Author: Wenju He Date: 2025-12-05T10:12:25+08:00 New Revision: 79620d8ac094f2ab65b4c65376b710d04bba212f URL: https://github.com/llvm/llvm-project/commit/79620d8ac094f2ab65b4c65376b710d04bba212f DIFF: https://github.com/llvm/llvm-project/commit/79620d8ac094f2ab65b4c65376b710d04bba212f.diff LOG:

[libclc] [libclc] Add OpenCL atomic_*_explicit builtins (PR #168318)

2025-12-04 Thread Wenju He via cfe-commits
https://github.com/wenju-he edited https://github.com/llvm/llvm-project/pull/168318 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream initial TBAA implementation (PR #169226)

2025-12-04 Thread via cfe-commits
PikachuHyA wrote: > Might be a good moment to check whether this is the best approach (cc > @andykaylor @xlauko). Others raised the question if we really need to map > them into CIR this early or whether it makes sense to only generate them > during lowering time. TBH I don't remember the full

[clang] [llvm] [Offloading] Extend OffloadBinary format to support multiple metadata entries (PR #169425)

2025-12-04 Thread Yury Plyakhin via cfe-commits
@@ -181,7 +195,7 @@ class OffloadFile : public OwningBinary { getBinary()->getMemoryBufferRef().getBufferIdentifier()); // This parsing should never fail because it has already been parsed. -auto NewBinaryOrErr = OffloadBinary::create(*Buffer); +auto NewBin

[clang-tools-extra] [clang-tidy] Extend `bugprone-use-after-move` to allow custom invalidation functions (PR #170346)

2025-12-04 Thread via cfe-commits
@@ -253,3 +253,13 @@ For example, if an additional member variable is added to ``S``, it is easy to forget to add the reinitialization for this additional member. Instead, it is safer to assign to the entire struct in one go, and this will also avoid the use-after-move warning

[clang-tools-extra] [clang-tidy] Extend `bugprone-use-after-move` to allow custom invalidation functions (PR #170346)

2025-12-04 Thread via cfe-commits
https://github.com/higher-performance updated https://github.com/llvm/llvm-project/pull/170346 >From 6f3e917beee08ca8a2716298f09511b08b9710c5 Mon Sep 17 00:00:00 2001 From: higher-performance Date: Tue, 2 Dec 2025 13:20:24 -0500 Subject: [PATCH] Extend bugprone-use-after-move check to allow cus

[clang] [llvm] Clang: Add nsz to llvm.minnum and llvm.maxnum emitted from fmin and fmax (PR #113133)

2025-12-04 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff origin/main HEAD --extensions h,c,cpp,cl -- clang/lib/CodeGen/CGBuiltin.cpp clang/tes

[clang] [clang] Implement __builtin_stdc_rotate_left, __builtin_stdc_rotate_right (PR #160259)

2025-12-04 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic edited https://github.com/llvm/llvm-project/pull/160259 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Fix lazy template loading (PR #133057)

2025-12-04 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > > As I hinted above, that doesn't work. More specifically, I tried > > ```diff > > diff --git a/clang/lib/Serialization/ASTReaderDecl.cpp > > b/clang/lib/Serialization/ASTReaderDecl.cpp > > index 882d54f31280..d63824c4ba18 100644 > > --- a/clang/lib/Serialization/ASTReaderDec

[clang] [clang] Implement __builtin_stdc_rotate_left, __builtin_stdc_rotate_right (PR #160259)

2025-12-04 Thread Eli Friedman via cfe-commits
@@ -19156,6 +19168,42 @@ void HandleComplexComplexDiv(APFloat A, APFloat B, APFloat C, APFloat D, } } +APSInt NormalizeRotateAmount(const APSInt &Value, const APSInt &Amount) { + // Normalize shift amount to [0, BitWidth) range to match runtime behavior + APSInt NormAmt =

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-12-04 Thread Jan Korous via cfe-commits
@@ -0,0 +1,343 @@ +//===- unittests/Analysis/Scalable/ASTEntityMappingTest.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: Apac

[clang-tools-extra] [clang-tidy] Preserve comments in `readability-use-std-min-max` (PR #169908)

2025-12-04 Thread via cfe-commits
https://github.com/zeyi2 closed https://github.com/llvm/llvm-project/pull/169908 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 9342d03 - [clang-tidy] Preserve comments in `readability-use-std-min-max` (#169908)

2025-12-04 Thread via cfe-commits
Author: mitchell Date: 2025-12-05T09:41:31+08:00 New Revision: 9342d03f90ec42ca643f82a3e0654f71173a843f URL: https://github.com/llvm/llvm-project/commit/9342d03f90ec42ca643f82a3e0654f71173a843f DIFF: https://github.com/llvm/llvm-project/commit/9342d03f90ec42ca643f82a3e0654f71173a843f.diff LOG:

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-12-04 Thread Jan Korous via cfe-commits
@@ -0,0 +1,343 @@ +//===- unittests/Analysis/Scalable/ASTEntityMappingTest.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: Apac

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-12-04 Thread Jan Korous via cfe-commits
https://github.com/jkorous-apple updated https://github.com/llvm/llvm-project/pull/169131 >From 61f84a4c4dfa70a4c4367c07075ac9a392cf70b4 Mon Sep 17 00:00:00 2001 From: Jan Korous Date: Fri, 21 Nov 2025 15:53:11 -0800 Subject: [PATCH 01/14] [clang][ssaf] Introduce entity abstraction for SSAF Ad

[clang] [clang] Limit lifetimes of temporaries to the full expression (PR #170517)

2025-12-04 Thread Eli Friedman via cfe-commits
@@ -4960,7 +4960,26 @@ void CodeGenFunction::EmitCallArg(CallArgList &args, const Expr *E, return; } - args.add(EmitAnyExprToTemp(E), type); + AggValueSlot ArgSlot = AggValueSlot::ignored(); + // For arguments with aggregate type, create an alloca to store + // the

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-12-04 Thread Jan Korous via cfe-commits
https://github.com/jkorous-apple updated https://github.com/llvm/llvm-project/pull/169131 >From 61f84a4c4dfa70a4c4367c07075ac9a392cf70b4 Mon Sep 17 00:00:00 2001 From: Jan Korous Date: Fri, 21 Nov 2025 15:53:11 -0800 Subject: [PATCH 01/13] [clang][ssaf] Introduce entity abstraction for SSAF Ad

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-12-04 Thread Jan Korous via cfe-commits
https://github.com/jkorous-apple edited https://github.com/llvm/llvm-project/pull/169131 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-12-04 Thread Jan Korous via cfe-commits
https://github.com/jkorous-apple updated https://github.com/llvm/llvm-project/pull/169131 >From 61f84a4c4dfa70a4c4367c07075ac9a392cf70b4 Mon Sep 17 00:00:00 2001 From: Jan Korous Date: Fri, 21 Nov 2025 15:53:11 -0800 Subject: [PATCH 01/12] [clang][ssaf] Introduce entity abstraction for SSAF Ad

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-12-04 Thread Jan Korous via cfe-commits
@@ -0,0 +1,343 @@ +//===- unittests/Analysis/Scalable/ASTEntityMappingTest.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: Apac

[clang] [Clang][OpenCL] Add support for the cl_intel_subgroup_buffer_prefetch (PR #170532)

2025-12-04 Thread Michal Paszkowski via cfe-commits
https://github.com/michalpaszkowski closed https://github.com/llvm/llvm-project/pull/170532 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5c289da - [Clang][OpenCL] Add support for the cl_intel_subgroup_buffer_prefetch (#170532)

2025-12-04 Thread via cfe-commits
Author: Victor Mustya Date: 2025-12-04T17:27:08-08:00 New Revision: 5c289dac3031e4b4fbaf8604c4520965d8656424 URL: https://github.com/llvm/llvm-project/commit/5c289dac3031e4b4fbaf8604c4520965d8656424 DIFF: https://github.com/llvm/llvm-project/commit/5c289dac3031e4b4fbaf8604c4520965d8656424.diff

[clang] [Clang][OpenCL] Add support for the cl_intel_subgroup_buffer_prefetch (PR #170532)

2025-12-04 Thread Michal Paszkowski via cfe-commits
https://github.com/michalpaszkowski approved this pull request. https://github.com/llvm/llvm-project/pull/170532 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Avoid expensive AST traversal in RedundantTypenameCheck (PR #170540)

2025-12-04 Thread Paul Kirth via cfe-commits
@@ -18,9 +18,13 @@ using namespace clang::ast_matchers; namespace clang::tidy::readability { void RedundantTypenameCheck::registerMatchers(MatchFinder *Finder) { - Finder->addMatcher(typeLoc(unless(hasAncestor(decl(isInstantiated() - .bind("nonDepe

[clang] [clang] Limit lifetimes of temporaries to the full expression (PR #170517)

2025-12-04 Thread Paul Kirth via cfe-commits
ilovepi wrote: This seems to be tickling something in the dfsan tests. I’m not totally sure why. Perhaps with the lifetime in the eh path something can’t be DCEd anymore? I need to investigate if this is a real problem or a missing flag or something in the dfsan test. It’s also odd that only t

[clang] [clang] [diagnostics] Stable IDs for Clang diagnostics (PR #168153)

2025-12-04 Thread Dave Bartolomeo via cfe-commits
dbartol wrote: @AaronBallman I went ahead and implemented the support for explicitly specifying the stable ID, and for listing previous stable IDs, in a [separate PR](https://github.com/dbartol/llvm-project/pull/2) against this PR. Any thoughts about this approach to managing stable IDs over t

[clang] [clang] [diagnostics] Stable IDs for Clang diagnostics (PR #168153)

2025-12-04 Thread Dave Bartolomeo via cfe-commits
https://github.com/dbartol updated https://github.com/llvm/llvm-project/pull/168153 >From f23857c7df24ef166aa0bb4a90e2ba13e5e49bdc Mon Sep 17 00:00:00 2001 From: Dave Bartolomeo Date: Fri, 14 Nov 2025 17:45:25 -0500 Subject: [PATCH 1/3] [clang] [diagnostics] Stable IDs for Clang diagnostics SA

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-12-04 Thread Jan Korous via cfe-commits
https://github.com/jkorous-apple updated https://github.com/llvm/llvm-project/pull/169131 >From 61f84a4c4dfa70a4c4367c07075ac9a392cf70b4 Mon Sep 17 00:00:00 2001 From: Jan Korous Date: Fri, 21 Nov 2025 15:53:11 -0800 Subject: [PATCH 01/11] [clang][ssaf] Introduce entity abstraction for SSAF Ad

[clang] [HLSL][Matrix] Add support for single subscript accessor (PR #170779)

2025-12-04 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl updated https://github.com/llvm/llvm-project/pull/170779 >From ff983973492b853a64692a6df2edae48781c575b Mon Sep 17 00:00:00 2001 From: Farzon Lotfi Date: Mon, 24 Nov 2025 16:57:45 -0500 Subject: [PATCH] [HLSL][Matrix] Add support for single subscript accessor fixes #

[clang] [llvm] [AMDGPU] Apply alignment attr for make.buffer.rsrc (PR #166914)

2025-12-04 Thread via cfe-commits
https://github.com/Shoreshen updated https://github.com/llvm/llvm-project/pull/166914 >From 4d3d6e41cb347572b69cd84705218786a01a7b4e Mon Sep 17 00:00:00 2001 From: shore <[email protected]> Date: Fri, 7 Nov 2025 17:52:32 +0800 Subject: [PATCH 01/10] Apply alignment attr for make.buffer.rsrc ---

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-12-04 Thread Jan Korous via cfe-commits
@@ -0,0 +1,343 @@ +//===- unittests/Analysis/Scalable/ASTEntityMappingTest.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: Apac

[clang] [HLSL][Matrix] Add support for single subscript accessor (PR #170779)

2025-12-04 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 84936 tests passed * 1148 tests skipped * 2 tests failed ## Failed Tests (click on a test name to see its output) ### Clang Clang.CodeGenHLSL/BasicFeatures/MatrixSingleSubscriptGetter.hlsl ``` Exit Code: 1 Command Output (stdo

[clang-tools-extra] [clang-doc] Reorder struct fields to have less padding (PR #170222)

2025-12-04 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/170222 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] a2032f5 - [clang-doc] Reorder struct fields to have less padding (#170222)

2025-12-04 Thread via cfe-commits
Author: Paul Kirth Date: 2025-12-04T17:03:15-08:00 New Revision: a2032f574d6f7e01d3035a66cb64a70c66ea25be URL: https://github.com/llvm/llvm-project/commit/a2032f574d6f7e01d3035a66cb64a70c66ea25be DIFF: https://github.com/llvm/llvm-project/commit/a2032f574d6f7e01d3035a66cb64a70c66ea25be.diff LO

[clang] [llvm] [AMDGPU] Apply alignment attr for make.buffer.rsrc (PR #166914)

2025-12-04 Thread via cfe-commits
https://github.com/Shoreshen updated https://github.com/llvm/llvm-project/pull/166914 >From 4d3d6e41cb347572b69cd84705218786a01a7b4e Mon Sep 17 00:00:00 2001 From: shore <[email protected]> Date: Fri, 7 Nov 2025 17:52:32 +0800 Subject: [PATCH 1/9] Apply alignment attr for make.buffer.rsrc --- l

[clang-tools-extra] [clang-doc] Remove uses of consumeError (PR #168759)

2025-12-04 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/168759 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 8126baa - [clang-doc] Remove uses of consumeError (#168759)

2025-12-04 Thread via cfe-commits
Author: Paul Kirth Date: 2025-12-04T17:00:48-08:00 New Revision: 8126baa6d710e064671e2321067eb89e914bcbe3 URL: https://github.com/llvm/llvm-project/commit/8126baa6d710e064671e2321067eb89e914bcbe3 DIFF: https://github.com/llvm/llvm-project/commit/8126baa6d710e064671e2321067eb89e914bcbe3.diff LO

[clang] [CIR] Add structured ResumeOp (PR #170042)

2025-12-04 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/170042 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-12-04 Thread Jan Korous via cfe-commits
@@ -0,0 +1,343 @@ +//===- unittests/Analysis/Scalable/ASTEntityMappingTest.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: Apac

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-12-04 Thread Jan Korous via cfe-commits
https://github.com/jkorous-apple updated https://github.com/llvm/llvm-project/pull/169131 >From 61f84a4c4dfa70a4c4367c07075ac9a392cf70b4 Mon Sep 17 00:00:00 2001 From: Jan Korous Date: Fri, 21 Nov 2025 15:53:11 -0800 Subject: [PATCH 01/10] [clang][ssaf] Introduce entity abstraction for SSAF Ad

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-12-04 Thread Jan Korous via cfe-commits
@@ -0,0 +1,343 @@ +//===- unittests/Analysis/Scalable/ASTEntityMappingTest.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: Apac

  1   2   3   4   5   >