[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

[clang] [llvm] [win][aarch64] Always reserve frame pointers for Arm64 Windows, take 2 (PR #147354)

2025-07-09 Thread Daniel Paoliello via cfe-commits
dpaoliello wrote: Fix: #147837 https://github.com/llvm/llvm-project/pull/147354 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen] Emit “trap reasons” on UBSan traps (PR #145967)

2025-07-09 Thread Usama Hameed via cfe-commits
@@ -68,9 +68,9 @@ double f1(int b, int i) { //. // CHECK-TRAP: [[META0:![0-9]+]] = distinct !DICompileUnit(language: DW_LANG_C11, file: [[META1:![0-9]+]], isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None) -// CHEC

[clang] [llvm] [win][aarch64] Always reserve frame pointers for Arm64 Windows, take 2 (PR #147354)

2025-07-09 Thread Daniel Paoliello via cfe-commits
dpaoliello wrote: > Is anybody working on a fix or reversion? I can work on a fix: should be trivial. https://github.com/llvm/llvm-project/pull/147354 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [Clang][Driver][SamplePGO] Enable -fsample-profile-use-profi by default (PR #146795)

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

[clang] 2fc4a4a - [Driver][SamplePGO] Enable -fsample-profile-use-profi (#146795)

2025-07-09 Thread via cfe-commits
Author: Nilanjana Basu Date: 2025-07-09T14:53:28-07:00 New Revision: 2fc4a4a9d3a87a9e11c48ef25522aa17c2a71003 URL: https://github.com/llvm/llvm-project/commit/2fc4a4a9d3a87a9e11c48ef25522aa17c2a71003 DIFF: https://github.com/llvm/llvm-project/commit/2fc4a4a9d3a87a9e11c48ef25522aa17c2a71003.diff

[clang] [clang-tools-extra] [clang] Improve nested name specifier AST representation (PR #147835)

2025-07-09 Thread via cfe-commits
QuietMisdreavus wrote: ExtractAPI changes look good. https://github.com/llvm/llvm-project/pull/147835 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Partial implementation of support for P3074 (trivial unions) (PR #146815)

2025-07-09 Thread Barry Revzin via cfe-commits
@@ -0,0 +1,69 @@ +// RUN: %clang_cc1 -verify -std=c++26 %s -Wno-defaulted-function-deleted -triple x86_64-linux-gnu + +struct NonTrivial { brevzin wrote: Done. https://github.com/llvm/llvm-project/pull/146815 ___ cfe-

[clang] [Clang] Partial implementation of support for P3074 (trivial unions) (PR #146815)

2025-07-09 Thread Barry Revzin via cfe-commits
https://github.com/brevzin updated https://github.com/llvm/llvm-project/pull/146815 >From 40290a957b6f349a9b670193c8bc699d8eb7d373 Mon Sep 17 00:00:00 2001 From: Barry Revzin Date: Fri, 27 Jun 2025 17:29:45 -0500 Subject: [PATCH 01/10] [P3074] Implementing part of trivial unions --- clang/lib

[clang] [Clang] Extract offloading code from static libs with 'offload-arch=' (PR #147823)

2025-07-09 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > > but we now assume that if the user specified --offload-arch= on the link > > job, they definitely want that architecture to be used if it exists. > > That would be my assumption, too. Do we currently just ignore > `--offload-arch=` for the linking phase? > > With the patch,

[clang] [CIR] Upstream new SetBitfieldOp for handling C and C++ struct bitfields (PR #147609)

2025-07-09 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/147609 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [compiler-rt] [flang] [libc] [llvm] [mlir] AArch64: Relax x16/x17 constraint on AUT in certain cases. (PR #132857)

2025-07-09 Thread Peter Collingbourne via cfe-commits
pcc wrote: > LGTM, thanks! > > A minor nit-picking is that the description of `emitPtrauthDiscriminator` in > AsmPrinter is a bit out of sync with the implementation, as it does not > mention that the requirement on certain registers being x16/x17 can be > relaxed. Fixed https://github.com/

[clang] [clang-tools-extra] [compiler-rt] [flang] [libc] [llvm] [mlir] AArch64: Relax x16/x17 constraint on AUT in certain cases. (PR #132857)

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

[clang] [clang-tools-extra] [compiler-rt] [flang] [libc] [llvm] [mlir] AArch64: Relax x16/x17 constraint on AUT in certain cases. (PR #132857)

2025-07-09 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc edited https://github.com/llvm/llvm-project/pull/132857 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Extract offloading code from static libs with 'offload-arch=' (PR #147823)

2025-07-09 Thread Artem Belevich via cfe-commits
Artem-B wrote: > but we now assume that if the user specified --offload-arch= on the link job, > they definitely want that architecture to be used if it exists. That would be my assumption, too. Do we currently just ignore `--offload-arch=` for the linking phase? With the patch, what's expe

[clang] [llvm] [win][aarch64] Always reserve frame pointers for Arm64 Windows, take 2 (PR #147354)

2025-07-09 Thread Peter Klausler via cfe-commits
klausler wrote: Is anybody working on a fix or reversion? https://github.com/llvm/llvm-project/pull/147354 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] fix crash in codegen caused by deferred asm diagnostics under -fopenmp (PR #147163)

2025-07-09 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/147163 >From 4e0cf4e00d4cfd837e9dfd9e6aed88aca1de295a Mon Sep 17 00:00:00 2001 From: Oleksandr Tarasiuk Date: Sun, 6 Jul 2025 00:35:48 +0300 Subject: [PATCH] [Clang] fix crash in codegen caused by deferred asm diag

[clang] [Clang] fixed false positive redeclaration error for using enum in nested scopes (PR #147711)

2025-07-09 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/147711 >From 20b9d9bb16f82120cee41bf6a59d3bfa34aa0d3b Mon Sep 17 00:00:00 2001 From: Oleksandr Tarasiuk Date: Wed, 9 Jul 2025 15:16:45 +0300 Subject: [PATCH] [Clang] fixed false positive redeclaration error for usin

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

2025-07-09 Thread Matheus Izvekov 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] [llvm] [mlir] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)

2025-07-09 Thread Alexander Kornienko via cfe-commits
alexfh wrote: This patch causes a clang crash (reproducible at least up 7bf439d2607e636ada7e0bafda0fae447ec36002). Reduced test case: https://gcc.godbolt.org/z/xdnWzP9qs https://github.com/llvm/llvm-project/pull/141937 ___ cfe-commits mailing list cf

[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 a0fd1b04817c03685bacd70f763ef0f62dd4e425 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Wed, 9 Jul 2025 21:00:30 +0300 Subject: [PATCH 1/2] [clang-tidy][NFC] add '.clang-tidy' config for clang-tidy

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

2025-07-09 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,h -- clang-tools-extra/clang-tidy/performance/ConstexprN

[clang] [C23] Accept an _Atomic underlying type (PR #147802)

2025-07-09 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > I THINK this is right, but we also need to have a codegen test to make sure > we don't try to do goofiness with these. I was thinking the ast-dump test sufficed because it shows that we set the underlying type to non-atomic in the AST. But I can certainly add a codegen t

[clang] [C23] Accept an _Atomic underlying type (PR #147802)

2025-07-09 Thread Aaron Ballman via cfe-commits
@@ -17152,6 +17152,13 @@ bool Sema::CheckEnumUnderlyingType(TypeSourceInfo *TI) { SourceLocation UnderlyingLoc = TI->getTypeLoc().getBeginLoc(); QualType T = TI->getType(); + // C++0x 7.2p2: The type-specifier-seq of an enum-base shall name an + // integral type; any cv

[clang] [C23] Accept an _Atomic underlying type (PR #147802)

2025-07-09 Thread Aaron Ballman via cfe-commits
@@ -17563,6 +17573,16 @@ Sema::ActOnTag(Scope *S, unsigned TagSpec, TagUseKind TUK, SourceLocation KWLoc, UPPC_FixedUnderlyingType)) EnumUnderlying = Context.IntTy.getTypePtr(); + // If the underlying type is atomic, we n

[clang] [PowerPC] Add DMF basic builtins (PR #145372)

2025-07-09 Thread via cfe-commits
https://github.com/RolandF77 updated https://github.com/llvm/llvm-project/pull/145372 >From fc5226fa4bb20267c4e3ed3c687056461ccfbccb Mon Sep 17 00:00:00 2001 From: Roland Froese Date: Mon, 23 Jun 2025 17:27:46 + Subject: [PATCH 1/3] dmf basic builtins --- clang/include/clang/Basic/Builtin

[clang] [Clang] suppress deprecated field warnings in implicit special-member functions (PR #147400)

2025-07-09 Thread Aaron Ballman via cfe-commits
@@ -547,6 +547,15 @@ static void DoEmitAvailabilityWarning(Sema &S, AvailabilityResult K, return; } case AR_Deprecated: +// Suppress -Wdeprecated-declarations in purely implicit special-member functions. +if (auto *MD = dyn_cast_if_present(S.getCurFunctionDecl

[clang] [C23] Accept an _Atomic underlying type (PR #147802)

2025-07-09 Thread Corentin Jabot via cfe-commits
@@ -17152,6 +17152,13 @@ bool Sema::CheckEnumUnderlyingType(TypeSourceInfo *TI) { SourceLocation UnderlyingLoc = TI->getTypeLoc().getBeginLoc(); QualType T = TI->getType(); + // C++0x 7.2p2: The type-specifier-seq of an enum-base shall name an + // integral type; any cv

[clang] [C23] Accept an _Atomic underlying type (PR #147802)

2025-07-09 Thread Erich Keane via cfe-commits
@@ -17152,6 +17152,13 @@ bool Sema::CheckEnumUnderlyingType(TypeSourceInfo *TI) { SourceLocation UnderlyingLoc = TI->getTypeLoc().getBeginLoc(); QualType T = TI->getType(); + // C++0x 7.2p2: The type-specifier-seq of an enum-base shall name an + // integral type; any cv

[clang] [C23] Accept an _Atomic underlying type (PR #147802)

2025-07-09 Thread Erich Keane via cfe-commits
@@ -2022,8 +2022,14 @@ Decl *TemplateDeclInstantiator::VisitEnumDecl(EnumDecl *D) { DeclarationName()); if (!NewTI || SemaRef.CheckEnumUnderlyingType(NewTI)) Enum->setIntegerType(SemaRef.Context.IntTy); - else

[clang] [C23] Accept an _Atomic underlying type (PR #147802)

2025-07-09 Thread Erich Keane via cfe-commits
@@ -17563,6 +17573,16 @@ Sema::ActOnTag(Scope *S, unsigned TagSpec, TagUseKind TUK, SourceLocation KWLoc, UPPC_FixedUnderlyingType)) EnumUnderlying = Context.IntTy.getTypePtr(); + // If the underlying type is atomic, we n

[clang] [C23] Accept an _Atomic underlying type (PR #147802)

2025-07-09 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: I THINK this is right, but we also need to have a codegen test to make sure we don't try to do goofiness with these. https://github.com/llvm/llvm-project/pull/147802 ___ cfe-commits mailing list cfe-commits@lis

[clang] [C23] Accept an _Atomic underlying type (PR #147802)

2025-07-09 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/147802 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Prettify checker registration and unittest code (PR #147797)

2025-07-09 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/147797 From fc638a1d7d56becbe7e8350b46b75ade51718f71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Tue, 20 May 2025 15:51:48 +0200 Subject: [PATCH 1/3] [analyzer] Prettify checker registration an

  1   2   3   4   >