[clang-tools-extra] [clang-tools-extra] Replace LLVM_ATTRIBUTE_UNUSED with [[maybe_unused]] (NFC) (PR #163915)

2025-10-16 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/163915 This patch replaces LLVM_ATTRIBUTE_UNUSED with [[maybe_unused]], introduced as part of C++17. >From 8ba1fc160eb1cf869ed9f72b06f626c341b3aa09 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Wed, 15 Oct

[clang] [CIR] Implement inline builtin functions (PR #163911)

2025-10-16 Thread Henrich Lauko via cfe-commits
@@ -551,6 +551,50 @@ cir::FuncOp CIRGenFunction::generateCode(clang::GlobalDecl gd, cir::FuncOp fn, const auto funcDecl = cast(gd.getDecl()); curGD = gd; + if (funcDecl->isInlineBuiltinDeclaration()) { +// When generating code for a builtin with an inline declaration

[clang-tools-extra] clangd: Make callHierarchy follow inheritance (PR #163024)

2025-10-16 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: I've checked out this PR locally, and for me it both builds successfully with `-DCLANGD_ENABLE_REMOTE=ON`, and passes `ninja check-clangd`. I guess what ultimately matters is whether it builds and passes tests on the buildbot that tests this configuration. I don't think t

[clang] [clang][bytecode] Add Block::movePointersTo (PR #163795)

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

[clang] [CIR] Implement inline builtin functions (PR #163911)

2025-10-16 Thread Morris Hafner via cfe-commits
https://github.com/mmha created https://github.com/llvm/llvm-project/pull/163911 This patch implements the handling of inline builtin functions in CIR. There is a known limitation in CIR where direct calls to shadowed inline builtin functions are generated instead of the intrinsic. This is expe

[clang] 059f2df - [clang-format] Fix an assertion failure on comment-only config files (#163111)

2025-10-16 Thread via cfe-commits
Author: owenca Date: 2025-10-16T21:40:59-07:00 New Revision: 059f2df74898ff7f394dc8e60f746323499ae32b URL: https://github.com/llvm/llvm-project/commit/059f2df74898ff7f394dc8e60f746323499ae32b DIFF: https://github.com/llvm/llvm-project/commit/059f2df74898ff7f394dc8e60f746323499ae32b.diff LOG: [

[clang] [docs][OpenMP] Update support doc with the planned/in-progress pointer-attachment work. (PR #163908)

2025-10-16 Thread Abhinav Gaba via cfe-commits
https://github.com/abhinavgaba created https://github.com/llvm/llvm-project/pull/163908 None >From 7b7f5db0b35a701803d95a9034b0114cb241203d Mon Sep 17 00:00:00 2001 From: Abhinav Gaba Date: Thu, 16 Oct 2025 21:17:48 -0700 Subject: [PATCH] [docs][OpenMP] Update support doc with the planned/in-

[clang] [llvm] [RISCV][LLVM] Enable atomics for 'Zalrsc' (PR #163672)

2025-10-16 Thread via cfe-commits
@@ -192,8 +192,11 @@ void RISCVTargetInfo::getTargetDefines(const LangOptions &Opts, Builder.defineMacro("__riscv_muldiv"); } - if (ISAInfo->hasExtension("a")) { + // The "a" extension is composed of "zalrsc" and "zaamo" + if (ISAInfo->hasExtension("zalrsc") && ISAIn

[clang] [Clang] Substitute non dependent concepts in constraints (PR #163827)

2025-10-16 Thread Younan Zhang via cfe-commits
@@ -5192,6 +5198,46 @@ bool TreeTransform::TransformTemplateArguments( return false; } +template zyn0217 wrote: How about TransformNonDependentTemplateArguments? (we can have a default IsNonDependentConcept and a client defined implementation) https://gi

[clang] [Clang] Substitute non dependent concepts in constraints (PR #163827)

2025-10-16 Thread Younan Zhang via cfe-commits
@@ -4487,6 +4487,109 @@ ExprResult Sema::SubstConstraintExprWithoutSatisfaction( return Instantiator.TransformExpr(E); } +ExprResult Sema::SubstConceptTemplateArguments( +const ConceptSpecializationExpr *CSE, const Expr *ConstraintExpr, +const MultiLevelTemplateArgum

[clang] [Clang] Substitute non dependent concepts in constraints (PR #163827)

2025-10-16 Thread Younan Zhang via cfe-commits
@@ -4487,6 +4487,109 @@ ExprResult Sema::SubstConstraintExprWithoutSatisfaction( return Instantiator.TransformExpr(E); } +ExprResult Sema::SubstConceptTemplateArguments( +const ConceptSpecializationExpr *CSE, const Expr *ConstraintExpr, +const MultiLevelTemplateArgum

[clang] [Clang] Substitute non dependent concepts in constraints (PR #163827)

2025-10-16 Thread Younan Zhang via cfe-commits
@@ -2249,8 +2287,14 @@ NormalizedConstraint *NormalizedConstraint::fromConstraintExpr( // Use canonical declarations to merge ConceptDecls across // different modules. ConceptDecl *CD = CSE->getNamedConcept()->getCanonicalDecl(); + + ExprResult Res = +

[clang] [Clang] Substitute non dependent concepts in constraints (PR #163827)

2025-10-16 Thread Younan Zhang via cfe-commits
@@ -4487,6 +4487,109 @@ ExprResult Sema::SubstConstraintExprWithoutSatisfaction( return Instantiator.TransformExpr(E); } +ExprResult Sema::SubstConceptTemplateArguments( +const ConceptSpecializationExpr *CSE, const Expr *ConstraintExpr, +const MultiLevelTemplateArgum

[clang] [Clang][HIP][CUDA] Add `__cluster_dims__` and `__no_cluster__` attribute (PR #156686)

2025-10-16 Thread Erich Keane via cfe-commits
@@ -7545,6 +7545,45 @@ A managed variable can be accessed in both device and host code. }]; } +def CUDAClusterDimsAttrDoc : Documentation { + let Category = DocCatDecl; + let Content = [{ +In CUDA/HIP programming, the ``cluster_dims`` attribute, conventionally exposed as

[clang] [CIR] Add support for ternary operator as lvalue (PR #163580)

2025-10-16 Thread Erich Keane via cfe-commits
@@ -2394,6 +2394,185 @@ LValue CIRGenFunction::emitPredefinedLValue(const PredefinedExpr *e) { return emitStringLiteralLValue(sl, gvName); } +LValue CIRGenFunction::emitOpaqueValueLValue(const OpaqueValueExpr *e) { + assert(OpaqueValueMappingData::shouldBindAsLValue(e)); +

[clang] [CIR] Handle return with cleanups (PR #163849)

2025-10-16 Thread Andy Kaylor via cfe-commits
andykaylor wrote: > > That would simplify the EHScopeStck handling significantly in CIR, but the > > complexity would just be moved to the FlattenCFG pass, and this would mean > > we were diverging from the classic codegen code structure. > > I'm up for the tradeoff here, the lower level alter

[clang] [FlowSensitive] [Optional] Fix absl::in_place (PR #163897)

2025-10-16 Thread Florian Mayer via cfe-commits
https://github.com/fmayer created https://github.com/llvm/llvm-project/pull/163897 The mock was not accurate, absl defines in_place[_t] as an alias to std::in_place[_t]. >From dec274f76b8b0b0a9f78557af94a5a80335f6521 Mon Sep 17 00:00:00 2001 From: Florian Mayer Date: Thu, 16 Oct 2025 17:26:16

[clang] [CIR] Upstream aggregate binary assign handling (PR #163877)

2025-10-16 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes edited https://github.com/llvm/llvm-project/pull/163877 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] TryOp add arg default value and update diagnostic (PR #163856)

2025-10-16 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. Nice incremental change, LGTM https://github.com/llvm/llvm-project/pull/163856 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm

[clang] [CIR] Add name for enum type in vtable (PR #163612)

2025-10-16 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM once @AmrDeveloper concerns are addressed! https://github.com/llvm/llvm-project/pull/163612 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman

[clang] [CIR] Add support for dynamic cast to void (PR #162905)

2025-10-16 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. https://github.com/llvm/llvm-project/pull/162905 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][LLVM] Enable atomics for 'Zalrsc' (PR #163672)

2025-10-16 Thread Craig Topper via cfe-commits
@@ -192,8 +192,11 @@ void RISCVTargetInfo::getTargetDefines(const LangOptions &Opts, Builder.defineMacro("__riscv_muldiv"); } - if (ISAInfo->hasExtension("a")) { + // The "a" extension is composed of "zalrsc" and "zaamo" + if (ISAInfo->hasExtension("zalrsc") && ISAIn

[clang] [Clang][Sema] Fix err_constexpr_virtual_base diagnostic so that it only diagnoses on constructors and destructors (PR #163690)

2025-10-16 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik updated https://github.com/llvm/llvm-project/pull/163690 >From f6bded3e92814b7ec5f2c3427e9c61b3fa0775f2 Mon Sep 17 00:00:00 2001 From: Shafik Yaghmour Date: Wed, 15 Oct 2025 20:09:36 -0700 Subject: [PATCH 1/4] [Clang][Sema] Fix err_constexpr_virtual_base diagnostic so

[clang] [CIR]lAdd name for function type in vtable (PR #163836)

2025-10-16 Thread via cfe-commits
https://github.com/y-Adrian updated https://github.com/llvm/llvm-project/pull/163836 >From d7a38e20f3998fab4d1353b0d86e528a1f428317 Mon Sep 17 00:00:00 2001 From: Adrian Date: Fri, 17 Oct 2025 01:56:33 +0800 Subject: [PATCH] [CIR]llvm#163601:handle function type --- clang/lib/CIR/CodeGen/CIRG

[clang] [Clang] Consider reachability for file-scope warnings on initializers (PR #163885)

2025-10-16 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt edited https://github.com/llvm/llvm-project/pull/163885 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Consider reachability for file-scope warnings on initializers (PR #163885)

2025-10-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Justin Stitt (JustinStitt) Changes Every once in awhile, we get a new Linux kernel report about false positive clang warnings being emitted for file-scope variables when initialized. See [[0]](https://lore.kernel.org/all/8c252429

[clang] [Clang][HIP][CUDA] Add `__cluster_dims__` and `__no_cluster__` attribute (PR #156686)

2025-10-16 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/156686 >From 367a570ec538e79f339929c1b0c39b2d11b47cf4 Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Wed, 3 Sep 2025 10:47:52 -0400 Subject: [PATCH 01/14] [Clang][HIP][CUDA] Add `__cluster_dims__` and `__no_cluster

[clang] [HLSL] Convert vectors to bool for unary ! (PR #163857)

2025-10-16 Thread Chris B via cfe-commits
https://github.com/llvm-beanz updated https://github.com/llvm/llvm-project/pull/163857 >From 490971d23eb067f7a2e3d2ca8b4e2f53bb3fe13f Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Thu, 16 Oct 2025 15:18:39 -0500 Subject: [PATCH 1/3] [HLSL] Convert vectors to bool for unary ! HLSL extends

[clang] [CIR]lAdd name for function type in vtable (PR #163836)

2025-10-16 Thread via cfe-commits
https://github.com/y-Adrian edited https://github.com/llvm/llvm-project/pull/163836 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-10-16 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,95 @@ +//===--===// +// +// 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: Apac

[clang-tools-extra] Add bugprone-loop-variable-copied-then-modified clang-tidy check. (PR #157213)

2025-10-16 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,152 @@ +// RUN: %check_clang_tidy %s bugprone-loop-variable-copied-then-modified %t --fix-notes + +template +struct Iterator { + void operator++() {} + const T& operator*() { +static T* TT = new T(); +return *TT; + } + bool operator!=(const Iterator &) { r

[clang] [HLSL] Convert vectors to bool for unary ! (PR #163857)

2025-10-16 Thread Farzon Lotfi via cfe-commits
@@ -15944,6 +15944,20 @@ ExprResult Sema::CreateBuiltinUnaryOp(SourceLocation OpLoc, return ExprError(Diag(OpLoc, diag::err_typecheck_unary_expr) << resultType << Input.get()->getSourceRange()); } + } else if (Context.getLa

[clang] [HLSL] Update type for `out` arguments only for dependent params types (PR #163832)

2025-10-16 Thread Justin Bogner via cfe-commits
@@ -765,10 +765,18 @@ static bool isRelevantAttr(Sema &S, const Decl *D, const Attr *A) { static void instantiateDependentHLSLParamModifierAttr( Sema &S, const MultiLevelTemplateArgumentList &TemplateArgs, -const HLSLParamModifierAttr *Attr, Decl *New) { - ParmVarDec

[clang] [Clang][HIP][CUDA] Add `__cluster_dims__` and `__no_cluster__` attribute (PR #156686)

2025-10-16 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. I'd like to close out on a unified way of talking about this in the docs, but I'm ok with the rest of it, so approve pending a touch of work on docs. https://github.com/llvm/llvm-project/pull/156686 __

[clang] [llvm] [MemProf] Remove memprof attrs and metadata in non-LTO pipelines (PR #163853)

2025-10-16 Thread Teresa Johnson via cfe-commits
https://github.com/teresajohnson closed https://github.com/llvm/llvm-project/pull/163853 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] TryOp add arg default value and update diagnostic (PR #163856)

2025-10-16 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/163856 - Add a default value to handler_types to be able to construct TryOp, then modify the handlers. - Move empty region diagnostic from tablegen constraints to C++, because we need the ability to add an empty

[clang] [HLSL][NFC] Refactor structured buffer methods tests (PR #161908)

2025-10-16 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/26009 Her

[clang] [llvm] [FlowSensitive] [StatusOr] [2/N] Add minimal model (PR #162932)

2025-10-16 Thread Florian Mayer via cfe-commits
https://github.com/fmayer edited https://github.com/llvm/llvm-project/pull/162932 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Atomic fetch operation (PR #161631)

2025-10-16 Thread Andy Kaylor via cfe-commits
andykaylor wrote: @Lancern Now that https://github.com/llvm/llvm-project/pull/160330 has been merged, is this ready to be rebased? https://github.com/llvm/llvm-project/pull/161631 ___ cfe-commits mailing list [email protected] https://lists.l

[libunwind] [libunwind] Fix aarch64 SEH unwinding with a debugger attached (PR #162867)

2025-10-16 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#163854 https://github.com/llvm/llvm-project/pull/162867 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [MemProf] Remove memprof attrs and metadata in non-LTO pipelines (PR #163853)

2025-10-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Teresa Johnson (teresajohnson) Changes Follow up to PR163841 to use the new pass in the default non-LTO pipeline setup. This is needed so that we don't use the hints to convert allocation calls when we don't know whether we are linking with

[clang] [llvm] [MemProf] Remove memprof attrs and metadata in non-LTO pipelines (PR #163853)

2025-10-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-lto Author: Teresa Johnson (teresajohnson) Changes Follow up to PR163841 to use the new pass in the default non-LTO pipeline setup. This is needed so that we don't use the hints to convert allocation calls when we don't know whether we are linking with a

[clang] [llvm] [mlir] [support] Use VFS in `SourceMgr` for loading includes (PR #162903)

2025-10-16 Thread Jan Svoboda via cfe-commits
jansvoboda11 wrote: Thank you for the report. I'll take a look and will attempt a forward-fix and I'll revert in case I can't get that done by EOD. https://github.com/llvm/llvm-project/pull/162903 ___ cfe-commits mailing list [email protected]

[clang] [CIR] Upstream pointer subtraction handling (PR #163306)

2025-10-16 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/163306 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] Fix aarch64 SEH unwinding with a debugger attached (PR #162867)

2025-10-16 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo milestoned https://github.com/llvm/llvm-project/pull/162867 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR]lAdd name for function type in vtable (PR #163839)

2025-10-16 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor commented: This need a test added. https://github.com/llvm/llvm-project/pull/163839 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9458faa - [CIR][NFC] Fix code style warnings (#163842)

2025-10-16 Thread via cfe-commits
Author: Amr Hesham Date: 2025-10-16T21:47:32+02:00 New Revision: 9458faa63fcecf16e744d88746097cb82936d1e6 URL: https://github.com/llvm/llvm-project/commit/9458faa63fcecf16e744d88746097cb82936d1e6 DIFF: https://github.com/llvm/llvm-project/commit/9458faa63fcecf16e744d88746097cb82936d1e6.diff LO

[libunwind] [libunwind] Fix aarch64 SEH unwinding with a debugger attached (PR #162867)

2025-10-16 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo closed https://github.com/llvm/llvm-project/pull/162867 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-10-16 Thread via cfe-commits
https://github.com/n2h9 edited https://github.com/llvm/llvm-project/pull/163850 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][HIP][CUDA] Add `__cluster_dims__` and `__no_cluster__` attribute (PR #156686)

2025-10-16 Thread Erich Keane via cfe-commits
@@ -5674,6 +5674,130 @@ static void handleLaunchBoundsAttr(Sema &S, Decl *D, const ParsedAttr &AL) { AL.getNumArgs() > 2 ? AL.getArgAsExpr(2) : nullptr); } +static std::pair +makeClusterDimsArgExpr(Sema &S, Expr *E, const CUDAClusterDimsAttr &AL, +

[clang] [HLSL] Update type for `out` arguments only for dependent params types (PR #163832)

2025-10-16 Thread Tex Riddell via cfe-commits
@@ -765,10 +765,18 @@ static bool isRelevantAttr(Sema &S, const Decl *D, const Attr *A) { static void instantiateDependentHLSLParamModifierAttr( Sema &S, const MultiLevelTemplateArgumentList &TemplateArgs, -const HLSLParamModifierAttr *Attr, Decl *New) { - ParmVarDec

[clang] [Driver] Remove support for FreeBSD 13.x (PR #163847)

2025-10-16 Thread Brad Smith via cfe-commits
https://github.com/brad0 edited https://github.com/llvm/llvm-project/pull/163847 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [ASan] Document define to disable container overflow checks at compile time. (PR #163468)

2025-10-16 Thread Paddy McDonald via cfe-commits
@@ -164,6 +164,23 @@ To summarize: ``-fsanitize-address-use-after-return=`` * ``always``: Enables detection of UAR errors in all cases. (reduces code size, but not as much as ``never``). +Container Overflow Detection + + +AddressSanitizer can

[clang] [llvm] [MemProf] Convert removal of memprof attrs and metadata to a pass (PR #163841)

2025-10-16 Thread Teresa Johnson via cfe-commits
@@ -41,13 +42,12 @@ ; RUN: -r=%t/foo.o,foo,plx \ ; RUN: -r=%t/foo.o,_Znam, \ ; RUN: -memprof-dump-ccg \ -; RUN: -save-temps \ +; RUN: -print-before=memprof-context-disambiguation \ teresajohnson wrote: I was trying to keep the point of validation consistent b

[clang] [CIR] Handle return with cleanups (PR #163849)

2025-10-16 Thread Andy Kaylor via cfe-commits
andykaylor wrote: I'm not entirely convinced this is the direction we want to go long-term, so I'd like to solicit opinions on that question specifically. This matches the handling for this case in the incubator, which is closely modeled after the same handling in classic codegen. Classic code

[clang] [clang][bytecode] interp__builtin_ia32_pshuf - modulo lane index to allow reuse of PSHUFD/LW/HW mask decode. NFC (PR #162006)

2025-10-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Simon Pilgrim (RKSimon) Changes Removes need to offset PSHUFHW land index to extract the shuffle mask element --- Full diff: https://github.com/llvm/llvm-project/pull/162006.diff 1 Files Affected: - (modified) clang/lib/AST/ByteCode/Int

[clang] [CIR][NFC] Fix code style warnings (PR #163842)

2025-10-16 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/163842 Fix code style warnings in the emitNewArrayInitializer declaration >From 8af8566b6c1604c30fee67f040a73c10d50bed81 Mon Sep 17 00:00:00 2001 From: Amr Hesham Date: Thu, 16 Oct 2025 20:30:14 +0200 Subject: [P

[clang] [HLSL] Update type for `out` arguments only for dependent params types (PR #163832)

2025-10-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Helena Kotas (hekota) Changes When a template function with `out` arguments is instantiated, only the arguments with dependent types need to have their `out` type updated to a restricted reference. Non-dependent argument types have already

[clang] [llvm] [RISCV][LLVM] Enable atomics for 'Zalrsc' (PR #163672)

2025-10-16 Thread Craig Topper via cfe-commits
@@ -308,7 +308,67 @@ class PseudoMaskedAMOMinMaxPat (AMOInst GPR:$addr, GPR:$incr, GPR:$mask, GPR:$shiftamt, timm:$ordering)>; -let Predicates = [HasStdExtA] in { +let Predicates = [HasStdExtZalrsc, NoStdExtZaamo] in { + +let Size = 16 in { +def PseudoAtom

[clang] [Clang][NFC] Rename UnqualPtrTy to DefaultPtrTy (PR #163207)

2025-10-16 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/163207 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add an lvalue to rvalue cast when appropriate for HLSLElementwiseCast and HLSLAggregateSplatCast (PR #163828)

2025-10-16 Thread Sarah Spall via cfe-commits
https://github.com/spall created https://github.com/llvm/llvm-project/pull/163828 When the Sub expression of an HLSLAggregateSplatCast is an LValue insert an LValue to RValue cast; done using DefaultLvalueConversion. When the Sub expression of an HLSLElementwiseCast is an LValue and not a recor

[clang] [Clang][Sema] Fix err_constexpr_virtual_base diagnostic so that it only diagnoses on constructors and destructors (PR #163690)

2025-10-16 Thread Shafik Yaghmour via cfe-commits
@@ -1918,23 +1918,22 @@ static bool CheckConstexprMissingReturn(Sema &SemaRef, const FunctionDecl *Dcl); bool Sema::CheckConstexprFunctionDefinition(const FunctionDecl *NewFD, CheckConstexprKind Kind) { - const CXXMethodDecl *MD =

[clang] [Clang][Sema] Fix err_constexpr_virtual_base diagnostic so that it only diagnoses on constructors and destructors (PR #163690)

2025-10-16 Thread Shafik Yaghmour via cfe-commits
@@ -1918,23 +1918,22 @@ static bool CheckConstexprMissingReturn(Sema &SemaRef, const FunctionDecl *Dcl); bool Sema::CheckConstexprFunctionDefinition(const FunctionDecl *NewFD, CheckConstexprKind Kind) { - const CXXMethodDecl *MD =

[clang] [llvm] [HLSL] Implement the `fwidth` intrinsic for DXIL and SPIR-V target (PR #161378)

2025-10-16 Thread Farzon Lotfi via cfe-commits
@@ -2615,6 +2618,15 @@ bool SPIRVInstructionSelector::selectDiscard(Register ResVReg, .constrainAllUses(TII, TRI, RBI); } +bool SPIRVInstructionSelector::selectFwidth(Register ResVReg, +const SPIRVType *ResType, +

[clang] [CIR] Upstream pointer subtraction handling (PR #163306)

2025-10-16 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,51 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir +// RUN: FileCheck --check-prefix=CIR --input-file=%t.cir %s +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t-cir.ll +// RUN: FileCheck --chec

[clang] [CIR] Upstream pointer subtraction handling (PR #163306)

2025-10-16 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor edited https://github.com/llvm/llvm-project/pull/163306 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][LLVM] Enable atomics for 'Zalrsc' (PR #163672)

2025-10-16 Thread via cfe-commits
https://github.com/slachowsky edited https://github.com/llvm/llvm-project/pull/163672 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Bail out from type-punning casts (PR #163809)

2025-10-16 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,h -- clang/lib/AST/ByteCode/Compiler.cpp clang/lib/

[clang] [llvm] [RISCV][LLVM] Enable atomics for 'Zalrsc' (PR #163672)

2025-10-16 Thread Craig Topper via cfe-commits
https://github.com/topperc edited https://github.com/llvm/llvm-project/pull/163672 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fix clang_cmake_builddir (PR #161220)

2025-10-16 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-test-suite` running on `ppc64le-clang-test-suite` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/95/builds/187

[clang] [Headers][X86] Allow AVX512 masked shuffles to be used in constexpr (PR #162301)

2025-10-16 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon approved this pull request. LGTM - cheers https://github.com/llvm/llvm-project/pull/162301 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [IR] Replace alignment argument with attribute on masked intrinsics (PR #163802)

2025-10-16 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,h,c -- clang/test/CodeGen/AArch64/sve-intrinsics/ac

[clang] [clang][PAC] Add ptrauth.h helpers for computing type discriminators (PR #163456)

2025-10-16 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/163456 >From 7e7dbd53c88e96ba440ad48f05d6472e03eafd72 Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Tue, 14 Oct 2025 14:26:04 -0700 Subject: [PATCH] [clang][PAC] Add ptrauth.h helpers for computing type discriminato

[clang] [clang][utils] Add auto mode to reduction script (PR #163282)

2025-10-16 Thread Arthur Eubanks via cfe-commits
@@ -424,11 +490,76 @@ def run_creduce(self): print("\n\nctrl-c detected, killed reduction tool") p.kill() +def run_llvm_reduce(self): +full_llvm_reduce_cmd = [ +llvm_reduce_cmd, +f"--test={self.testfile}", +

[libclc] 754ebc6 - [NFC][libclc] Add missing evaluation for variable ${tool}_target (#163540)

2025-10-16 Thread via cfe-commits
Author: Wenju He Date: 2025-10-16T09:40:09+08:00 New Revision: 754ebc6ebb9fb9fbee7aef33478c74ea74949853 URL: https://github.com/llvm/llvm-project/commit/754ebc6ebb9fb9fbee7aef33478c74ea74949853 DIFF: https://github.com/llvm/llvm-project/commit/754ebc6ebb9fb9fbee7aef33478c74ea74949853.diff LOG:

[clang] [clang-tools-extra] [clang-tidy] Add readability-avoid-default-lambda-capture (PR #160150)

2025-10-16 Thread Baranov Victor via cfe-commits
vbvictor wrote: When finished with initial work, please try to run the check over LLVM/other large codebase to see if there any bugs. https://clang.llvm.org/extra/clang-tidy/Contributing.html#running-clang-tidy-on-llvm https://github.com/llvm/llvm-project/pull/160150 ___

[clang-tools-extra] [clang-tidy] Add a fully custom message to `bugprone-unsafe-functions` (PR #162443)

2025-10-16 Thread via cfe-commits
Discookie wrote: No particular reason for choosing the prefix `>`. I thought about enclosing it in `"` quotes, with escape sequences like `\"`, but that would require implementing a parser in clang-tidy, and that seemed to be unnecessarily big in scope. A single-character prefix seemed better

[clang] [llvm] [llvm][clang] Remove handling of Python2 ConfigParser module name (PR #163727)

2025-10-16 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-testing-tools @llvm/pr-subscribers-clang Author: David Spickett (DavidSpickett) Changes LLVM now requires Python >= 3.8, and ConfigParser was renamed to configparser in 3.0: https://docs.python.org/3/whatsnew/3.0.html#library-changes A few places impor

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - Allow AVX512 conflict intrinsics to be used in constexpr (PR #163293)

2025-10-16 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/163293 >From 9e2b1aab5e48c69b7ad7c0e5c10d8809c218b71e Mon Sep 17 00:00:00 2001 From: NagaChaitanya Vellanki Date: Sun, 12 Oct 2025 02:19:26 -0700 Subject: [PATCH] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretB

[clang] [Clang][Sema] Fix err_constexpr_virtual_base diagnostic so that it only diagnoses on constructors and destructors (PR #163690)

2025-10-16 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon commented: Needs a release note https://github.com/llvm/llvm-project/pull/163690 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits