[libunwind] [libunwind] fix pc range condition check bug (PR #154902)

2025-09-03 Thread Wu Yingcong via cfe-commits
yingcong-wu wrote: Looks like there is no objcopy available for that build, I think adding the unsupport for that build would do it, I will open a PR for it. https://github.com/llvm/llvm-project/pull/154902 ___ cfe-commits mailing list cfe-commits@lis

[clang] Allow vector zero padding intrinsics to be used in constexpr (PR #156441)

2025-09-03 Thread via cfe-commits
github-actions[bot] wrote: @eayus 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, y

[clang] [Driver] Enable outline atomics for NetBSD/aarch64 (PR #156143)

2025-09-03 Thread Brad Smith via cfe-commits
brad0 wrote: > I'm sorry but I'm not doing NetBSD anymore, and I don't think I can > contribute any useful feedback to this. I think you need someone who > understands toolchain better than I do. Thanks for letting me know. https://github.com/llvm/llvm-project/pull/156143

[clang] [llvm] [OMPIRBuilder] Use target global AS for SrcLocStr (PR #156520)

2025-09-03 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/156520 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Make vector cast intrinsics constexpr (PR #156381)

2025-09-03 Thread via cfe-commits
https://github.com/vedantjk created https://github.com/llvm/llvm-project/pull/156381 Enable constexpr usage of vector bitcast intrinsics by changing from `__DEFAULT_FN_ATTRS*` to `__DEFAULT_FN_ATTRS*_CONSTEXPR` attributes. **Updated intrinsics:** - AVX-512 bitcast intrinsics: `_mm512_ca

[clang-tools-extra] [clang-tidy] Fix file extension inconsistency (PR #156528)

2025-09-03 Thread James Y Knight via cfe-commits
https://github.com/jyknight updated https://github.com/llvm/llvm-project/pull/156528 >From 6a26e22e546a0da94dc550e88008e9a880f2ea24 Mon Sep 17 00:00:00 2001 From: Walter Lee Date: Tue, 2 Sep 2025 16:32:32 -0400 Subject: [PATCH 1/2] [clang-tidy] Fix file extension inconsistency from #150791 In

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

2025-09-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-sles-build-only` running on `rocm-worker-hw-04-sles` while building `clang,llvm` at step 6 "Add check check-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/29902 Her

[clang] [Sema] Allow zero-size allocations for -Walloc-size (PR #155793)

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

[clang] [clang][analyzer] Delay checking the model-path (PR #150133)

2025-09-03 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 updated https://github.com/llvm/llvm-project/pull/150133 >From fd5445b09c1c32da72d41ac72b4dcd937d9676bf Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Tue, 22 Jul 2025 15:42:28 -0700 Subject: [PATCH] [clang][analyzer] Delay checking the model-path --- clang/l

[clang] [clang] Followup for constexpr-unknown potential constant expressions. (PR #151053)

2025-09-03 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic closed https://github.com/llvm/llvm-project/pull/151053 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OMPIRBuilder] Use target global AS for SrcLocStr (PR #156520)

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

[clang] [llvm] [OMPIRBuilder] Use target global AS for SrcLocStr (PR #156520)

2025-09-03 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. Seems reasonable, guessing this is SPIR-V only? Sometimes default address spaces dependent on language cause issues when mixing IR. https://github.com/llvm/llvm-project/pull/156520 ___ cfe-commits

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slani

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slani

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slani

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slani

[clang] [clang-tools-extra] [clang][AST] Fix source range of class template implicit instantiations. (PR #156011)

2025-09-03 Thread Fred Tingaud via cfe-commits
https://github.com/frederic-tingaud-sonarsource updated https://github.com/llvm/llvm-project/pull/156011 >From 6c99bc0d1e9ad53133198720ad57c6121b48bc98 Mon Sep 17 00:00:00 2001 From: Fred Tingaud Date: Mon, 25 Aug 2025 20:07:04 +0200 Subject: [PATCH] [clang][AST] Fix source range of class templ

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina Message-ID: In-Reply-To: @@ -15277,6 +15290,123 @@ TEST_

[clang-tools-extra] [clang-tidy][NFC] Enable `readability-convert-member-functions-to-static` in the codebase (PR #156265)

2025-09-03 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: Personally I don't really like this rule, especially in combination with `readability-static-accessed-through-instance`. Now we have a mix of static and non-static functions in the classes, even though they are always called on a concrete object. One could argue that those

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slani

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slani

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slani

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slani

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina Message-ID: In-Reply-To: @@ -3197,7 +3204,7 @@ void Unwr

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina Message-ID: In-Reply-To: @@ -8575,6 +8575,19 @@ TEST_F(F

[clang] [CIR] Upstream FPToFPBuiltin ACosOp (PR #156356)

2025-09-03 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/156356 Upstream support for FPToFPBuiltin ACosOp >From a23eb7b29d90a7afc9c02080ca9747f365a67270 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 31 Aug 2025 18:55:45 +0200 Subject: [PATCH] [CIR] Upstream bu

[clang] 0f3ede9 - [X86] Allow AVX512 512-bit variants of AVX2 per-element i32 shift intrinsics to be used in constexpr (#156480)

2025-09-03 Thread via cfe-commits
Author: Simon Pilgrim Date: 2025-09-03T07:58:22Z New Revision: 0f3ede911a2c54ae6c4cac9801edc28d83e4c6a0 URL: https://github.com/llvm/llvm-project/commit/0f3ede911a2c54ae6c4cac9801edc28d83e4c6a0 DIFF: https://github.com/llvm/llvm-project/commit/0f3ede911a2c54ae6c4cac9801edc28d83e4c6a0.diff LOG:

[clang] [X86] Allow AVX512 512-bit variants of AVX2 per-element i32 shift intrinsics to be used in constexpr (PR #156480)

2025-09-03 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/156480 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for emitting VTTs and related ojects (PR #155721)

2025-09-03 Thread Andy Kaylor via cfe-commits
@@ -226,6 +289,109 @@ cir::GlobalLinkageKind CIRGenModule::getVTableLinkage(const CXXRecordDecl *rd) { return cir::GlobalLinkageKind::ExternalLinkage; } +cir::GlobalOp CIRGenVTables::getAddrOfVTT(const CXXRecordDecl *rd) { + assert(rd->getNumVBases() && "Only classes with

[clang] [Clang] Permit half precision in `__builtin_complex` (PR #156479)

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

[clang] [llvm] [Clang] Add `__builtin_stack_address` (PR #148281)

2025-09-03 Thread Nikita Popov via cfe-commits
@@ -2720,6 +2721,30 @@ static SDValue LowerVAARG(SDValue Op, SelectionDAG &DAG) { Align(std::min(PtrVT.getFixedSizeInBits(), VT.getFixedSizeInBits()) / 8)); } +static SDValue LowerSTACKADDRESS(SDValue Op, SelectionDAG &DAG, + const Sparc

[clang] [CIR][NFC] Reorder GenExprComplex and add errors for unhandled visitors (PR #156241)

2025-09-03 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/156241 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV] support BITINT with mixed-type (PR #156592)

2025-09-03 Thread Piyou Chen via cfe-commits
https://github.com/BeMg updated https://github.com/llvm/llvm-project/pull/156592 >From 092700505e150a5de6e623bf12f0dbd557017e24 Mon Sep 17 00:00:00 2001 From: Piyou Chen Date: Fri, 13 Jun 2025 03:11:08 -0700 Subject: [PATCH 1/2] [clang][RISCV] support BITINT with mixed-type --- clang/lib/CodeG

[clang] [PowerPC][CLANG] DMF VSX Vector float GER 2x (rank-2 update) (PR #147383)

2025-09-03 Thread Lei Huang via cfe-commits
https://github.com/lei137 updated https://github.com/llvm/llvm-project/pull/147383 >From ab3a090e5396baa7ac144369682677534cf9a10e Mon Sep 17 00:00:00 2001 From: Lei Huang Date: Fri, 4 Jul 2025 14:53:15 -0500 Subject: [PATCH] RFC02658:CLANG: DMF VSX Vector bfloat16 GER 2x (rank-2 update) ---

[clang] [clang][Modules] Permit Link Declarations in Submodule Declarations in Module Maps (PR #156377)

2025-09-03 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida commented: For `Wmodule-link-redeclaration` check, what happens if two different modules have the same `link` declaration? https://github.com/llvm/llvm-project/pull/156377 ___ cfe-commits mailing list cfe-commits@lists.l

[clang] [OpenACC] Reduction 'init' lowering for all-ones/least/largest (PR #156535)

2025-09-03 Thread Andy Kaylor via cfe-commits
@@ -2627,16 +2664,40 @@ static Expr *GenerateReductionInitRecipeExpr(ASTContext &Context, } else { assert(Ty->isScalarType()); -// TODO: OpenACC: This currently only works for '1', but we need to figure -// out a way to do least/largest/all-1s. -if (Ty->isF

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-03 Thread Steven Perron via cfe-commits
https://github.com/s-perron updated https://github.com/llvm/llvm-project/pull/156075 >From aaecbc5efd38190e8aedd9b3e3c95b2ede791a09 Mon Sep 17 00:00:00 2001 From: Steven Perron Date: Fri, 29 Aug 2025 13:40:55 -0400 Subject: [PATCH] [HLSL] Add copy assignment and construtor to resource types Th

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-03 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slani

[clang] [llvm] [mlir] [Flang][OpenMP] Enable no-loop kernels (PR #155818)

2025-09-03 Thread Dominik Adamski via cfe-commits
@@ -2106,6 +2106,29 @@ Operation *TargetOp::getInnermostCapturedOmpOp() { }); } +/// Check if we can promote SPMD kernel to No-Loop kernel +static bool canPromoteToNoLoop(Operation *capturedOp, TeamsOp teamsOp, + WsloopOp *wsLoopOp) { + //

[clang] [Sema] Diagnose use of if/else-if condition variable inside else-if/else branch(s) (PR #156436)

2025-09-03 Thread via cfe-commits
Sirraide wrote: Oh yeah, two more things I was going to point out: we should definiltely have some tests in unevaluated contexts (e.g. `sizeof`, `decltype`, etc.), and this also needs a release note (in `clang/docs/ReleaseNotes.rst`, probably in the section ‘Improvements to Clang’s Diagnostics

[clang] [Sema] Diagnose use of if/else-if condition variable inside else-if/else branch(s) (PR #156436)

2025-09-03 Thread via cfe-commits
Alcaro wrote: Yes, std::expected would be a false positive. But how would you tell apart std::expected, where a falsey object still contains something usable, from std::unique_ptr, where it does not? One option would be simply ignore that - this warning applies to raw pointers only, not even

[clang] [X86] Clear EVEX512 feature for 128-bit and 256-bit FMA intrinsics (PR #156472)

2025-09-03 Thread Chaitanya Koparkar via cfe-commits
ckoparkar wrote: See https://github.com/llvm/llvm-project/pull/156385#discussion_r2316114608. /cc @RKSimon @phoebewang https://github.com/llvm/llvm-project/pull/156472 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[libunwind] [libunwind][test] set fed test to require x86 as others arch may have cross toolchain build (PR #156383)

2025-09-03 Thread Wu Yingcong via cfe-commits
https://github.com/yingcong-wu edited https://github.com/llvm/llvm-project/pull/156383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][DirectX] Finish WaveGetLaneCount implementation (PR #156338)

2025-09-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-directx Author: Nathan Gauër (Keenuts) Changes Some testing was lacking, as well as DirectX lowering of the intrinsic. Fixes #99159 --- Full diff: https://github.com/llvm/llvm-project/pull/156338.diff 6 Files Affected: - (added) clang/test/S

[clang] [Clang] Fix AST dump test on Mac OS (PR #156498)

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

[clang] [Sema] Diagnose use of if/else-if condition variable inside else-if/else branch(s) (PR #156436)

2025-09-03 Thread Erich Keane via cfe-commits
erichkeane wrote: > @Alcaro > > > I agree the worst case would be bad; if I'm reading things correctly, it'd > > be quadratic for things like > > Any specific code changes you want to suggest? I suggested something using the `Scope` type above: Instead of a visitor, use the scope to figure o

[clang] [Headers][X86] Allow SSE2/AVX2/AVX512F/AVX512BW/AVX512DQ integer multiply intrinsics to be used in constexpr (PR #156369)

2025-09-03 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [Sema] Diagnose use of if/else-if condition variable inside else-if/else branch(s) (PR #156436)

2025-09-03 Thread via cfe-commits
@@ -971,6 +972,34 @@ StmtResult Sema::ActOnIfStmt(SourceLocation IfLoc, if (!ConstevalOrNegatedConsteval && !elseStmt) DiagnoseEmptyStmtBody(RParenLoc, thenStmt, diag::warn_empty_if_body); + // Checks for if/else-if condition variable usage in else-if/else scope + if (

[clang] [Headers][X86] Allow SSE2/AVX2/AVX512F/AVX512BW/AVX512DQ integer multiply intrinsics to be used in constexpr (PR #156369)

2025-09-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Koustav Chowdhury (eulerkochy) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/156369.diff 8 Files Affected: - (modified) clang/lib/Headers/avx2intrin.h (+2-3) - (modified) clang/lib/Headers/avx512bwintrin.h (+2

[clang] [llvm] [RISCV] Support for Zvabd fast-track proposal (PR #124239)

2025-09-03 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp edited https://github.com/llvm/llvm-project/pull/124239 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][AArch64] Use .i16.f16 intrinsic formats for vcvth*_[s|u]16_f16 (PR #156029)

2025-09-03 Thread David Green via cfe-commits
https://github.com/davemgreen approved this pull request. LGTM (I don't think you need to auto-upgrade anything too). https://github.com/llvm/llvm-project/pull/156029 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-03 Thread Helena Kotas via cfe-commits
@@ -828,11 +828,27 @@ llvm::Instruction *CGHLSLRuntime::getConvergenceToken(BasicBlock &BB) { class OpaqueValueVisitor : public RecursiveASTVisitor { public: - llvm::SmallPtrSet OVEs; + llvm::SmallVector OVEs; + llvm::SmallPtrSet Visited; OpaqueValueVisitor() {} + bo

[clang] [CIR] Add support for constructors with VTT parameters (PR #156521)

2025-09-03 Thread Bruno Cardoso Lopes via cfe-commits
@@ -633,6 +638,13 @@ class CIRGenFunction : public CIRGenTypeCache { llvm::iterator_range path, bool nullCheckValue, SourceLocation loc); + /// GetVTTParameter - Return the VTT parameter that should be passed to a bcardosolopes wrote: You can rem

[clang] [OpenACC] Add NYI for pointer/VLA arguments to recipes (PR #156465)

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

[clang] [Headers][X86] Allow FMA intrinsics to be used in constexpr (PR #156385)

2025-09-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Chaitanya Koparkar (ckoparkar) Changes Fixes #155265 Add constexpr support for the following: _mm512_fmadd_pd _mm512_mask_fmadd_pd _mm512_mask3_fmadd_pd _mm512_maskz_fmadd_pd _mm512_fmadd_ps _mm512_mask_fmadd_ps _mm512_mask3_fmadd

[clang-tools-extra] [clang-tidy] do not diagnose array types within implicit instantiations of a template (PR #132924)

2025-09-03 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti edited https://github.com/llvm/llvm-project/pull/132924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream FPToFPBuiltin ACosOp (PR #156356)

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

[clang] [llvm] [mlir] [Flang][OpenMP] Enable no-loop kernels (PR #155818)

2025-09-03 Thread Dominik Adamski via cfe-commits
@@ -0,0 +1,43 @@ +! Check if the first OpenMP GPU kernel is promoted to no-loop mode. DominikAdamski wrote: Done. Please see updated test. https://github.com/llvm/llvm-project/pull/155818 ___ cfe-commits mailing list c

[clang] [libclang/python] Add type annotations for code completion classes (PR #140539)

2025-09-03 Thread Vlad Serebrennikov via cfe-commits
@@ -3115,44 +3116,47 @@ def __repr__(self): class CodeCompletionResult(Structure): _fields_ = [("cursorKind", c_int), ("completionString", c_object_p)] -def __repr__(self): +def __repr__(self) -> str: return str(CompletionString(self.completionString))

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-03 Thread Helena Kotas via cfe-commits
@@ -1,49 +1,65 @@ -// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.6-compute -finclude-default-header \ -// RUN: -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s - -// This test verifies handling of multi-dimensional local arrays of resources -// when used as a function a

[clang] b1a8089 - [Clang] Introduce __builtin_meow_synthesises_from_spaceship (#155612)

2025-09-03 Thread via cfe-commits
Author: Nikolas Klauser Date: 2025-09-01T21:49:09+02:00 New Revision: b1a8089f1cf67a6038a6b6d958eff1bd2feb4f8d URL: https://github.com/llvm/llvm-project/commit/b1a8089f1cf67a6038a6b6d958eff1bd2feb4f8d DIFF: https://github.com/llvm/llvm-project/commit/b1a8089f1cf67a6038a6b6d958eff1bd2feb4f8d.dif

[clang] [X86] Update BMI, BMI2 and TBM constexpr tests (PR #156260)

2025-09-03 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon requested changes to this pull request. https://github.com/llvm/llvm-project/pull/156260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU][gfx1250] Add 128B cooperative atomics (PR #156418)

2025-09-03 Thread Pierre van Houtryve via cfe-commits
@@ -6776,6 +6776,28 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) { "invalid vector type for format", &Call, Src1, Call.getArgOperand(2)); break; } + case Intrinsic::amdgcn_cooperative_atomic_load_32x4B: + case Intrinsic::amdgcn_coop

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-03 Thread Helena Kotas via cfe-commits
@@ -676,6 +676,75 @@ BuiltinTypeDeclBuilder::addHandleConstructorFromImplicitBinding() { .finalize(); } +BuiltinTypeDeclBuilder &BuiltinTypeDeclBuilder::addCopyConstructor() { + if (Record->isCompleteDefinition()) +return *this; + + ASTContext &AST = SemaRef.getAS

[clang] a24e11f - [clang] Delay checking of `-fopenmp-host-ir-file-path` (#150124)

2025-09-03 Thread via cfe-commits
Author: Jan Svoboda Date: 2025-09-02T13:04:13-07:00 New Revision: a24e11fd951d3396ccbb469b2c5dc707dc4196a6 URL: https://github.com/llvm/llvm-project/commit/a24e11fd951d3396ccbb469b2c5dc707dc4196a6 DIFF: https://github.com/llvm/llvm-project/commit/a24e11fd951d3396ccbb469b2c5dc707dc4196a6.diff L

[clang] [llvm] Enable fexec-charset option (PR #138895)

2025-09-03 Thread Hubert Tong via cfe-commits
@@ -217,8 +217,14 @@ // RUN: not %clang -### -S -finput-charset=iso-8859-1 -o /dev/null %s 2>&1 | FileCheck -check-prefix=CHECK-INVALID-CHARSET %s // CHECK-INVALID-CHARSET: error: invalid value 'iso-8859-1' in '-finput-charset=iso-8859-1' hubert-reinterpretcas

[clang] [HLSL][NFC] Add assert to verify implicit binding resource attribute exists (PR #156094)

2025-09-03 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/156094 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for atomic compare-and-swap (PR #156253)

2025-09-03 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM after you address existing feedback, nothing else to add! https://github.com/llvm/llvm-project/pull/156253 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[clang] [llvm] [RISCV][MC] Add MC support of Zibi experimental extension (PR #127463)

2025-09-03 Thread Alexander Richardson via cfe-commits
https://github.com/arichardson commented: It would be nice to see an actual encodings spec PDF to be able to verify that the opcode encoding in this PR is actually correct. The PDF I downloaded from JIRA did not seem to have any encodings. Two minor comments inline. https://github.com/llvm/ll

[clang] [llvm] [NVPTX] Change the alloca address space in NVPTXLowerAlloca (PR #154814)

2025-09-03 Thread Theodoros Theodoridis via cfe-commits
@@ -502,3 +497,27 @@ void NVPTXPassConfig::addMachineSSAOptimization() { addPass(&PeepholeOptimizerLegacyID); printAndVerify("After codegen peephole optimization pass"); } + +bool NVPTXTargetMachine::isCompatibleDataLayout( +const DataLayout &Candidate) const { + // XX

[clang] [llvm] [mlir] [Flang][OpenMP] Enable no-loop kernels (PR #155818)

2025-09-03 Thread Dominik Adamski via cfe-commits
@@ -2590,13 +2590,27 @@ convertOmpWsloop(Operation &opInst, llvm::IRBuilderBase &builder, } builder.SetInsertPoint(*regionBlock, (*regionBlock)->begin()); + + bool noLoopMode = false; + omp::TargetOp targetOp = wsloopOp->getParentOfType(); + if (targetOp) { +Operat

[clang] [llvm] [RISC-V] Added the mips extension instructions like ehb,ihb and pause etc for MIPS RV64 P8700. (PR #155747)

2025-09-03 Thread Djordje Todorovic via cfe-commits
https://github.com/djtodoro closed https://github.com/llvm/llvm-project/pull/155747 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-03 Thread Helena Kotas via cfe-commits
https://github.com/hekota commented: Could you please add test showing the new constructors AST structure to: clang/test/AST/HLSL/TypedBuffers-AST.hlsl clang/test/AST/HLSL/StructuredBuffers-AST.hlsl clang/test/AST/HLSL/TypedBuffers-AST.hlsl https://github.com/llvm/llvm-project/pull/156075 _

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation directive and "looprange" clause (PR #139293)

2025-09-03 Thread Roger Ferrer Ibáñez via cfe-commits
@@ -11664,6 +11664,17 @@ def note_omp_implicit_dsa : Note< "implicitly determined as %0">; def err_omp_loop_var_dsa : Error< "loop iteration variable in the associated loop of 'omp %1' directive may not be %0, predetermined as %2">; +def err_omp_not_canonical_loop : Error<

[clang] [llvm] [RISCV][MC] Add MC support of Zibi experimental extension (PR #127463)

2025-09-03 Thread Alexander Richardson via cfe-commits
https://github.com/arichardson edited https://github.com/llvm/llvm-project/pull/127463 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SYCL] Add offload wrapping for SYCL kind. (PR #147508)

2025-09-03 Thread Maksim Sabianin via cfe-commits
@@ -717,6 +717,13 @@ wrapDeviceImages(ArrayRef> Buffers, M, BuffersToWrap.front(), offloading::getOffloadEntryArray(M))) return std::move(Err); break; + case OFK_SYCL: { +offloading::SYCLWrappingOptions WrappingOptions; maksimsab wro

[clang] [clang][modules-driver] Add initial support for driver-managed module builds (PR #156248)

2025-09-03 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth updated https://github.com/llvm/llvm-project/pull/156248 >From 9760106dbd916861d396b90cc30262a13a01c9c2 Mon Sep 17 00:00:00 2001 From: Naveen Seth Hanig Date: Mon, 25 Aug 2025 02:36:42 +0200 Subject: [PATCH 1/3] [clang][modules-driver] Move logic to enable -fmodu

[clang] [clang-tools-extra] [Clang] [C2y] Implement N3355 ‘NamedLoops’ (PR #152870)

2025-09-03 Thread via cfe-commits
@@ -3056,26 +3045,51 @@ class IndirectGotoStmt : public Stmt { } }; -/// ContinueStmt - This represents a continue. -class ContinueStmt : public Stmt { -public: - ContinueStmt(SourceLocation CL) : Stmt(ContinueStmtClass) { -setContinueLoc(CL); +/// Base class for BreakS

[clang] [Clang][OpenMP] Add an additional class to hold data that will be shared between all loop transformations (PR #155849)

2025-09-03 Thread Roger Ferrer Ibáñez via cfe-commits
https://github.com/rofirrim updated https://github.com/llvm/llvm-project/pull/155849 From c0a9364dde8eb90d10a8971d2f4598b96c05ac76 Mon Sep 17 00:00:00 2001 From: Roger Ferrer Ibanez Date: Tue, 26 Aug 2025 13:18:19 + Subject: [PATCH 1/2] [Clang][NFC] Rename OMPLoopTransformationDirective to

[clang] [Clang] Permit half precision in `__builtin_complex` (PR #156479)

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

[clang] [llvm] [WebAssembly] Add support for nonnull_extern_ref type (PR #148935)

2025-09-03 Thread Paulo Matos via cfe-commits
pmatos wrote: Sorry for the delay on coming back to this. I will take another look and help @badumbatish make progress here. @dschuff fyi, @badumbatish is with Igalia and I will internally provide any help she needs to make progress here. https://github.com/llvm/llvm-project/pull/148935 _

[clang] [libclang/python] Derive library function types from annotations (PR #142120)

2025-09-03 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: As outlined in the last comments, this is not going to be possible until type annotations become rich enough to describe ctypes. https://github.com/llvm/llvm-project/pull/142120 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[clang] [Headers][X86] Add constexpr support for some AVX[512] intrinsics. (PR #156187)

2025-09-03 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/156187 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SYCL] Add offload wrapping for SYCL kind. (PR #147508)

2025-09-03 Thread Joseph Huber via cfe-commits
@@ -620,6 +635,422 @@ void createRegisterFatbinFunction(Module &M, GlobalVariable *FatbinDesc, // Add this function to constructors. appendToGlobalCtors(M, CtorFunc, /*Priority=*/101); } + +/// SYCLWrapper helper class that creates all LLVM IRs wrapping given images. +stru

[clang] [clang] Fix crash 'Cannot get layout of forward declarations' during CTU static analysis (PR #156056)

2025-09-03 Thread Balázs Kéri via cfe-commits
https://github.com/balazske updated https://github.com/llvm/llvm-project/pull/156056 From 7da69b65a6cb614023c0cd22a01b1693ce622401 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?= Date: Tue, 26 Aug 2025 10:20:42 +0200 Subject: [PATCH 1/4] [clang] Fix of a crash 'Cannot get lay

[clang] c62284c - [clang] Followup for constexpr-unknown potential constant expressions. (#151053)

2025-09-03 Thread via cfe-commits
Author: Eli Friedman Date: 2025-09-02T12:20:13-07:00 New Revision: c62284c43d519317979e3028f7c37f42eed6ac8e URL: https://github.com/llvm/llvm-project/commit/c62284c43d519317979e3028f7c37f42eed6ac8e DIFF: https://github.com/llvm/llvm-project/commit/c62284c43d519317979e3028f7c37f42eed6ac8e.diff

[clang] [Sema] Diagnose use of if/else-if condition variable inside else-if/else branch(s) (PR #156436)

2025-09-03 Thread via cfe-commits
@@ -13594,6 +13594,9 @@ def warn_acc_var_referenced_lacks_op "reference has no effect">, InGroup>, DefaultError; +def warn_out_of_scope_var_usage +: Warning<"variable %0 used in else/else if block is out of scope">, Alcaro wrote:

[clang] Allow vector zero padding intrinsics to be used in constexpr (PR #156441)

2025-09-03 Thread Ellis Kesterton via cfe-commits
eayus wrote: Pinging @RKSimon as I am unable to manually add reviewers. https://github.com/llvm/llvm-project/pull/156441 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 38268ec - [clang-tidy] Support direct initialization in modernize smart pointer (#154732)

2025-09-03 Thread via cfe-commits
Author: Liu Ke Date: 2025-09-01T16:33:29+08:00 New Revision: 38268ecab94b90a2eea6c62c5911679d93954651 URL: https://github.com/llvm/llvm-project/commit/38268ecab94b90a2eea6c62c5911679d93954651 DIFF: https://github.com/llvm/llvm-project/commit/38268ecab94b90a2eea6c62c5911679d93954651.diff LOG: [

[clang] [clang][analyzer] Delay checking the model-path (PR #150133)

2025-09-03 Thread Jan Svoboda via cfe-commits
jansvoboda11 wrote: I considered adding a separate step to perform the FS checks, but decided against it. There are lots of clients of the command line parsing code, and adding a new required step is a large breaking change and it would be easy to miss in new code. I think the next best place

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

2025-09-03 Thread via cfe-commits
@@ -912,6 +931,10 @@ bool Scanner::lexPPLine(const char *&First, const char *const End) { CurDirToks.clear(); }); + // FIXME: Shoule we handle @import as a preprocessing directive? yronglin wrote: @Bigcheese I have disabled handle `@import` as a pp-di

[clang] [Headers][X86] Allow SSE2/AVX2/AVX512F/AVX512BW/AVX512DQ integer multiply intrinsics to be used in constexpr (PR #156369)

2025-09-03 Thread Koustav Chowdhury via cfe-commits
https://github.com/eulerkochy updated https://github.com/llvm/llvm-project/pull/156369 >From e3795502f1acf7ec5c3980ed9fdb502bbf9403ba Mon Sep 17 00:00:00 2001 From: Koustav Chowdhury Date: Tue, 2 Sep 2025 01:11:34 +0530 Subject: [PATCH 1/2] feat: constexpr SSE multiplication intrinsics --- cl

[clang] [Clang] Add detailed notes explaining why is_aggregate evaluates to false (PR #152488)

2025-09-03 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. I'm OK with this, but don't have a 'rerun CI' button. I can try 1 thing to start it over (force a merge), so I'll give that a shot, else you m ight need to do some patch pushes. https://github.com/llvm/llvm-project/pull/152488

[clang] [X86] Allow AVX512 512-bit variants of AVX2 per-element i32 shift intrinsics to be used in constexpr (PR #156480)

2025-09-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `cross-project-tests-sie-ubuntu` running on `doug-worker-1a` while building `clang` at step 6 "test-build-unified-tree-check-cross-project". Full details are available at: https://lab.llvm.org/buildbot/#/builders/181/builds/27

[clang] [CIR][NFC] Fix build issue after AST modification (PR #156493)

2025-09-03 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/156493 Fix the build issue after AST modification >From 5462713936149bca0ba186dc48d104679b8ee2df Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Tue, 2 Sep 2025 19:00:35 +0200 Subject: [PATCH] [CIR][NFC] Fix bu

[clang] [llvm] [InstCombine] Strip leading zero indices from GEP (PR #155415)

2025-09-03 Thread Nikita Popov via cfe-commits
https://github.com/nikic closed https://github.com/llvm/llvm-project/pull/155415 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [Clang] [C2y] Implement N3355 ‘NamedLoops’ (PR #152870)

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

[libunwind] [libunwind][test] set fed test to require x86 as others arch may have cross toolchain build (PR #156383)

2025-09-03 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 approved this pull request. LGTM assuming the CI is happy to get that green again. Though I'm not sure we want to keep the test as-is. It seems to have quite a few assumptions about the environment baked in. https://github.com/llvm/llvm-project/pull/156383 ___

[clang] [llvm] [RISCV][MC] Add MC support of Zibi experimental extension (PR #127463)

2025-09-03 Thread Craig Topper via cfe-commits
@@ -78,6 +78,12 @@ def FeatureStdExtE : RISCVExtension<2, 0, "Embedded Instruction Set with 16 GPRs">, RISCVExtensionBitmask<0, 4>; +def FeatureStdExtZibi +: RISCVExperimentalExtension<0, 1, "Branch with Immediate">; +def HasStdExtZibi : Predicate<"Subtarget->has

[libunwind] [libunwind][test] unsupport a test in aarch64 for aarch64 has corss toolchain build (PR #156383)

2025-09-03 Thread Wu Yingcong via cfe-commits
https://github.com/yingcong-wu edited https://github.com/llvm/llvm-project/pull/156383 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   6   >