[clang] [Clang][Sema] Allow counted_by on void* in GNU mode (PR #164737)

2025-10-23 Thread Kees Cook via cfe-commits
kees wrote: Weirdly, I think a mismatched diagnostic string would be much more well tolerated by the Linux dev community. :) That kind of thing I can document along with the `__counted_by` macro. If others prefer this route, I can update the PR to do this instead? https://github.com/llvm/llvm

[clang] [Clang][Sema] Allow counted_by on void* in GNU mode (PR #164737)

2025-10-23 Thread Henrik G. Olsson via cfe-commits
hnrklssn wrote: > > Or just convert `counted_by` into `sized_by` with no need for another > > spelling (i.e. I could nudge this patch slightly so that > > `CountAttributedType::SizedBy` gets set earlier in Sema and then ` > > CodeGenFunction::emitCountedByPointerSize` would need no changes, et

[clang] [webkit.UncountedLambdaCapturesChecker] Add the support for WTF::ScopeExit and WTF::makeVisitor (PR #161926)

2025-10-23 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/161926 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c07d305 - [webkit.UncountedLambdaCapturesChecker] Add the support for WTF::ScopeExit and WTF::makeVisitor (#161926)

2025-10-23 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2025-10-23T23:19:28-07:00 New Revision: c07d305718744917ba5dc6693322e13a5c2314df URL: https://github.com/llvm/llvm-project/commit/c07d305718744917ba5dc6693322e13a5c2314df DIFF: https://github.com/llvm/llvm-project/commit/c07d305718744917ba5dc6693322e13a5c2314df.diff

[clang-tools-extra] [clang-tidy] Add new check 'bugprone-inconsistent-ifelse-braces' (PR #162361)

2025-10-23 Thread Davide Cunial via cfe-commits
https://github.com/capitan-davide updated https://github.com/llvm/llvm-project/pull/162361 >From a0a7126104429d2d721c02ac64076b9349fd2227 Mon Sep 17 00:00:00 2001 From: Davide Cunial Date: Wed, 8 Oct 2025 20:24:17 +0200 Subject: [PATCH] [clang-tidy] Add new check 'bugprone-inconsistent-ifelse-

[clang] [Clang][Sema] Allow counted_by on void* in GNU mode (PR #164737)

2025-10-23 Thread Kees Cook via cfe-commits
kees wrote: > > For `counted_by` to be usable in Linux, it needs `sized_by` behavior for > > `void *` members. Putting this behind the GNU extension which also covers > > `void *` arithmetic should be a reasonable compromise. > > I didn't quite get the context for why this is the case - maybe

[clang] [clang][bytecode] Catch placement-new into invalid destination (PR #164804)

2025-10-23 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/164804 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7c441b2 - [clang][bytecode] Catch placement-new into invalid destination (#164804)

2025-10-23 Thread via cfe-commits
Author: Timm Baeder Date: 2025-10-24T08:08:18+02:00 New Revision: 7c441b21b7fac52a8c28eaa4a4b829c0e5ce6d7b URL: https://github.com/llvm/llvm-project/commit/7c441b21b7fac52a8c28eaa4a4b829c0e5ce6d7b DIFF: https://github.com/llvm/llvm-project/commit/7c441b21b7fac52a8c28eaa4a4b829c0e5ce6d7b.diff L

[clang] [clang] Proofread UsersManual.rst (PR #164928)

2025-10-23 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. https://github.com/llvm/llvm-project/pull/164928 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[clang-format] Annotate ::operator and Foo::operator correctly" (PR #164670)

2025-10-23 Thread via cfe-commits
owenca wrote: > I filed #164866 which includes a regression test. > > > @Prabhuk I've reverted your revert. Please open a GitHub issue for your use > > case, which also failed before #15 was merged. > > I think that's the wrong patch? We reverted #164048. #15 (which "fixed" #164866 by

[clang] [clang] Proofread UsersManual.rst (PR #164928)

2025-10-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/164928.diff 1 Files Affected: - (modified) clang/docs/UsersManual.rst (+30-30) ``diff diff --git a/clang/docs/UsersManual.rst b/cl

[clang] [clang] Proofread UsersManual.rst (PR #164928)

2025-10-23 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/164928 None >From 8abf56963e5f99aa46b5b326b11d2e930ba69e1a Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 23 Oct 2025 07:15:48 -0700 Subject: [PATCH] [clang] Proofread UsersManual.rst --- clang/docs/Us

[clang] [llvm] [Hexagon] Add V81 support to compiler and assembler (PR #164922)

2025-10-23 Thread Ikhlas Ajbar via cfe-commits
https://github.com/iajbar updated https://github.com/llvm/llvm-project/pull/164922 >From 96030129702f26c750b6ff5550eda2acb1412d96 Mon Sep 17 00:00:00 2001 From: Ikhlas Ajbar Date: Wed, 15 Oct 2025 11:59:08 -0700 Subject: [PATCH] [Hexagon] Add V81 support to compiler and assembler This patch in

[clang] [clang-tools-extra] [llvm] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > > > > > If reflection is 'experimental' anything we change that breaks > > > > > serialization/etc is perfectly fine. > > > > > > > > > > > > If this is the decision, I think it will be better to explicitly > > > > diagnose for any code path that triggers serialization > >

[clang] [clang] SFINAE context refactor (PR #164703)

2025-10-23 Thread Matheus Izvekov via cfe-commits
@@ -12394,45 +12391,65 @@ class Sema final : public SemaBase { /// failures rather than hard errors. bool AccessCheckingSFINAE; + class SFINAETrap; + + struct SFINAEContextBase { +SFINAEContextBase(Sema &S, SFINAETrap *Cur) +: S(S), Prev(std::exchange(S.Curre

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

2025-10-23 Thread Phoebe Wang via cfe-commits
phoebewang wrote: I don't fully agree with the points. If fastcc is just (and always) the C calling convention, it means its existence is meaningless. I agree with its original intention and a well designed ABI doesn't need it at all. But it is the exactly reason why we retargeting it for APX.

[clang] [clang] SFINAE context refactor (PR #164703)

2025-10-23 Thread Younan Zhang via cfe-commits
@@ -12394,45 +12391,65 @@ class Sema final : public SemaBase { /// failures rather than hard errors. bool AccessCheckingSFINAE; + class SFINAETrap; + + struct SFINAEContextBase { +SFINAEContextBase(Sema &S, SFINAETrap *Cur) +: S(S), Prev(std::exchange(S.Curre

[clang] [llvm] Match bitsin(typeof(x)) - popcnt(x) to s_bcnt0_i32 on AMDGPU (PR #164847)

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

[clang] [llvm] Match bitsin(typeof(x)) - popcnt(x) to s_bcnt0_i32 on AMDGPU (PR #164847)

2025-10-23 Thread Matt Arsenault via cfe-commits
@@ -465,17 +463,15 @@ define amdgpu_ps i32 @bcnt032(i32 inreg %val0) { define amdgpu_ps i32 @bcnt064(i64 inreg %val0) { ; CHECK-LABEL: bcnt064: ; CHECK: ; %bb.0: -; CHECK-NEXT:s_bcnt1_i32_b64 s0, s[0:1] -; CHECK-NEXT:s_sub_u32 s0, 64, s0 -; CHECK-NEXT:s_subb_u

[clang] [llvm] Match bitsin(typeof(x)) - popcnt(x) to s_bcnt0_i32 on AMDGPU (PR #164847)

2025-10-23 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm requested changes to this pull request. This should not introduce a builtin or intrinsic. This can be purely done in tablegen patterns without the intermediate step https://github.com/llvm/llvm-project/pull/164847 ___ cfe-co

[clang] [llvm] [Hexagon] Add V81 support to compiler and assembler (PR #164922)

2025-10-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-hexagon Author: Ikhlas Ajbar (iajbar) Changes This patch introduces support for the Hexagon V81 architecture. It includes instruction formats, definitions, encodings, scheduling classes, and builtins/intrinsics. --- Patch is 308.51 KiB, trunc

[clang] [llvm] [Hexagon] Add V81 support to compiler and assembler (PR #164922)

2025-10-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Ikhlas Ajbar (iajbar) Changes This patch introduces support for the Hexagon V81 architecture. It includes instruction formats, definitions, encodings, scheduling classes, and builtins/intrinsics. --- Pa

[clang] [clang-tools-extra] [llvm] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Younan Zhang via cfe-commits
@@ -12938,6 +12938,12 @@ ExprResult TreeTransform::TransformSYCLUniqueStableNameExpr( E->getLocation(), E->getLParenLocation(), E->getRParenLocation(), NewT); } +template +ExprResult TreeTransform::TransformCXXReflectExpr(CXXReflectExpr *E) { + // No subexpressions to

[clang] [clang-tools-extra] [llvm] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/164692 error: too big or took too long to generate ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

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

2025-10-23 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/164827 >From 525b01535ccde73b341231fccf4d493fc1433914 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Thu, 23 Oct 2025 22:36:40 +0800 Subject: [PATCH 1/2] [clang-tidy][readability-redundant-parentheses] add opti

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

2025-10-23 Thread Congcong Cai via cfe-commits
@@ -47,6 +60,15 @@ void RedundantParenthesesCheck::registerMatchers(MatchFinder *Finder) { void RedundantParenthesesCheck::check(const MatchFinder::MatchResult &Result) { const auto *PE = Result.Nodes.getNodeAs("dup"); + if (auto *DRE = dyn_cast(PE->getSubExpr())) { +c

[clang] [clang-tools-extra] [llvm] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > > > If reflection is 'experimental' anything we change that breaks > > > serialization/etc is perfectly fine. > > > > > > If this is the decision, I think it will be better to explicitly diagnose > > for any code path that triggers serialization > > That seems pretty nove

[clang] [clang-tools-extra] [llvm] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Erich Keane via cfe-commits
erichkeane wrote: Discussing offline-An experimental reflection flag is the best way forward for now. At least until we're out of 'experimental'. Another thing I was thinking: we should limit where we check it to JUST the places in parsing where we identify the operators. Else, we risk hidin

[clang] [OpenACC][CIR] Implement atomic update lowering (PR #164836)

2025-10-23 Thread Erich Keane via cfe-commits
@@ -364,13 +377,31 @@ OpenACCAtomicConstruct::getAssociatedStmtInfo() const { // type, and 'x' is a scalar l value. As above, this can come in 2 forms; // Binary Operator or CXXOperatorCallExpr. std::pair BinaryArgs = -getBinaryOpArgs(cast(getAssociatedStmt(

[clang] [OpenACC][CIR] Implement atomic update lowering (PR #164836)

2025-10-23 Thread Erich Keane via cfe-commits
https://github.com/erichkeane updated https://github.com/llvm/llvm-project/pull/164836 >From e024a3b6a74a697a8336f8a3c109b513274e92c6 Mon Sep 17 00:00:00 2001 From: erichkeane Date: Tue, 21 Oct 2025 13:57:24 -0700 Subject: [PATCH 1/2] [OpenACC][CIR] Implement atomic update lowering This is the

[clang] [clang-tools-extra] [llvm] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Erich Keane via cfe-commits
erichkeane wrote: > > If reflection is 'experimental' anything we change that breaks > > serialization/etc is perfectly fine. > > If this is the decision, I think it will be better to explicitly diagnose for > any code path that triggers serialization That seems pretty novel? We don't typica

[clang] [llvm] [CGObjC] Allow clang.arc.attachedcall on -O0 on AArch64 (PR #164875)

2025-10-23 Thread via cfe-commits
https://github.com/AZero13 updated https://github.com/llvm/llvm-project/pull/164875 >From dfa27d4735969d3214fa1050a190e7700d0e5190 Mon Sep 17 00:00:00 2001 From: AZero13 Date: Thu, 23 Oct 2025 14:39:18 -0400 Subject: [PATCH] [CGObjC] Allow clang.arc.attachedcall on -O0 on AArch64 It is support

[clang] [llvm] [CGObjC] Allow clang.arc.attachedcall on -O0 on AArch64 (PR #164875)

2025-10-23 Thread via cfe-commits
https://github.com/AZero13 updated https://github.com/llvm/llvm-project/pull/164875 >From 2c651f30b22dbfa3b7285fee83496d96b4e98519 Mon Sep 17 00:00:00 2001 From: AZero13 Date: Thu, 23 Oct 2025 14:39:18 -0400 Subject: [PATCH] [CGObjC] Allow clang.arc.attachedcall on -O0 on AArch64 It is support

[clang] [Clang] Add vector gather / scatter builtins to clang (PR #157895)

2025-10-23 Thread Eli Friedman via cfe-commits
@@ -2361,6 +2363,101 @@ static ExprResult BuiltinMaskedStore(Sema &S, CallExpr *TheCall) { return TheCall; } +static ExprResult BuiltinMaskedGather(Sema &S, CallExpr *TheCall) { + if (S.checkArgCountRange(TheCall, 3, 4)) +return ExprError(); + + Expr *MaskArg = TheCal

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow shufps/pd shuffles intrinsics to be used in constexpr (PR #164078)

2025-10-23 Thread NagaChaitanya Vellanki via cfe-commits
chaitanyav wrote: @RKSimon made changes as per the comments. https://github.com/llvm/llvm-project/pull/164078 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Allow counted_by on void* in GNU mode (PR #164737)

2025-10-23 Thread Dan Liew via cfe-commits
https://github.com/delcypher edited https://github.com/llvm/llvm-project/pull/164737 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fix: C++ empty record with align lead to va_list out of sync (PR #72197)

2025-10-23 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. I'm still fine with this. And I think @rjmccall's concerns were addressed by the latest version. https://github.com/llvm/llvm-project/pull/72197 ___ cfe-commits mailing list cfe-commits@lis

[clang] fix: C++ empty record with align lead to va_list out of sync (PR #72197)

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

[clang] fix: C++ empty record with align lead to va_list out of sync (PR #72197)

2025-10-23 Thread Eli Friedman via cfe-commits
@@ -110,6 +110,9 @@ C++ Specific Potentially Breaking Changes ABI Changes in This Version --- +- Let C++ empty record fall through to the standard argument-handling path instead of + always pass a single ``i8`` according to aarch64 AAPCS rules. --

[clang] [Clang][ARM][Sema] Check validity of ldrexd/strexd builtin calls (PR #164919)

2025-10-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-arm Author: Douglas (dgg5503) Changes This change enables validation checks against the following two ARM atomic builtins: ``` __builtin_arm_ldrexd __builtin_arm_strexd ``` Previously, no checks existed for these builtins, so under a release co

[clang] [Clang][ARM][Sema] Check validity of ldrexd/strexd builtin calls (PR #164919)

2025-10-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Douglas (dgg5503) Changes This change enables validation checks against the following two ARM atomic builtins: ``` __builtin_arm_ldrexd __builtin_arm_strexd ``` Previously, no checks existed for these builtins, so under a release compiler

[clang] [Clang][ARM][Sema] Check validity of ldrexd/strexd builtin calls (PR #164919)

2025-10-23 Thread via cfe-commits
https://github.com/dgg5503 created https://github.com/llvm/llvm-project/pull/164919 This change enables validation checks against the following two ARM atomic builtins: ``` __builtin_arm_ldrexd __builtin_arm_strexd ``` Previously, no checks existed for these builtins, so under a release compil

[clang] [Clang][Sema] Allow counted_by on void* in GNU mode (PR #164737)

2025-10-23 Thread Dan Liew via cfe-commits
@@ -132,9 +132,20 @@ bool Sema::CheckCountedByAttrOnField(FieldDecl *FD, Expr *E, bool CountInBytes, // `BoundsSafetyCheckUseOfCountAttrPtr` // // * When the pointee type is always an incomplete type (e.g. -// `void`) the attribute is disallowed by this method

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow shufps/pd shuffles intrinsics to be used in constexpr (PR #164078)

2025-10-23 Thread NagaChaitanya Vellanki via cfe-commits
https://github.com/chaitanyav updated https://github.com/llvm/llvm-project/pull/164078 >From 9cac506a53191a9382ad7c30f4c239bccfcac92f Mon Sep 17 00:00:00 2001 From: NagaChaitanya Vellanki Date: Thu, 16 Oct 2025 12:37:58 -0700 Subject: [PATCH] [Clang] VectorExprEvaluator::VisitCallExpr / Interpr

[clang] [llvm] [llvm][clang] Add intrinsic support for cbo.zero instruction (Zicboz ISA extension) (PR #164822)

2025-10-23 Thread Sam Elliott via cfe-commits
lenary wrote: Is there a proposal for this on the [C API Doc](https://github.com/riscv-non-isa/riscv-c-api-doc)? Without it we shouldn't land this. Maybe we shouldn't have this at all (instead of making people use inline asm)? What optimisations would we expect with this instruction, that mea

[clang] [llvm] [CGObjC] Allow clang.arc.attachedcall on -O0 on AArch64 (PR #164875)

2025-10-23 Thread via cfe-commits
https://github.com/AZero13 updated https://github.com/llvm/llvm-project/pull/164875 >From a96ab3cc95107cb703fb729b68b4e02764434e7c Mon Sep 17 00:00:00 2001 From: AZero13 Date: Thu, 23 Oct 2025 14:39:18 -0400 Subject: [PATCH] [CGObjC] Allow clang.arc.attachedcall on -O0 on AArch64 It is support

[clang] [llvm] [AArch64][llvm] Armv9.7-A: Add support for SVE2p3 DOT and MLA operations (PR #163161)

2025-10-23 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray closed https://github.com/llvm/llvm-project/pull/163161 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] bfae15a - [AArch64][llvm] Armv9.7-A: Add support for SVE2p3 DOT and MLA operations (#163161)

2025-10-23 Thread via cfe-commits
Author: Jonathan Thackray Date: 2025-10-23T23:51:31+01:00 New Revision: bfae15a1257a63f205db12308ca4b131f3b3f3b3 URL: https://github.com/llvm/llvm-project/commit/bfae15a1257a63f205db12308ca4b131f3b3f3b3 DIFF: https://github.com/llvm/llvm-project/commit/bfae15a1257a63f205db12308ca4b131f3b3f3b3.d

[clang] [CIR] vTableClassNameForType: return correct VTableClass name for Type::ObjCObjectPointer, Type::Pointer (PR #163850)

2025-10-23 Thread Bruno Cardoso Lopes via cfe-commits
bcardosolopes wrote: Thanks for working on this issue! > It was mentioned in the issue one type per pr, but as this types suppose to > have same vTable class name, I think it should be ok to handle them together, > (let me know if not). You can handle more cases but that also means you need

[clang] [llvm] [AArch64][llvm] Armv9.7-A: Add support for SVE2p3 DOT and MLA operations (PR #163161)

2025-10-23 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray updated https://github.com/llvm/llvm-project/pull/163161 >From c5161a860baef1314a59dfbdd79fd8eb62273d77 Mon Sep 17 00:00:00 2001 From: Jonathan Thackray Date: Thu, 4 Sep 2025 21:40:09 +0100 Subject: [PATCH 1/4] [AArch64][llvm] Armv9.7-A: Add support for SVE2p3 DOT a

[clang] [clang][DependencyScanning] Implementation of `CompilerInstanceWithContext` to Improve By-Name Queries (PR #164345)

2025-10-23 Thread Jan Svoboda via cfe-commits
@@ -125,16 +116,33 @@ class DependencyScanningWorker { DependencyConsumer &Consumer, DependencyActionController &Controller, std::optional TUBuffer = std::nullopt); - /// Run the dependency scanning tool for a given clang driver command-line - /// for a specific

[clang] [llvm] [AArch64][llvm] Armv9.7-A: Add support for SVE2p3 DOT and MLA operations (PR #163161)

2025-10-23 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray edited https://github.com/llvm/llvm-project/pull/163161 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64][llvm] Armv9.7-A: Add support for SVE2p3 arithmetic operations (PR #163160)

2025-10-23 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray closed https://github.com/llvm/llvm-project/pull/163160 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] cab4c68 - [AArch64][llvm] Armv9.7-A: Add support for SVE2p3 arithmetic operations (#163160)

2025-10-23 Thread via cfe-commits
Author: Jonathan Thackray Date: 2025-10-23T23:47:36+01:00 New Revision: cab4c68a669df7856c9b0babf05709e10f89c7e2 URL: https://github.com/llvm/llvm-project/commit/cab4c68a669df7856c9b0babf05709e10f89c7e2 DIFF: https://github.com/llvm/llvm-project/commit/cab4c68a669df7856c9b0babf05709e10f89c7e2.d

[clang] [clang][DependencyScanning] Implementation of `CompilerInstanceWithContext` to Improve By-Name Queries (PR #164345)

2025-10-23 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/164345 >From 19482768ca28eb478cd45a7bd0ff63f6c0af55ea Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Wed, 15 Oct 2025 09:22:59 -0700 Subject: [PATCH 1/8] Inital commit of CompilerInstanceWithContext, all tests pass

[clang] [llvm] [ARM][AArch64] Introduce the Armv9.7-A architecture version (PR #163154)

2025-10-23 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray updated https://github.com/llvm/llvm-project/pull/163154 >From b7e25ae02a065d2ea15111f0751d69ad02b8960e Mon Sep 17 00:00:00 2001 From: Jonathan Thackray Date: Mon, 8 Sep 2025 16:48:37 +0100 Subject: [PATCH] [ARM][AArch64] Introduce the Armv9.7-A architecture version

[clang] [PAC][clang] Correct handling of ptrauth queries of incomplete types (PR #164528)

2025-10-23 Thread Oliver Hunt via cfe-commits
ojhunt wrote: Just pinging other folk who commented in case they still have concerns https://github.com/llvm/llvm-project/pull/164528 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-10-23 Thread Yitzhak Mandelbaum via cfe-commits
ymand wrote: Actually -- are there any tests you can add/updated to reflect? https://github.com/llvm/llvm-project/pull/164715 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-10-23 Thread Yitzhak Mandelbaum via cfe-commits
https://github.com/ymand approved this pull request. Thank you! https://github.com/llvm/llvm-project/pull/164715 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][DependencyScanning] Implementation of `CompilerInstanceWithContext` to Improve By-Name Queries (PR #164345)

2025-10-23 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/164345 >From 19482768ca28eb478cd45a7bd0ff63f6c0af55ea Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Wed, 15 Oct 2025 09:22:59 -0700 Subject: [PATCH 1/8] Inital commit of CompilerInstanceWithContext, all tests pass

[clang] [Clang][Sanitizers] Enable NSAN on Linux only (PR #96120)

2025-10-23 Thread Alexander Shaposhnikov via cfe-commits
https://github.com/alexander-shaposhnikov auto_merge_enabled https://github.com/llvm/llvm-project/pull/96120 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Match bitsin(typeof(x)) - popcnt(x) to s_bcnt0_i32 on AMDGPU (PR #164847)

2025-10-23 Thread via cfe-commits
https://github.com/LU-JOHN deleted https://github.com/llvm/llvm-project/pull/164847 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ARM][AArch64] Introduce the Armv9.7-A architecture version (PR #163154)

2025-10-23 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray updated https://github.com/llvm/llvm-project/pull/163154 >From 17deb81f43913a4cf56b16f5a96e31b344cfb253 Mon Sep 17 00:00:00 2001 From: Jonathan Thackray Date: Mon, 8 Sep 2025 16:48:37 +0100 Subject: [PATCH] [ARM][AArch64] Introduce the Armv9.7-A architecture version

[clang] [llvm] [CGObjC] Allow clang.arc.attachedcall on -O0 on AArch64 (PR #164875)

2025-10-23 Thread via cfe-commits
https://github.com/AZero13 updated https://github.com/llvm/llvm-project/pull/164875 >From 3dad5f9f5551fe1ee11054c7a4d445b845feaf66 Mon Sep 17 00:00:00 2001 From: AZero13 Date: Thu, 23 Oct 2025 14:39:18 -0400 Subject: [PATCH] [CGObjC] Allow clang.arc.attachedcall on -O0 on AArch64 It is support

[clang] [llvm] [CGObjC] Allow clang.arc.attachedcall on -O0 on AArch64 (PR #164875)

2025-10-23 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff origin/main HEAD --extensions cpp -- clang/lib/CodeGen/CGObjC.cpp llvm/lib/Target/AAr

[clang] [llvm] [CGObjC] Allow clang.arc.attachedcall on -O0 on AArch64 (PR #164875)

2025-10-23 Thread via cfe-commits
https://github.com/AZero13 updated https://github.com/llvm/llvm-project/pull/164875 >From 0be58a1b5b15c806c9f3c7dc2e5d5edbd57aeaeb Mon Sep 17 00:00:00 2001 From: AZero13 Date: Thu, 23 Oct 2025 14:39:18 -0400 Subject: [PATCH] [CGObjC] Allow clang.arc.attachedcall on -O0 on AArch64 It is support

[clang] [clang][Driver][NFC] Remove trailing whitespace from Options.td (PR #164898)

2025-10-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Tarun Prabhu (tarunprabhu) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/164898.diff 1 Files Affected: - (modified) clang/include/clang/Driver/Options.td (+2-2) ``diff diff --git a/clang/include/clang/Driv

[clang] [clang][Driver][NFC] Remove trailing whitespace from Options.td (PR #164898)

2025-10-23 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu created https://github.com/llvm/llvm-project/pull/164898 None >From 88fbfe843b51a4e0c837c9a08da95911c3af7ba0 Mon Sep 17 00:00:00 2001 From: Tarun Prabhu Date: Thu, 23 Oct 2025 15:15:49 -0600 Subject: [PATCH] [clang][Driver][NFC] Remove trailing whitespace from O

[clang] [llvm] [ARM][AArch64] Introduce the Armv9.7-A architecture version (PR #163154)

2025-10-23 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray updated https://github.com/llvm/llvm-project/pull/163154 >From ac5fb9a75f29c28c6ee521d5e2fc93710b4a421e Mon Sep 17 00:00:00 2001 From: Jonathan Thackray Date: Mon, 8 Sep 2025 16:48:37 +0100 Subject: [PATCH] [ARM][AArch64] Introduce the Armv9.7-A architecture version

[clang] [clang-format] Fix brace wrapping for Java records (PR #164711)

2025-10-23 Thread Hannes Braun via cfe-commits
https://github.com/hannesbraun updated https://github.com/llvm/llvm-project/pull/164711 >From 729e177496c6a74e5764ebc1211256427a5a093c Mon Sep 17 00:00:00 2001 From: Hannes Braun Date: Wed, 22 Oct 2025 21:05:04 +0200 Subject: [PATCH] [clang-format] Fix brace wrapping for Java records The brace

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

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

[clang] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Nhat Nguyen via cfe-commits
@@ -5501,6 +5493,55 @@ class BuiltinBitCastExpr final } }; +/// Represents a C++2c reflect expression (P2996). +class CXXReflectExpr : public Expr { + + // Source locations. + SourceLocation OperatorLoc; + SourceRange OperandRange; + + CXXReflectExpr(const ASTContext &C,

[clang] [clang][DependencyScanning] Implementation of `CompilerInstanceWithContext` to Improve By-Name Queries (PR #164345)

2025-10-23 Thread Qiongsi Wu via cfe-commits
@@ -704,3 +703,165 @@ bool DependencyScanningAction::runInvocation( return Result; } + +const std::string CompilerInstanceWithContext::FakeFileBuffer = +std::string(MAX_NUM_NAMES, ' '); + +llvm::Error CompilerInstanceWithContext::initialize() { + std::tie(OverlayFS, Com

[clang] [clang] Make -dump-tokens option align tokens (PR #164894)

2025-10-23 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] Make -dump-tokens option align tokens (PR #164894)

2025-10-23 Thread via cfe-commits
https://github.com/alexpaniman created https://github.com/llvm/llvm-project/pull/164894 When using `-Xclang -dump-tokens`, the lexer dump output is currently difficult to read because the data are misaligned. The existing implementation simply separates the token name, spelling, flags, and loc

[clang] [clang][DependencyScanning] Implementation of `CompilerInstanceWithContext` to Improve By-Name Queries (PR #164345)

2025-10-23 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/164345 >From 19482768ca28eb478cd45a7bd0ff63f6c0af55ea Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Wed, 15 Oct 2025 09:22:59 -0700 Subject: [PATCH 1/8] Inital commit of CompilerInstanceWithContext, all tests pass

[clang] [llvm] [ARM][AArch64] Introduce the Armv9.7-A architecture version (PR #163154)

2025-10-23 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray updated https://github.com/llvm/llvm-project/pull/163154 >From 4b80151f27bdaf328198c0d657cc2e5e356536bb Mon Sep 17 00:00:00 2001 From: Jonathan Thackray Date: Mon, 8 Sep 2025 16:48:37 +0100 Subject: [PATCH] [ARM][AArch64] Introduce the Armv9.7-A architecture version

[clang] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Nhat Nguyen via cfe-commits
@@ -4945,6 +4945,12 @@ void CXXNameMangler::mangleExpression(const Expr *E, unsigned Arity, E = cast(E)->getSubExpr(); goto recurse; + case Expr::CXXReflectExprClass: { +// TODO: implement this after introducing std::meta::info changkhothuychung

[clang] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/164692 >From 482e25e9ba7994194f564d3c5f34e57bc818ebf0 Mon Sep 17 00:00:00 2001 From: changkhothuychung Date: Wed, 22 Oct 2025 14:34:06 -0400 Subject: [PATCH 01/34] parsing global namespace and primitive types

[clang] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Nhat Nguyen via cfe-commits
@@ -2566,6 +2566,11 @@ void StmtPrinter::VisitCXXUnresolvedConstructExpr( OS << ')'; } +void StmtPrinter::VisitCXXReflectExpr(CXXReflectExpr *S) { + // TODO: Make this better. + OS << "^(...)"; changkhothuychung wrote: I think this function is also simi

[clang] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/164692 >From 482e25e9ba7994194f564d3c5f34e57bc818ebf0 Mon Sep 17 00:00:00 2001 From: changkhothuychung Date: Wed, 22 Oct 2025 14:34:06 -0400 Subject: [PATCH 01/33] parsing global namespace and primitive types

[clang] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Nhat Nguyen via cfe-commits
@@ -2164,6 +2164,11 @@ StmtProfiler::VisitLambdaExpr(const LambdaExpr *S) { ID.AddInteger(Hasher.CalculateHash()); } +void StmtProfiler::VisitCXXReflectExpr(const CXXReflectExpr *E) { + VisitExpr(E); + // TODO: changkhothuychung wrote: Will implement this

[clang] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/164692 >From 482e25e9ba7994194f564d3c5f34e57bc818ebf0 Mon Sep 17 00:00:00 2001 From: changkhothuychung Date: Wed, 22 Oct 2025 14:34:06 -0400 Subject: [PATCH 01/32] parsing global namespace and primitive types

[clang] [llvm] [ARM][AArch64] Introduce the Armv9.7-A architecture version (PR #163154)

2025-10-23 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray updated https://github.com/llvm/llvm-project/pull/163154 >From 4fdc0017ee031c7f5e1924bd908ea0ae79aad30d Mon Sep 17 00:00:00 2001 From: Jonathan Thackray Date: Mon, 8 Sep 2025 16:48:37 +0100 Subject: [PATCH] [ARM][AArch64] Introduce the Armv9.7-A architecture version

[clang] [clang-tools-extra] [llvm] [clang][headers] Need a way for math.h to share the definitions of INIFINITY and NAN with float.h (PR #164348)

2025-10-23 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-sve-vla` running on `linaro-g3-04` while building `clang-tools-extra,clang,llvm` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/17/builds/12111 Here is the r

[clang] [flang] [flang][Driver] Enable -pie and -no-pie in flang's driver (PR #164890)

2025-10-23 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: Tarun Prabhu (tarunprabhu) Changes Passing -pie to flang will pass the flag on to the linker. Passing -no-pie will ensure that -pie is *not* passed to the linker. This behavior is consistent with both clang and gfortran. Fixes #15

[clang] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/164692 >From 482e25e9ba7994194f564d3c5f34e57bc818ebf0 Mon Sep 17 00:00:00 2001 From: changkhothuychung Date: Wed, 22 Oct 2025 14:34:06 -0400 Subject: [PATCH 01/31] parsing global namespace and primitive types

[clang] [clang-format][NFC] Port FormatTestComments to verifyFormat (PR #164310)

2025-10-23 Thread Björn Schäpers via cfe-commits
@@ -4290,413 +4287,414 @@ TEST_F(FormatTestComments, SpaceAtLineCommentBegin) { "// A comment with\n" "// some indentation that has to be split.\n" "// And now without"; - EXPECT_EQ("//

[clang] [llvm] Match bitsin(typeof(x)) - popcnt(x) to s_bcnt0_i32 on AMDGPU (PR #164847)

2025-10-23 Thread via cfe-commits
@@ -93,6 +95,13 @@ static cl::opt DisableFDivExpand( cl::ReallyHidden, cl::init(false)); +// Disable processing of fdiv so we can better test the backend implementations. LU-JOHN wrote: Is this option necessary? https://github.com/llvm/llvm-project/pull

[clang] [llvm] Match bitsin(typeof(x)) - popcnt(x) to s_bcnt0_i32 on AMDGPU (PR #164847)

2025-10-23 Thread via cfe-commits
@@ -2359,6 +2359,14 @@ def int_amdgcn_mbcnt_hi : DefaultAttrsIntrinsic<[llvm_i32_ty], [llvm_i32_ty, llvm_i32_ty], [IntrNoMem]>; +def int_amdgcn_bcnt032_lo : + ClangBuiltin<"__builtin_amdgcn_bcnt032_lo">, LU-JOHN wrote: Is "bcnt032_lo" the name

[clang] [X86][Clang] Allow constexpr evaluation of F16C CVTPS2PH intrinsics (PR #162295)

2025-10-23 Thread Hanyang Xu via cfe-commits
@@ -3002,6 +3002,91 @@ static bool interp__builtin_vec_set(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_ia32_vcvtps2ph(InterpState &S, CodePtr OpPC, + const CallExpr *Call) { + // Arguments are: vector

[clang] [clang-tools-extra] [Autocomplete] skip static annotation comment (PR #164854)

2025-10-23 Thread Kostiantyn Liepieshov via cfe-commits
https://github.com/liepieshov updated https://github.com/llvm/llvm-project/pull/164854 >From 8d5d646dae02c2de86451c425d1e2a6f58701fc7 Mon Sep 17 00:00:00 2001 From: Kostia Liepieshov Date: Thu, 23 Oct 2025 17:31:45 + Subject: [PATCH] [Autocomplete] skip static annotation comment Skip /*sta

[clang] [clang][DependencyScanning] Implementation of `CompilerInstanceWithContext` to Improve By-Name Queries (PR #164345)

2025-10-23 Thread Qiongsi Wu via cfe-commits
@@ -704,3 +703,165 @@ bool DependencyScanningAction::runInvocation( return Result; } + +const std::string CompilerInstanceWithContext::FakeFileBuffer = +std::string(MAX_NUM_NAMES, ' '); + +llvm::Error CompilerInstanceWithContext::initialize() { + std::tie(OverlayFS, Com

[clang] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Nhat Nguyen via cfe-commits
@@ -529,6 +529,10 @@ void ASTStmtReader::VisitCapturedStmt(CapturedStmt *S) { } } +void ASTStmtReader::VisitCXXReflectExpr(CXXReflectExpr *E) { + llvm_unreachable("unimplemented"); changkhothuychung wrote: I see. I guess we will implement this in another P

[clang] [CIR][NFC] Upstream EHPersonality for function (PR #164883)

2025-10-23 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/164883 Upstream the EHPersonality class for a function as a prerequisite for working with the handlers Issue #154992 >From 564c440f823fa29b8783cc4a70676ecacd4f97b6 Mon Sep 17 00:00:00 2001 From: Amr Hesham Date

[clang] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Nhat Nguyen via cfe-commits
@@ -380,6 +380,8 @@ FEATURE(cxx_abi_relative_vtable, LangOpts.CPlusPlus && LangOpts.RelativeCXXABIVT FEATURE(clang_atomic_attributes, true) +FEATURE(reflection, LangOpts.Reflection) changkhothuychung wrote: removed https://github.com/llvm/llvm-project/pull

[clang] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Nhat Nguyen via cfe-commits
@@ -1848,6 +1848,11 @@ def err_placeholder_expected_auto_or_decltype_auto : Error< "expected 'auto' or 'decltype(auto)' after concept name">; } +let CategoryName = "Reflection Issue" in { +def err_cannot_reflect_operand : Error< + "cannot reflect the provided operand">; --

[clang] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/164692 >From 482e25e9ba7994194f564d3c5f34e57bc818ebf0 Mon Sep 17 00:00:00 2001 From: changkhothuychung Date: Wed, 22 Oct 2025 14:34:06 -0400 Subject: [PATCH 01/30] parsing global namespace and primitive types

[clang] [clang-format] Allow line breaking with PointerAlignment configured (PR #164686)

2025-10-23 Thread Björn Schäpers via cfe-commits
@@ -8644,6 +8644,38 @@ TEST_F(FormatTest, BreaksFunctionDeclarations) { " a) {}", Style); + Style.ColumnLimit = 70; + verifyFormat( + "void foo( //\n" + "const MySuperSuperSu

[clang] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-23 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/164692 >From 482e25e9ba7994194f564d3c5f34e57bc818ebf0 Mon Sep 17 00:00:00 2001 From: changkhothuychung Date: Wed, 22 Oct 2025 14:34:06 -0400 Subject: [PATCH 01/29] parsing global namespace and primitive types

  1   2   3   4   5   6   >