[clang] [clang] warn_{cstruct, cxxstruct}_memaccess are too agressive about initializers (PR #170577)

2025-12-03 Thread via cfe-commits
serge-sans-paille wrote: Thanks for the patch ! > We could restrict this to just those targeting this inside a constructor, but > I've also found cases where constructors memset/bzero subobjects? Having a look at https://godbolt.org/z/7KThvxKx5 I'd feel better if we could capture the idiom in

[clang] [clang] warn_{cstruct, cxxstruct}_memaccess are too agressive about initializers (PR #170577)

2025-12-03 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: This change needs a release note. Please add an entry to `clang/docs/ReleaseNotes.rst` in the section the most adapted to the change, and referencing any Github issue this change fixes. Thanks! https://github.com/llvm/llvm-project/pull/170577 ___

[clang] [clang] warn_{cstruct, cxxstruct}_memaccess are too agressive about initializers (PR #170577)

2025-12-03 Thread Corentin Jabot via cfe-commits
@@ -10356,15 +10356,24 @@ void Sema::CheckMemaccessArguments(const CallExpr *Call, bool NonTriviallyCopyableCXXRecord = getLangOpts().CPlusPlus && RD->isCompleteDefinition() && !PointeeTy.isTriviallyCopyableType(Context); + // We don't warn about

[clang] [CIR][X86] Implement lowering for AVX512 ktest builtins (PR #169985)

2025-12-03 Thread via cfe-commits
https://github.com/GeneraluseAI updated https://github.com/llvm/llvm-project/pull/169985 >From 0cc7a282cfb27dc422bd37adf16912da06df7a0e Mon Sep 17 00:00:00 2001 From: generaluseai Date: Sat, 29 Nov 2025 18:16:55 +0800 Subject: [PATCH] [CIR][X86] Implement lowering for AVX512 ktest builtins (ko

[clang] [clang] warn_{cstruct, cxxstruct}_memaccess are too agressive about initializers (PR #170577)

2025-12-03 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/170577 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] [doc] Added documentation to intrinsics in cpuid.h (PR #170507)

2025-12-03 Thread Phoebe Wang via cfe-commits
@@ -278,6 +278,23 @@ : "0"(__leaf), "2"(__count)) #endif +/// Queries the processor to determine the highest supported \c CPUID leaf. +/// +/// \headerfile +/// +/// This intrinsic corresponds to the CPUID instruction. +/// +/// \param __leaf +///\a __leaf can b

[clang] [clang] [doc] Added documentation to intrinsics in cpuid.h (PR #170507)

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

[clang] [clang] [doc] Added documentation to intrinsics in cpuid.h (PR #170507)

2025-12-03 Thread Phoebe Wang via cfe-commits
@@ -345,6 +418,27 @@ static __inline int __get_cpuid_count (unsigned int __leaf, // builtin. Given __has_builtin does not detect builtins on aux triples, we need // to explicitly check for some offloading cases. #if !defined(__NVPTX__) && !defined(__AMDGPU__) && !defined(__SPI

[clang] [clang] [doc] Added documentation to intrinsics in cpuid.h (PR #170507)

2025-12-03 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM except some nits. Thanks for the doc, I didn't know what's `__get_cpuid_max ` used for before reading it :) https://github.com/llvm/llvm-project/pull/170507 ___ cfe-commits mailing list c

[clang] [ExposeObjCDirect] Adding a flag to allow new objc direct ABI (PR #170616)

2025-12-03 Thread Peter Rong via cfe-commits
https://github.com/DataCorrupted updated https://github.com/llvm/llvm-project/pull/170616 >From 76489044b1150f846af5fe86f07d8d8f32e56179 Mon Sep 17 00:00:00 2001 From: Peter Rong Date: Wed, 3 Dec 2025 22:18:02 -0800 Subject: [PATCH 1/2] [ExposeObjCDirect] Adding a flag to allow new objc direct

[clang] [AMDGPU] Modifies builtin def to take _Float16('x') for both HIP/C++ and for OpenCL (PR #167652)

2025-12-03 Thread Rana Pratap Reddy via cfe-commits
@@ -10527,6 +10527,21 @@ bool ASTContext::areCompatibleVectorTypes(QualType FirstVec, Second->getVectorKind() != VectorKind::RVVFixedLengthMask_4) return true; + // In OpenCL, treat half and _Float16 vector types as compatible. ranapratap55 wrote:

[clang] [Clang][OpenCL][AMDGPU] Allow _Float16 and half vector type compatibility (PR #170605)

2025-12-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Rana Pratap Reddy (ranapratap55) Changes In OpenCL, allow implicit compatibility between `_Float16` vector types and `half` vector types. This is needed for AMDGPU builtins that may return _Float16 vectors to work correctly with OpenCL ha

[clang] [Clang][OpenCL][AMDGPU] Allow _Float16 and half vector type compatibility (PR #170605)

2025-12-03 Thread Rana Pratap Reddy via cfe-commits
https://github.com/ranapratap55 ready_for_review https://github.com/llvm/llvm-project/pull/170605 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ExposeObjCDirect] Adding a flag to allow new objc direct ABI (PR #170616)

2025-12-03 Thread Peter Rong via cfe-commits
https://github.com/DataCorrupted edited https://github.com/llvm/llvm-project/pull/170616 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ExposeObjCDirect] Adding a flag to allow new objc direct ABI (PR #170616)

2025-12-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 origin/main HEAD --extensions cpp,h -- clang/include/clang/AST/DeclObjC.h clang/lib/C

[clang] [ExposeObjCDirect] Adding a flag to allow new objc direct ABI (PR #170616)

2025-12-03 Thread Peter Rong via cfe-commits
https://github.com/DataCorrupted created https://github.com/llvm/llvm-project/pull/170616 1. Add a flag 2. Clean up and set up helper functions to implement later >From 76489044b1150f846af5fe86f07d8d8f32e56179 Mon Sep 17 00:00:00 2001 From: Peter Rong Date: Wed, 3 Dec 2025 22:18:02 -0800 Subje

[clang] [ExposeObjCDirect] Adding a flag to allow new objc direct ABI (PR #170613)

2025-12-03 Thread Peter Rong via cfe-commits
https://github.com/DataCorrupted closed https://github.com/llvm/llvm-project/pull/170613 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Expose direct method thunk (PR #170615)

2025-12-03 Thread Peter Rong via cfe-commits
https://github.com/DataCorrupted closed https://github.com/llvm/llvm-project/pull/170615 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Expose direct method helpers (PR #170614)

2025-12-03 Thread Peter Rong via cfe-commits
https://github.com/DataCorrupted closed https://github.com/llvm/llvm-project/pull/170614 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][NVPTX] Add missing half-precision add/mul/fma intrinsics (PR #170079)

2025-12-03 Thread Srinivasa Ravi via cfe-commits
https://github.com/Wolfram70 updated https://github.com/llvm/llvm-project/pull/170079 >From 5f3d2b1f627ba2e9da63240297c3d2080e6935f9 Mon Sep 17 00:00:00 2001 From: Srinivasa Ravi Date: Tue, 25 Nov 2025 06:37:54 + Subject: [PATCH 01/11] [clang][NVPTX] Add missing half-precision add/sub/fma

[clang] Expose direct method thunk (PR #170615)

2025-12-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 origin/main HEAD --extensions cpp,h -- clang/include/clang/AST/DeclObjC.h clang/lib/C

[clang] Expose direct method helpers (PR #170614)

2025-12-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 origin/main HEAD --extensions h,cpp -- clang/include/clang/AST/DeclObjC.h clang/lib/C

[clang] [ExposeObjCDirect] Adding a flag to allow new objc direct ABI (PR #170613)

2025-12-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 origin/main HEAD --extensions cpp,h -- clang/include/clang/AST/DeclObjC.h clang/lib/C

[clang] Expose direct method thunk (PR #170615)

2025-12-03 Thread Peter Rong via cfe-commits
https://github.com/DataCorrupted created https://github.com/llvm/llvm-project/pull/170615 None >From 76489044b1150f846af5fe86f07d8d8f32e56179 Mon Sep 17 00:00:00 2001 From: Peter Rong Date: Wed, 3 Dec 2025 22:18:02 -0800 Subject: [PATCH 1/3] [ExposeObjCDirect] Adding a flag to allow new objc d

[clang] [llvm] [CodeGen][KCFI] Allow setting type hash from xxHash64 to FNV-1a (PR #167254)

2025-12-03 Thread Kees Cook via cfe-commits
@@ -11,17 +11,18 @@ //===--===// #include "llvm/Transforms/Utils/ModuleUtils.h" -#include "llvm/Analysis/VectorUtils.h" #include "llvm/ADT/SmallString.h" +#include "llvm/Analysis/VectorUtils.h" #include "ll

[clang] Expose direct method helpers (PR #170614)

2025-12-03 Thread Peter Rong via cfe-commits
https://github.com/DataCorrupted created https://github.com/llvm/llvm-project/pull/170614 None >From 76489044b1150f846af5fe86f07d8d8f32e56179 Mon Sep 17 00:00:00 2001 From: Peter Rong Date: Wed, 3 Dec 2025 22:18:02 -0800 Subject: [PATCH 1/2] [ExposeObjCDirect] Adding a flag to allow new objc d

[clang] [ExposeObjCDirect] Adding a flag to allow new objc direct ABI (PR #170613)

2025-12-03 Thread Peter Rong via cfe-commits
https://github.com/DataCorrupted created https://github.com/llvm/llvm-project/pull/170613 1. Add a flag 2. Clean up and set up helper functions to implement later >From 76489044b1150f846af5fe86f07d8d8f32e56179 Mon Sep 17 00:00:00 2001 From: Peter Rong Date: Wed, 3 Dec 2025 22:18:02 -0800 Subje

[clang] [llvm] [CodeGen][KCFI] Allow setting type hash from xxHash64 to FNV-1a (PR #167254)

2025-12-03 Thread Kees Cook via cfe-commits
kees wrote: > This breaks `ARCH=arm64 allmodconfig`: > > ``` > $ make -skj"$(nproc)" ARCH=arm64 LLVM=1 clean allmodconfig ipc/ipc_sysctl.o > :6:55: error: expected newline > 6 | .set __kcfi_typeid_proc_doulongvec_minmax, 3439065979 # -855901317 > |

[clang] [llvm] [clang][NVPTX] Add missing half-precision add/mul/fma intrinsics (PR #170079)

2025-12-03 Thread Srinivasa Ravi via cfe-commits
@@ -6504,6 +6518,39 @@ static SDValue sinkProxyReg(SDValue R, SDValue Chain, } } +// Combine add.sat(a, fneg(b)) -> sub.sat(a, b) +static SDValue combineAddSatWithNeg(SDNode *N, SelectionDAG &DAG, +unsigned SubOpc) { + SDValue Op2 = N->ge

[clang] [llvm] [clang][NVPTX] Add missing half-precision add/mul/fma intrinsics (PR #170079)

2025-12-03 Thread Srinivasa Ravi via cfe-commits
@@ -1738,6 +1722,31 @@ multiclass FMA_INST { defm INT_NVVM_FMA : FMA_INST; +class FMA_OOB_INST : + BasicNVPTXInst<(outs RC:$dst), (ins RC:$a, RC:$b, RC:$c), +"fma.rn.oob" # suffix>; + +class FMA_OOB_TYPE { + ValueType Type = VT; + NVPTXRegClass RegClass = RC; + strin

[clang] [llvm] [clang][NVPTX] Add missing half-precision add/mul/fma intrinsics (PR #170079)

2025-12-03 Thread Srinivasa Ravi via cfe-commits
https://github.com/Wolfram70 updated https://github.com/llvm/llvm-project/pull/170079 >From 5f3d2b1f627ba2e9da63240297c3d2080e6935f9 Mon Sep 17 00:00:00 2001 From: Srinivasa Ravi Date: Tue, 25 Nov 2025 06:37:54 + Subject: [PATCH 01/10] [clang][NVPTX] Add missing half-precision add/sub/fma

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

2025-12-03 Thread Alexander Kornienko via cfe-commits
alexfh wrote: > Ok, this wasn't too bad actually: #170090 fixes the reproducer, so fingers > crossed it also addresses the issue in the full-blown internal code 🤞 @alexfh > if you have more cycles available, could you test the two PRs together? With both PRs I'm getting at least this Clang ass

[clang] [llvm] New calling convention preserve_none (PR #76868)

2025-12-03 Thread Keno Fischer via cfe-commits
Keno wrote: I was wondering what the motivation was to still preserve `rbp`? I guess `-fomit-frame-pointers` has fallen a bit out of favor, but I'd have expected `preserve_none`, to preserve, well, none. https://github.com/llvm/llvm-project/pull/76868 __

[clang] [Clang][OpenCL][AMDGPU] Allow _Float16 and half vector type compatibility (PR #170605)

2025-12-03 Thread Rana Pratap Reddy via cfe-commits
https://github.com/ranapratap55 created https://github.com/llvm/llvm-project/pull/170605 In OpenCL, allow implicit compatibility between `_Float16` vector types and `half` vector types. This is needed for AMDGPU builtins that may return _Float16 vectors to work correctly with OpenCL half vecto

[clang] [clang-tools-extra] [clang][TypePrinter] Unify printing of anonymous/unnamed tag types (PR #169445)

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

[clang] [clang-tools-extra] [clang][TypePrinter] Unify printing of anonymous/unnamed tag types (PR #169445)

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

[clang] [clang-tools-extra] [clang][TypePrinter] Unify printing of anonymous/unnamed tag types (PR #169445)

2025-12-03 Thread Michael Buch via cfe-commits
@@ -121,6 +123,7 @@ struct PrintingPolicy { /// \endcode LLVM_PREFERRED_TYPE(bool) unsigned SuppressTagKeyword : 1; + unsigned SuppressTagKeywordInAnonymousTagNames : 1; Michael137 wrote: Enum sounds like a good compromise, let me see what that would lo

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

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

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

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

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

2025-12-03 Thread via cfe-commits
zeyi2 wrote: > Could you run a test (can be in a parallel branch) that clang-tidy CI still > works Hi, I think the linter is working as expected. Please see https://github.com/llvm/llvm-project/pull/168827#issuecomment-3610082534. It can correctly create and update comments. https://github.c

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

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

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

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

[clang] [SYCL] Documentation for Clang driver and core language support. (PR #170602)

2025-12-03 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann created https://github.com/llvm/llvm-project/pull/170602 Clang's emerging support for the SYCL 2020 specification includes new driver command line options, predefined macros, and several C++11-style attributes that enable core language features intended to suppor

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

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

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

2025-12-03 Thread via cfe-commits
zeyi2 wrote: > Could you run a test (can be in a parallel branch) that clang-tidy CI still > works It seems to be working, see https://github.com/llvm/llvm-project/pull/168827#issuecomment-3610082534 https://github.com/llvm/llvm-project/pull/168827

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

2025-12-03 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code linter, clang-tidy found issues in your code. :warning: You can test this locally with the following command: ```bash git diff -U0 origin/main...HEAD -- clang-tools-extra/clang-tidy/ClangTidy.cpp | python3 clang-tools-extra/clang-tidy/tool/

[clang] [llvm] [llvm] Introduce MoveEntryAllocaInit pass (PR #164882)

2025-12-03 Thread Nimit Sachdeva via cfe-commits
nimit25 wrote: @nikic sorry, can you give me a hint on what to do when I have the metadata auto-init present for some instructions and some do not have them? Which ones do I move first (I want to say auto-init ones but just want to confirm)? https://github.com/llvm/llvm-project/pull/164882 ___

[clang] [CLANG] Fixes the crash on the use of nested requirements in require expressions (PR #169876)

2025-12-03 Thread Ebin Jose via cfe-commits
https://github.com/ebinjose02 updated https://github.com/llvm/llvm-project/pull/169876 >From af9b88da83a7f2954a3a8ddc5f4796f2017ceaec Mon Sep 17 00:00:00 2001 From: ebinjose02 Date: Fri, 28 Nov 2025 06:46:40 + Subject: [PATCH 1/3] Fixes #165386 Nested requirements in requires-expressions m

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

2025-12-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 origin/main HEAD --extensions cpp -- clang-tools-extra/clang-tidy/ClangTidy.cpp --dif

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

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

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

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

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

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

[clang] [llvm] [CodeGen][KCFI] Allow setting type hash from xxHash64 to FNV-1a (PR #167254)

2025-12-03 Thread Nathan Chancellor via cfe-commits
nathanchance wrote: This breaks `ARCH=arm64 allmodconfig`: ``` $ make -skj"$(nproc)" ARCH=arm64 LLVM=1 clean allmodconfig ipc/ipc_sysctl.o :6:55: error: expected newline 6 | .set __kcfi_typeid_proc_doulongvec_minmax, 3439065979 # -855901317 |

[clang] [clang-tools-extra] [Clang] Add support for the C `defer` TS (PR #162848)

2025-12-03 Thread via cfe-commits
Sirraide wrote: I’ve been busy w/ expansion statements lately, but I finally managed to track down that codegen bug: essentially, we were clobbering the cleanup slot while emitting cleanups inside the `defer`. I also added a huge comment that explains the situation because it was very much not

[clang] [flang] [Flang][FIR] Introduce FIRToCoreMLIR pass. (PR #168703)

2025-12-03 Thread Ming Yan via cfe-commits
NexMing wrote: > Can you provide an example of such mem2reg you would like to see happening? I > agree something needs to be done around fir.declare to allow mem2reg. I think > we should be able to implement the PromotableOpInterface for it so that at > least scalar case mem2reg would be possi

[clang] [llvm] [CodeGen][KCFI] Allow setting type hash from xxHash64 to FNV-1a (PR #167254)

2025-12-03 Thread Jordan Rupprecht via cfe-commits
@@ -11,17 +11,18 @@ //===--===// #include "llvm/Transforms/Utils/ModuleUtils.h" -#include "llvm/Analysis/VectorUtils.h" #include "llvm/ADT/SmallString.h" +#include "llvm/Analysis/VectorUtils.h" #include "ll

[clang] [llvm] [CodeGen][KCFI] Allow setting type hash from xxHash64 to FNV-1a (PR #167254)

2025-12-03 Thread Pranav Kant via cfe-commits
@@ -11,17 +11,18 @@ //===--===// #include "llvm/Transforms/Utils/ModuleUtils.h" -#include "llvm/Analysis/VectorUtils.h" #include "llvm/ADT/SmallString.h" +#include "llvm/Analysis/VectorUtils.h" #include "ll

[clang] [Mips] Convert -mnan=legacy to nan2008 when architecture support nan2008 (PR #153777)

2025-12-03 Thread via cfe-commits
yingopq wrote: > I think this change needs an RFC on discourse. This is RFC: https://discourse.llvm.org/t/rfc-proper-handing-of-mnan-legacy-on-mips/89044. Please help review, thanks! https://github.com/llvm/llvm-project/pull/153777 ___ cfe-commits ma

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

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

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

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

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

2025-12-03 Thread Joseph Huber via cfe-commits
@@ -33,31 +33,47 @@ namespace { /// binary format. Error extractOffloadFiles(MemoryBufferRef Contents, SmallVectorImpl &Binaries) { - uint64_t Offset = 0; - // There could be multiple offloading binaries stored at this section. - while (Offset < Con

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

2025-12-03 Thread Yury Plyakhin via cfe-commits
https://github.com/YuriPlyakhin updated https://github.com/llvm/llvm-project/pull/169425 >From ce7ab7652cf29469a8addea8ebe67f408b4b03af Mon Sep 17 00:00:00 2001 From: "Plyakhin, Yury" Date: Tue, 25 Nov 2025 00:40:45 +0100 Subject: [PATCH 1/8] [Offloading] Extend OffloadBinary format to support

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

2025-12-03 Thread via cfe-commits
@@ -436,15 +436,21 @@ void RocmInstallationDetector::detectDeviceLibrary() { if (HasDeviceLibrary) return; - // Find device libraries in a legacy ROCm directory structure - // ${ROCM_ROOT}/amdgcn/bitcode/* + // Find device libraries in a ROCm directory structure au

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

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

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

2025-12-03 Thread via cfe-commits
@@ -436,15 +436,21 @@ void RocmInstallationDetector::detectDeviceLibrary() { if (HasDeviceLibrary) return; - // Find device libraries in a legacy ROCm directory structure - // ${ROCM_ROOT}/amdgcn/bitcode/* + // Find device libraries in a ROCm directory structure au

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

2025-12-03 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r origin/main...HEAD clang/test/lit.cfg.py `` :warning: The reproduction instruction

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

2025-12-03 Thread Dave Bartolomeo via cfe-commits
dbartol wrote: Pushed an additional commit to reuse the Static Analyzer's `normalize_sarif` script for testing SARIF output. https://github.com/llvm/llvm-project/pull/168153 ___ cfe-commits mailing list [email protected] https://lists.llvm.o

[clang-tools-extra] [clang-tidy] Fix false-positive in inconsistent-declaration-parameter-name (PR #170593)

2025-12-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: mitchell (zeyi2) Changes Closes #169195 --- Full diff: https://github.com/llvm/llvm-project/pull/170593.diff 3 Files Affected: - (modified) clang-tools-extra/clang-tidy/readability/InconsistentDeclarationParameterNameCheck.

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

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

[clang-tools-extra] [clang-tidy] Fix false-positive in inconsistent-declaration-parameter-name (PR #170593)

2025-12-03 Thread via cfe-commits
https://github.com/zeyi2 created https://github.com/llvm/llvm-project/pull/170593 Closes #169195 >From 496ffc1cc16e62bc0c61080209e7f28b91efd74d Mon Sep 17 00:00:00 2001 From: mtx Date: Tue, 2 Dec 2025 14:50:56 +0800 Subject: [PATCH] [clang-tidy] Fix false-positive in inconsistent-declaration-

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

2025-12-03 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/170540 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

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

[clang] [Clang] prevent crash on invalid nested name specifiers with a single colon (PR #169246)

2025-12-03 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: That is an excellent summary! https://github.com/llvm/llvm-project/pull/169246 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] Utils: Inhibit load/store folding through phis for llvm.protected.field.ptr. (PR #151649)

2025-12-03 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc closed https://github.com/llvm/llvm-project/pull/151649 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] Utils: Inhibit load/store folding through phis for llvm.protected.field.ptr. (PR #151649)

2025-12-03 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc edited https://github.com/llvm/llvm-project/pull/151649 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] Add llvm.protected.field.ptr intrinsic and pre-ISel lowering. (PR #151647)

2025-12-03 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc closed https://github.com/llvm/llvm-project/pull/151647 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] Add llvm.protected.field.ptr intrinsic and pre-ISel lowering. (PR #151647)

2025-12-03 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc edited https://github.com/llvm/llvm-project/pull/151647 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix handling of zero-length arrays in sfinae context. (PR #170144)

2025-12-03 Thread Richard Smith via cfe-commits
zygoloid wrote: It looks like the same bug might exist for other recoverable type errors (where we successfully form a `QualType` in substitution despite producing a diagnostic). For example, we reject-valid on this too: ```c++ template struct Foo { operator int() const requires(N == 2);

[clang] [CIR] Add AtomicFenceOp and signal/thread fence builtins and required helpers (PR #168346)

2025-12-03 Thread Hendrik Hübner via cfe-commits
@@ -5122,6 +5122,41 @@ def CIR_AtomicClearOp : CIR_Op<"atomic.clear"> { }]; } +def CIR_SyncScopeKind : CIR_I32EnumAttr<"SyncScopeKind", "sync scope kind", [ HendrikHuebner wrote: Updated https://github.com/llvm/llvm-project/pull/168346

[clang] [clang][DependencyScanning] Remove dependency on clangDriver from clangDependencyScanning (PR #169964)

2025-12-03 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth updated https://github.com/llvm/llvm-project/pull/169964 >From 99dd142baa2f3fd4d68feadd57718633ffd7c88f Mon Sep 17 00:00:00 2001 From: Naveen Seth Hanig Date: Fri, 28 Nov 2025 23:01:01 +0100 Subject: [PATCH 1/2] [clang][DependencyScanning] Remove dependency on cl

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

2025-12-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Tsukasa OI (a4lg) Changes This PR adds new AMD's ROCm distribution ― TheRock-based device library path to Clang. --- Full diff: https://github.com/llvm/llvm-project/pull/170590.diff 5 Files Affected: - (modified) clang/lib/Dri

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

2025-12-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Tsukasa OI (a4lg) Changes This PR adds new AMD's ROCm distribution ― TheRock-based device library path to Clang. --- Full diff: https://github.com/llvm/llvm-project/pull/170590.diff 5 Files Affected: - (modified) clang/lib/Driver/ToolC

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

2025-12-03 Thread Tsukasa OI via cfe-commits
a4lg wrote: ## Background This is originally submitted as ROCm/llvm-project#739 to the `amd-staging` branch. AMD is experimenting with TheRock, new HIP/ROCm build system and distribution. With TheRock, we can install full ROCm SDK as Python packages (and multiple versions can coexist through

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

2025-12-03 Thread Tsukasa OI via cfe-commits
https://github.com/a4lg created https://github.com/llvm/llvm-project/pull/170590 This PR adds new AMD's ROCm distribution ― TheRock-based device library path to Clang. >From bb52fec29c048eb85dd600e7f208a6db8c8f349f Mon Sep 17 00:00:00 2001 From: Tsukasa OI Date: Thu, 4 Dec 2025 00:04:52 +

[libclc] b8a5888 - [libclc] Fix memory fence scope mapping for OpenCL (#170542)

2025-12-03 Thread via cfe-commits
Author: Victor Mustya Date: 2025-12-04T09:13:06+08:00 New Revision: b8a5888d8d32246fd36d2f65bd917f03aa296e48 URL: https://github.com/llvm/llvm-project/commit/b8a5888d8d32246fd36d2f65bd917f03aa296e48 DIFF: https://github.com/llvm/llvm-project/commit/b8a5888d8d32246fd36d2f65bd917f03aa296e48.diff

[libclc] [libclc] Fix memory fence scope mapping for OpenCL (PR #170542)

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

[libclc] [libclc] Fix memory fence scope mapping for OpenCL (PR #170542)

2025-12-03 Thread Wenju He via cfe-commits
https://github.com/wenju-he approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/170542 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Fix memory fence scope mapping for OpenCL (PR #170542)

2025-12-03 Thread Wenju He via cfe-commits
@@ -13,16 +13,15 @@ #include #include -_CLC_INLINE int __opencl_get_memory_scope(cl_mem_fence_flags flag) { - int memory_scope = 0; +static _CLC_INLINE int __opencl_get_memory_scope(cl_mem_fence_flags flag) { if (flag & CLK_GLOBAL_MEM_FENCE) -memory_scope |= __MEMORY

[libclc] [libclc] Fix memory fence scope mapping for OpenCL (PR #170542)

2025-12-03 Thread Victor Mustya via cfe-commits
@@ -13,16 +13,15 @@ #include #include -_CLC_INLINE int __opencl_get_memory_scope(cl_mem_fence_flags flag) { - int memory_scope = 0; +static _CLC_INLINE int __opencl_get_memory_scope(cl_mem_fence_flags flag) { if (flag & CLK_GLOBAL_MEM_FENCE) -memory_scope |= __MEMORY

[clang] [OpenCL] Add missing Intel subgroup extensions to OpenCLExtensions.def (PR #169875)

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

[clang] [Clang] Reuse the function getOptimizationLevel in tools::addLTOOptions. (PR #169762)

2025-12-03 Thread Jim Lin via cfe-commits
https://github.com/tclin914 closed https://github.com/llvm/llvm-project/pull/169762 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e60a69a - [Clang] Reuse the function getOptimizationLevel in tools::addLTOOptions. (#169762)

2025-12-03 Thread via cfe-commits
Author: Jim Lin Date: 2025-12-04T09:04:10+08:00 New Revision: e60a69ab8a9e75e730c3c93335f6366b747488d5 URL: https://github.com/llvm/llvm-project/commit/e60a69ab8a9e75e730c3c93335f6366b747488d5 DIFF: https://github.com/llvm/llvm-project/commit/e60a69ab8a9e75e730c3c93335f6366b747488d5.diff LOG:

[clang] [Clang] Reuse the function getOptimizationLevel in tools::addLTOOptions. (PR #169762)

2025-12-03 Thread Jim Lin via cfe-commits
https://github.com/tclin914 edited https://github.com/llvm/llvm-project/pull/169762 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][DependencyScanning] Remove dependency on clangDriver from clangDependencyScanning (PR #169964)

2025-12-03 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth updated https://github.com/llvm/llvm-project/pull/169964 >From 99dd142baa2f3fd4d68feadd57718633ffd7c88f Mon Sep 17 00:00:00 2001 From: Naveen Seth Hanig Date: Fri, 28 Nov 2025 23:01:01 +0100 Subject: [PATCH] [clang][DependencyScanning] Remove dependency on clangDr

[libclc] [libclc] Fix memory fence scope mapping for OpenCL (PR #170542)

2025-12-03 Thread Wenju He via cfe-commits
@@ -13,16 +13,15 @@ #include #include -_CLC_INLINE int __opencl_get_memory_scope(cl_mem_fence_flags flag) { - int memory_scope = 0; +static _CLC_INLINE int __opencl_get_memory_scope(cl_mem_fence_flags flag) { if (flag & CLK_GLOBAL_MEM_FENCE) -memory_scope |= __MEMORY

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

2025-12-03 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/170517 >From e0f9bccee9dd6401818ff8146aa958675432343f Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Mon, 1 Dec 2025 16:28:42 -0800 Subject: [PATCH 1/3] [clang] Limit lifetimes of temporaries to the full expression

[clang] [flang] [mlir] [MLIR] Zero-extend unsigned and 1-bit values when translating IntegerAttr (PR #169751)

2025-12-03 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/169751 >From 4a4568f1bc8235ca7ecc49316669a1808f6c4705 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Wed, 26 Nov 2025 14:09:40 -0800 Subject: [PATCH 1/3] [MLIR] Zero-extend unsigned and 1-bit integers when transl

[clang] [llvm] [CIR][X86] Implement lowering for sqrt builtins (PR #169310)

2025-12-03 Thread Andy Kaylor via cfe-commits
@@ -1,4 +1,4 @@ -//- LowerToLLVM.cpp - Lowering from CIR to LLVMIR -===// +//- LowerToLLVM.cpp - Lowering from CIR to LLVMIR -===// andykaylor wrote: @Priyanshu3820 Please address this. https://github.com/llvm/l

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

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

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

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

  1   2   3   4   5   >