[clang] Fix Issue where libclang Does Not Include Standard Compiler Specific Headers (PR #153746)

2025-08-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Fristender (Fristender) Changes As discussed in https://github.com/llvm/llvm-project/issues/54626, sometimes libclang is compiled without the standard compiler-specific headers. This results in the libclang python bindings consistently no

[clang] Fix Issue where libclang Does Not Include Standard Compiler Specific Headers (PR #153746)

2025-08-14 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] Fix Issue where libclang Does Not Include Standard Compiler Specific Headers (PR #153667)

2025-08-14 Thread via cfe-commits
Fristender wrote: Accidentally used main branch. closing. https://github.com/llvm/llvm-project/pull/153667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix Issue where libclang Does Not Include Standard Compiler Specific Headers (PR #153667)

2025-08-14 Thread via cfe-commits
https://github.com/Fristender closed https://github.com/llvm/llvm-project/pull/153667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix Issue where libclang Does Not Include Standard Compiler Specific Headers (PR #153746)

2025-08-14 Thread via cfe-commits
https://github.com/Fristender created https://github.com/llvm/llvm-project/pull/153746 As discussed in https://github.com/llvm/llvm-project/issues/54626, sometimes libclang is compiled without the standard compiler-specific headers. This results in the libclang python bindings consistently not

[clang] [Clang][Bytecode][NFS] Init Semantics non-static member of class Floating (PR #153671)

2025-08-14 Thread Timm Baeder via cfe-commits
tbaederr wrote: This was on purpose, see https://github.com/llvm/llvm-project/pull/144246#discussion_r2149988969 https://github.com/llvm/llvm-project/pull/153671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/ma

[clang] [clang-tools-extra] [flang] [lld] [llvm] [LLVM][utils] Add script which clears release notes (PR #153593)

2025-08-14 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis updated https://github.com/llvm/llvm-project/pull/153593 >From 1fdf80aac85fdade340ac8ae17519a0b4d68d0f7 Mon Sep 17 00:00:00 2001 From: Yanzuo Liu Date: Thu, 14 Aug 2025 23:01:41 +0800 Subject: [PATCH 1/3] Add script to clear release notes --- clang-tools-extra/docs/Re

[clang] [llvm] [X86][APX] Remove CF feature from APXF and Diamond Rapids (PR #153751)

2025-08-14 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang created https://github.com/llvm/llvm-project/pull/153751 Due to it results in more losses than gains. >From 155a039f02a9dcabeae70ac4ff9438bdc3357d41 Mon Sep 17 00:00:00 2001 From: "Wang, Phoebe" Date: Fri, 15 Aug 2025 14:18:20 +0800 Subject: [PATCH] [X86][APX] Rem

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

2025-08-14 Thread Shamshura Egor via cfe-commits
egorshamshura wrote: > I am mostly afk, I will look at this over the weekend. > maybe @AaronBallman can help ping 🥺 https://github.com/llvm/llvm-project/pull/152488 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[clang] [clang-tools-extra] [flang] [lld] [llvm] [LLVM][utils] Add script which clears release notes (PR #153593)

2025-08-14 Thread Tobias Hieta via cfe-commits
tru wrote: Hi this is great! Thanks for doing this. There are some things that might need to happen in libc++ as well. Is that something we can automate in this script @ldionne @philnik777 ? https://github.com/llvm/llvm-project/pull/153593 ___ cfe-co

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

2025-08-14 Thread via cfe-commits
@@ -531,6 +531,9 @@ The current vendor extensions supported are: ``XAndesVDot`` LLVM implements `version 5.0.0 of the Andes Vector Dot Product Extension specification

[clang] [llvm] [X86][APX] Remove CF feature from APXF and Diamond Rapids (PR #153751)

2025-08-14 Thread Shengchen Kan via cfe-commits
KanRobert wrote: Update description? Due to it results in more losses than gains. -> Due to it results in more losses than gains w/o HWPGO. https://github.com/llvm/llvm-project/pull/153751 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

[clang] [llvm] [X86][APX] Remove CF feature from APXF and Diamond Rapids (PR #153751)

2025-08-14 Thread Shengchen Kan via cfe-commits
https://github.com/KanRobert approved this pull request. https://github.com/llvm/llvm-project/pull/153751 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Remove duplicate __v8hu, NFCI (PR #153734)

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

[clang] [NFC][Clang][Docs] Update Pointer Authentication documentation (PR #152596)

2025-08-14 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/152596 >From 8776323a7ef1dd625f1fbd02fab912a2dc8e2081 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Thu, 7 Aug 2025 13:42:48 -0700 Subject: [PATCH 1/4] [NFC][Clang][Docs] Update Pointer Authentication documentation

[clang-tools-extra] [clangd] Add feature modules registry (PR #153756)

2025-08-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Aleksandr Platonov (ArcsinX) Changes This patch adds feature modules registry, as discussed with @kadircet in [discourse](https://discourse.llvm.org/t/rfc-registry-for-feature-modules/87733). Feature modules. which added into the feature

[clang-tools-extra] [clangd] Add feature modules registry (PR #153756)

2025-08-14 Thread Aleksandr Platonov via cfe-commits
https://github.com/ArcsinX created https://github.com/llvm/llvm-project/pull/153756 This patch adds feature modules registry, as discussed with @kadircet in [discourse](https://discourse.llvm.org/t/rfc-registry-for-feature-modules/87733). Feature modules. which added into the feature module set

[clang] [llvm] [X86][APX] Remove CF feature from APXF and Diamond Rapids (PR #153751)

2025-08-14 Thread Phoebe Wang via cfe-commits
phoebewang wrote: > Update description? > > Due to it results in more losses than gains. -> Due to it results in more > losses than gains w/o HWPGO. I assume HWPGO is not mature enough. https://github.com/llvm/llvm-project/pull/153751 ___ cfe-commit

[clang-tools-extra] [clangd] Add feature modules registry (PR #153756)

2025-08-14 Thread Aleksandr Platonov via cfe-commits
https://github.com/ArcsinX edited https://github.com/llvm/llvm-project/pull/153756 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] Precommit test for issue #149512 (PR #153541)

2025-08-14 Thread via cfe-commits
https://github.com/Ami-zhang created https://github.com/llvm/llvm-project/pull/153541 None >From 106481dbfb72200f9091f8eee4f36bbefb9bdc37 Mon Sep 17 00:00:00 2001 From: Ami-zhang Date: Thu, 14 Aug 2025 11:08:26 +0800 Subject: [PATCH] [NFC] Precommit test for issue #149512 --- clang/test/Code

[clang] [NFC] Precommit test for issue #149512 (PR #153541)

2025-08-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Ami-zhang) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/153541.diff 1 Files Affected: - (added) clang/test/CodeGen/LoongArch/targetattr-lasx.c (+16) ``diff diff --git a/clang/test/CodeGen/LoongArch/

[clang] [clang][LoongArch] Ensure `target("lasx")` implies LSX support (PR #153542)

2025-08-14 Thread via cfe-commits
https://github.com/Ami-zhang created https://github.com/llvm/llvm-project/pull/153542 Currently, `__attribute__((target("lasx")))` does not automatically enable LSX support, causing Clang to fail with `-mno-lsx`. Since LASX depends on LSX, enabling LASX should implicitly enable LSX to avoid clan

[clang] [clang][LoongArch] Ensure `target("lasx")` implies LSX support (PR #153542)

2025-08-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Ami-zhang) Changes Currently, `__attribute__((target("lasx")))` does not automatically enable LSX support, causing Clang to fail with `-mno-lsx`. Since LASX depends on LSX, enabling LASX should implicitly enable LSX to avoid clang err

[clang] [clang][LoongArch] Ensure `target("lasx")` implies LSX support (PR #153542)

2025-08-14 Thread via cfe-commits
https://github.com/Ami-zhang edited https://github.com/llvm/llvm-project/pull/153542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-14 Thread via cfe-commits
https://github.com/mcbarton updated https://github.com/llvm/llvm-project/pull/150977 >From 43da46e79877361fce099ccbcf84745493c8cfa5 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbar...@users.noreply.github.com> Date: Mon, 28 Jul 2025 16:33:29 +0100 Subject: [PATCH 1/6] Enable running Cla

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-14 Thread via cfe-commits
https://github.com/mcbarton updated https://github.com/llvm/llvm-project/pull/150977 >From 43da46e79877361fce099ccbcf84745493c8cfa5 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbar...@users.noreply.github.com> Date: Mon, 28 Jul 2025 16:33:29 +0100 Subject: [PATCH 1/7] Enable running Cla

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-14 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions h,cpp -- clang/unittests/Interpreter/CodeCompletionTest.cpp

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-14 Thread via cfe-commits
https://github.com/mcbarton updated https://github.com/llvm/llvm-project/pull/150977 >From 43da46e79877361fce099ccbcf84745493c8cfa5 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbar...@users.noreply.github.com> Date: Mon, 28 Jul 2025 16:33:29 +0100 Subject: [PATCH 1/8] Enable running Cla

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-14 Thread via cfe-commits
https://github.com/mcbarton updated https://github.com/llvm/llvm-project/pull/150977 >From 43da46e79877361fce099ccbcf84745493c8cfa5 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbar...@users.noreply.github.com> Date: Mon, 28 Jul 2025 16:33:29 +0100 Subject: [PATCH 1/9] Enable running Cla

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-14 Thread Anutosh Bhat via cfe-commits
anutosh491 wrote: Could you squash the commits into few meaningful ones ? https://github.com/llvm/llvm-project/pull/150977 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-14 Thread via cfe-commits
https://github.com/mcbarton updated https://github.com/llvm/llvm-project/pull/150977 >From 43da46e79877361fce099ccbcf84745493c8cfa5 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbar...@users.noreply.github.com> Date: Mon, 28 Jul 2025 16:33:29 +0100 Subject: [PATCH 01/10] Enable running C

[clang] [Clang] Do not consider a variadic function ellipsis part of a default arg (PR #153496)

2025-08-14 Thread Mariya Podchishchaeva via cfe-commits
@@ -206,6 +206,8 @@ Bug Fixes to C++ Support casts that are guaranteed to fail (#GH137518). - Fix bug rejecting partial specialization of variable templates with auto NTTPs (#GH118190). - Fix a crash when using ``explicit(bool)`` in pre-C++11 language modes. (#GH152729) +-

[clang] [Clang] Do not consider a variadic function ellipsis part of a default arg (PR #153496)

2025-08-14 Thread Mariya Podchishchaeva via cfe-commits
@@ -6,3 +6,15 @@ void f(...) { } void h(int n..., int m); // expected-error {{expected ')'}} expected-note {{to match}} + + +namespace GH153445 { +void f(int = {}...); + +struct S { + void f(int = {}...); + void g(int...); +}; + +void S::g(int = {}...) {} F

[clang] [Clang][NFC] Clarify some SourceManager related code (PR #153527)

2025-08-14 Thread Mariya Podchishchaeva via cfe-commits
@@ -1095,6 +1095,8 @@ prepareAndFilterRanges(const SmallVectorImpl &Ranges, unsigned StartColumn = SM.getExpansionColumnNumber(Begin); unsigned EndColumn = SM.getExpansionColumnNumber(End); +assert(StartColumn && "StartColumn has a value of 0"); F

[clang] [Headers][X86] Allow AVX2/AVX512 broadcast intrinsics to be used in Constexpr (PR #153363)

2025-08-14 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/153363 >From 614af4a5e03568205e52e01007f5c84b65c520ff Mon Sep 17 00:00:00 2001 From: Ye Tian <939808...@qq.com> Date: Wed, 13 Aug 2025 15:26:48 +0800 Subject: [PATCH] [Headers][X86] Allow AVX2/AVX512 broadcast intrinsic

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-14 Thread via cfe-commits
https://github.com/mcbarton updated https://github.com/llvm/llvm-project/pull/150977 >From 43da46e79877361fce099ccbcf84745493c8cfa5 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbar...@users.noreply.github.com> Date: Mon, 28 Jul 2025 16:33:29 +0100 Subject: [PATCH 1/6] Enable running Cla

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-14 Thread via cfe-commits
https://github.com/mcbarton updated https://github.com/llvm/llvm-project/pull/150977 >From 43da46e79877361fce099ccbcf84745493c8cfa5 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbar...@users.noreply.github.com> Date: Mon, 28 Jul 2025 16:33:29 +0100 Subject: [PATCH 1/6] Enable running Cla

[clang] [OpenCLCpp] Avoid inferred adding address-space to function types (PR #153508)

2025-08-14 Thread via cfe-commits
piotrrak wrote: Should wait #153459 to make enabling `SemaCXX/type-traits.cpp` possible. https://github.com/llvm/llvm-project/pull/153508 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [OpenCLCpp] Avoid inferred adding address-space to function types (PR #153508)

2025-08-14 Thread via cfe-commits
https://github.com/piotrrak edited https://github.com/llvm/llvm-project/pull/153508 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Fix bordering tokens wrong order (PR #153179)

2025-08-14 Thread via cfe-commits
https://github.com/timon-ul closed https://github.com/llvm/llvm-project/pull/153179 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-14 Thread via cfe-commits
https://github.com/mcbarton updated https://github.com/llvm/llvm-project/pull/150977 >From 43da46e79877361fce099ccbcf84745493c8cfa5 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbar...@users.noreply.github.com> Date: Mon, 28 Jul 2025 16:33:29 +0100 Subject: [PATCH 1/7] Enable running Cla

[clang] [clang][Sema] Diagnose passing function pointer to `__builtin_assume_aligned` (PR #153552)

2025-08-14 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/153552 The first parameter of the builtin is `const void *`, and function pointers aren't convertible to that. [GCC diagnoses this](https://godbolt.org/z/67njxGE61). >From 63c02556bc65571a84e27debde2e2cfd724a0e9b

[clang] [clang][Sema] Diagnose passing function pointer to `__builtin_assume_aligned` (PR #153552)

2025-08-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Victor Chernyakin (localspook) Changes The first parameter of the builtin is `const void *`, and function pointers aren't convertible to that. [GCC diagnoses this](https://godbolt.org/z/67njxGE61). --- Full diff: https://github.com/llvm/

[clang] Thread Safety Analysis: Basic capability alias-analysis (PR #142955)

2025-08-14 Thread Marco Elver via cfe-commits
https://github.com/melver updated https://github.com/llvm/llvm-project/pull/142955 >From dc3e720da86ecee117604f54058036e0701026e2 Mon Sep 17 00:00:00 2001 From: Marco Elver Date: Wed, 21 May 2025 23:49:48 +0200 Subject: [PATCH] Thread Safety Analysis: Basic capability alias-analysis Add basic

[clang] Thread Safety Analysis: Basic capability alias-analysis (PR #142955)

2025-08-14 Thread Marco Elver via cfe-commits
@@ -7546,6 +7546,15 @@ void testRecursiveAssign() { f->mu.Unlock(); } +// A strange pattern that no sane person should write... +void testStrangePattern(Mutex *&out, int &x) { melver wrote: Good point - I've dropped the translateCXXNewExpr() patch for now.

[clang] Thread Safety Analysis: Basic capability alias-analysis (PR #142955)

2025-08-14 Thread Marco Elver via cfe-commits
melver wrote: Dropped the translateCXXNewExpr() patch for now. > This looks good to me now, but you'll need the current maintainers to sign > off on it. :-) Thank you for the review! https://github.com/llvm/llvm-project/pull/142955 ___ cfe-commits m

[clang] [clang][LoongArch] Ensure `target("lasx")` implies LSX support (PR #153542)

2025-08-14 Thread Lu Weining via cfe-commits
@@ -460,7 +460,12 @@ LoongArchTargetInfo::parseTargetAttr(StringRef Features) const { break; case AttrFeatureKind::Feature: - Ret.Features.push_back("+" + Value.str()); + if (Value == "lasx") { +Ret.Features.push_back("+lasx"); +Ret.Feature

[clang] Thread Safety Analysis: Basic capability alias-analysis (PR #142955)

2025-08-14 Thread Marco Elver via cfe-commits
https://github.com/melver updated https://github.com/llvm/llvm-project/pull/142955 >From 309bc5281a0c781a19f361fdd958a715a5eb9148 Mon Sep 17 00:00:00 2001 From: Marco Elver Date: Wed, 21 May 2025 23:49:48 +0200 Subject: [PATCH] Thread Safety Analysis: Basic capability alias-analysis Add basic

[clang] [NFC] Precommit test for issue #149512 (PR #153541)

2025-08-14 Thread Lu Weining via cfe-commits
SixWeining wrote: To avoid frequent test updates due to unrelated compiler changes in the future, I tend to only check function attributes: `"target-features"="+64bit,+lasx,-lsx"`. https://github.com/llvm/llvm-project/pull/153541 _

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-14 Thread via cfe-commits
https://github.com/mcbarton updated https://github.com/llvm/llvm-project/pull/150977 >From 43da46e79877361fce099ccbcf84745493c8cfa5 Mon Sep 17 00:00:00 2001 From: mcbarton <150042563+mcbar...@users.noreply.github.com> Date: Mon, 28 Jul 2025 16:33:29 +0100 Subject: [PATCH 1/8] Enable running Cla

[clang] [clang] constexpr `__builtin_elementwise_abs` support (PR #152497)

2025-08-14 Thread Iris Shi via cfe-commits
https://github.com/el-ev edited https://github.com/llvm/llvm-project/pull/152497 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] constexpr `__builtin_elementwise_abs` support (PR #152497)

2025-08-14 Thread Iris Shi via cfe-commits
@@ -115,6 +115,8 @@ Non-comprehensive list of changes in this release - - Added ``__builtin_elementwise_fshl`` and ``__builtin_elementwise_fshr``. +- Added `__builtin_elementwise_abs`. el-ev wrote: It's not "Add

[clang] Claiming support for groupprivate and variable-category (PR #153553)

2025-08-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Ritanya-B-Bharadwaj) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/153553.diff 1 Files Affected: - (modified) clang/docs/OpenMPSupport.rst (+4) ``diff diff --git a/clang/docs/OpenMPSupport.rst b/clan

[clang] [clang] constexpr `__builtin_elementwise_abs` support (PR #152497)

2025-08-14 Thread Iris Shi via cfe-commits
https://github.com/el-ev requested changes to this pull request. Looks mostly good, with some nits. https://github.com/llvm/llvm-project/pull/152497 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] [Headers][X86] Allow AVX2/AVX512 broadcast intrinsics to be used in Constexpr (PR #153363)

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

[clang] Claiming support for groupprivate and variable-category (PR #153553)

2025-08-14 Thread via cfe-commits
https://github.com/Ritanya-B-Bharadwaj created https://github.com/llvm/llvm-project/pull/153553 None >From 13b98f7daaf72b16e0c0a3a9e9d408a25f3f28fc Mon Sep 17 00:00:00 2001 From: Ritanya B Bharadwaj Date: Thu, 14 Aug 2025 03:15:21 -0500 Subject: [PATCH] Claiming support for groupprivate and va

[clang] [clang] constexpr `__builtin_elementwise_abs` support (PR #152497)

2025-08-14 Thread Iris Shi via cfe-commits
@@ -11634,11 +11634,40 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) { APValue(APSInt(Elt.reverseBits(), DestEltTy->isUnsignedIntegerOrEnumerationType(; break; + case Builtin::BI__builtin_elementwise_abs:

[clang] [clang] constexpr `__builtin_elementwise_abs` support (PR #152497)

2025-08-14 Thread via cfe-commits
https://github.com/Mr-Anyone updated https://github.com/llvm/llvm-project/pull/152497 >From b48993d25136a769b3b7bf8e8730be1a92ace067 Mon Sep 17 00:00:00 2001 From: Vincent Date: Thu, 7 Aug 2025 00:24:55 +0800 Subject: [PATCH 1/3] [clang] constexpr __builtin_elementwise_abs support Added consta

[clang] [clang][driver] Improve warning message for complex range overrides and GCC incompatibility (PR #149028)

2025-08-14 Thread Shunsuke Watanabe via cfe-commits
s-watanabe314 wrote: Thank you for agreeing! I'll post a patch to fix only the overriding warnings around next week. https://github.com/llvm/llvm-project/pull/149028 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bi

[clang] [Headers][X86] Allow AVX2/AVX512 broadcast intrinsics to be used in Constexpr (PR #153363)

2025-08-14 Thread via cfe-commits
TianYe717 wrote: > LGTM - cheers Thanks for the review! Since I don't have merge permissions, could you please help merge this PR? https://github.com/llvm/llvm-project/pull/153363 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-14 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/150977 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b24b8a5 - Enable running ClangReplInterpreterTests in an Emscripten environment (#150977)

2025-08-14 Thread via cfe-commits
Author: mcbarton Date: 2025-08-14T14:07:13+05:30 New Revision: b24b8a5bb4053795e88064f22924ea4788fd9d31 URL: https://github.com/llvm/llvm-project/commit/b24b8a5bb4053795e88064f22924ea4788fd9d31 DIFF: https://github.com/llvm/llvm-project/commit/b24b8a5bb4053795e88064f22924ea4788fd9d31.diff LOG:

[clang] [llvm] Enable running ClangReplInterpreterTests in an Emscripten environment (PR #150977)

2025-08-14 Thread Anutosh Bhat via cfe-commits
https://github.com/anutosh491 closed https://github.com/llvm/llvm-project/pull/150977 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] constexpr `__builtin_elementwise_abs` support (PR #152497)

2025-08-14 Thread via cfe-commits
@@ -11634,11 +11634,40 @@ bool VectorExprEvaluator::VisitCallExpr(const CallExpr *E) { APValue(APSInt(Elt.reverseBits(), DestEltTy->isUnsignedIntegerOrEnumerationType(; break; + case Builtin::BI__builtin_elementwise_abs:

[clang] 44e6bc6 - [Headers][X86] Allow AVX2/AVX512 broadcast intrinsics to be used in Constexpr (#153363)

2025-08-14 Thread via cfe-commits
Author: TianYe Date: 2025-08-14T09:40:11+01:00 New Revision: 44e6bc6fc0e447fd186553ec2f8014f4096e433f URL: https://github.com/llvm/llvm-project/commit/44e6bc6fc0e447fd186553ec2f8014f4096e433f DIFF: https://github.com/llvm/llvm-project/commit/44e6bc6fc0e447fd186553ec2f8014f4096e433f.diff LOG: [

[clang] [Headers][X86] Allow AVX2/AVX512 broadcast intrinsics to be used in Constexpr (PR #153363)

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

[clang] [Headers][X86] Allow AVX2/AVX512 broadcast intrinsics to be used in Constexpr (PR #153363)

2025-08-14 Thread via cfe-commits
github-actions[bot] wrote: @TianYe717 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 buil

[clang] [Clang][X86] Add avx512 __builtin_ia32_select* constexpr handling (PR #152705)

2025-08-14 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/152705 >From ceff5091174b9565818d1bb4d420e1f9fd7c843f Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 8 Aug 2025 13:47:58 +0100 Subject: [PATCH 1/2] [Clang][X86] Add avx512 __builtin_ia32_select* constexpr han

[clang] [llvm] [NVPTX] Consolidate and cleanup various NVPTXISD nodes (NFC) (PR #145581)

2025-08-14 Thread Thomas Raoux via cfe-commits
ThomasRaoux wrote: @AlexMaclean, this PR doesn't seem to be NFC. This generates different PTX than before. In particular I see extra `mov.b32 %r, global_smem;` that seem to generate different sass and causes regressions in some Triton workloads. Before this PR I would only have one of thos

[clang] [clang] constexpr `__builtin_elementwise_abs` support (PR #152497)

2025-08-14 Thread via cfe-commits
@@ -66,7 +66,7 @@ void test_builtin_elementwise_abs(float f1, float f2, double d1, double d2, // CHECK-NEXT: call i32 @llvm.abs.i32(i32 [[IA1]], i1 false) b = __builtin_elementwise_abs(int_as_one); - // CHECK: call i32 @llvm.abs.i32(i32 -10, i1 false) + // CHECK: st

[clang] [OpenCLCpp] Avoid inferred adding address-space to function types (PR #153508)

2025-08-14 Thread via cfe-commits
https://github.com/piotrrak updated https://github.com/llvm/llvm-project/pull/153508 >From 7e6c169841ca612e01ca39e9f85ac4f87cf7c9d4 Mon Sep 17 00:00:00 2001 From: Piotr Rak Date: Wed, 13 Aug 2025 22:00:22 +0200 Subject: [PATCH 1/2] [OpenCLCpp] Avoid inferred adding address-space to function ty

[clang] [clang] fix skipped parsing of late parsed attributes (PR #153558)

2025-08-14 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/153558 Fixes some situations where late parsed attributes on functions are skipped, such as: * With function try blocks. * Error recovery when parsing out-of-line constructor definitions * When skipping parsing of fu

[clang] [clang] fix skipped parsing of late parsed attributes (PR #153558)

2025-08-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matheus Izvekov (mizvekov) Changes Fixes some situations where late parsed attributes on functions are skipped, such as: * With function try blocks. * Error recovery when parsing out-of-line constructor definitions * When skipping parsing

[clang] [clang][Sema] Fix the continue and break scope for while loops (PR #152606)

2025-08-14 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/152606 >From 467f72d8e2e7f3abbd6824433172fddcd24a771e Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Thu, 7 Aug 2025 15:29:51 -0700 Subject: [PATCH 1/3] [clang][Sema] Fix the continue and break scope for while loops

[clang] [clang][Sema] Fix the continue and break scope for while loops (PR #152606)

2025-08-14 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt converted_to_draft https://github.com/llvm/llvm-project/pull/152606 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Fix the continue and break scope for while loops (PR #152606)

2025-08-14 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions cpp,c -- clang/test/Sema/loop-condition-continue-scopes.c cl

[clang] [clang][Sema] Fix the continue and break scope for while loops (PR #152606)

2025-08-14 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Actually pushing the codegen changes, but I found test failures when I ran the full test suite which means I'm concerned about the exact semantics. Given those failures I'm going to make this a draft again until I can spend enough time to be more sure about the full semantic and

[clang] [clang] fix skipped parsing of late parsed attributes (PR #153558)

2025-08-14 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/153558 >From df04a9ce63110b6cdcbfb491eb69715673a9 Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Thu, 14 Aug 2025 05:23:50 -0300 Subject: [PATCH] [clang] fix skipped parsing of late parsed attributes Fixes

[libclc] [NFC][libclc] add missing __CLC_ prefix all internal macros (PR #153523)

2025-08-14 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck approved this pull request. https://github.com/llvm/llvm-project/pull/153523 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

2025-08-14 Thread Lukas Döllerer via cfe-commits
@@ -440,6 +452,42 @@ void WebAssemblyAsmPrinter::emitEndOfAsmFile(Module &M) { EmitProducerInfo(M); EmitTargetFeatures(M); EmitFunctionAttributes(M); + + // Subtarget may be null if no functions have been defined in file + if (Subtarget && Subtarget->hasBranchHinting())

[clang] [clang] constexpr `__builtin_elementwise_abs` support (PR #152497)

2025-08-14 Thread Iris Shi via cfe-commits
https://github.com/el-ev edited https://github.com/llvm/llvm-project/pull/152497 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] constexpr `__builtin_elementwise_abs` support (PR #152497)

2025-08-14 Thread Iris Shi via cfe-commits
https://github.com/el-ev approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/152497 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] Precommit test for issue #149512 (PR #153541)

2025-08-14 Thread via cfe-commits
https://github.com/Ami-zhang updated https://github.com/llvm/llvm-project/pull/153541 >From 0a2cb6eb1140bdcdba9f3b8d526b4b005ad62637 Mon Sep 17 00:00:00 2001 From: Ami-zhang Date: Thu, 14 Aug 2025 11:08:26 +0800 Subject: [PATCH] [NFC] Precommit test for issue #149512 --- clang/test/CodeGen/Lo

[clang] [clang] fix skipped parsing of late parsed attributes (PR #153558)

2025-08-14 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/153558 >From cbec90109321d2f0fe3573e44a1098dba6d38fff Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Thu, 14 Aug 2025 05:23:50 -0300 Subject: [PATCH] [clang] fix skipped parsing of late parsed attributes Fixes

[clang] [NFC] Precommit test for issue #149512 (PR #153541)

2025-08-14 Thread via cfe-commits
Ami-zhang wrote: Simplify the test. https://github.com/llvm/llvm-project/pull/153541 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][LoongArch] Ensure `target("lasx")` implies LSX support (PR #153542)

2025-08-14 Thread via cfe-commits
https://github.com/Ami-zhang updated https://github.com/llvm/llvm-project/pull/153542 >From f95fdafd6edeb7f1ce4e834165e5cd63b1803c9e Mon Sep 17 00:00:00 2001 From: Ami-zhang Date: Thu, 14 Aug 2025 11:08:26 +0800 Subject: [PATCH 1/2] [NFC] Precommit test for issue #149512 --- clang/test/CodeGe

[clang] [clang][LoongArch] Ensure `target("lasx")` implies LSX support (PR #153542)

2025-08-14 Thread via cfe-commits
@@ -460,7 +460,12 @@ LoongArchTargetInfo::parseTargetAttr(StringRef Features) const { break; case AttrFeatureKind::Feature: - Ret.Features.push_back("+" + Value.str()); + if (Value == "lasx") { +Ret.Features.push_back("+lasx"); +Ret.Feature

[clang] [Clang] Do not consider a variadic function ellipsis part of a default arg (PR #153496)

2025-08-14 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/153496 >From e7fdb9f9c9d8a58658f89330dea99006b078c2e7 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Wed, 13 Aug 2025 22:54:07 +0200 Subject: [PATCH 1/2] [Clang] Do not consider a variadic function ellipsis part

[clang] [Headers][X86] Allow AVX2/AVX512 broadcast intrinsics to be used in Constexpr (PR #153363)

2025-08-14 Thread via cfe-commits
TianYe717 wrote: Hi, I noticed the failure in the AArch64 sanitizer build (RuntimeLibcalls.td: GNUEABIHalfConvertCalls redefinition). Full details are available at: https://lab.llvm.org/buildbot/#/builders/164/builds/12518 This seems unrelated to my change, as I only modified X86 intrinsic h

[clang] [clang] fix skipped parsing of late parsed attributes (PR #153558)

2025-08-14 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/153558 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add check 'bugprone-cast-to-struct' (PR #153428)

2025-08-14 Thread Balázs Kéri via cfe-commits
@@ -0,0 +1,39 @@ +//===--- CastToStructCheck.h - clang-tidy ---*- C++ -*-===// +// +// 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: Apa

[clang] [Headers][X86] Allow AVX2/AVX512 broadcast intrinsics to be used in Constexpr (PR #153363)

2025-08-14 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: I think its due to @arsenm's tblgen half changes https://github.com/llvm/llvm-project/pull/153363 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

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

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

2025-08-14 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] unrecognized html tag causing undesirable comment lexing (PR #152944)

2025-08-14 Thread Corentin Jabot via cfe-commits
@@ -131,3 +131,12 @@ void Test_TemplatedFunctionVariadic(int arg, ...); // CHECK:ParamCommandComment{{.*}} [in] implicitly Param="..." // CHECK-NEXT: ParagraphComment // CHECK-NEXT: TextComment{{.*}} Text=" More arguments" + +/// \param[out] Aaa Short summary

[clang] [clang-tools-extra] [llvm] [clangd] introduce doxygen parser (PR #150790)

2025-08-14 Thread via cfe-commits
tcottin wrote: The idea was to be able to parse the doxygen comments directly from strings without the need for the `ASTContext`. This allows to keep the clangd index as is and create the hover/code completion content only when requested using the stored documentation strings from the index.

[clang-tools-extra] [clang-tidy] Add check 'bugprone-cast-to-struct' (PR #153428)

2025-08-14 Thread Balázs Kéri via cfe-commits
@@ -0,0 +1,54 @@ +.. title:: clang-tidy - bugprone-cast-to-struct + +bugprone-cast-to-struct +=== + +Finds casts from pointers to struct or scalar type to pointers to struct type. + +Casts between pointers to different structs can be unsafe because it is possi

[clang] [llvm] [NVPTX] Consolidate and cleanup various NVPTXISD nodes (NFC) (PR #145581)

2025-08-14 Thread Thomas Raoux via cfe-commits
ThomasRaoux wrote: Reviving the `LowerGlobalAddress` piece makes the PTX match and prevents having multiple `mov` when the base address is used in different blocks. I'll send a patch reintroducing those but let me know if you think there is something better to do https://github.com/llvm/llvm-p

[clang-tools-extra] [clang-tidy] Add check 'bugprone-cast-to-struct' (PR #153428)

2025-08-14 Thread Balázs Kéri via cfe-commits
balazske wrote: > > This new check does nearly the same thing > > I feel a bit at unease reading this. Why can't we improve the existing check, > instead of duplicating it? The reason was that this check is not path-sensitive and these should be put into `clang-tidy`. Really the original chec

[clang] [Clang][X86] Add avx512 __builtin_ia32_select* constexpr handling (PR #152705)

2025-08-14 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/152705 >From ceff5091174b9565818d1bb4d420e1f9fd7c843f Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 8 Aug 2025 13:47:58 +0100 Subject: [PATCH 1/2] [Clang][X86] Add avx512 __builtin_ia32_select* constexpr han

  1   2   3   4   5   >