[clang] [Clang] Implement LWG3819 for `__reference_meows_from_temporary` (PR #142554)

2025-06-03 Thread A. Jiang via cfe-commits
frederick-vs-ja wrote: > I am assuming you want to handle the libc++ changes separately? (They would > need tests/status update) Yeah. I guess it's better to separate the changes in two PRs, as combination of another library implementation with Clang will benefit slightly more quickly. https:

[clang] [clang][docs] Add docs for CCC_OVERRIDE_OPTIONS. (PR #142396)

2025-06-03 Thread Abid Qadeer via cfe-commits
https://github.com/abidh closed https://github.com/llvm/llvm-project/pull/142396 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c75acb6 - [clang][bytecode] Remove some unused code (#142580)

2025-06-03 Thread via cfe-commits
Author: Timm Baeder Date: 2025-06-03T14:45:47+02:00 New Revision: c75acb6f8bce3cb41bf21ef9e491ff16ae18dde7 URL: https://github.com/llvm/llvm-project/commit/c75acb6f8bce3cb41bf21ef9e491ff16ae18dde7 DIFF: https://github.com/llvm/llvm-project/commit/c75acb6f8bce3cb41bf21ef9e491ff16ae18dde7.diff L

[clang] [clang][bytecode] Remove some unused code (PR #142580)

2025-06-03 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/142580 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][KeyInstr][Clang] Add some additional tests (PR #134654)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/134654 >From e8a5ebb08165c6d9b0ac6b518b4ad3d1abd1fa4b Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Mon, 7 Apr 2025 12:18:48 +0100 Subject: [PATCH 1/4] [NFC][KeyInstr][Clang] Add some additional tests Thi

[clang] [NFC][KeyInstr][Clang] Add some additional tests (PR #134654)

2025-06-03 Thread Jeremy Morse via cfe-commits
@@ -0,0 +1,17 @@ +// RUN: %clang_cc1 -triple x86_64-linux-gnu -gkey-instructions -gno-column-info -x c++ %s -debug-info-kind=line-tables-only -emit-llvm -o - \ +// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank + +// RUN: %clang_cc1 -triple x86

[clang] 0555594 - [KeyInstr][Clang] For stmt atom (#134646)

2025-06-03 Thread via cfe-commits
Author: Orlando Cazalet-Hyams Date: 2025-06-03T13:47:32+01:00 New Revision: 094195c8a39ea3469fb4ded211960fde385b URL: https://github.com/llvm/llvm-project/commit/094195c8a39ea3469fb4ded211960fde385b DIFF: https://github.com/llvm/llvm-project/commit/094195c8a39ea3469fb4ded211960fde38

[clang] [KeyInstr][Clang] For stmt atom (PR #134646)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams closed https://github.com/llvm/llvm-project/pull/134646 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][KeyInstr][Clang] Add some additional tests (PR #134654)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/134654 >From 79d3f9c4eb1491789aa288c2b379e85736d8ce74 Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Mon, 7 Apr 2025 12:18:48 +0100 Subject: [PATCH 1/5] [NFC][KeyInstr][Clang] Add some additional tests Thi

[clang] 41a4b04 - [NFC][KeyInstr][Clang] Add some additional tests (#134654)

2025-06-03 Thread via cfe-commits
Author: Orlando Cazalet-Hyams Date: 2025-06-03T14:13:08+01:00 New Revision: 41a4b04a5d1fd9f82553d56ce5d5937e1c16d679 URL: https://github.com/llvm/llvm-project/commit/41a4b04a5d1fd9f82553d56ce5d5937e1c16d679 DIFF: https://github.com/llvm/llvm-project/commit/41a4b04a5d1fd9f82553d56ce5d5937e1c16d6

[clang] [NFC][KeyInstr][Clang] Add some additional tests (PR #134654)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams closed https://github.com/llvm/llvm-project/pull/134654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Follow style configuration in clangd when inserting missing includes (PR #140594)

2025-06-03 Thread via cfe-commits
https://github.com/Harald-R updated https://github.com/llvm/llvm-project/pull/140594 >From aa1a523ff10ce6176c8f9244bbc76340ae463097 Mon Sep 17 00:00:00 2001 From: Harald-R Date: Sun, 18 May 2025 19:07:59 +0300 Subject: [PATCH 1/9] Follow style configuration in clangd include cleaner --- clang

[clang] [Driver] Teach Barmetal toolchain about GCC installation (PR #121829)

2025-06-03 Thread Garvit Gupta via cfe-commits
quic-garvgupt wrote: Hi @smithp35, can you pls review the latest changes and approve this PR if everything looks fine? https://github.com/llvm/llvm-project/pull/121829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] [clang][PAC] Add __builtin_get_vtable_pointer (PR #139790)

2025-06-03 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/139790 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][PAC] Add __builtin_get_vtable_pointer (PR #139790)

2025-06-03 Thread via cfe-commits
@@ -3074,6 +3074,39 @@ following way: Query for this feature with ``__has_builtin(__builtin_offsetof)``. +``__builtin_get_vtable_pointer`` + + +``__builtin_get_vtable_pointer`` loads and authenticates the primary vtable +pointer from an instanc

[clang] [clang][PAC] Add __builtin_get_vtable_pointer (PR #139790)

2025-06-03 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/139790 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][KeyInstr][Clang] Add some additional tests (PR #134654)

2025-06-03 Thread Jeremy Morse via cfe-commits
https://github.com/jmorse approved this pull request. LGTM with a nit https://github.com/llvm/llvm-project/pull/134654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [debuginfo][coro] Fix linkage name for clones of coro functions (PR #141889)

2025-06-03 Thread Adrian Vogelsgesang via cfe-commits
@@ -124,7 +124,7 @@ static void resolveTopLevelMetadata(llvm::Function *Fn, auto *DIS = Fn->getSubprogram(); if (!DIS) return; - auto *NewDIS = DIS->replaceWithDistinct(DIS->clone()); + auto *NewDIS = llvm::MDNode::replaceWithDistinct(DIS->clone()); v

[clang] dedef40 - Reapply "[AMDGPU] Use the AMDGPUToolChain when targeting C/C++ directly" (#125744)

2025-06-03 Thread via cfe-commits
Author: Joseph Huber Date: 2025-06-03T07:54:17-05:00 New Revision: dedef408d759b50360ae8a7ef2ba13ba6931b4d8 URL: https://github.com/llvm/llvm-project/commit/dedef408d759b50360ae8a7ef2ba13ba6931b4d8 DIFF: https://github.com/llvm/llvm-project/commit/dedef408d759b50360ae8a7ef2ba13ba6931b4d8.diff

[clang] Reapply "[AMDGPU] Use the AMDGPUToolChain when targeting C/C++ directly" (PR #125744)

2025-06-03 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 closed https://github.com/llvm/llvm-project/pull/125744 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyInstr][Clang] Ret atom (PR #134652)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams commented: Ready for review * Add parameter `RetKeyInstructionsSourceAtom` in `EmitFunctionEpilog` to request a `ret` gets a specific atomGroup number through `addInstToSpecificSourceAtom` Most of the updated tests just check for any atom on the ret, but the two tes

[clang] [clang] Fixed Constant Evaluation don't Call Destructor (PR #140278)

2025-06-03 Thread via cfe-commits
Sirraide wrote: > Documentation fail seems to be fixed by #142387 The changes to the release notes look fine, so if CI is unhappy about them then that’s for some other reason. https://github.com/llvm/llvm-project/pull/140278 ___ cfe-commits mailing l

[clang] [Clang][OpenMP][LoopTransformations] Fix incorrect number of generated loops for Tile and Reverse directives (PR #140532)

2025-06-03 Thread Michael Kruse via cfe-commits
Meinersbur wrote: This change makes sense to me. In principle, the information of generated loops is only needed in dependent contexts (not yet fully expanded templates); elsewhere we get the loop nest structure from `getTransformedStmt()`. The use in `doForAllLoops` is meant to delay evaluati

[clang] [clang] Fixed Constant Evaluation don't Call Destructor (PR #140278)

2025-06-03 Thread via cfe-commits
@@ -0,0 +1,36 @@ +// RUN: %clang_cc1 -std=c++23 -fsyntax-only %s -verify +// RUN: %clang_cc1 -std=c++23 -fsyntax-only %s -verify -fexperimental-new-constant-interpreter + +namespace GH139818{ +struct A { + constexpr ~A() { ref = false; } + constexpr operator bool()

[clang] [clang] Fixed Constant Evaluation don't Call Destructor (PR #140278)

2025-06-03 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/140278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fixed Constant Evaluation don't Call Destructor (PR #140278)

2025-06-03 Thread via cfe-commits
https://github.com/Sirraide approved this pull request. One comment but otherwise this LGTM. https://github.com/llvm/llvm-project/pull/140278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-06-03 Thread via cfe-commits
cor3ntin wrote: @Bigcheese can you do a pass on that? Thanks a lot https://github.com/llvm/llvm-project/pull/107168 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8e50e88 - [KeyInstr][Clang] Break and Continue stmt atoms

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
Author: Orlando Cazalet-Hyams Date: 2025-06-03T14:25:48+01:00 New Revision: 8e50e882a847a8fd51ee8ec22fea5df192b14c06 URL: https://github.com/llvm/llvm-project/commit/8e50e882a847a8fd51ee8ec22fea5df192b14c06 DIFF: https://github.com/llvm/llvm-project/commit/8e50e882a847a8fd51ee8ec22fea5df192b14c

[clang] [NFC][KeyInstr][Clang] Add some additional tests (PR #134654)

2025-06-03 Thread Jeremy Morse via cfe-commits
https://github.com/jmorse edited https://github.com/llvm/llvm-project/pull/134654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Correct FixIt ranges for unused capture warnings (PR #141148)

2025-06-03 Thread via cfe-commits
@@ -2095,6 +2101,39 @@ FieldDecl *Sema::BuildCaptureField(RecordDecl *RD, return Field; } +static SourceRange +constructFixItRangeForUnusedCapture(Sema &S, SourceRange CaptureRange, cor3ntin wrote: ```suggestion ConstructFixItRangeForUnusedCapture(Sema &S,

[clang] [Frontend][PCH]-Add support for ignoring PCH options (-ignore-pch). (PR #142409)

2025-06-03 Thread via cfe-commits
MaggieYingYi wrote: > > https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html > Thanks for the information and suggestion. Although the error is not related with this PR, I have fixed by removing unnecessary spaces. Please see https://github.com/MaggieYingYi/llvm-project/co

[clang] [clang][AST] Reduce some AST node size. (PR #142585)

2025-06-03 Thread Haojian Wu via cfe-commits
https://github.com/hokein created https://github.com/llvm/llvm-project/pull/142585 This patch reduces the size of several AST nodes by moving some fields into the free bitfield space in the base `Stmt` class: * `CXXForRangeStmt`: 96 → 88 bytes * `ChooseExpr`: 56 → 48 bytes * `ArrayTypeTraitExp

[clang] [clang][AST] Reduce some AST node size. (PR #142585)

2025-06-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Haojian Wu (hokein) Changes This patch reduces the size of several AST nodes by moving some fields into the free bitfield space in the base `Stmt` class: * `CXXForRangeStmt`: 96 → 88 bytes * `ChooseExpr`: 56 → 48 bytes * `ArrayTyp

[clang] [clang][AST] Reduce some AST node size. (PR #142585)

2025-06-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes This patch reduces the size of several AST nodes by moving some fields into the free bitfield space in the base `Stmt` class: * `CXXForRangeStmt`: 96 → 88 bytes * `ChooseExpr`: 56 → 48 bytes * `ArrayTypeTraitEx

[clang] [clang][AST] Reduce some AST node size. (PR #142585)

2025-06-03 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/142585 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream TernaryOp for VectorType (PR #142393)

2025-06-03 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/142393 >From 030af8ea55d123d4b32d6a935c6288ea76973897 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Mon, 2 Jun 2025 15:11:17 +0200 Subject: [PATCH 1/4] [CIR] Upstream TernaryOp for VectorType --- clang/inclu

[clang] [Clang] Implement LWG3819 for `__reference_meows_from_temporary` (PR #142554)

2025-06-03 Thread via cfe-commits
cor3ntin wrote: I am assuming you want to handle the libc++ changes separately? (They would need tests/status update) https://github.com/llvm/llvm-project/pull/142554 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[clang] 4b2cb11 - [CIR] Upstream lowering of conditional operators to TernaryOp (#138156)

2025-06-03 Thread via cfe-commits
Author: Morris Hafner Date: 2025-06-03T13:29:23+02:00 New Revision: 4b2cb118bc5825c309724d536053c6f9817e2eb9 URL: https://github.com/llvm/llvm-project/commit/4b2cb118bc5825c309724d536053c6f9817e2eb9 DIFF: https://github.com/llvm/llvm-project/commit/4b2cb118bc5825c309724d536053c6f9817e2eb9.diff

[clang] [CIR] Upstream lowering of conditional operators to TernaryOp (PR #138156)

2025-06-03 Thread Morris Hafner via cfe-commits
https://github.com/mmha closed https://github.com/llvm/llvm-project/pull/138156 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Correct FixIt ranges for unused capture warnings (PR #141148)

2025-06-03 Thread via cfe-commits
@@ -1,5 +1,5 @@ // RUN: cp %s %t -// RUN: %clang_cc1 -x c++ -Wunused-lambda-capture -Wno-unused-value -std=c++1z -fixit %t +// RUN: %clang_cc1 -x c++ -Wno-vla-cxx-extension -Wunused-lambda-capture -Wno-unused-value -std=c++1z -fixit %t cor3ntin wrote: Why is

[clang] [Clang] Added explanation why a is trivial copyable evaluated to false. (PR #142341)

2025-06-03 Thread Shamshura Egor via cfe-commits
@@ -144,3 +144,54 @@ static_assert(__builtin_is_cpp_trivially_relocatable(U2)); // expected-note@#tr-U2 {{'U2' defined here}} } + +namespace trivially_copyable { +struct B { + virtual ~B(); +}; +struct S : virtual B { // #tc-S +S(); +int & a; +const int ci; +B

[clang] [llvm] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)

2025-06-03 Thread Adrian Vogelsgesang via cfe-commits
vogelsgesang wrote: CC @iains @ArsenArsen, since from the gcc commit look, it seems you are working on coroutine support in gcc. Would be great if clang/LLVM and gcc could agree on a common approach to emit debug info for coroutine suspension points 🙂 See https://discourse.llvm.org/t/rfc-deb

[clang] [Clang] Implement LWG3819 for `__reference_meows_from_temporary` (PR #142554)

2025-06-03 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/142554 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-reorder-fields] Use expanded location for macros (PR #142147)

2025-06-03 Thread Vladimir Vuksanovic via cfe-commits
vvuksanovic wrote: @alexander-shaposhnikov https://github.com/llvm/llvm-project/pull/142147 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-reorder-fields] Prevent rewriting unsupported cases (PR #142149)

2025-06-03 Thread Vladimir Vuksanovic via cfe-commits
vvuksanovic wrote: @alexander-shaposhnikov https://github.com/llvm/llvm-project/pull/142149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [debuginfo][coro] Fix linkage name for clones of coro functions (PR #141889)

2025-06-03 Thread Adrian Vogelsgesang via cfe-commits
vogelsgesang wrote: > Since the change is almost about swift, CC @adrian-prantl Note that this change should be a NFC for Swift. Changing the `DISubprogram::get` call to `Decl->clone() + replaceLinkageName` just simplifies the code, but does not change its semantics. This PR primarily enables

[clang] [KeyInstr][Clang] Ret atom (PR #134652)

2025-06-03 Thread Jeremy Morse via cfe-commits
https://github.com/jmorse commented: If I understand correctly, most of the test changes are to ensure that return instructions get /an/ atom group, without being specific about which? IMO it'd be better to make that number explicit to avoid a return accidentally being part of the _wrong_ atom

[clang] [KeyInstr][Clang] Ret atom (PR #134652)

2025-06-03 Thread Jeremy Morse via cfe-commits
https://github.com/jmorse edited https://github.com/llvm/llvm-project/pull/134652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyInstr][Clang] Ret atom (PR #134652)

2025-06-03 Thread Jeremy Morse via cfe-commits
@@ -1118,6 +1118,8 @@ void CodeGenFunction::EmitBranchThroughCleanup(JumpDest Dest) { // Create the branch. llvm::BranchInst *BI = Builder.CreateBr(Dest.getBlock()); + // This is the primary instruction for this atom, acting in place of a ret. jmorse wro

[clang] [KeyInstr][Clang] Ret atom (PR #134652)

2025-06-03 Thread Jeremy Morse via cfe-commits
@@ -0,0 +1,25 @@ +// RUN: %clang_cc1 -triple x86_64-linux-gnu -gkey-instructions -gno-column-info -x c++ %s -debug-info-kind=line-tables-only -emit-llvm -o - \ +// RUN: | FileCheck %s --implicit-check-not atomGroup --implicit-check-not atomRank + +// RUN: %clang_cc1 -triple x86_

[clang] [CIR] Upstream TernaryOp for VectorType (PR #142393)

2025-06-03 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/142393 >From b70523301fc1b1c15434682ea2433511b62190c2 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Mon, 2 Jun 2025 15:11:17 +0200 Subject: [PATCH 1/5] [CIR] Upstream TernaryOp for VectorType --- clang/inclu

[clang] [KeyInstr][Clang] Ret atom (PR #134652)

2025-06-03 Thread Jeremy Morse via cfe-commits
@@ -0,0 +1,101 @@ +// RUN: %clang_cc1 -triple x86_64-linux-gnu -gkey-instructions -gno-column-info -x c++ %s -debug-info-kind=line-tables-only -emit-llvm -o - \ +// RUN: | FileCheck %s --check-prefixes=CHECK,CHECK-CXX + +// RUN: %clang_cc1 -triple x86_64-linux-gnu -gkey-instructi

[clang] [clang][AST] Reduce some AST node size. (PR #142585)

2025-06-03 Thread Yanzuo Liu via cfe-commits
@@ -745,6 +755,16 @@ class alignas(void *) Stmt { unsigned TemplateDepth; }; + class ChooseExprBitfields { +friend class ASTStmtReader; +friend class ChooseExpr; + +LLVM_PREFERRED_TYPE(ExprBitfields) +unsigned : NumExprBits; + +bool CondIsTrue : 1; -

[clang] [clang] Correct FixIt ranges for unused capture warnings (PR #141148)

2025-06-03 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/141148 >From 0db205bb8f6925dd725885395f58a688000c7b8b Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Thu, 22 May 2025 02:38:26 -0700 Subject: [PATCH 1/4] [clang] Correct FixIt ranges for unused capture warnings Fixes

[clang] [Clang] Added explanation why a is trivial copyable evaluated to false. (PR #142341)

2025-06-03 Thread Shamshura Egor via cfe-commits
https://github.com/egorshamshura updated https://github.com/llvm/llvm-project/pull/142341 >From 2e423a75e5ee8b5ecc450d4457fc677fd0c08ad2 Mon Sep 17 00:00:00 2001 From: Shamshura Egor Date: Mon, 2 Jun 2025 07:25:26 + Subject: [PATCH 1/8] [Clang] Added explanation why a is trivial copyable e

[clang] [llvm] [ARM] Add neon vector support for floor (PR #142559)

2025-06-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: David Green (davemgreen) Changes This marks ffloor as legal providing that armv8 and neon is present (or fullfp16 for the fp16 instructions). The existing arm_neon_vrintm intrinsics are auto-upgraded to llvm.floor. If this is OK I will

[clang] [KeyInstr][Clang] Ret atom (PR #134652)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/134652 >From fc97db31e40af460d2d6a2ba6df94f932cb1c8cb Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Fri, 4 Apr 2025 16:28:39 +0100 Subject: [PATCH 01/11] [KeyInstr][Clang] Ret atom This patch is part of a

[clang] [KeyInstr][Clang] Ret atom (PR #134652)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/134652 >From fc97db31e40af460d2d6a2ba6df94f932cb1c8cb Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Fri, 4 Apr 2025 16:28:39 +0100 Subject: [PATCH 01/10] [KeyInstr][Clang] Ret atom This patch is part of a

[clang] [clang][modules] Remove the workaround for the lambda issue. (PR #142547)

2025-06-03 Thread Haojian Wu via cfe-commits
@@ -1702,36 +1702,7 @@ static NamedDecl* getLambdaCallOperatorHelper(const CXXRecordDecl &RD) { assert(allLookupResultsAreTheSame(Calls) && "More than one lambda call operator!"); - - // FIXME: If we have multiple call operators, we might be in a situation - // w

[clang] [KeyInstr][Clang] Ret atom (PR #134652)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams ready_for_review https://github.com/llvm/llvm-project/pull/134652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement LWG3819 for `__reference_meows_from_temporary` (PR #142554)

2025-06-03 Thread A. Jiang via cfe-commits
https://github.com/frederick-vs-ja updated https://github.com/llvm/llvm-project/pull/142554 >From 4a98b75bcabd0f524988fbd63caedd0ecbad5810 Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Tue, 3 Jun 2025 17:40:30 +0800 Subject: [PATCH] [Clang] Implement LWG3819 for `__reference_meows_from_tempo

[clang] [NFC][KeyInstr][Clang] Add some additional tests (PR #134654)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams updated https://github.com/llvm/llvm-project/pull/134654 >From e8a5ebb08165c6d9b0ac6b518b4ad3d1abd1fa4b Mon Sep 17 00:00:00 2001 From: Orlando Cazalet-Hyams Date: Mon, 7 Apr 2025 12:18:48 +0100 Subject: [PATCH 1/3] [NFC][KeyInstr][Clang] Add some additional tests Thi

[clang-tools-extra] fa36822 - NFC: fix typo in tidy modernize-deprecated-headers docs

2025-06-03 Thread via cfe-commits
Author: MarcoFalke Date: 2025-06-03T12:25:01+02:00 New Revision: fa36822bfb14d0bc982d41e634af829d15b13764 URL: https://github.com/llvm/llvm-project/commit/fa36822bfb14d0bc982d41e634af829d15b13764 DIFF: https://github.com/llvm/llvm-project/commit/fa36822bfb14d0bc982d41e634af829d15b13764.diff LO

[clang] 16c13e5 - Revert "[Clang] Improve infrastructure for libstdc++ workarounds" (#142432)

2025-06-03 Thread via cfe-commits
Author: cor3ntin Date: 2025-06-03T12:27:36+02:00 New Revision: 16c13e5f7c8d574d796b3196548edc58b942b52b URL: https://github.com/llvm/llvm-project/commit/16c13e5f7c8d574d796b3196548edc58b942b52b DIFF: https://github.com/llvm/llvm-project/commit/16c13e5f7c8d574d796b3196548edc58b942b52b.diff LOG:

[clang] [Clang] Improve infrastructure for libstdc++ workarounds (PR #141977)

2025-06-03 Thread via cfe-commits
cor3ntin wrote: I reverted after spending a bunch of time trying to reproduce. @AaronBallman @erichkeane If you have an idea of why this could cause a failure on a specific bot... (It's not architecture related, I checked) https://github.com/llvm/llvm-project/pull/141977 __

[clang] [KeyInstr][Clang] Coerced store atoms (PR #134653)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams ready_for_review https://github.com/llvm/llvm-project/pull/134653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyInstr][Clang] Coerced store atoms (PR #134653)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams edited https://github.com/llvm/llvm-project/pull/134653 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][OpenMP] Fix mapping of arrays of structs with members with mappers (PR #142511)

2025-06-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-offload Author: Abhinav Gaba (abhinavgaba) Changes This builds upon #101101 from @jyu2-git, which used compiler-generated mappers when mapping an array-section of structs with members that have user-defined default mappers. Now we do the same when map

[clang] [llvm] [Clang][OpenMP] Fix mapping of arrays of structs with members with mappers (PR #142511)

2025-06-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Abhinav Gaba (abhinavgaba) Changes This builds upon #101101 from @jyu2-git, which used compiler-generated mappers when mapping an array-section of structs with members that have user-defined default mappers. Now we do the same when mappi

[clang] [llvm] [ARM] Add neon vector support for floor (PR #142559)

2025-06-03 Thread David Green via cfe-commits
https://github.com/davemgreen created https://github.com/llvm/llvm-project/pull/142559 This marks ffloor as legal providing that armv8 and neon is present (or fullfp16 for the fp16 instructions). The existing arm_neon_vrintm intrinsics are auto-upgraded to llvm.floor. If this is OK I will upd

[clang] [llvm] [ARM] Add neon vector support for floor (PR #142559)

2025-06-03 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 HEAD~1 HEAD --extensions cpp,c -- clang/lib/CodeGen/TargetBuiltins/ARM.cpp clang/tes

[clang] 347273d - [KeyInstr][Clang] Coerced store atoms (#134653)

2025-06-03 Thread via cfe-commits
Author: Orlando Cazalet-Hyams Date: 2025-06-03T09:22:37+01:00 New Revision: 347273db2f33938e8f35de7b6c384d042b890052 URL: https://github.com/llvm/llvm-project/commit/347273db2f33938e8f35de7b6c384d042b890052 DIFF: https://github.com/llvm/llvm-project/commit/347273db2f33938e8f35de7b6c384d042b8900

[clang] [NFC][KeyInstr][Clang] Add some additional tests (PR #134654)

2025-06-03 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams edited https://github.com/llvm/llvm-project/pull/134654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 06f779b - Reland "[Clang][LoongArch] Support target attribute for function" (#142546)

2025-06-03 Thread via cfe-commits
Author: Ami-zhang Date: 2025-06-03T15:57:50+08:00 New Revision: 06f779b69d8294b296ee9dd14b82f0e2fe59899f URL: https://github.com/llvm/llvm-project/commit/06f779b69d8294b296ee9dd14b82f0e2fe59899f DIFF: https://github.com/llvm/llvm-project/commit/06f779b69d8294b296ee9dd14b82f0e2fe59899f.diff LOG

[clang] [llvm] Reland "[Clang][LoongArch] Support target attribute for function" (PR #142546)

2025-06-03 Thread via cfe-commits
https://github.com/Ami-zhang closed https://github.com/llvm/llvm-project/pull/142546 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Enforce SL.con.3: Add check to replace operator[] with at() (PR #90043)

2025-06-03 Thread Baranov Victor via cfe-commits
vbvictor wrote: Could this PR be closed? @sebwolf-de, @paulhdk It can be reopened later if needed https://github.com/llvm/llvm-project/pull/90043 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang] [llvm] [ARM] Add neon vector support for floor (PR #142559)

2025-06-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: David Green (davemgreen) Changes This marks ffloor as legal providing that armv8 and neon is present (or fullfp16 for the fp16 instructions). The existing arm_neon_vrintm intrinsics are auto-upgraded to llvm.floor. If this is OK

[clang] [llvm] [Clang][OpenMP] Fix mapping of arrays of structs with members with mappers (PR #142511)

2025-06-03 Thread Abhinav Gaba via cfe-commits
https://github.com/abhinavgaba ready_for_review https://github.com/llvm/llvm-project/pull/142511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Correct FixIt ranges for unused capture warnings (PR #141148)

2025-06-03 Thread via cfe-commits
@@ -84,6 +84,29 @@ SourceLocation Sema::getLocForEndOfToken(SourceLocation Loc, unsigned Offset) { return Lexer::getLocForEndOfToken(Loc, Offset, SourceMgr, LangOpts); } +SourceRange +Sema::getRangeForNextToken(SourceLocation Loc, bool IncludeMacros, +

[clang] [Frontend][PCH]-Add support for ignoring PCH options (-ignore-pch). (PR #142409)

2025-06-03 Thread via cfe-commits
https://github.com/MaggieYingYi updated https://github.com/llvm/llvm-project/pull/142409 >From c0cc666ab8864b665539a857dbdae6c592266227 Mon Sep 17 00:00:00 2001 From: Ying Yi Date: Mon, 2 Jun 2025 10:21:22 +0100 Subject: [PATCH 1/3] [Frontend][PCH]-Add support for ignoring PCH options (-ignore

[clang] [llvm] [Clang][OpenMP] Fix mapping of arrays of structs with members with mappers (PR #142511)

2025-06-03 Thread Abhinav Gaba via cfe-commits
https://github.com/abhinavgaba edited https://github.com/llvm/llvm-project/pull/142511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[Clang] Improve infrastructure for libstdc++ workarounds" (PR #142432)

2025-06-03 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/142432 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Remove some unused code (PR #142580)

2025-06-03 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/142580 Remove unused functions and add tests for fixed-point to bool casts, which work. >From 113466cd964229100f5ff6d8e9672cde817992c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 3 Jun 202

[clang] [clang][bytecode] Remove some unused code (PR #142580)

2025-06-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Remove unused functions and add tests for fixed-point to bool casts, which work. --- Full diff: https://github.com/llvm/llvm-project/pull/142580.diff 5 Files Affected: - (modified) clang/lib/AST/ByteCode/B

[clang] [clang][CGObjC] Sign the v-table pointer in ObjC exception RTTI. (PR #135562)

2025-06-03 Thread Oliver Hunt via cfe-commits
ojhunt wrote: @cor3ntin ping :D https://github.com/llvm/llvm-project/pull/135562 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Improve infrastructure for libstdc++ workarounds (Reland) (PR #142592)

2025-06-03 Thread via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/142592 Reland with debug traces to try to understand a bug that only happens on one CI configuration === This introduces a way detect the libstdc++ version, use that to enable workarounds. The version is cached. Thi

[clang] [Clang] Improve infrastructure for libstdc++ workarounds (Reland) (PR #142592)

2025-06-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: cor3ntin (cor3ntin) Changes Reland with debug traces to try to understand a bug that only happens on one CI configuration === This introduces a way detect the libstdc++ version, use that to enable workarounds. The version is cached. Thi

[clang] [Clang] Improve infrastructure for libstdc++ workarounds (Reland) (PR #142592)

2025-06-03 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/142592 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][AST] Reduce some AST node size. (PR #142585)

2025-06-03 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. https://github.com/llvm/llvm-project/pull/142585 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [debuginfo][coro] Fix linkage name for clones of coro functions (PR #141889)

2025-06-03 Thread Michael Buch via cfe-commits
@@ -124,7 +124,7 @@ static void resolveTopLevelMetadata(llvm::Function *Fn, auto *DIS = Fn->getSubprogram(); if (!DIS) return; - auto *NewDIS = DIS->replaceWithDistinct(DIS->clone()); + auto *NewDIS = llvm::MDNode::replaceWithDistinct(DIS->clone()); M

[clang] [llvm] [debuginfo][coro] Fix linkage name for clones of coro functions (PR #141889)

2025-06-03 Thread Michael Buch via cfe-commits
@@ -912,29 +912,14 @@ void coro::BaseCloner::create() { assert(SP != OrigF.getSubprogram() && SP->isDistinct()); updateScopeLine(ActiveSuspend, *SP); -// Update the linkage name to reflect the modified symbol name. It -// is necessary to update the linkage name

[clang] [llvm] [debuginfo][coro] Fix linkage name for clones of coro functions (PR #141889)

2025-06-03 Thread Michael Buch via cfe-commits
https://github.com/Michael137 approved this pull request. LGTM The LLDB test failure seems expected. The demangled frame name changed https://github.com/llvm/llvm-project/pull/141889 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://list

[clang] [CIR][NFS] Fix missing return statement warning (PR #142591)

2025-06-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Fix the warning related to the missing return statement and multiple return statements --- Full diff: https://github.com/llvm/llvm-project/pull/142591.diff 1 Files Affected: - (modified) clang/lib/CIR/

[clang] [CIR][NFS] Fix missing return statement warning (PR #142591)

2025-06-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes Fix the warning related to the missing return statement and multiple return statements --- Full diff: https://github.com/llvm/llvm-project/pull/142591.diff 1 Files Affected: - (modified) clang/lib/CI

[clang] [Clang] Implement LWG3819 for `__reference_meows_from_temporary` (PR #142554)

2025-06-03 Thread A. Jiang via cfe-commits
https://github.com/frederick-vs-ja updated https://github.com/llvm/llvm-project/pull/142554 >From bb6bba3dd7f58c08043a91ee56e9e219f5185668 Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Tue, 3 Jun 2025 17:40:30 +0800 Subject: [PATCH] [Clang] Implement LWG3819 for `__reference_meows_from_tempo

[clang] [CIR][NFS] Fix missing return statement warning (PR #142591)

2025-06-03 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/142591 Fix the warning related to the missing return statement and multiple return statements >From 5a47507bc7f091bd6032b455972095cc95ebbccc Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Tue, 3 Jun 2025 14:0

[clang] [Clang] Improve infrastructure for libstdc++ workarounds (Reland) (PR #142592)

2025-06-03 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. I hope it helps! https://github.com/llvm/llvm-project/pull/142592 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ec96c0c - [analyzer] Fix tagging of PostAllocatorCall (#142132)

2025-06-03 Thread via cfe-commits
Author: Donát Nagy Date: 2025-06-03T14:19:02+02:00 New Revision: ec96c0c072ef3f78813c378949c00e1c07aa44e5 URL: https://github.com/llvm/llvm-project/commit/ec96c0c072ef3f78813c378949c00e1c07aa44e5 DIFF: https://github.com/llvm/llvm-project/commit/ec96c0c072ef3f78813c378949c00e1c07aa44e5.diff LO

[clang] [analyzer] Fix tagging of PostAllocatorCall (PR #142132)

2025-06-03 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat closed https://github.com/llvm/llvm-project/pull/142132 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix tagging of PostAllocatorCall (PR #142132)

2025-06-03 Thread Donát Nagy via cfe-commits
NagyDonat wrote: I tested this commit on open source projects and as expected, there were no new crashes or result changes. https://github.com/llvm/llvm-project/pull/142132 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org

  1   2   3   4   5   >