[clang] 2b4b721 - [clang][bytecode] Emit embed element casts directly (#152928)

2025-08-10 Thread via cfe-commits
Author: Timm Baeder Date: 2025-08-10T19:02:08+02:00 New Revision: 2b4b721faf852a405b25064c0d3b59a2372efe2b URL: https://github.com/llvm/llvm-project/commit/2b4b721faf852a405b25064c0d3b59a2372efe2b DIFF: https://github.com/llvm/llvm-project/commit/2b4b721faf852a405b25064c0d3b59a2372efe2b.diff L

[clang] [clang][bytecode] Emit embed element casts directly (PR #152928)

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

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-10 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/152910 >From 2acdc563199b93b3a9f6d0a4ae4c8ef4f12d1c25 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 7 Aug 2025 20:54:16 +0700 Subject: [PATCH 1/3] [Headers][X86] Allow AVX512 _mm512_set* intrinsics

[clang-tools-extra] [clang-tidy] Fix `modernize-use-constraints` crash on uses of nonstandard `enable_if`s (PR #152938)

2025-08-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Victor Chernyakin (localspook) Changes Fixes #152868. See that issue for details. --- Full diff: https://github.com/llvm/llvm-project/pull/152938.diff 3 Files Affected: - (modified) clang-tools-extra/clang-tidy/modernize/Use

[clang-tools-extra] [clang-tidy] Fix `modernize-use-constraints` crash on uses of nonstandard `enable_if`s (PR #152938)

2025-08-10 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/152938 Fixes #152868. See that issue for details. >From 728fc710260d529a604bf3692b18c9131061e070 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sun, 10 Aug 2025 12:25:26 -0700 Subject: [PATCH] [clang-tidy]

[clang-tools-extra] [clang-tidy] Fix `modernize-use-constraints` crash on uses of nonstandard `enable_if`s (PR #152938)

2025-08-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Victor Chernyakin (localspook) Changes Fixes #152868. See that issue for details. --- Full diff: https://github.com/llvm/llvm-project/pull/152938.diff 3 Files Affected: - (modified) clang-tools-extra/clang-tidy/modernize/UseConstra

[clang] [clang] Enable constexpr handling for __builtin_elementwise_fma (PR #152919)

2025-08-10 Thread Timm Baeder via cfe-commits
@@ -2320,6 +2330,65 @@ static bool interp__builtin_elementwise_sat(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_elementwise_fma(InterpState &S, CodePtr OpPC, +const CallExpr *Call) { + assert(Call->ge

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-10 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/152910 >From 2acdc563199b93b3a9f6d0a4ae4c8ef4f12d1c25 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 7 Aug 2025 20:54:16 +0700 Subject: [PATCH 1/4] [Headers][X86] Allow AVX512 _mm512_set* intrinsics

[libunwind] [Mips] Fixed libunwind::Registers_mips_o32::jumpto to allow for load delay (PR #152942)

2025-08-10 Thread via cfe-commits
github-actions[bot] wrote: ⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo. Please turn off [Keep my email addresses private](https://github.com/settings/emails) setting in your account. See [LLVM Developer Policy](https://llvm.org/docs/DeveloperPol

[libclc] 12cec43 - [libclc] Implement clc_log/sinpi/sqrt with __nv_* functions (#150174)

2025-08-10 Thread via cfe-commits
Author: Wenju He Date: 2025-08-11T08:53:49+08:00 New Revision: 12cec437c664e1b671d85f38418c97f222340ce4 URL: https://github.com/llvm/llvm-project/commit/12cec437c664e1b671d85f38418c97f222340ce4 DIFF: https://github.com/llvm/llvm-project/commit/12cec437c664e1b671d85f38418c97f222340ce4.diff LOG:

[libclc] [libclc] Implement clc_log/sinpi/sqrt with __nv_* functions (PR #150174)

2025-08-10 Thread Wenju He via cfe-commits
https://github.com/wenju-he closed https://github.com/llvm/llvm-project/pull/150174 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add SpacemiT XSMTVDot (SpacemiT Vector Dot Product) extension. (PR #151706)

2025-08-10 Thread via cfe-commits
@@ -1220,9 +1220,9 @@ define void @mgather_nxv16i64( %ptrs0, %ptr ; RV32-LABEL: mgather_nxv16i64: ; RV32: # %bb.0: ; RV32-NEXT:vl8re64.v v24, (a0) -; RV32-NEXT:csrr a0, vlenb -; RV32-NEXT:vsetvli a2, zero, e64, m8, ta, mu +; RV32-NEXT:vsetvli a0, zero, e

[clang] [Clang][X86] Replace F16C `vcvtph2ps/256` intrinsics with `(convert|shuffle)vector` builtins (PR #152911)

2025-08-10 Thread Phoebe Wang via cfe-commits
@@ -40,12 +40,17 @@ typedef signed char __v16qs __attribute__((__vector_size__(16))); #ifdef __SSE2__ /* Both _Float16 and __bf16 require SSE2 being enabled. */ +typedef _Float16 __v4hf __attribute__((__vector_size__(8))); typedef _Float16 __v8hf __attribute__((__vector_size

[clang] 875841c - [clang][bytecode] Avoid a getValue() call in builtin_isinf (#152939)

2025-08-10 Thread via cfe-commits
Author: Timm Baeder Date: 2025-08-11T07:11:38+02:00 New Revision: 875841c93d20706842df86964568bd9b44436ff6 URL: https://github.com/llvm/llvm-project/commit/875841c93d20706842df86964568bd9b44436ff6 DIFF: https://github.com/llvm/llvm-project/commit/875841c93d20706842df86964568bd9b44436ff6.diff L

[clang] [clang][bytecode] Avoid a getValue() call in builtin_isinf (PR #152939)

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

[clang] [flang] [llvm] Introduce -fexperimental-loop-fuse to clang and flang (PR #142686)

2025-08-10 Thread Madhur Amilkanthwar via cfe-commits
@@ -4268,6 +4268,10 @@ def floop_interchange : Flag<["-"], "floop-interchange">, Group, HelpText<"Enable the loop interchange pass">, Visibility<[ClangOption, CC1Option, FlangOption, FC1Option]>; def fno_loop_interchange: Flag<["-"], "fno-loop-interchange">, Group, HelpTe

[clang] [flang] [llvm] Introduce -fexperimental-loop-fuse to clang and flang (PR #142686)

2025-08-10 Thread Madhur Amilkanthwar via cfe-commits
https://github.com/madhur13490 updated https://github.com/llvm/llvm-project/pull/142686 >From be9eb6a39906fac945ea206eec80f4cc18bd4896 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Thu, 22 May 2025 13:50:38 + Subject: [PATCH 1/5] add -floop-fuse to clang and flang --- clang/include/c

[clang] [libclang/python] Expose `clang_getCursorLanguage` via `Cursor.language` (PR #152897)

2025-08-10 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum approved this pull request. Thank you for the PR! LGTM, just one thing: please also add the new enum to the list of enums in `test_enums.py`. @Endilll do you also want to take a look? https://github.com/llvm/llvm-project/pull/152897 _

[clang] [flang] [llvm] Introduce -fexperimental-loop-fuse to clang and flang (PR #142686)

2025-08-10 Thread Madhur Amilkanthwar via cfe-commits
https://github.com/madhur13490 updated https://github.com/llvm/llvm-project/pull/142686 >From be9eb6a39906fac945ea206eec80f4cc18bd4896 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Thu, 22 May 2025 13:50:38 + Subject: [PATCH 1/5] add -floop-fuse to clang and flang --- clang/include/c

[clang] [WIP] [clang] Align cleanup structs to prevent SIGBUS on sparc32 (PR #152866)

2025-08-10 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/152866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Expose `clang_getCursorLanguage` via `Cursor.language` (PR #152897)

2025-08-10 Thread Jimmy Z via cfe-commits
https://github.com/jimmy-zx updated https://github.com/llvm/llvm-project/pull/152897 >From 2ede2bff6c22ffdf7297a37da1423f586691a48e Mon Sep 17 00:00:00 2001 From: Jimmy Z Date: Sun, 10 Aug 2025 07:20:28 + Subject: [PATCH 1/2] [libclang/python] Expose clang_getCursorLanguage --- clang/bind

[clang] [clang-format] Add functionality of getting info about numeric literals (PR #152878)

2025-08-10 Thread via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/152878 >From 5f1ea996c590c07ab2da923ad1be1fbf7b7ccc8b Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 7 Aug 2025 23:18:03 -0700 Subject: [PATCH 1/2] [clang-format] Add functionality of getting info about numeric lit

[clang] [Clang] unrecognized html tag causing undesirable comment lexing (PR #152944)

2025-08-10 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/152944 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement gcc_struct attribute on Itanium targets (PR #71148)

2025-08-10 Thread Yonggang Luo via cfe-commits
lygstate wrote: @DanShaders do you still have time on this? https://github.com/llvm/llvm-project/pull/71148 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix `modernize-use-constraints` crash on uses of nonstandard `enable_if`s (PR #152938)

2025-08-10 Thread Baranov Victor via cfe-commits
@@ -78,6 +79,15 @@ matchEnableIfSpecializationImplTypename(TypeLoc TheType) { if (!TD || TD->getName() != "enable_if") return std::nullopt; +const TemplateParameterList *Params = TD->getTemplateParameters(); +if (Params->size() != 2) + return std::nullop

[clang-tools-extra] [clang-tidy] Fix `modernize-use-constraints` crash on uses of nonstandard `enable_if`s (PR #152938)

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

[clang] b08e86c - [clang][bytecode] Move CheckExtern call into isAccessible() block (#152926)

2025-08-10 Thread via cfe-commits
Author: Timm Baeder Date: 2025-08-10T18:56:15+02:00 New Revision: b08e86cb7f7368531c4c12502dc1bed78f3e19a1 URL: https://github.com/llvm/llvm-project/commit/b08e86cb7f7368531c4c12502dc1bed78f3e19a1 DIFF: https://github.com/llvm/llvm-project/commit/b08e86cb7f7368531c4c12502dc1bed78f3e19a1.diff L

[clang] [analyzer] MallocChecker – Fix false positive leak for smart pointers in temporary objects (PR #152751)

2025-08-10 Thread Ivan Murashko via cfe-commits
@@ -3068,11 +3111,174 @@ void MallocChecker::checkDeadSymbols(SymbolReaper &SymReaper, C.addTransition(state->set(RS), N); } +// Use isWithinStdNamespace from CheckerHelpers.h instead of custom +// implementation + +// Allowlist of owning smart pointers we want to recognize

[clang] [clang][bytecode] Move CheckExtern call into isAccessible() block (PR #152926)

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

[clang-tools-extra] [clangd] fix asserts on incompatible paths in CDB (PR #148019)

2025-08-10 Thread Dmitrii Sharshakov via cfe-commits
dsseng wrote: > I do think it would be good to have a test case for this; this is tricky code > (and probably also performance-sensitive), and walking through a test case > helps to think through the resulting behaviour. > > You can have a look at [this test > case](https://searchfox.org/llvm

[clang] [libc] [llvm] [AMDGPU] Use COV6 by default (PR #118515)

2025-08-10 Thread Jon Chesterfield via cfe-commits
JonChesterfield wrote: Do we document what rocm version introduces support for a given code object number anywhere? I've run into this because Debian's latest and greatest version is 6.1, https://packages.debian.org/sid/libhsa-runtime-dev, which does not know what v6 is. Or at least refuses t

[clang] [clang] [Sema] Implement CXXConstructExpr::getUnusedResultAttr (PR #152950)

2025-08-10 Thread via cfe-commits
https://github.com/halbi2 created https://github.com/llvm/llvm-project/pull/152950 This continues my patch series started as #142541 where multiple kinds of Expr all use the same getUnusedResultAttrImpl. The test suite indicates there is no change in behavior happening here. @Sirraide could yo

[clang] [clang] [Sema] Implement CXXConstructExpr::getUnusedResultAttr (PR #152950)

2025-08-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (halbi2) Changes This continues my patch series started as #142541 where multiple kinds of Expr all use the same getUnusedResultAttrImpl. The test suite indicates there is no change in behavior happening here. @Sirraide could you help

[libclc] [libclc] Fix libclc install on Windows when MSVC generator is used (PR #152703)

2025-08-10 Thread Wenju He via cfe-commits
https://github.com/wenju-he updated https://github.com/llvm/llvm-project/pull/152703 >From be71d635d2de980797be595c4f35f307c703bc96 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Fri, 8 Aug 2025 05:59:54 -0700 Subject: [PATCH 1/3] [libclc] Fix libclc install on Windows when MSVC generator is us

[clang] [clang-tools-extra] [clang]: Support `analyzer_noreturn` attribute in `CFG` (PR #150952)

2025-08-10 Thread Andrey Karlov via cfe-commits
https://github.com/negativ updated https://github.com/llvm/llvm-project/pull/150952 >From 417b4e465744f9a1d1704c87da4587626c9f5411 Mon Sep 17 00:00:00 2001 From: Andrey Karlov Date: Mon, 28 Jul 2025 16:23:21 +0300 Subject: [PATCH 1/2] Initial implementation --- .../bugprone/unchecked-optional

[clang-tools-extra] [clang-tidy] Fix `modernize-use-constraints` crash on uses of nonstandard `enable_if`s (PR #152938)

2025-08-10 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/152938 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

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

[clang-tools-extra] [clang-tidy] Fix `modernize-use-constraints` crash on uses of nonstandard `enable_if`s (PR #152938)

2025-08-10 Thread Victor Chernyakin via cfe-commits
@@ -78,6 +79,15 @@ matchEnableIfSpecializationImplTypename(TypeLoc TheType) { if (!TD || TD->getName() != "enable_if") return std::nullopt; +const TemplateParameterList *Params = TD->getTemplateParameters(); +if (Params->size() != 2) + return std::nullop

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

2025-08-10 Thread Baranov Victor via cfe-commits
@@ -33,6 +33,9 @@ If CMake is configured with ``CLANG_TIDY_ENABLE_STATIC_ANALYZER=NO``, :program:`clang-tidy` will not be built with support for the ``clang-analyzer-*`` checks or the ``mpi-*`` checks. +If CMake is configured with ``CLANG_TIDY_ENABLE_QUERY_BASED_CUSTOM_CHECKS

[clang-tools-extra] [clang-tidy] Fix `modernize-use-constraints` crash on uses of nonstandard `enable_if`s (PR #152938)

2025-08-10 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/152938 >From 728fc710260d529a604bf3692b18c9131061e070 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sun, 10 Aug 2025 12:25:26 -0700 Subject: [PATCH 1/2] [clang-tidy] Fix `modernize-use-constraints` crash on

[clang] [analyzer] MallocChecker – Fix false positive leak for smart pointers in temporary objects (PR #152751)

2025-08-10 Thread Ivan Murashko via cfe-commits
https://github.com/ivanmurashko updated https://github.com/llvm/llvm-project/pull/152751 >From 7d1c7000c7482f8d1ec1593b77a8f4a9456082ac Mon Sep 17 00:00:00 2001 From: Ivan Murashko Date: Fri, 8 Aug 2025 10:25:26 +0100 Subject: [PATCH 1/8] [clang-analyzer] Add regression test for PR60896 --- .

[clang] [analyzer] MallocChecker – Fix false positive leak for smart pointers in temporary objects (PR #152751)

2025-08-10 Thread Ivan Murashko via cfe-commits
@@ -3068,11 +3111,174 @@ void MallocChecker::checkDeadSymbols(SymbolReaper &SymReaper, C.addTransition(state->set(RS), N); } +// Use isWithinStdNamespace from CheckerHelpers.h instead of custom +// implementation + +// Allowlist of owning smart pointers we want to recognize

[clang] [analyzer] MallocChecker – Fix false positive leak for smart pointers in temporary objects (PR #152751)

2025-08-10 Thread Ivan Murashko via cfe-commits
@@ -3068,11 +3111,174 @@ void MallocChecker::checkDeadSymbols(SymbolReaper &SymReaper, C.addTransition(state->set(RS), N); } +// Use isWithinStdNamespace from CheckerHelpers.h instead of custom +// implementation + +// Allowlist of owning smart pointers we want to recognize

[libunwind] [Mips] Fixed libunwind::Registers_mips_o32::jumpto to allow for load delay (PR #152942)

2025-08-10 Thread Brad Smith via cfe-commits
brad0 wrote: cc @yingopq @wzssyqa @MaskRay https://github.com/llvm/llvm-project/pull/152942 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] Introduce -fexperimental-loop-fuse to clang and flang (PR #142686)

2025-08-10 Thread Madhur Amilkanthwar via cfe-commits
madhur13490 wrote: gg > Just in case: it's not "just after LoopInterchange", it's "before > LoopDeletion". If you want to run it just after LoopInterchange, please add > LoopFuse after adding `LPM` to `OptimizePM`. It might be better adding some > test to check the position. > Yes, realized

[clang] [flang] [llvm] Introduce -fexperimental-loop-fuse to clang and flang (PR #142686)

2025-08-10 Thread Madhur Amilkanthwar via cfe-commits
@@ -1671,6 +1671,11 @@ void CompilerInvocationBase::GenerateCodeGenArgs(const CodeGenOptions &Opts, else GenerateArg(Consumer, OPT_fno_loop_interchange); + if (Opts.FuseLoops) +GenerateArg(Consumer, OPT_fexperimental_loop_fusion); + else madhur134

[clang-tools-extra] [clang-tidy] Fix `modernize-use-constraints` crash on uses of nonstandard `enable_if`s (PR #152938)

2025-08-10 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/152938 >From 728fc710260d529a604bf3692b18c9131061e070 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sun, 10 Aug 2025 12:25:26 -0700 Subject: [PATCH 1/3] [clang-tidy] Fix `modernize-use-constraints` crash on

[clang] ([clang] unrecognized html tag causing undesirable comment lexing.) (PR #152944)

2025-08-10 Thread via cfe-commits
https://github.com/mdenson created https://github.com/llvm/llvm-project/pull/152944 Simple fix for this particular html tag. A more complete solution should be implemented. 1. Add all html tags to table so they are recognized. Some input on what is desirable/safe would be appreciated 2. Chan

[clang] ([clang] unrecognized html tag causing undesirable comment lexing.) (PR #152944)

2025-08-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (mdenson) Changes Simple fix for this particular html tag. A more complete solution should be implemented. 1. Add all html tags to table so they are recognized. Some input on what is desirable/safe would be appreciated 2. Change th

[clang] ([clang] unrecognized html tag causing undesirable comment lexing.) (PR #152944)

2025-08-10 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-tools-extra] [clang-tidy] Fix `modernize-use-constraints` crash on uses of nonstandard `enable_if`s (PR #152938)

2025-08-10 Thread Victor Chernyakin via cfe-commits
@@ -78,6 +79,15 @@ matchEnableIfSpecializationImplTypename(TypeLoc TheType) { if (!TD || TD->getName() != "enable_if") return std::nullopt; +const TemplateParameterList *Params = TD->getTemplateParameters(); +if (Params->size() != 2) + return std::nullop

[clang-tools-extra] [clang-tidy] Fix `modernize-use-constraints` crash on uses of nonstandard `enable_if`s (PR #152938)

2025-08-10 Thread Victor Chernyakin via cfe-commits
localspook wrote: Latest commit fixes `enable_if_t`, it also causes this crash https://github.com/llvm/llvm-project/pull/152938 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV] Fix crash on VLS calling convention (PR #145489)

2025-08-10 Thread Brandon Wu via cfe-commits
4vtomat wrote: Gentle ping~ https://github.com/llvm/llvm-project/pull/145489 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add initial support for atomic types (PR #152923)

2025-08-10 Thread Sirui Mu via cfe-commits
https://github.com/Lancern converted_to_draft https://github.com/llvm/llvm-project/pull/152923 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Move CheckExtern call into isAccessible() block (PR #152926)

2025-08-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes This is where it belongs, but it was accidentally left where it was. --- Full diff: https://github.com/llvm/llvm-project/pull/152926.diff 1 Files Affected: - (modified) clang/lib/AST/ByteCode/Interp.cpp (+

[clang] [clang][bytecode] Move CheckExtern call into isAccessible() block (PR #152926)

2025-08-10 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/152926 This is where it belongs, but it was accidentally left where it was. >From 4e4ebbbef763d310a337402b8394ce807f5805d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 10 Aug 2025 18:14:45

[clang] [clang][bytecode] Emit embed element casts directly (PR #152928)

2025-08-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes The element initializer is known to be an IntegerLiteral, the previous signature of the lambda just didn't specify that. So we can also do the cast directly instead of doing it via a Cast op. --- Full diff:

[clang] [clang][bytecode] Emit embed element casts directly (PR #152928)

2025-08-10 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/152928 The element initializer is known to be an IntegerLiteral, the previous signature of the lambda just didn't specify that. So we can also do the cast directly instead of doing it via a Cast op. >From 5b49bf6d78

[libunwind] [Mips] Fixed libunwind::Registers_mips_o32::jumpto to allow for load delay (PR #152942)

2025-08-10 Thread Jade Marker via cfe-commits
https://github.com/Jade-Marker created https://github.com/llvm/llvm-project/pull/152942 Fix #152922 Note: I'm unsure if this is necessary on mips64, I've added it for good measure though >From 0f460186012b377067d9e6ac58a2446453f5817b Mon Sep 17 00:00:00 2001 From: Jade Marker <57526179+jade-m

[libunwind] [Mips] Fixed libunwind::Registers_mips_o32::jumpto to allow for load delay (PR #152942)

2025-08-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libunwind Author: Jade Marker (Jade-Marker) Changes Fix #152922 Note: I'm unsure if this is necessary on mips64, I've added it for good measure though --- Full diff: https://github.com/llvm/llvm-project/pull/152942.diff 1 Files Affected: - (modifie

[libunwind] [Mips] Fixed libunwind::Registers_mips_o32::jumpto to allow for load delay (PR #152942)

2025-08-10 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] [clang] fix comment lexing of special command names (PR #152943)

2025-08-10 Thread via cfe-commits
https://github.com/mdenson created https://github.com/llvm/llvm-project/pull/152943 Comment lexer fails to parse non-alphanumeric names. I'm not sure how common this is, but it appears to be allowed by doxygen. However, I didn't see any references to exactly what was allowed. I expect breaking

[clang] [clang] fix comment lexing of special command names (PR #152943)

2025-08-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (mdenson) Changes Comment lexer fails to parse non-alphanumeric names. I'm not sure how common this is, but it appears to be allowed by doxygen. However, I didn't see any references to exactly what was allowed. I expect breaking on w

[clang] [clang] fix comment lexing of special command names (PR #152943)

2025-08-10 Thread via cfe-commits
https://github.com/mdenson updated https://github.com/llvm/llvm-project/pull/152943 >From 475d513b79339da73f322f9b7d14122f103998a5 Mon Sep 17 00:00:00 2001 From: Brock Denson Date: Wed, 6 Aug 2025 21:50:02 -0500 Subject: [PATCH] [clang] fix comment parsing of special commands with non-alphanum

[clang] [clang] fix comment lexing of special command names (PR #152943)

2025-08-10 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] [llvm] [RISC-V]Implement -m{,no}fence-tso (PR #151638)

2025-08-10 Thread Liao Chunyu via cfe-commits
ChunyuLiao wrote: Indeed, as jrtc27 said, GCC already supports this. There are cases where the firmware cannot be upgraded on certain hardware, so it might make sense for us to provide an option to accommodate these systems. When the hardware does not support fence.tso, fence rw, rw may faste

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-08-10 Thread Brandon Wu via cfe-commits
4vtomat wrote: Gentle ping~ https://github.com/llvm/llvm-project/pull/150724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Enable constexpr handling for __builtin_elementwise_fma (PR #152919)

2025-08-10 Thread Timm Baeder via cfe-commits
tbaederr wrote: What about integers and integer vectors? https://github.com/llvm/llvm-project/pull/152919 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] MallocChecker – Fix false positive leak for smart pointers in temporary objects (PR #152751)

2025-08-10 Thread Ivan Murashko via cfe-commits
https://github.com/ivanmurashko updated https://github.com/llvm/llvm-project/pull/152751 >From 7d1c7000c7482f8d1ec1593b77a8f4a9456082ac Mon Sep 17 00:00:00 2001 From: Ivan Murashko Date: Fri, 8 Aug 2025 10:25:26 +0100 Subject: [PATCH 1/7] [clang-analyzer] Add regression test for PR60896 --- .

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-10 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/152910 >From 2acdc563199b93b3a9f6d0a4ae4c8ef4f12d1c25 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 7 Aug 2025 20:54:16 +0700 Subject: [PATCH 1/4] [Headers][X86] Allow AVX512 _mm512_set* intrinsics

[clang] [clang] Enable constexpr handling for __builtin_elementwise_fma (PR #152919)

2025-08-10 Thread Chaitanya Koparkar via cfe-commits
https://github.com/ckoparkar updated https://github.com/llvm/llvm-project/pull/152919 >From 24139055908afd5d5f32c2ec975c5d831fa07174 Mon Sep 17 00:00:00 2001 From: Chaitanya Koparkar Date: Sat, 9 Aug 2025 07:18:20 -0400 Subject: [PATCH] [clang] Enable constexpr handling for __builtin_elementwi

[clang] [clang] Enable constexpr handling for __builtin_elementwise_fma (PR #152919)

2025-08-10 Thread Chaitanya Koparkar via cfe-commits
@@ -2320,6 +2330,65 @@ static bool interp__builtin_elementwise_sat(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_elementwise_fma(InterpState &S, CodePtr OpPC, +const CallExpr *Call) { + assert(Call->ge

[clang] [analyzer] MallocChecker – Fix false positive leak for smart pointers in temporary objects (PR #152751)

2025-08-10 Thread Ivan Murashko via cfe-commits
https://github.com/ivanmurashko updated https://github.com/llvm/llvm-project/pull/152751 >From 7d1c7000c7482f8d1ec1593b77a8f4a9456082ac Mon Sep 17 00:00:00 2001 From: Ivan Murashko Date: Fri, 8 Aug 2025 10:25:26 +0100 Subject: [PATCH 1/9] [clang-analyzer] Add regression test for PR60896 --- .

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-10 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut updated https://github.com/llvm/llvm-project/pull/152910 >From 2acdc563199b93b3a9f6d0a4ae4c8ef4f12d1c25 Mon Sep 17 00:00:00 2001 From: Bhasawut Singhaphan Date: Thu, 7 Aug 2025 20:54:16 +0700 Subject: [PATCH 1/4] [Headers][X86] Allow AVX512 _mm512_set* intrinsics

[clang] [analyzer] MallocChecker – Fix false positive leak for smart pointers in temporary objects (PR #152751)

2025-08-10 Thread Ivan Murashko via cfe-commits
@@ -0,0 +1,80 @@ +// RUN: %clang_analyze_cc1 -verify -analyzer-output=text %s \ +// RUN: -analyzer-checker=core \ +// RUN: -analyzer-checker=cplusplus \ +// RUN: -analyzer-checker=unix +// expected-no-diagnostics + +#include "Inputs/system-header-simulator-for-malloc.h" + +/

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Bhasawut Singhaphan (markbhasawut) Changes This PR adds constexpr support for the following AVX512F/BW/FP16 set intrinsics: - _mm512_set4_pd - _mm512_set4_ps - _mm512_set4_epi32 - _mm512_set4_epi64 - _mm512_set_pd - _mm512_set

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Bhasawut Singhaphan (markbhasawut) Changes This PR adds constexpr support for the following AVX512F/BW/FP16 set intrinsics: - _mm512_set4_pd - _mm512_set4_ps - _mm512_set4_epi32 - _mm512_set4_epi64 - _mm512_set_pd - _mm5

[clang] [Headers][X86] Allow AVX512 _mm512_set* intrinsics to be used in constexpr (PR #152910)

2025-08-10 Thread Bhasawut Singhaphan via cfe-commits
https://github.com/markbhasawut ready_for_review https://github.com/llvm/llvm-project/pull/152910 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Enable constexpr handling for __builtin_elementwise_fma (PR #152919)

2025-08-10 Thread Matt Arsenault via cfe-commits
@@ -141,6 +141,16 @@ static void diagnoseNonConstexprBuiltin(InterpState &S, CodePtr OpPC, S.CCEDiag(Loc, diag::note_invalid_subexpr_in_const_expr); } +// Same implementation as Compiler::getRoundingMode. +static llvm::RoundingMode getRoundingMode(const InterpState &S, co

[clang] Fix MSVC warning in CompilerInvocation.cpp (PR #152809)

2025-08-10 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-s390x-linux` running on `systemz-1` while building `clang` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/14920 Here is the relevant piece of the build log f

[clang] [clang-tools-extra] [clang-tidy] Avoid matching nodes in system headers (PR #151035)

2025-08-10 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: I will leave the patch open one more week before landing in case there's more feedback, thank you! https://github.com/llvm/llvm-project/pull/151035 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi

[clang] [clang] Enable constexpr handling for __builtin_elementwise_fma (PR #152919)

2025-08-10 Thread Chaitanya Koparkar via cfe-commits
ckoparkar wrote: > What about integers and integer vectors? I believe `__builtin_elementwise_fma` only accepts direct floating point numbers and vectors of floating point numbers as arguments, so we don't need to handle integers. https://github.com/llvm/llvm-project/pull/152919 __

[clang-tools-extra] [clang-tidy] Fix `modernize-use-constraints` crash on uses of nonstandard `enable_if`s (PR #152938)

2025-08-10 Thread Baranov Victor via cfe-commits
@@ -136,6 +136,11 @@ Changes in existing checks - Improved :doc:`misc-header-include-cycle ` check performance. +- Fixed a :doc:`modernize-use-constraints + ` crash on uses of + nonstandard ``enable_if``s with a signature different from vbvictor wrote: ``

[clang-tools-extra] [clang-tidy] Fix `modernize-use-constraints` crash on uses of nonstandard `enable_if`s (PR #152938)

2025-08-10 Thread Baranov Victor via cfe-commits
@@ -78,6 +79,15 @@ matchEnableIfSpecializationImplTypename(TypeLoc TheType) { if (!TD || TD->getName() != "enable_if") return std::nullopt; +const TemplateParameterList *Params = TD->getTemplateParameters(); +if (Params->size() != 2) + return std::nullop

[clang-tools-extra] [clang-tidy] Fix `modernize-use-constraints` crash on uses of nonstandard `enable_if`s (PR #152938)

2025-08-10 Thread Baranov Victor via cfe-commits
@@ -136,6 +136,11 @@ Changes in existing checks - Improved :doc:`misc-header-include-cycle ` check performance. +- Fixed a :doc:`modernize-use-constraints + ` crash on uses of + nonstandard ``enable_if``s with a signature different from + ``std::enable_if`` (such as ``boo

[clang-tools-extra] [clang-tidy] Fix `modernize-use-constraints` crash on uses of nonstandard `enable_if`s (PR #152938)

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

[clang] [clang][bytecode] Avoid a getValue() call in builtin_isinf (PR #152939)

2025-08-10 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/152939 Get the APFloat once and work with that, instead of calling isInf() and potentially isNegative(). >From a9644453abe231e3b5485957ea26aeb75de9ef3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Da

[clang] [clang][bytecode] Avoid a getValue() call in builtin_isinf (PR #152939)

2025-08-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Get the APFloat once and work with that, instead of calling isInf() and potentially isNegative(). --- Full diff: https://github.com/llvm/llvm-project/pull/152939.diff 1 Files Affected: - (modified) clang/

[clang] [analyzer] MallocChecker – Fix false positive leak for smart pointers in temporary objects (PR #152751)

2025-08-10 Thread Ivan Murashko via cfe-commits
https://github.com/ivanmurashko edited https://github.com/llvm/llvm-project/pull/152751 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix MSVC warning in CompilerInvocation.cpp (PR #152809)

2025-08-10 Thread Daniel Paoliello via cfe-commits
https://github.com/dpaoliello closed https://github.com/llvm/llvm-project/pull/152809 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 59f31d4 - Fix MSVC warning in CompilerInvocation.cpp (#152809)

2025-08-10 Thread via cfe-commits
Author: Daniel Paoliello Date: 2025-08-10T11:19:12-07:00 New Revision: 59f31d4e8df8cc35c816c05f2c653ca29e9a276e URL: https://github.com/llvm/llvm-project/commit/59f31d4e8df8cc35c816c05f2c653ca29e9a276e DIFF: https://github.com/llvm/llvm-project/commit/59f31d4e8df8cc35c816c05f2c653ca29e9a276e.di

[clang] [Clang] Always pass detected CUDA path to 'clang-nvlink-wrapper' (PR #152789)

2025-08-10 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/152789 >From b36335f136ea0ce1a29f9962d8a9b5575162a450 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Fri, 8 Aug 2025 15:26:31 -0500 Subject: [PATCH] [Clang] Always pass detected CUDA path to 'clang-nvlink-wrapper'

[clang-tools-extra] [clang-tidy] support query based custom check (PR #131804)

2025-08-10 Thread Congcong Cai via cfe-commits
@@ -33,6 +33,9 @@ If CMake is configured with ``CLANG_TIDY_ENABLE_STATIC_ANALYZER=NO``, :program:`clang-tidy` will not be built with support for the ``clang-analyzer-*`` checks or the ``mpi-*`` checks. +If CMake is configured with ``CLANG_TIDY_ENABLE_QUERY_BASED_CUSTOM_CHECKS

[libclc] [libclc] Fix libclc install on Windows when MSVC generator is used (PR #152703)

2025-08-10 Thread Wenju He via cfe-commits
wenju-he wrote: > LGTM if you've tested it and it works 👍 Yes, the fix is verified both locally and in our internal CI. I also fixed alias install in https://github.com/llvm/llvm-project/pull/152703/commits/b6cbefcbc06e42d7107723cb5b37749f3b1e0931. @frasercrmck please review this commit again

[clang-tools-extra] [clang-tidy] performance-unnecessary-copy-initialization: Enhance the check for the scenario with MemberExpr initialization. (PR #151936)

2025-08-10 Thread Victor Chernyakin via cfe-commits
@@ -371,6 +392,21 @@ void UnnecessaryCopyInitialization::diagnoseCopyFromLocalVar( maybeIssueFixes(Ctx, Diagnostic); } +void UnnecessaryCopyInitialization::diagnoseCopyFromConstVarMember( +const CheckContext &Ctx, const VarDecl &OldVar, const MemberExpr &ME) { + std::s

[clang-tools-extra] [clang-tidy] performance-unnecessary-copy-initialization: Enhance the check for the scenario with MemberExpr initialization. (PR #151936)

2025-08-10 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/151936 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add SpacemiT XSMTVDot (SpacemiT Vector Dot Product) extension. (PR #151706)

2025-08-10 Thread Luke Lau via cfe-commits
@@ -0,0 +1,141 @@ +//===-- RISCVInstrInfoXSMTVDot.td --*- tablegen -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] [AVR] Fix Avr indvar detection and strength reduction (missed optimization) (PR #152028)

2025-08-10 Thread Tom Vijlbrief via cfe-commits
tomtor wrote: FYI, the code generation regression is no longer in current nigthly, it was only in 2025-08-07. The day I was testing this PR :( Bad timing... ``` searched toolchains ec7c02612527d185c379900b613311bc1dcbf7dc through 7d82b83ed57d188ab3f2441a765a6419685a88a3

[clang] [Clang] Remove redundant check for scoped enums in shift operators (PR #152865)

2025-08-10 Thread Timothy Choi via cfe-commits
tinnamchoi wrote: I prefer keeping my PRs atomic. All of my changes in that PR are necessary towards the primary goal of that PR, whereas this change wouldn't be. If I allowed myself to make refactors whenever I'm working on a feature it would introduce quite a bit of noise, which seems like a

[clang] [Clang] Remove redundant check for scoped enums in shift operators (PR #152865)

2025-08-10 Thread via cfe-commits
Sirraide wrote: > I prefer keeping my PRs atomic. All of my changes in that PR are necessary > towards the primary goal of that PR, whereas this change wouldn't be. If I > allowed myself to make refactors whenever I'm working on a feature it would > introduce quite a bit of noise, which seems

  1   2   >