[clang] [llvm] [HLSL][RootSignature] Add parsing for RootFlags (PR #138055)

2025-05-09 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `premerge-monolithic-windows` running on `premerge-windows-1` while building `clang,llvm` at step 5 "clean-build-dir". Full details are available at: https://lab.llvm.org/buildbot/#/builders/35/builds/9951 Here is the releva

[clang] [clang][Darwin] Remove legacy framework search path logic in the frontend (PR #138234)

2025-05-09 Thread Ian Anderson via cfe-commits
ian-twilightcoder wrote: That passes for me. I can't even figure out which unit test is failing, they all say `OK` and not `FAILED`. The one error in there looks like it's expected since its test still returns `OK`. Are we totally sure this isn't an infrastructure issue? https://github.com/ll

[clang] [Clang][AArch64] Add fp8 variants for untyped NEON intrinsics (PR #128019)

2025-05-09 Thread Paul Walker via cfe-commits
@@ -5464,6 +5464,15 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo, Builder.CreateStore(errorValue, swiftErrorTemp); } +// Mfloat8 type is loaded as scalar type, but is treated as single +// vector type for other operation

[clang] [Clang] Add `noalias` to `this` pointer in C++ constructors (PR #136792)

2025-05-09 Thread Guy David via cfe-commits
guy-david wrote: @efriedma-quic ping :) https://github.com/llvm/llvm-project/pull/136792 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ObjC] Stop hard-coding the list of keywords that are allowed in selectors (PR #138952)

2025-05-09 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/138952 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen] Add workaround for old glibc `__PTR_ALIGN` macro (PR #137851)

2025-05-09 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/137851 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-s

[clang] [Clang] [Driver] add a Cygwin ToolChain (PR #135691)

2025-05-09 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/135691 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Workaround for slowdown spikes (unintended scope increase) (PR #136720)

2025-05-09 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/136720 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] execute `evalCast` for all kinds of Region which has a binding in RegionStore (PR #139095)

2025-05-09 Thread via cfe-commits
https://github.com/flovent closed https://github.com/llvm/llvm-project/pull/139095 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Thread Safety Analysis: Support reentrant capabilities (PR #137133)

2025-05-09 Thread Marco Elver via cfe-commits
@@ -4048,6 +4048,9 @@ def warn_thread_attribute_not_on_scoped_lockable_param : Warning< "%0 attribute applies to function parameters only if their type is a " "reference to a 'scoped_lockable'-annotated type">, InGroup, DefaultIgnore; +def warn_reentrant_capability_witho

[clang] [Clang] Diagnose invalid function types in dependent contexts (PR #138731)

2025-05-09 Thread via cfe-commits
cor3ntin wrote: @ayermolo @yuxuanchen1997 I am afraid you might have been relying on a bug. https://compiler-explorer.com/z/3fscWss38 shows that sfinae works properly. In your code, there is no sfinae that I can see - consider a similar code to your example that produce a diagnostic https://god

[clang] Thread Safety Analysis: Support reentrant capabilities (PR #137133)

2025-05-09 Thread Marco Elver via cfe-commits
@@ -271,26 +271,32 @@ class CFGWalker { // translateAttrExpr needs it, but that should be moved too. class CapabilityExpr { private: - /// The capability expression and whether it's negated. - llvm::PointerIntPair CapExpr; + /// The capability expression and flags. + llvm::

[clang] [llvm] [AArch64][SVE] Refactor getPTrue to return splat(1) when pattern=all. (PR #139236)

2025-05-09 Thread Ricardo Jesus via cfe-commits
@@ -25030,7 +25030,8 @@ static SDValue foldCSELofLASTB(SDNode *Op, SelectionDAG &DAG) { if (AnyPred.getOpcode() == AArch64ISD::REINTERPRET_CAST) AnyPred = AnyPred.getOperand(0); - if (TruePred != AnyPred && TruePred.getOpcode() != AArch64ISD::PTRUE) + if (TruePred !=

[clang] [llvm] [AArch64][SVE] Refactor getPTrue to return splat(1) when pattern=all. (PR #139236)

2025-05-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: Ricardo Jesus (rj-jesus) Changes Similarly to #135016, refactor getPTrue to return splat (1) for all-active patterns. The main motivation for this patch is to improve code gen for fixed-length vector loads/stores that are conver

[clang] [Clang][AArch64] Add fp8 variants for untyped NEON intrinsics (PR #128019)

2025-05-09 Thread Paul Walker via cfe-commits
@@ -4179,9 +4183,19 @@ Value *CodeGenFunction::EmitSVEMaskedLoad(const CallExpr *E, unsigned IntrinsicID, bool IsZExtReturn) { QualType LangPTy = E->getArg(1)->getType(); - llvm::Type *MemEl

[clang] [llvm] [AArch64][SVE] Refactor getPTrue to return splat(1) when pattern=all. (PR #139236)

2025-05-09 Thread Ricardo Jesus via cfe-commits
https://github.com/rj-jesus edited https://github.com/llvm/llvm-project/pull/139236 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [openmp] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)

2025-05-09 Thread CHANDRA GHALE via cfe-commits
https://github.com/chandraghale updated https://github.com/llvm/llvm-project/pull/134709 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,s

[clang] [openmp] [OpenMP 6.0 ]Codegen for Reduction over private variables with reduction clause (PR #134709)

2025-05-09 Thread CHANDRA GHALE via cfe-commits
chandraghale wrote: > Can you add a few runtime tests, some with UDR with classes, several > reduction items with the different types, to check that functional part works > correctly? You can add it to the libomp right in this patch. Just want to be > sure we do not miss anything here Sure !!

[clang] [Clang][AArch64] Add fp8 variants for untyped NEON intrinsics (PR #128019)

2025-05-09 Thread via cfe-commits
@@ -5464,6 +5464,15 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo, Builder.CreateStore(errorValue, swiftErrorTemp); } +// Mfloat8 type is loaded as scalar type, but is treated as single +// vector type for other operation

[clang] [Clang] Fix handling of pack indexing types in constraints of redeclaration (PR #139057)

2025-05-09 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/139057 >From 24e912a3ded13660ff094d488b8529d63ff0d821 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Thu, 8 May 2025 11:43:06 +0200 Subject: [PATCH] [Clang] Fix handling of pack indexing types in constraints of

[clang-tools-extra] [clang-tidy] Add check 'bugprone-invalid-enum-default-initialization' (PR #136823)

2025-05-09 Thread Balázs Kéri via cfe-commits
https://github.com/balazske updated https://github.com/llvm/llvm-project/pull/136823 From 4ce7497bb0dc89de3b9f139177c295291e7d3e9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?= Date: Thu, 17 Apr 2025 17:36:03 +0200 Subject: [PATCH 1/4] [clang-tidy] Add check 'bugprone-inva

[clang] 9d5a542 - [AArch64] Fix feature list for FUJITSU-MONAKA processor (#139212)

2025-05-09 Thread via cfe-commits
Author: Yuta Mukai Date: 2025-05-09T17:07:19+09:00 New Revision: 9d5a5424f0356bd6ee01c751dd6957299783b41b URL: https://github.com/llvm/llvm-project/commit/9d5a5424f0356bd6ee01c751dd6957299783b41b DIFF: https://github.com/llvm/llvm-project/commit/9d5a5424f0356bd6ee01c751dd6957299783b41b.diff LO

[clang] [llvm] [AArch64] Fix feature list for FUJITSU-MONAKA processor (PR #139212)

2025-05-09 Thread Yuta Mukai via cfe-commits
https://github.com/ytmukai closed https://github.com/llvm/llvm-project/pull/139212 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Fix feature list for FUJITSU-MONAKA processor (PR #139212)

2025-05-09 Thread Yuta Mukai via cfe-commits
https://github.com/ytmukai demilestoned https://github.com/llvm/llvm-project/pull/139212 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Fix feature list for FUJITSU-MONAKA processor (PR #139212)

2025-05-09 Thread Yuta Mukai via cfe-commits
https://github.com/ytmukai milestoned https://github.com/llvm/llvm-project/pull/139212 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Fix feature list for FUJITSU-MONAKA processor (PR #139212)

2025-05-09 Thread Yuta Mukai via cfe-commits
https://github.com/ytmukai milestoned https://github.com/llvm/llvm-project/pull/139212 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] 2e436b1 - [libunwind] [SEH] Implement parsing of aarch64 pdata/xdata (#137949)

2025-05-09 Thread via cfe-commits
Author: Martin Storsjö Date: 2025-05-09T11:08:38+03:00 New Revision: 2e436b15d30689c4525da3c8d4467a1c70e509f5 URL: https://github.com/llvm/llvm-project/commit/2e436b15d30689c4525da3c8d4467a1c70e509f5 DIFF: https://github.com/llvm/llvm-project/commit/2e436b15d30689c4525da3c8d4467a1c70e509f5.diff

[libunwind] [libunwind] [SEH] Implement parsing of aarch64 pdata/xdata (PR #137949)

2025-05-09 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo closed https://github.com/llvm/llvm-project/pull/137949 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Fix feature list for FUJITSU-MONAKA processor (PR #139212)

2025-05-09 Thread Yuta Mukai via cfe-commits
ytmukai wrote: /cherry-pick 9d5a542 https://github.com/llvm/llvm-project/pull/139212 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] [SEH] Implement parsing of ARM pdata/xdata (PR #137950)

2025-05-09 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo updated https://github.com/llvm/llvm-project/pull/137950 From fb51e2b9f4965df52940c7cc672de863f34a1773 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 18 Apr 2023 23:28:20 +0300 Subject: [PATCH] [libunwind] [SEH] Implement parsing of ARM p

[clang] [llvm] [AArch64] Fix feature list for FUJITSU-MONAKA processor (PR #139212)

2025-05-09 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#139222 https://github.com/llvm/llvm-project/pull/139212 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Handle invalid variable template specialization whose type depends on itself (PR #134522)

2025-05-09 Thread A. Jiang via cfe-commits
@@ -47,3 +47,21 @@ namespace InvalidInsertPos { template<> int v; int k = v; } + +namespace GH51347 { + template + auto p = p; // expected-error {{the type of variable template specialization 'p'}} frederick-vs-ja wrote: It seems that [[temp.res.gener

[clang-tools-extra] [clang-tidy] Add check 'bugprone-invalid-enum-default-initialization' (PR #136823)

2025-05-09 Thread Balázs Kéri via cfe-commits
balazske wrote: I have fixed the review issues. https://github.com/llvm/llvm-project/pull/136823 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Slightly optimize integral casts of literals (PR #138879)

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

[clang] [clang][ExprConst] Check for array size of initlists (PR #138673)

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

[clang] [clang-format] Handle Java record (PR #139215)

2025-05-09 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/139215 Fix #62089 Rate limit · GitHub body { background-color: #f6f8fa; color: #24292e; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,A

[clang] [clang-format] Handle Java record (PR #139215)

2025-05-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fix #62089 --- Full diff: https://github.com/llvm/llvm-project/pull/139215.diff 4 Files Affected: - (modified) clang/lib/Format/FormatToken.h (+2) - (modified) clang/lib/Format/UnwrappedLineParser.cpp (

[clang] d35ad58 - [clang][ExprConst] Check for array size of initlists (#138673)

2025-05-09 Thread via cfe-commits
Author: Timm Baeder Date: 2025-05-09T09:03:20+02:00 New Revision: d35ad58859c97521edab7b2eddfa9fe6838b9a5e URL: https://github.com/llvm/llvm-project/commit/d35ad58859c97521edab7b2eddfa9fe6838b9a5e DIFF: https://github.com/llvm/llvm-project/commit/d35ad58859c97521edab7b2eddfa9fe6838b9a5e.diff L

[clang] [clang] UEFI do not mangle main (PR #139179)

2025-05-09 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/139179 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] cc28158 - Revert "[clang][ExprConst] Check for array size of initlists (#138673)"

2025-05-09 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2025-05-09T09:28:26+02:00 New Revision: cc281584a11af258107b5ea702a8837da8c465fd URL: https://github.com/llvm/llvm-project/commit/cc281584a11af258107b5ea702a8837da8c465fd DIFF: https://github.com/llvm/llvm-project/commit/cc281584a11af258107b5ea702a8837da8c465fd.diff LO

[clang] [llvm] [AArch64][SVE] Refactor getPTrue to return splat(1) when pattern=all. (PR #139236)

2025-05-09 Thread Ricardo Jesus via cfe-commits
https://github.com/rj-jesus created https://github.com/llvm/llvm-project/pull/139236 Similarly to #135016, refactor getPTrue to return splat (1) for all-active patterns. The main motivation for this patch is to improve code gen for fixed-length vector loads/stores that are converted to SVE mas

[clang] [clang] Add support for `__ptrauth` being applied to integer types (PR #137580)

2025-05-09 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > I think it would be reasonable to consider it done at this point, and if we > do run into backwards compatibility problems we can discuss it again at that > point, does that seem reasonable? That seems reasonable to me. https://github.com/llvm/llvm-project/pull/137580 __

[clang] [CLANG] Allow parsing arbitrary order of attributes for declarations (PR #133107)

2025-05-09 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: Do you need us to land the changes on your behalf, btw? https://github.com/llvm/llvm-project/pull/133107 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add support for `__ptrauth` being applied to integer types (PR #137580)

2025-05-09 Thread Aaron Ballman via cfe-commits
@@ -1031,10 +1031,12 @@ def err_ptrauth_qualifier_invalid : Error< "%select{return type|parameter type|property}1 may not be qualified with '__ptrauth'; type is %0">; def err_ptrauth_qualifier_cast : Error< "cannot cast to '__ptrauth'-qualified type %0">; -def err_ptrauth_

[clang] [llvm] [AArch64][SVE] Refactor getPTrue to return splat(1) when pattern=all. (PR #139236)

2025-05-09 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm commented: This is exactly the way to go. https://github.com/llvm/llvm-project/pull/139236 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add support for `__ptrauth` being applied to integer types (PR #137580)

2025-05-09 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM aside from a bit of reworking around the diagnostics. https://github.com/llvm/llvm-project/pull/137580 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[clang] [clang] Add support for `__ptrauth` being applied to integer types (PR #137580)

2025-05-09 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/137580 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64][SVE] Refactor getPTrue to return splat(1) when pattern=all. (PR #139236)

2025-05-09 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm edited https://github.com/llvm/llvm-project/pull/139236 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64][SVE] Refactor getPTrue to return splat(1) when pattern=all. (PR #139236)

2025-05-09 Thread Paul Walker via cfe-commits
@@ -25030,7 +25030,8 @@ static SDValue foldCSELofLASTB(SDNode *Op, SelectionDAG &DAG) { if (AnyPred.getOpcode() == AArch64ISD::REINTERPRET_CAST) AnyPred = AnyPred.getOperand(0); - if (TruePred != AnyPred && TruePred.getOpcode() != AArch64ISD::PTRUE) + if (TruePred !=

[clang] [llvm] [AArch64][SVE] Refactor getPTrue to return splat(1) when pattern=all. (PR #139236)

2025-05-09 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm edited https://github.com/llvm/llvm-project/pull/139236 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 187a83f - [OpenMP] No long crash on an invalid sizes argument (#139118)

2025-05-09 Thread via cfe-commits
Author: Aaron Ballman Date: 2025-05-09T06:52:06-04:00 New Revision: 187a83f86caef2cbeb0b4aaa1f15e507c3f99763 URL: https://github.com/llvm/llvm-project/commit/187a83f86caef2cbeb0b4aaa1f15e507c3f99763 DIFF: https://github.com/llvm/llvm-project/commit/187a83f86caef2cbeb0b4aaa1f15e507c3f99763.diff

[clang] [llvm] [NVPTX] Add intrinsics and clang builtins for conversions of f4x2 type (PR #139244)

2025-05-09 Thread Srinivasa Ravi via cfe-commits
https://github.com/Wolfram70 created https://github.com/llvm/llvm-project/pull/139244 This change adds intrinsics and cllang builtiins for the cvt instruction variants of type (FP4) `.e2m1x2`. introduced in PTX 8.6 for `sm_100a`, `sm_101a`, and `sm_120a`. Tests are added in `NVPTX/convert-sm1

[clang] [llvm] [NVPTX] Add intrinsics and clang builtins for conversions of f4x2 type (PR #139244)

2025-05-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Srinivasa Ravi (Wolfram70) Changes This change adds intrinsics and clang builtins for the cvt instruction variants of type (FP4) `.e2m1x2`. introduced in PTX 8.6 for `sm_100a`, `sm_101a`, and `sm_120a`. Tests are added in `NVPTX/convert-

<    1   2   3   4   5   6