[clang] [Clang][AArch64] Relax SVE bf16 requirement for opaque builtins. (PR #147795)

2025-07-10 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm edited https://github.com/llvm/llvm-project/pull/147795 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add C standard streams to the internal memory space (PR #147766)

2025-07-10 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat approved this pull request. https://github.com/llvm/llvm-project/pull/147766 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Don't pass sanitizers' rtlibs to linker with `-r` (PR #147905)

2025-07-10 Thread Dmitry Chestnykh via cfe-commits
https://github.com/chestnykh edited https://github.com/llvm/llvm-project/pull/147905 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Don't pass sanitizers' rtlibs to linker with `-r` (PR #147905)

2025-07-10 Thread Dmitry Chestnykh via cfe-commits
https://github.com/chestnykh updated https://github.com/llvm/llvm-project/pull/147905 >From 86dc26e3947d2d53e9b86d700946e7f381f71a7a Mon Sep 17 00:00:00 2001 From: Dmitry Chestnykh Date: Thu, 10 Jul 2025 10:19:31 +0300 Subject: [PATCH] [clang] Don't pass sanitizers' rtlibs to linker with `-r`

[clang] [clang] Don't pass sanitizers' rtlibs to linker with `-r` (PR #147905)

2025-07-10 Thread Dmitry Chestnykh via cfe-commits
https://github.com/chestnykh updated https://github.com/llvm/llvm-project/pull/147905 >From 83069f67af285bf5df6b2181e1c1763f5d2169ff Mon Sep 17 00:00:00 2001 From: Dmitry Chestnykh Date: Thu, 10 Jul 2025 10:19:31 +0300 Subject: [PATCH] [clang] Don't pass sanitizers' rtlibs to linker with `-r`

[clang] Add necessary linker flags when -static-pie is enabled in BareMetal Toolchain (PR #147589)

2025-07-10 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt edited https://github.com/llvm/llvm-project/pull/147589 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-10 Thread Mariya Podchishchaeva via cfe-commits
Fznamznon wrote: Oops new tests are failing. https://github.com/llvm/llvm-project/pull/140282 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-07-10 Thread Cristian Assaiante via cfe-commits
cristianassaiante wrote: @nikic Done! You should be able to see only my changes now. https://github.com/llvm/llvm-project/pull/145059 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-07-10 Thread Cristian Assaiante via cfe-commits
https://github.com/cristianassaiante updated https://github.com/llvm/llvm-project/pull/145059 >From ab6063493744ef5a1ee92fd249bf8d86b7299fad Mon Sep 17 00:00:00 2001 From: Cristian Assaiante Date: Fri, 20 Jun 2025 16:56:23 +0200 Subject: [PATCH 01/11] Adding -opt-disable and a test for it ---

[clang] [clang][NFC] Remove an unused parameter in CFGBlockValues::getValue() (PR #147897)

2025-07-10 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/147897 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a709621 - [Lex] Use SourceLocation::UIntTy for the MacroDefStart, NFC

2025-07-10 Thread Haojian Wu via cfe-commits
Author: Haojian Wu Date: 2025-07-10T10:46:27+02:00 New Revision: a709621cd545b061782b03136286227867b452a6 URL: https://github.com/llvm/llvm-project/commit/a709621cd545b061782b03136286227867b452a6 DIFF: https://github.com/llvm/llvm-project/commit/a709621cd545b061782b03136286227867b452a6.diff LO

[clang] [OpenMP-5.2] deprecate delimited form of 'declare target' (PR #145854)

2025-07-10 Thread CHANDRA GHALE via cfe-commits
chandraghale wrote: As changes are approved. Merging into the main branch. https://github.com/llvm/llvm-project/pull/145854 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SimplifyCFG] Emit SelectInst when folding branches to common dest with different PHI incoming values (PR #144434)

2025-07-10 Thread David Sherwood via cfe-commits
david-arm wrote: I tried this out with SPEC2017 on a neoverse-v2 machine and it causes a 6.4% regression in mcf, so it's still not great to be honest. https://github.com/llvm/llvm-project/pull/144434 ___ cfe-commits mailing list cfe-commits@lists.llvm

[clang] [OpenMP-5.2] deprecate delimited form of 'declare target' (PR #145854)

2025-07-10 Thread CHANDRA GHALE via cfe-commits
https://github.com/chandraghale closed https://github.com/llvm/llvm-project/pull/145854 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8055c0f - [OpenMP-5.2] deprecate delimited form of 'declare target' (#145854)

2025-07-10 Thread via cfe-commits
Author: Urvi Rav Date: 2025-07-10T13:55:20+05:30 New Revision: 8055c0f380323fe9e1398dcb88276fd6c92ffa5d URL: https://github.com/llvm/llvm-project/commit/8055c0f380323fe9e1398dcb88276fd6c92ffa5d DIFF: https://github.com/llvm/llvm-project/commit/8055c0f380323fe9e1398dcb88276fd6c92ffa5d.diff LOG:

[clang] Add necessary linker flags when -static-pie is enabled in BareMetal Toolchain (PR #147589)

2025-07-10 Thread Garvit Gupta via cfe-commits
@@ -599,11 +599,18 @@ void baremetal::Linker::ConstructJob(Compilation &C, const JobAction &JA, const Driver &D = getToolChain().getDriver(); const llvm::Triple::ArchType Arch = TC.getArch(); const llvm::Triple &Triple = getToolChain().getEffectiveTriple(); + const bool

[clang] [Clang] Fix the template argument collection after CWG2369 (PR #147894)

2025-07-10 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/147894 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] adcd1bb - [Clang] Fix the template argument collection after CWG2369 (#147894)

2025-07-10 Thread via cfe-commits
Author: Younan Zhang Date: 2025-07-10T16:17:34+08:00 New Revision: adcd1bb32a050ced58584882b405f04f42c6009b URL: https://github.com/llvm/llvm-project/commit/adcd1bb32a050ced58584882b405f04f42c6009b DIFF: https://github.com/llvm/llvm-project/commit/adcd1bb32a050ced58584882b405f04f42c6009b.diff

[clang] [Clang] Fix the template argument collection after CWG2369 (PR #147894)

2025-07-10 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/147894 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add C standard streams to the internal memory space (PR #147766)

2025-07-10 Thread Balázs Kéri via cfe-commits
https://github.com/balazske updated https://github.com/llvm/llvm-project/pull/147766 From f8dc303029c68762cdbd19b217730192d26f6fca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?= Date: Wed, 9 Jul 2025 16:55:07 +0200 Subject: [PATCH 1/2] [clang][analyzer] Add C standard stream

[clang] [clang][bytecode] Allocate Record Fields and bases via Program (PR #147909)

2025-07-10 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/147909 >From b23c75ff781875da10baa9e6f033ed5358c0cf02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 10 Jul 2025 09:21:57 +0200 Subject: [PATCH] [clang][bytecode] Allocate Record Fields and ba

[clang] [clang][bytecode] Allocate Record Fields and bases via Program (PR #147909)

2025-07-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Records have Program-lifetime, but we used to allocate their fields, bases and virtual bases using llvm::SmallVector. However, after creating a Record, it doesn't change and we know all the number of element

[clang] [clang][bytecode] Allocate Record Fields and bases via Program (PR #147909)

2025-07-10 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/147909 Records have Program-lifetime, but we used to allocate their fields, bases and virtual bases using llvm::SmallVector. However, after creating a Record, it doesn't change and we know all the number of elements

[clang] [clang] Don't pass sanitizers' rtlibs to linker with `-r` (PR #147905)

2025-07-10 Thread Dmitry Chestnykh via cfe-commits
https://github.com/chestnykh edited https://github.com/llvm/llvm-project/pull/147905 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-07-10 Thread Cristian Assaiante via cfe-commits
cristianassaiante wrote: > Can you please undo the unrelated formatting changes? It's hard to see what > actually changed, especially inside StandardInstrumentations.cpp. Sure, sorry about that. https://github.com/llvm/llvm-project/pull/145059 ___ cf

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-07-10 Thread Cristian Assaiante via cfe-commits
@@ -0,0 +1,13 @@ +// REQUIRES: x86-registered-target + +// Make sure opt-bisect works through both pass managers +// +// RUN: %clang_cc1 -triple x86_64-linux-gnu -O1 %s -mllvm -opt-disable="inlinerpass,SROAPass,machine code sinking" -mllvm -opt-disable-verbose -emit-obj -o /dev/

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-07-10 Thread Cristian Assaiante via cfe-commits
https://github.com/cristianassaiante updated https://github.com/llvm/llvm-project/pull/145059 >From ab6063493744ef5a1ee92fd249bf8d86b7299fad Mon Sep 17 00:00:00 2001 From: Cristian Assaiante Date: Fri, 20 Jun 2025 16:56:23 +0200 Subject: [PATCH 01/11] Adding -opt-disable and a test for it ---

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-07-10 Thread Nikita Popov via cfe-commits
https://github.com/nikic commented: Can you please undo the unrelated formatting changes? It's hard to see what actually changed, especially inside StandardInstrumentations.cpp. https://github.com/llvm/llvm-project/pull/145059 ___ cfe-commits mailing

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-07-10 Thread Cristian Assaiante via cfe-commits
@@ -37,6 +42,18 @@ static cl::opt OptBisectVerbose( cl::desc("Show verbose output when opt-bisect-limit is set"), cl::Hidden, cl::init(true), cl::Optional); +static cl::list OptDisablePasses( +"opt-disable", cl::Hidden, cl::CommaSeparated, cl::Optional, +cl::cb

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-07-10 Thread Cristian Assaiante via cfe-commits
https://github.com/cristianassaiante updated https://github.com/llvm/llvm-project/pull/145059 >From ab6063493744ef5a1ee92fd249bf8d86b7299fad Mon Sep 17 00:00:00 2001 From: Cristian Assaiante Date: Fri, 20 Jun 2025 16:56:23 +0200 Subject: [PATCH 01/10] Adding -opt-disable and a test for it ---

[clang] Don't pass sanitizers' rtlibs to linker with `-r` (PR #147905)

2025-07-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Dmitry Chestnykh (chestnykh) Changes If clang is invoked with `-r` (relocatable linking) then we shouldn't construct sanitizer arguments and then pass sanitizer runtime libs to the linker GCC simply ignores `-fsanitize=...` if `-r`

[clang] Don't pass sanitizers' rtlibs to linker with `-r` (PR #147905)

2025-07-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Dmitry Chestnykh (chestnykh) Changes If clang is invoked with `-r` (relocatable linking) then we shouldn't construct sanitizer arguments and then pass sanitizer runtime libs to the linker GCC simply ignores `-fsanitize=...` if `-r` is also

[clang] Don't pass sanitizers' rtlibs to linker with `-r` (PR #147905)

2025-07-10 Thread Dmitry Chestnykh via cfe-commits
https://github.com/chestnykh created https://github.com/llvm/llvm-project/pull/147905 If clang is invoked with `-r` (relocatable linking) then we shouldn't construct sanitizer arguments and then pass sanitizer runtime libs to the linker GCC simply ignores `-fsanitize=...` if `-r` is also here

[clang] [clang][ObjC][PAC] Add ptrauth protections to objective-c (PR #147899)

2025-07-09 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: I'm obviously not qualified to review this but - Do we need to update https://clang.llvm.org/docs/PointerAuthentication.html ? - Do we need a changelog entry? https://github.com/llvm/llvm-project/pull/147899 ___ cfe-commits mailing li

[clang-tools-extra] [clang-tidy][NFC] add '.clang-tidy' config for clang-tidy project (PR #147793)

2025-07-09 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/147793 >From c4466d677619e6eb8ca65ed943bfb103207527c9 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Wed, 9 Jul 2025 21:00:30 +0300 Subject: [PATCH 1/3] [clang-tidy][NFC] add '.clang-tidy' config for clang-tidy

[clang] [clang] Combine ConstRefUse with other warnings for uninitialized values (PR #147898)

2025-07-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Igor Kudrin (igorkudrin) Changes This helps to avoid duplicating warnings in cases like: ``` > cat test.cpp void bar(int); void foo(const int &); void test(bool a) { int v = v; if (a) bar(v); else foo(v); } > clang++.

[clang] [clang] Combine ConstRefUse with other warnings for uninitialized values (PR #147898)

2025-07-09 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin created https://github.com/llvm/llvm-project/pull/147898 This helps to avoid duplicating warnings in cases like: ``` > cat test.cpp void bar(int); void foo(const int &); void test(bool a) { int v = v; if (a) bar(v); else foo(v); } > clang++.exe test.cp

[clang] [Clang] Fix the template argument collection after CWG2369 (PR #147894)

2025-07-09 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/147894 >From 17e42982fc947dccfc724ee6de6cf93fa8de3222 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Thu, 10 Jul 2025 13:26:09 +0800 Subject: [PATCH 1/2] [Clang] Fix the template argument collection after CWG2369

[clang] [clang][NFC] Remove an unused parameter in CFGBlockValues::getValue() (PR #147897)

2025-07-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Igor Kudrin (igorkudrin) Changes The second parameter is unused since 6080d32194. --- Full diff: https://github.com/llvm/llvm-project/pull/147897.diff 1 Files Affected: - (modified) clang/lib/Analysis/UninitializedValues.cpp (+

[clang] [clang][NFC] Remove an unused parameter in CFGBlockValues::getValue() (PR #147897)

2025-07-09 Thread Igor Kudrin via cfe-commits
https://github.com/igorkudrin created https://github.com/llvm/llvm-project/pull/147897 The second parameter is unused since 6080d32194. >From 748a7ad92ed59854502ff5c3b28dfb18f8e08c79 Mon Sep 17 00:00:00 2001 From: Igor Kudrin Date: Wed, 9 Jul 2025 18:49:32 -0700 Subject: [PATCH] [clang][NFC] R

[clang] [CIR] Implement AddOp for ComplexType (PR #147578)

2025-07-09 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/147578 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement AddOp for ComplexType (PR #147578)

2025-07-09 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/147578 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement AddOp for ComplexType (PR #147578)

2025-07-09 Thread Henrich Lauko via cfe-commits
@@ -2357,6 +2358,56 @@ mlir::LogicalResult CIRToLLVMVecTernaryOpLowering::matchAndRewrite( return mlir::success(); } +mlir::LogicalResult CIRToLLVMComplexAddOpLowering::matchAndRewrite( +cir::ComplexAddOp op, OpAdaptor adaptor, +mlir::ConversionPatternRewriter &rewr

[clang] [CIR] Implement AddOp for ComplexType (PR #147578)

2025-07-09 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko approved this pull request. lgtm with minot nit https://github.com/llvm/llvm-project/pull/147578 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix the template argument collection after CWG2369 (PR #147894)

2025-07-09 Thread Corentin Jabot via cfe-commits
@@ -1078,15 +1078,19 @@ static bool CheckFunctionConstraintsWithoutInstantiation( // template. We need the entire list, since the constraint is completely // uninstantiated at this point. - // FIXME: Add TemplateArgs through the 'Innermost' parameter once - // the refac

[clang] [clang][bytecode] Implement missing elementwise builtins (PR #147892)

2025-07-09 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/147892 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d72d84c - [clang][bytecode] Implement missing elementwise builtins (#147892)

2025-07-09 Thread via cfe-commits
Author: Timm Baeder Date: 2025-07-10T08:26:08+02:00 New Revision: d72d84cb0df40019a0a5abaf836b38c8e46e4827 URL: https://github.com/llvm/llvm-project/commit/d72d84cb0df40019a0a5abaf836b38c8e46e4827 DIFF: https://github.com/llvm/llvm-project/commit/d72d84cb0df40019a0a5abaf836b38c8e46e4827.diff L

[clang-tools-extra] [clang-tidy][NFC] add '.clang-tidy' config for clang-tidy project (PR #147793)

2025-07-09 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank approved this pull request. https://github.com/llvm/llvm-project/pull/147793 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] add '.clang-tidy' config for clang-tidy project (PR #147793)

2025-07-09 Thread Nicolas van Kempen via cfe-commits
@@ -909,10 +909,12 @@ static bool areExprsSameMacroOrLiteral(const BinaryOperator *BinOp, // Left is macro so right macro too if (Rsr.getBegin().isMacroID()) { // Both sides are macros so they are same macro or literal - const llvm::StringRef L = Lexer::getS

[clang] [CIR] Add bit reverse and byte reverse operations (PR #147200)

2025-07-09 Thread Henrich Lauko via cfe-commits
@@ -2661,6 +2661,45 @@ def BitPopcountOp : CIR_BitOpBase<"bit.popcnt", }]; } +def BitReverseOp : CIR_BitOpBase<"bit.reverse", + CIR_UIntOfWidths<[8, 16, 32, 64]>> { + let summary = "Reverse the bit pattern of the operand integer"; + let desc

[clang] Reapply "[cmake] Refactor clang unittest cmake" (PR #134195)

2025-07-09 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > > Do I understand correctly that, as a result of this commit, the SemaTests > > target no longer exists, and to work on / run the tests that it used to > > include (such as HeuristicResolverTest.cpp), I have to build the > > ClangdUnitTests target, which requires buildi

[clang] [Clang] Fix the template argument collection after CWG2369 (PR #147894)

2025-07-09 Thread Younan Zhang via cfe-commits
@@ -1078,15 +1078,19 @@ static bool CheckFunctionConstraintsWithoutInstantiation( // template. We need the entire list, since the constraint is completely // uninstantiated at this point. - // FIXME: Add TemplateArgs through the 'Innermost' parameter once - // the refac

[clang] [Clang] Fix the template argument collection after CWG2369 (PR #147894)

2025-07-09 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/147894 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix the template argument collection after CWG2369 (PR #147894)

2025-07-09 Thread Corentin Jabot via cfe-commits
@@ -1078,15 +1078,19 @@ static bool CheckFunctionConstraintsWithoutInstantiation( // template. We need the entire list, since the constraint is completely // uninstantiated at this point. - // FIXME: Add TemplateArgs through the 'Innermost' parameter once - // the refac

[clang] [clang] Use SmallString in CommentBriefParser to reduce heap allocs (PR #147853)

2025-07-09 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: Thanks for working on this. Did you do any benchmarks? https://github.com/llvm/llvm-project/pull/147853 ___ 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-07-09 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Given that we haven't heard objections, I think we should proceed with using resolved paths in `IncludeInserter` as well. It would probably be best to do that before the clangd 21 release, so that we don't ship a release where two different features are interpreting the c

[clang] [Clang] Fix the template argument collection after CWG2369 (PR #147894)

2025-07-09 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/147894 >From 17e42982fc947dccfc724ee6de6cf93fa8de3222 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Thu, 10 Jul 2025 13:26:09 +0800 Subject: [PATCH] [Clang] Fix the template argument collection after CWG2369 Since

[clang] [llvm] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-09 Thread Abhinav Kumar via cfe-commits
kr-2003 wrote: > We will probably need a test in clang/unittest/Interpreter Ok. So, replicating clang-repl's way of creating interpreter when out-of-process should work, right? https://github.com/llvm/llvm-project/pull/147478 ___ cfe-commits mailing

[clang] [Clang] Fix the template argument collection after CWG2369 (PR #147894)

2025-07-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes Since the function template isn't instantiated before constraint checking, we'll not be able to find the outer template arguments through function specialization when evaluating the inner constraint that is

[clang] [Clang] Fix the template argument collection after CWG2369 (PR #147894)

2025-07-09 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/147894 Since the function template isn't instantiated before constraint checking, we'll not be able to find the outer template arguments through function specialization when evaluating the inner constraint that is nes

[clang] [llvm] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-09 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: We will probably need a test in clang/unittest/Interpreter https://github.com/llvm/llvm-project/pull/147478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add clang tidy check performance constexpr non static in scope (PR #147809)

2025-07-09 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL requested changes to this pull request. I'm not sure if this check changes anything related to performance. Most of this stuff is optimized, local variables with builtin types will be optimized-out anyway and types that actually could harm performance cannot be cons

[clang] 36cbd43 - [clang][bytecode] Check new/delete mismatch earlier (#147732)

2025-07-09 Thread via cfe-commits
Author: Timm Baeder Date: 2025-07-10T07:33:33+02:00 New Revision: 36cbd43ae8d5a5274ae3193b6383fff2ba9671f4 URL: https://github.com/llvm/llvm-project/commit/36cbd43ae8d5a5274ae3193b6383fff2ba9671f4 DIFF: https://github.com/llvm/llvm-project/commit/36cbd43ae8d5a5274ae3193b6383fff2ba9671f4.diff L

[clang] [clang][bytecode] Check new/delete mismatch earlier (PR #147732)

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

[clang] [clang][bytecode] Implement missing elementwise builtins (PR #147892)

2025-07-09 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/147892 >From 8cfa60433b285accc0fb58531ad9ee5c74fe46d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 10 Jul 2025 07:25:15 +0200 Subject: [PAT

[clang-tools-extra] [clang-tidy][NFC] add '.clang-tidy' config for clang-tidy project (PR #147793)

2025-07-09 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/147793 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Implement missing elementwise builtins (PR #147892)

2025-07-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/147892.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/InterpBuiltin.cpp (+103-5) - (modified) clang/test/Sema/constant_builtins_vector

[clang] [clang][bytecode] Implement missing elementwise builtins (PR #147892)

2025-07-09 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/147892 None >From 8cfa60433b285accc0fb58531ad9ee5c74fe46d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 10 Jul 2025 07:25:15 +0200 Subject: [PATCH] [clang][bytecode] Implement missing eleme

[clang-tools-extra] [clang-tidy][NFC] add '.clang-tidy' config for clang-tidy project (PR #147793)

2025-07-09 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/147793 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 69ff853 - [RISCV] Move the intrinsic tests for vfwmaccbf16 to zvfbfwma directory. NFC.

2025-07-09 Thread Jim Lin via cfe-commits
Author: Jim Lin Date: 2025-07-10T13:04:27+08:00 New Revision: 69ff8537296339babc72ae075f3e78a68d1b6816 URL: https://github.com/llvm/llvm-project/commit/69ff8537296339babc72ae075f3e78a68d1b6816 DIFF: https://github.com/llvm/llvm-project/commit/69ff8537296339babc72ae075f3e78a68d1b6816.diff LOG:

[clang] [llvm] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-09 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From fbe4344831538480be33accd35ef618c6d0e50b3 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 1/8] pipes for redirection in oop jit --- .../clang/Interpreter/Remote

[clang] [llvm] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-09 Thread Abhinav Kumar via cfe-commits
@@ -23,10 +23,19 @@ #include #include #include +#ifdef LLVM_ON_UNIX +#include +#else +// Windows/MSVC fallback +#define STDIN_FILENO 0 +#define STDOUT_FILENO 1 +#define STDERR_FILENO 2 +#endif kr-2003 wrote: yes, i don't think we need these now https://gi

[clang] [cir-translate] Fix crash issue where the data layout string is missing (PR #147209)

2025-07-09 Thread via cfe-commits
https://github.com/darkbuck closed https://github.com/llvm/llvm-project/pull/147209 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 378e9bb - [cir-translate] Fix crash issue where the data layout string is missing (#147209)

2025-07-09 Thread via cfe-commits
Author: darkbuck Date: 2025-07-09T23:26:15-04:00 New Revision: 378e9bb7e06c67d8235a8cb5bfb325b63d2ba319 URL: https://github.com/llvm/llvm-project/commit/378e9bb7e06c67d8235a8cb5bfb325b63d2ba319 DIFF: https://github.com/llvm/llvm-project/commit/378e9bb7e06c67d8235a8cb5bfb325b63d2ba319.diff LOG:

[clang] [Sema] Fix lifetime extension for temporaries in range-based for loops in C++23 (PR #145164)

2025-07-09 Thread via cfe-commits
yronglin wrote: > LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux` > running on `sanitizer-buildbot7` while building `clang` at step 2 "annotate". > > Full details are available at: > https://lab.llvm.org/buildbot/#/builders/51/builds/19520 > > Here is the relevan

[clang] [flang] [flang] Add -fcomplex-arithmetic= option and select complex division algorithm (PR #146641)

2025-07-09 Thread Kelvin Li via cfe-commits
kkwli wrote: > LLVM Buildbot has detected a new failure on builder > `ppc64le-flang-rhel-clang` running on `ppc64le-flang-rhel-test` while > building `clang,flang` at step 5 "build-unified-tree". > > Full details are available at: > https://lab.llvm.org/buildbot/#/builders/157/builds/33205 >

[clang] [llvm] [PseudoProbe] Support emitting to COFF object (PR #123870)

2025-07-09 Thread Fangrui Song via cfe-commits
@@ -12,7 +12,7 @@ target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" -target triple = "x86_64-unknown-linux-gnu" +target triple = "x86_64-unknown--" MaskRay wrote: Yes, they can be omitted in the IR. https://github.com/llvm/llvm-project/pull/12387

[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #147342)

2025-07-09 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl edited https://github.com/llvm/llvm-project/pull/147342 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #147342)

2025-07-09 Thread Farzon Lotfi via cfe-commits
@@ -0,0 +1,36 @@ +; RUN: llc -O0 -mtriple=spirv-unknown-vulkan %s -o - | FileCheck %s +; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv64-unknown-unknown %s -o - -filetype=obj | spirv-val %} farzonl wrote: There is no spirv64 target if you want to use the glsl e

[clang] [Clang] Consider default template arguments when synthesizing CTAD guides (PR #147675)

2025-07-09 Thread Younan Zhang via cfe-commits
@@ -1061,15 +1061,36 @@ BuildDeductionGuideForTypeAlias(Sema &SemaRef, SmallVector DeduceResults( F->getTemplateParameters()->size()); + // We don't have to deduce against the alias template specialization, + // if the source template is a synthesized alias deduction

[clang] [Sema] Fix lifetime extension for temporaries in range-based for loops in C++23 (PR #145164)

2025-07-09 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux` running on `sanitizer-buildbot7` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/51/builds/19520 Here is the relevant piece of the

[clang] Added partial support for compiling C++20 modules and header-units without scanning. (PR #147682)

2025-07-09 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: The size of the patch is too big to review. And personally I don't have such a time to review it recently. Also from the community's perspective, the maintainablity of large patches is questionable. I think, you can achieve it with another direction. Instead of adding these

[clang] [llvm] Fix Windows EH IP2State tables (remove +1 bias) (PR #144745)

2025-07-09 Thread via cfe-commits
sivadeilra wrote: > For the cases involving noreturn functions, can we emit int3 instead of nop? Sure. I've implemented that, verified that tests pass, and updated the PR. I also added coverage for this to `noreturn-call-win64.ll`. https://github.com/llvm/llvm-project/pull/144745 ___

[clang] [clang][deps] Stop lexing if hit a failure while loading a PCH/module in a submodule. (PR #146976)

2025-07-09 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Seems like this should have a release note? https://github.com/llvm/llvm-project/pull/146976 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Fix Windows EH IP2State tables (remove +1 bias) (PR #144745)

2025-07-09 Thread via cfe-commits
https://github.com/sivadeilra updated https://github.com/llvm/llvm-project/pull/144745 >From f7c634b074a51b1564137bbcf60904c5dbdfefc0 Mon Sep 17 00:00:00 2001 From: Arlie Davis Date: Fri, 13 Jun 2025 12:45:34 -0700 Subject: [PATCH 1/4] Fix IP2State tables style: revert one change Adjust tests

[clang] [Sema] Fix lifetime extension for temporaries in range-based for loops in C++23 (PR #145164)

2025-07-09 Thread via cfe-commits
yronglin wrote: Congratulations, the first LLVM PR has landed! https://github.com/llvm/llvm-project/pull/145164 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Fix lifetime extension for temporaries in range-based for loops in C++23 (PR #145164)

2025-07-09 Thread via cfe-commits
github-actions[bot] wrote: @mrcvtl Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a build,

[clang] [Sema] Fix lifetime extension for temporaries in range-based for loops in C++23 (PR #145164)

2025-07-09 Thread via cfe-commits
https://github.com/yronglin closed https://github.com/llvm/llvm-project/pull/145164 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c86c815 - [Sema] Fix lifetime extension for temporaries in range-based for loops in C++23 (#145164)

2025-07-09 Thread via cfe-commits
Author: Marco Vitale Date: 2025-07-10T09:57:07+08:00 New Revision: c86c815fc57c098ba14576fe2bb189da1dfc820d URL: https://github.com/llvm/llvm-project/commit/c86c815fc57c098ba14576fe2bb189da1dfc820d DIFF: https://github.com/llvm/llvm-project/commit/c86c815fc57c098ba14576fe2bb189da1dfc820d.diff

[clang] [llvm] [PseudoProbe] Support emitting to COFF object (PR #123870)

2025-07-09 Thread Haohai Wen via cfe-commits
https://github.com/HaohaiWen updated https://github.com/llvm/llvm-project/pull/123870 >From 7c531922f20bf284a5cd83b20e94cb624ef031d2 Mon Sep 17 00:00:00 2001 From: Haohai Wen Date: Thu, 9 Jan 2025 15:29:33 +0800 Subject: [PATCH 1/4] [COFF] Preserve UniqueID used to create MCSectionCOFF This Un

[clang] 2eab6f9 - [RISCV] Move the intrinsic tests for vfwcvtbf16 and vfncvtbf16 to zvfbfmin directory. NFC.

2025-07-09 Thread Jim Lin via cfe-commits
Author: Jim Lin Date: 2025-07-10T09:13:22+08:00 New Revision: 2eab6f9bb2b3dd0cf05021939accca75cfb79994 URL: https://github.com/llvm/llvm-project/commit/2eab6f9bb2b3dd0cf05021939accca75cfb79994 DIFF: https://github.com/llvm/llvm-project/commit/2eab6f9bb2b3dd0cf05021939accca75cfb79994.diff LOG:

[clang] [RISCV] Implement intrinsics for XAndesVSIntLoad (PR #147767)

2025-07-09 Thread Jim Lin via cfe-commits
https://github.com/tclin914 closed https://github.com/llvm/llvm-project/pull/147767 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use SmallString in CommentBriefParser to reduce heap allocs (PR #147853)

2025-07-09 Thread Bogdan Vetrenko via cfe-commits
https://github.com/b0gdnv updated https://github.com/llvm/llvm-project/pull/147853 >From cf6278f92b32106a406aab92f66d66ce992cc04d Mon Sep 17 00:00:00 2001 From: Bogdan Vetrenko Date: Thu, 10 Jul 2025 02:30:27 +0300 Subject: [PATCH] [clang] Use SmallString in CommentBriefParser to eliminate per

[clang] [clang] Use SmallString in CommentBriefParser to reduce heap allocs (PR #147853)

2025-07-09 Thread Bogdan Vetrenko via cfe-commits
https://github.com/b0gdnv updated https://github.com/llvm/llvm-project/pull/147853 >From cf6278f92b32106a406aab92f66d66ce992cc04d Mon Sep 17 00:00:00 2001 From: Bogdan Vetrenko Date: Thu, 10 Jul 2025 02:30:27 +0300 Subject: [PATCH] [clang] Use SmallString in CommentBriefParser to eliminate per

[clang-tools-extra] [clangd] Add tweak to override pure virtuals (PR #139348)

2025-07-09 Thread Marco Maia via cfe-commits
@@ -70,6 +70,16 @@ Code completion Code actions +- New ``clangd`` code action: "Override pure virtual methods". When invoked on a + class definition, this action automatically generates C++ ``override`` + declarations for all pure virtual methods inherited from

[clang-tools-extra] [clangd] Add tweak to override pure virtuals (PR #139348)

2025-07-09 Thread Marco Maia via cfe-commits
@@ -70,6 +70,16 @@ Code completion Code actions +- New ``clangd`` code action: "Override pure virtual methods". When invoked on a marcogmaia wrote: Agreed. Dropped. https://github.com/llvm/llvm-project/pull/139348 __

[clang-tools-extra] [clangd] Add tweak to override pure virtuals (PR #139348)

2025-07-09 Thread Marco Maia via cfe-commits
https://github.com/marcogmaia updated https://github.com/llvm/llvm-project/pull/139348 >From 76503bd8f5618b710e2909d1303de5d34723 Mon Sep 17 00:00:00 2001 From: Marco Maia Date: Sat, 10 May 2025 00:48:39 -0300 Subject: [PATCH 01/14] [clangd] Add tweak to add pure virtual overrides --- ...

[clang] [Clang] Do not skip over `RequiresExprBodyDecl` when creating lambdas (PR #147764)

2025-07-09 Thread Younan Zhang via cfe-commits
@@ -1088,6 +1088,9 @@ void CXXNameMangler::mangleNameWithAbiTags(GlobalDecl GD, return; } + while (DC->isRequiresExprBody()) +DC = DC->getParent(); zyn0217 wrote: We had a similar while loop in TransformLambdaExpr, is that still needed? Also I was

[clang] [clang] Use SmallString in CommentBriefParser to reduce heap allocs (PR #147853)

2025-07-09 Thread Bogdan Vetrenko via cfe-commits
https://github.com/b0gdnv updated https://github.com/llvm/llvm-project/pull/147853 >From 1bbbe10c7e6d75f43003b0e26b7593808f080bb6 Mon Sep 17 00:00:00 2001 From: Bogdan Vetrenko Date: Thu, 10 Jul 2025 02:30:27 +0300 Subject: [PATCH] [clang] Use SmallString in CommentBriefParser to eliminate per

[clang] [llvm] Fix Windows EH IP2State tables (remove +1 bias) (PR #144745)

2025-07-09 Thread via cfe-commits
sivadeilra wrote: That was easier than expected -- thanks again, @efriedma-quic . I've updated the PR. I've also avoided adding NOPs after tail calls, which were happening in my first version of this. There's never a need for NOP padding after TAILJMP* because there won't be a return addres

  1   2   3   4   5   6   7   8   9   10   >