[clang] [clang] Add code completion for #embed directive in C23 mode (PR #165550)

2025-10-30 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 requested changes to this pull request. Thanks for the patch. Could you add a test case as well? It looks like existing test coverage for preprocessor directive completions is found in [this file](https://searchfox.org/llvm/rev/3b30010303909efa01ac4d4fc018ad16

[clang] [clang] Add code completion for #embed directive in C23 mode (PR #165550)

2025-10-30 Thread Nathan Ridge via cfe-commits
@@ -10208,6 +10208,24 @@ void SemaCodeCompletion::CodeCompletePreprocessorDirective(bool InConditional) { Builder.AddPlaceholderChunk("message"); Results.AddResult(Builder.TakeString()); + if (getLangOpts().C23) { +// #embed "header" HighCommander4 w

[clang] [clang] Add code completion for #embed directive in C23 mode (PR #165550)

2025-10-30 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/165550 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Rename `cert-mem57-cpp` to `bugprone-default-operator-new-on-overaligned-type` (PR #165542)

2025-10-30 Thread via cfe-commits
zeyi2 wrote: > d on > https://wiki.sei.cmu.edu/confluence/display/cplusplus/MEM57-CPP.+Avoid+using+default+operator+new+for+over-aligned+types > > I think name `bugprone-default-operator-new-on-overaligned-type` would better > preserve meaning. Hi, thanks for reviewing. I've moved the check t

[clang-tools-extra] [clang-tidy] Rename `cert-mem57-cpp` to `bugprone-default-operator-new-on-overaligned-type` (PR #165542)

2025-10-30 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/165542 >From 106c7ed6dff8976a8dfc4b85aeed96a478cfab34 Mon Sep 17 00:00:00 2001 From: mtx Date: Wed, 29 Oct 2025 16:25:37 +0800 Subject: [PATCH 1/4] Rename `cert-mem57-cpp` to `bugprone-default-operator-new-alignment` -

[clang-tools-extra] [clang-tidy] Rename `cert-mem57-cpp` to `bugprone-default-operator-new-on-overaligned-type` (PR #165542)

2025-10-30 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/bugprone/BugproneTidyModule.cpp clang-tools-extra/clang-t

[clang-tools-extra] [clang-tidy] Rename `cert-mem57-cpp` to `bugprone-default-operator-new-on-overaligned-type` (PR #165542)

2025-10-30 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/165542 >From 106c7ed6dff8976a8dfc4b85aeed96a478cfab34 Mon Sep 17 00:00:00 2001 From: mtx Date: Wed, 29 Oct 2025 16:25:37 +0800 Subject: [PATCH 1/3] Rename `cert-mem57-cpp` to `bugprone-default-operator-new-alignment` -

[clang-tools-extra] [clang-tidy] Rename `cert-mem57-cpp` to `bugprone-default-operator-new-on-overaligned-type` (PR #165542)

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

[clang-tools-extra] [clang-tidy] Rename `cert-mem57-cpp` to `bugprone-default-operator-new-on-overaligned-type` (PR #165542)

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

[clang] [llvm] [GlobalOpt] Add TTI interface useFastCCForInternalCall for FASTCC (PR #164768)

2025-10-30 Thread Phoebe Wang via cfe-commits
phoebewang wrote: > So the rule is essentially, you can only use fastcc if the caller and the > callee have the same target features? Not necessarily the same feature. Target code can decide by itself. E.g., we only distinguish APX or not so far. If there are more in the future, we can classi

[clang] [llvm] [GlobalOpt] Add TTI interface useFastCCForInternalCall for FASTCC (PR #164768)

2025-10-30 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang updated https://github.com/llvm/llvm-project/pull/164768 >From 1c967de5abf29268c22e5239aab03196446310d0 Mon Sep 17 00:00:00 2001 From: Phoebe Wang Date: Thu, 23 Oct 2025 15:37:07 +0800 Subject: [PATCH 1/5] [GlobalOpt] Add TTI interface useFastCCForInternalCall for

[clang] [llvm] [SimplifyCFG] Hoist common code for switch multi-case destinations (PR #165700)

2025-10-30 Thread Kunqiu Chen via cfe-commits
@@ -1866,10 +1866,18 @@ bool SimplifyCFGOpt::hoistCommonCodeFromSuccessors(Instruction *TI, // If either of the blocks has it's address taken, then we can't do this fold, // because the code we'd hoist would no longer run when we jump into the block // by it's address.

[clang] [clang][SPIR][SPIRV] Don't generate constant NULL from addrspacecast generic NULL (PR #165353)

2025-10-30 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/165353 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SPIRV] Add PreLegalizer pattern matching for `faceforward` (PR #139959)

2025-10-30 Thread Kaitlin Peng via cfe-commits
@@ -58,3 +58,106 @@ void SPIRVCombinerHelper::applySPIRVDistance(MachineInstr &MI) const { MI.eraseFromParent(); } + +/// This match is part of a combine that +/// rewrites select(fcmp(dot(I, Ng), 0), N, -N) to faceforward(N, I, Ng) +/// (vXf32 (g_select +///

[clang] [llvm] [SPIRV] Add PreLegalizer pattern matching for `faceforward` (PR #139959)

2025-10-30 Thread Kaitlin Peng via cfe-commits
@@ -58,3 +58,106 @@ void SPIRVCombinerHelper::applySPIRVDistance(MachineInstr &MI) const { MI.eraseFromParent(); } + +/// This match is part of a combine that +/// rewrites select(fcmp(dot(I, Ng), 0), N, -N) to faceforward(N, I, Ng) +/// (vXf32 (g_select +///

[clang] [llvm] [SPIRV] Add PreLegalizer pattern matching for `faceforward` (PR #139959)

2025-10-30 Thread Kaitlin Peng via cfe-commits
@@ -58,3 +58,106 @@ void SPIRVCombinerHelper::applySPIRVDistance(MachineInstr &MI) const { MI.eraseFromParent(); } + +/// This match is part of a combine that +/// rewrites select(fcmp(dot(I, Ng), 0), N, -N) to faceforward(N, I, Ng) +/// (vXf32 (g_select +///

[clang] [Clang] Replace some x86 builtins with the generic __builtin_elementwise versions (PR #165682)

2025-10-30 Thread Phoebe Wang via cfe-commits
@@ -241,8 +248,7 @@ static __inline__ __m128d __DEFAULT_FN_ATTRS_CONSTEXPR _mm_div_pd(__m128d __a, ///bits are copied from the upper 64 bits of operand \a __a. static __inline__ __m128d __DEFAULT_FN_ATTRS _mm_sqrt_sd(__m128d __a,

[clang-tools-extra] [clang-tidy][readability-redundant-parentheses] add option to prevent widely used work around (PR #164827)

2025-10-30 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/164827 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] e65d52a - [clang-tidy][readability-redundant-parentheses] add option to prevent widely used work around (#164827)

2025-10-30 Thread via cfe-commits
Author: Congcong Cai Date: 2025-10-31T10:51:58+08:00 New Revision: e65d52ab5ab9e58a3b6d3bce470c04f2db2cd078 URL: https://github.com/llvm/llvm-project/commit/e65d52ab5ab9e58a3b6d3bce470c04f2db2cd078 DIFF: https://github.com/llvm/llvm-project/commit/e65d52ab5ab9e58a3b6d3bce470c04f2db2cd078.diff

[clang] [clang] Fix behavior of `-ibuiltininc` when passed alongside `-nostdinc` (PR #165814)

2025-10-30 Thread William Tran-Viet via cfe-commits
https://github.com/smallp-o-p edited https://github.com/llvm/llvm-project/pull/165814 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix-ibuiltininc-nostdinc (PR #165814)

2025-10-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: William Tran-Viet (smallp-o-p) Changes Resolves #165790 - Don't add `-nobuiltininc` when `-ibuiltininc` is passed with `-nostdinc` - Add tests --- Full diff: https://github.com/llvm/llvm-project/pull/165814.diff 3 Files Affected: - (mo

[clang] [clang] Fix-ibuiltininc-nostdinc (PR #165814)

2025-10-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: William Tran-Viet (smallp-o-p) Changes Resolves #165790 - Don't add `-nobuiltininc` when `-ibuiltininc` is passed with `-nostdinc` - Add tests --- Full diff: https://github.com/llvm/llvm-project/pull/165814.diff 3 Files Affected:

[clang] [clang] Fix-ibuiltininc-nostdinc (PR #165814)

2025-10-30 Thread William Tran-Viet via cfe-commits
https://github.com/smallp-o-p edited https://github.com/llvm/llvm-project/pull/165814 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix-ibuiltininc-nostdinc (PR #165814)

2025-10-30 Thread William Tran-Viet via cfe-commits
https://github.com/smallp-o-p created https://github.com/llvm/llvm-project/pull/165814 Resolves #165790 - Don't add `-nobuiltininc` when `-ibuiltininc` is passed with `-nostdinc` - Add tests >From 55de88d2b00284aa4182a9727f778081d84bde8a Mon Sep 17 00:00:00 2001 From: William Tran-Viet Date:

[clang] [clang][RISCV] Add big-endian RISC-V target support (PR #165599)

2025-10-30 Thread Craig Topper via cfe-commits
@@ -255,6 +255,8 @@ class LLVM_LIBRARY_VISIBILITY FreeBSDTargetInfo : public OSTargetInfo { break; case llvm::Triple::loongarch64: case llvm::Triple::riscv64: +case llvm::Triple::riscv32be: topperc wrote: Why is riscv32be here, but riscv32 i

[clang] [clang][RISCV] Add big-endian RISC-V target support (PR #165599)

2025-10-30 Thread Craig Topper via cfe-commits
@@ -1732,16 +1734,20 @@ static void findRISCVBareMetalMultilibs(const Driver &D, .flag(Twine("-march=", Element.march).str()) .flag(Twine("-mabi=", Element.mabi).str())); } + + std::string EndiannessSuffix = TargetTriple.isLittleEndian() ? "" : "be";

[clang] [clang][RISCV] Add big-endian RISC-V target support (PR #165599)

2025-10-30 Thread Craig Topper via cfe-commits
@@ -513,6 +515,8 @@ class LLVM_LIBRARY_VISIBILITY OpenBSDTargetInfo : public OSTargetInfo { break; case llvm::Triple::loongarch64: case llvm::Triple::riscv64: +case llvm::Triple::riscv32be: topperc wrote: Why is riscv32be here, but riscv32 i

[clang] [clang][RISCV] Add big-endian RISC-V target support (PR #165599)

2025-10-30 Thread Craig Topper via cfe-commits
@@ -1789,7 +1795,8 @@ static void findRISCVMultilibs(const Driver &D, .FilterOut(NonExistent); Multilib::flags_list Flags; - bool IsRV64 = TargetTriple.getArch() == llvm::Triple::riscv64; + bool IsRV64 = (TargetTriple.getArch() == llvm::Triple::riscv64 || ---

[clang] [llvm] [GlobalOpt] Add TTI interface useFastCCForInternalCall for FASTCC (PR #164768)

2025-10-30 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: > Nevertheless, I have moved the caller check logic to target code, and kept > 64-bit generating fastcc as is. Besides, it keeps the ability to be forward > compatible to newer calling conventions and a target independent fastcc in > the middle end. Please take another loo

[clang] [llvm] [X86] Remove AMX-TRANSPOSE (PR #165556)

2025-10-30 Thread Evgenii Kudriashov via cfe-commits
@@ -144,8 +144,6 @@ class X86PreTileConfig : public MachineFunctionPass { unsigned Shapes = 0; if (MRI->getRegClass(MO.getReg())->getID() == X86::TILERegClassID) Shapes = 1; -if (MRI->getRegClass(MO.getReg())->getID() == X86::TILEPAIRRegClassID) - Shapes

[clang] [clang][RISCV] Add big-endian RISC-V target support (PR #165599)

2025-10-30 Thread Eli Friedman via cfe-commits
@@ -1732,16 +1734,20 @@ static void findRISCVBareMetalMultilibs(const Driver &D, .flag(Twine("-march=", Element.march).str()) .flag(Twine("-mabi=", Element.mabi).str())); } + + std::string EndiannessSuffix = TargetTriple.isLittleEndian() ? "" : "be";

[clang] [clang][RISCV] Add big-endian RISC-V target support (PR #165599)

2025-10-30 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic commented: This all looks straightforward. https://github.com/llvm/llvm-project/pull/165599 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV] Add big-endian RISC-V target support (PR #165599)

2025-10-30 Thread Eli Friedman via cfe-commits
@@ -18,7 +18,7 @@ This test serves two purposes: The list of warnings below should NEVER grow. It should gradually shrink to 0. -CHECK: Warnings without flags (56): +CHECK: Warnings without flags (57): efriedma-quic wrote: Adding new warnings without a flag

[clang] [clang][RISCV] Add big-endian RISC-V target support (PR #165599)

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

[clang] [AMDGPU][Clang] Support for type inferring extended image builtins for AMDGPU (PR #164358)

2025-10-30 Thread Shilei Tian via cfe-commits
shiltian wrote: I'm not sure about the new added `e`. It is very confusing. > It's ok for me. I wish we didn't have to add the `e` case, but I do not see > an easy way out. Even with the OpenCL `cl_khr_fp16` extension, the FP16 is still just a storage class? https://github.com/llvm/llvm-proj

[clang] [llvm] [InstCombine] Fold select(X >s 0, 0, -X) | smax(X, 0) to abs(X) (PR #165200)

2025-10-30 Thread Wenju He via cfe-commits
@@ -3584,13 +3584,13 @@ void test_integer(void) { // CHECK-ASM: vsrlb vsc = vec_abs(vsc); - // CHECK-ASM: vlcb + // CHECK-ASM: vlpb wenju-he wrote: > The SystemZ changes LGTM. In fact, this fixes a regression I hadn't even been > aware of, which was in

[clang] [compiler-rt] [ASan] Document define to disable container overflow checks at compile time. (PR #163468)

2025-10-30 Thread Paddy McDonald via cfe-commits
@@ -242,6 +255,43 @@ AddressSanitizer also supports works similar to ``__attribute__((no_sanitize("address")))``, but it also prevents instrumentation performed by other sanitizers. +Disabling container overflow checks +--- + +Runtime suppressio

[clang] [llvm] [InstCombine] Fold select(X >s 0, 0, -X) | smax(X, 0) to abs(X) (PR #165200)

2025-10-30 Thread Wenju He via cfe-commits
@@ -2113,3 +2113,98 @@ define <4 x i32> @or_zext_nneg_minus_constant_splat(<4 x i8> %a) { %or = or <4 x i32> %zext, splat (i32 -9) ret <4 x i32> %or } + +define i8 @or_positive_minus_non_positive_to_abs(i8 %a){ +; CHECK-LABEL: @or_positive_minus_non_positive_to_abs( +; CHE

[clang] [llvm] [InstCombine] Fold select(X >s 0, 0, -X) | smax(X, 0) to abs(X) (PR #165200)

2025-10-30 Thread Wenju He via cfe-commits
https://github.com/wenju-he updated https://github.com/llvm/llvm-project/pull/165200 >From 4629547485d5b0c4f0a0e3e2e026222bbb654c7a Mon Sep 17 00:00:00 2001 From: Wenju He Date: Mon, 27 Oct 2025 05:41:34 +0100 Subject: [PATCH 01/10] [InstCombine] Fold select(X >s 0, 0, -X) | smax(X, 0) to abs(

[clang] [compiler-rt] [UBSan] Fix incorrect alignment reported when global new returns an o… (PR #152532)

2025-10-30 Thread via cfe-commits
https://github.com/gbMattN updated https://github.com/llvm/llvm-project/pull/152532 >From 47142640181a1c882429a2ba7b83d87d18cfd7d1 Mon Sep 17 00:00:00 2001 From: gbMattN Date: Fri, 17 Oct 2025 13:49:55 +0100 Subject: [PATCH 1/3] [UBSan] Report more detailed alignment report when overloaded glo

[clang] [HLSL] Simplify test (PR #165743)

2025-10-30 Thread Justin Bogner via cfe-commits
bogner wrote: On further inspection, we do emit -S from `clang-dxc -fcgl`, and the previous issue was about us emitting it both before and after the -emit-llvm flag. I can see how checking for this would be pretty awkward, and honestly I can't really see how we would end up regressing on this

[clang] [Driver][NFC] Show SYCL support in -Xarch_device/host help text (PR #165503)

2025-10-30 Thread Alexey Bader via cfe-commits
bader wrote: > The driver code handling -Xarch_device/host doesn't do specific things to > SYCL or CUDA, HIP : > https://github.com/llvm/llvm-project/blob/main/clang/lib/Driver/Compilation.cpp#L58 Considering that, I suggest we don't specify the offloading models. Let's align the help text wi

[clang] Add tests for CWG issues 6, 212, 232, 2823. (PR #165633)

2025-10-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-x86_64-debian` running on `lldb-x86_64-debian` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/162/builds/34258 Here is the relevant piece of the build lo

[clang] [clang][SPIR][SPIRV] Don't generate constant NULL from addrspacecast generic NULL (PR #165353)

2025-10-30 Thread Matt Arsenault via cfe-commits
@@ -0,0 +1,13 @@ +// RUN: %clang_cc1 -no-enable-noundef-analysis %s -cl-std=CL2.0 -include opencl-c.h -triple spir64 -emit-llvm -o - | FileCheck %s arsenm wrote: Test name is very broad for what this is testing. Can you merge this with an existing null test, or

[clang] [clang][SPIR][SPIRV] Don't generate constant NULL from addrspacecast generic NULL (PR #165353)

2025-10-30 Thread Matt Arsenault via cfe-commits
arsenm wrote: > OpenCL spec forbids casting between generic and constant address space > pointers. Doesn't really matter for the purposes of what the IR, it's a question of what the SPIRV machine allows https://github.com/llvm/llvm-project/pull/165353

[clang] [llvm] Sandboxing v2 (PR #165350)

2025-10-30 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 updated https://github.com/llvm/llvm-project/pull/165350 >From ce13278e1df2649e7c0c889da4b9eafa258dde06 Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Mon, 27 Oct 2025 16:00:53 -0700 Subject: [PATCH 01/19] [llvm] Introduce IO sandboxing --- llvm/CMakeLists.tx

[clang] Add tests for CWG issues 6, 212, 232, 2823. (PR #165633)

2025-10-30 Thread Richard Smith via cfe-commits
https://github.com/zygoloid closed https://github.com/llvm/llvm-project/pull/165633 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1e3a1ce - Add tests for CWG issues 6, 212, 232, 2823. (#165633)

2025-10-30 Thread via cfe-commits
Author: Richard Smith Date: 2025-10-30T15:50:45-07:00 New Revision: 1e3a1ce911d1e5e3804b63e3ba3059c36eb697e5 URL: https://github.com/llvm/llvm-project/commit/1e3a1ce911d1e5e3804b63e3ba3059c36eb697e5 DIFF: https://github.com/llvm/llvm-project/commit/1e3a1ce911d1e5e3804b63e3ba3059c36eb697e5.diff

[libunwind] [libunwind] Fix execution flow imbalance when using C++ Exceptions (PR #165066)

2025-10-30 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Ugh, I just checked and it looks like the codegen is wrong so assembly it will have to be, but that will at least not be templates. Will write it later. Gnah. https://github.com/llvm/llvm-project/pull/165066 ___ cfe-commits mailing list

[libunwind] [libunwind] Fix execution flow imbalance when using C++ Exceptions (PR #165066)

2025-10-30 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Dynamic search for this would be something like ```cpp bool inbounds_of_unwind_raise_exception(const void*); template int _frames_to_unwind_raise_exception() { const void *current = __builtin_return_address(N); if (inbounds_of_unwind_raise_exception(current)) // this would actu

[clang] [HLSL] Simplify test (PR #165743)

2025-10-30 Thread Justin Bogner via cfe-commits
bogner wrote: > oh i thought this change did preserve that since this test should fail if > such an error is produced? Or that was my thought. IIRC the error was only happening when the clang -cc1 command with both -S and -emit-llvm present was actually run, so the -### command wouldn't produc

[clang] [clang-tools-extra] [flang] [lldb] [llvm] [clang] Move options from clangDriver into new clangOptions library (NFC) (PR #163659)

2025-10-30 Thread Steven Wu via cfe-commits
https://github.com/cachemeifyoucan commented: We need `Clang_Option` in `clang/include/module.modulemap`. There are some formatting modernization can happen but since it is mostly just moving header, those can be left for future. https://github.com/llvm/llvm-project/pull/163659 ___

[clang] [clang][RISCV] Add C intrinsics for XSfvfexp* and XSfvfexpa* (PR #165792)

2025-10-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Min-Yih Hsu (mshockwave) Changes Add C intrinsics for XSfvfexp16e/32e, XSfvfbfexp16e, and XSfvfexpa(64e) introduced in #164349 and #164499 --- Patch is 270.91 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llv

[clang] Add tests for CWG issues 6, 212, 232, 2823. (PR #165633)

2025-10-30 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll approved this pull request. https://github.com/llvm/llvm-project/pull/165633 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add tests for CWG issues 6, 212, 232, 2823. (PR #165633)

2025-10-30 Thread Richard Smith via cfe-commits
https://github.com/zygoloid updated https://github.com/llvm/llvm-project/pull/165633 >From e1017d06119c0cb5a0fa82a39bf74ed698c8366a Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 30 Oct 2025 00:35:18 + Subject: [PATCH 1/6] Add tests for CWG issues 6, 212, 232, 2823. Unfortunately

[clang] Add tests for CWG issues 6, 212, 232, 2823. (PR #165633)

2025-10-30 Thread Richard Smith via cfe-commits
@@ -0,0 +1,31 @@ +// RUN: %clang_cc1 -std=c++98 %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-exceptions -pedantic-errors | FileCheck %s --check-prefixes CHECK +// RUN: %clang_cc1 -std=c++11 %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-excepti

[clang] [Sema] Don't call isNonConstantStorage on incomplete variable types (PR #161590)

2025-10-30 Thread Akira Hatanaka via cfe-commits
https://github.com/ahatanak updated https://github.com/llvm/llvm-project/pull/161590 >From a46d41190f491e7f6f3cf7bcdbbbdf1d4ab7b030 Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date: Wed, 1 Oct 2025 11:58:31 -0700 Subject: [PATCH 1/4] [Sema] Don't call isNonConstantStorage on incomplete varia

[clang-tools-extra] [clang-tidy][NFC] Fix llvm-prefer-static-over-anonymous-namespace warnings N/N (PR #165172)

2025-10-30 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/165172 >From e611d88083e9ea0bb0e7dd6371b19587e745ccae Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Sun, 26 Oct 2025 23:56:03 +0300 Subject: [PATCH 1/3] [clang-tidy][NFC] Fix llvm-prefer-static-over-anonymous-n

[clang-tools-extra] [clang-tidy][NFC] Fix llvm-prefer-static-over-anonymous-namespace warnings N/N (PR #165172)

2025-10-30 Thread Baranov Victor via cfe-commits
@@ -20,6 +20,7 @@ namespace clang::tidy::bugprone { namespace { +// NOLINTNEXTLINE(llvm-prefer-static-over-anonymous-namespace) vbvictor wrote: The function `isCompleteAndHasNoZeroValue` is used inside `AST_MATCHER(EnumDecl, isCompleteAndHasNoZeroValue)` an

[clang] persistent-origin-optimisation (PR #165789)

2025-10-30 Thread Utkarsh Saxena via cfe-commits
usx95 wrote: * **#165789** https://app.graphite.dev/github/pr/llvm/llvm-project/165789?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/165789

[clang] persistent-origin-optimisation (PR #165789)

2025-10-30 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 created https://github.com/llvm/llvm-project/pull/165789 None >From e18f21ccdbf7b2c96a5e2f3340c8fdc4a5aa2fea Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Thu, 30 Oct 2025 22:01:36 + Subject: [PATCH] persistent-origin-optimisation --- .../LifetimeSafety/Loa

[clang] [HLSL] add support for HLSLAggregateSplatCast and HLSLElementwiseCast to constant expression evaluator (PR #164700)

2025-10-30 Thread Sarah Spall via cfe-commits
https://github.com/spall updated https://github.com/llvm/llvm-project/pull/164700 >From 276fca41ad8e81ce4189266c20d260646d6d5f4c Mon Sep 17 00:00:00 2001 From: Sarah Spall Date: Fri, 31 Jan 2025 16:57:24 -0800 Subject: [PATCH 1/5] add support for HLSLAggregateSplatCast and HLSLElementwiseCast

[clang] Add tests for CWG issues 6, 212, 232, 2823. (PR #165633)

2025-10-30 Thread Vlad Serebrennikov via cfe-commits
@@ -0,0 +1,31 @@ +// RUN: %clang_cc1 -std=c++98 %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-exceptions -pedantic-errors | FileCheck %s --check-prefixes CHECK +// RUN: %clang_cc1 -std=c++11 %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-excepti

[libunwind] [libunwind] Fix execution flow imbalance when using C++ Exceptions (PR #165066)

2025-10-30 Thread Anton Korobeynikov via cfe-commits
asl wrote: Tagging @kovdan01 @atrosinenko https://github.com/llvm/llvm-project/pull/165066 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add tests for CWG issues 6, 212, 232, 2823. (PR #165633)

2025-10-30 Thread Richard Smith via cfe-commits
https://github.com/zygoloid edited https://github.com/llvm/llvm-project/pull/165633 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add tests for CWG issues 6, 212, 232, 2823. (PR #165633)

2025-10-30 Thread Richard Smith via cfe-commits
@@ -0,0 +1,31 @@ +// RUN: %clang_cc1 -std=c++98 %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-exceptions -pedantic-errors | FileCheck %s --check-prefixes CHECK +// RUN: %clang_cc1 -std=c++11 %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-excepti

[clang] Add tests for CWG issues 6, 212, 232, 2823. (PR #165633)

2025-10-30 Thread Vlad Serebrennikov via cfe-commits
@@ -230,6 +230,37 @@ namespace cwg211 { // cwg211: 2.7 }; } // namespace cwg211 +namespace cwg212 { // cwg212: yes Endilll wrote: > I suppose it'd make sense to remove "yes" entirely as an option, given we're > so close I discussed that with other maintai

[clang] [llvm] [clang] Add test run of 'dump_ast_matchers.py' (PR #165472)

2025-10-30 Thread Baranov Victor via cfe-commits
vbvictor wrote: Disabled test on Windows because of error which makes re-generated file different from expected: ``` ``` This should be either fixed by tinkering with certs in win-builder or by adjusting `dump_ast_matchers.py`. But I believe this should be out of current scope because Linux b

[clang] Add tests for CWG issues 6, 212, 232, 2823. (PR #165633)

2025-10-30 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/165633 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add tests for CWG issues 6, 212, 232, 2823. (PR #165633)

2025-10-30 Thread Vlad Serebrennikov via cfe-commits
@@ -0,0 +1,31 @@ +// RUN: %clang_cc1 -std=c++98 %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-exceptions -pedantic-errors | FileCheck %s --check-prefixes CHECK +// RUN: %clang_cc1 -std=c++11 %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-excepti

[clang] [Sema] Don't call isNonConstantStorage on incomplete variable types (PR #161590)

2025-10-30 Thread Shafik Yaghmour via cfe-commits
shafik wrote: ping https://github.com/llvm/llvm-project/pull/161590 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [OpenMP] Add parser/semantic support for dyn_groupprivate clause (PR #152651)

2025-10-30 Thread Kevin Sala Penades via cfe-commits
kevinsala wrote: Are there more comments for this PR? Thanks. https://github.com/llvm/llvm-project/pull/152651 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang] Fix cleanup attribute by delaying type checks after the type is deduced (PR #164440)

2025-10-30 Thread Erich Keane via cfe-commits
erichkeane wrote: > @erichkeane I am requesting guidance for fixing this template deduction issue > as you are the template code owner and I don't know the template deduction > area. Thanks to the LLVM-Dev and ISO C++ meetings this week/next week, it'll be a while before I get a chance to ta

[clang] [libclang/python] Add isFunctionInlined support (PR #162882)

2025-10-30 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-windows` running on `linaro-armv8-windows-msvc-05` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/141/builds/12643 Here is the relevant piece of

[clang] Add tests for CWG issues 6, 212, 232, 2823. (PR #165633)

2025-10-30 Thread Richard Smith via cfe-commits
https://github.com/zygoloid updated https://github.com/llvm/llvm-project/pull/165633 >From e1017d06119c0cb5a0fa82a39bf74ed698c8366a Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 30 Oct 2025 00:35:18 + Subject: [PATCH 1/5] Add tests for CWG issues 6, 212, 232, 2823. Unfortunately

[clang] Add tests for CWG issues 6, 212, 232, 2823. (PR #165633)

2025-10-30 Thread Richard Smith via cfe-commits
@@ -230,6 +230,37 @@ namespace cwg211 { // cwg211: 2.7 }; } // namespace cwg211 +namespace cwg212 { // cwg212: yes zygoloid wrote: Ah, yeah, I see that we've removed nearly all of them. I suppose it'd make sense to remove "yes" entirely as an option, given

[clang] Add tests for CWG issues 6, 212, 232, 2823. (PR #165633)

2025-10-30 Thread Vlad Serebrennikov via cfe-commits
@@ -230,6 +230,37 @@ namespace cwg211 { // cwg211: 2.7 }; } // namespace cwg211 +namespace cwg212 { // cwg212: yes Endilll wrote: > Has this changed to mean just "we don't know when we started supporting this" > instead? I've definitely seen this interpre

[clang] [HLSL] add support for HLSLAggregateSplatCast and HLSLElementwiseCast to constant expression evaluator (PR #164700)

2025-10-30 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/lib/AST/ExprConstant.cpp --diff_from_commo

[clang] [HLSL] add support for HLSLAggregateSplatCast and HLSLElementwiseCast to constant expression evaluator (PR #164700)

2025-10-30 Thread Sarah Spall via cfe-commits
https://github.com/spall updated https://github.com/llvm/llvm-project/pull/164700 >From 276fca41ad8e81ce4189266c20d260646d6d5f4c Mon Sep 17 00:00:00 2001 From: Sarah Spall Date: Fri, 31 Jan 2025 16:57:24 -0800 Subject: [PATCH 1/4] add support for HLSLAggregateSplatCast and HLSLElementwiseCast

[clang] [HLSL] add support for HLSLAggregateSplatCast and HLSLElementwiseCast to constant expression evaluator (PR #164700)

2025-10-30 Thread Sarah Spall via cfe-commits
@@ -3829,6 +3829,330 @@ static bool CheckArraySize(EvalInfo &Info, const ConstantArrayType *CAT, /*Diag=*/true); } +static bool handleScalarCast(EvalInfo &Info, const FPOptions FPO, const Expr *E, + QualType SourceTy, QualType DestTy, +

[libunwind] [libunwind] Fix execution flow imbalance when using C++ Exceptions (PR #165066)

2025-10-30 Thread Med Ismail Bennani via cfe-commits
https://github.com/medismailben edited https://github.com/llvm/llvm-project/pull/165066 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add tests for CWG issues 6, 212, 232, 2823. (PR #165633)

2025-10-30 Thread Vlad Serebrennikov via cfe-commits
@@ -0,0 +1,31 @@ +// RUN: %clang_cc1 -std=c++98 %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-exceptions -pedantic-errors | FileCheck %s --check-prefixes CHECK +// RUN: %clang_cc1 -std=c++11 %s -triple x86_64-linux-gnu -emit-llvm -o - -fexceptions -fcxx-excepti

[clang] [llvm] [clang] Add test run of 'dump_ast_matchers.py' (PR #165472)

2025-10-30 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 approved this pull request. LGTM. Probably would be good to get approval from someone on the clang side as well. https://github.com/llvm/llvm-project/pull/165472 ___ cfe-commits mailing list [email protected]

[clang] [llvm] [SimplifyCFG] Hoist common code for switch multi-case destinations (PR #165700)

2025-10-30 Thread Nikita Popov via cfe-commits
@@ -2156,9 +2164,13 @@ bool SimplifyCFGOpt::hoistSuccIdenticalTerminatorToSwitchOrIf( Updates.push_back({DominatorTree::Insert, TIParent, Succ}); } - if (DTU) -for (BasicBlock *Succ : successors(TI)) + if (DTU) { +// TI might be a switch with multi-cases des

[clang] [llvm] [SimplifyCFG] Hoist common code for switch multi-case destinations (PR #165700)

2025-10-30 Thread Nikita Popov via cfe-commits
@@ -1866,10 +1866,18 @@ bool SimplifyCFGOpt::hoistCommonCodeFromSuccessors(Instruction *TI, // If either of the blocks has it's address taken, then we can't do this fold, // because the code we'd hoist would no longer run when we jump into the block // by it's address.

[clang] [llvm] [SimplifyCFG] Hoist common code for switch multi-case destinations (PR #165700)

2025-10-30 Thread Nikita Popov via cfe-commits
@@ -1866,10 +1866,18 @@ bool SimplifyCFGOpt::hoistCommonCodeFromSuccessors(Instruction *TI, // If either of the blocks has it's address taken, then we can't do this fold, // because the code we'd hoist would no longer run when we jump into the block // by it's address.

[clang] [llvm] [clang] Add test run of 'dump_ast_matchers.py' (PR #165472)

2025-10-30 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/165472 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang] Add test run of 'dump_ast_matchers.py' (PR #165472)

2025-10-30 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/165472 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Add isFunctionInlined support (PR #162882)

2025-10-30 Thread via cfe-commits
github-actions[bot] wrote: @TApplencourt 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 b

[clang] [libclang/python] Add isFunctionInlined support (PR #162882)

2025-10-30 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll closed https://github.com/llvm/llvm-project/pull/162882 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 855a3e9 - [libclang/python] Add isFunctionInlined support (#162882)

2025-10-30 Thread via cfe-commits
Author: Thomas Applencourt Date: 2025-10-31T00:26:13+04:00 New Revision: 855a3e974dfaa317d65d9e66c3cadf76d470da2b URL: https://github.com/llvm/llvm-project/commit/855a3e974dfaa317d65d9e66c3cadf76d470da2b DIFF: https://github.com/llvm/llvm-project/commit/855a3e974dfaa317d65d9e66c3cadf76d470da2b.

[clang] [clang][transformer] Change `name` range-selector to return `Error` instead of an invalid range. (PR #164715)

2025-10-30 Thread Florian Mayer via cfe-commits
https://github.com/fmayer auto_merge_enabled https://github.com/llvm/llvm-project/pull/164715 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add flatten_deep attribute for depth-limited inlining (1/3) (PR #165777)

2025-10-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Grigory Pastukhov (grigorypas) Changes Introduces the `flatten_deep` attribute as an extension to the existing `flatten` attribute. While `flatten` only inlines immediate callsites, `flatten_deep` enables inlining of function calls and thei

[clang] [clang] Add flatten_deep attribute for depth-limited inlining (1/3) (PR #165777)

2025-10-30 Thread Grigory Pastukhov via cfe-commits
https://github.com/grigorypas created https://github.com/llvm/llvm-project/pull/165777 Introduces the `flatten_deep` attribute as an extension to the existing `flatten` attribute. While `flatten` only inlines immediate callsites, `flatten_deep` enables inlining of function calls and their transi

[clang] [clang] Allow devirtualisation of indirect calls to final virtual methods (PR #165341)

2025-10-30 Thread Oliver Hunt via cfe-commits
@@ -0,0 +1,414 @@ +// Actual triple does not matter, just ensuring that the ABI being used for +// mangling and similar is consistent. Choosing x86_64 as that seems to be a +// configured target for most build configurations +// RUN: %clang_cc1 -triple=x86_64 -std=c++26 %s -emit-l

[clang] [Clang][Sema] Check null after ExtractTypeForDeductionGuide (PR #165776)

2025-10-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Qiu Chaofan (ecnelises) Changes Fixes #165560 --- Full diff: https://github.com/llvm/llvm-project/pull/165776.diff 2 Files Affected: - (modified) clang/lib/Sema/SemaTemplateDeductionGuide.cpp (+2-1) - (modified) clang/test/SemaTemplate

[clang] [Clang][Sema] Check null after ExtractTypeForDeductionGuide (PR #165776)

2025-10-30 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises created https://github.com/llvm/llvm-project/pull/165776 Fixes #165560 >From c9a426b0594865770e46a801fc9b4abbdd9a475e Mon Sep 17 00:00:00 2001 From: Qiu Chaofan Date: Thu, 30 Oct 2025 13:12:25 -0700 Subject: [PATCH] [Clang][Sema] Check null after ExtractTypeForDedu

[clang] [libclang/python] Add isFunctionInlined support (PR #162882)

2025-10-30 Thread Thomas Applencourt via cfe-commits
TApplencourt wrote: Thanks! Edited. https://github.com/llvm/llvm-project/pull/162882 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Add isFunctionInlined support (PR #162882)

2025-10-30 Thread Thomas Applencourt via cfe-commits
https://github.com/TApplencourt edited https://github.com/llvm/llvm-project/pull/162882 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] Fix execution flow imbalance when using C++ Exceptions (PR #165066)

2025-10-30 Thread Med Ismail Bennani via cfe-commits
@@ -1410,7 +1433,48 @@ void UnwindCursor::setFloatReg(int regNum, unw_fpreg_t value) { } template void UnwindCursor::jumpto() { +#ifdef _LIBUNWIND_TRACE_RET_INJECT + // clang-format off medismailben wrote: Are you saying I should ignore the formatting PR t

  1   2   3   4   5   >