[libunwind] libunwind: Remove OS requirements from tests to make them run on more OSes (PR #167642)

2025-11-21 Thread Gleb Popov via cfe-commits
https://github.com/arrowd updated https://github.com/llvm/llvm-project/pull/167642 >From 7cbe4c0f0c51891ab51a0e73b62a88ba7e95a95c Mon Sep 17 00:00:00 2001 From: Gleb Popov <[email protected]> Date: Tue, 30 Sep 2025 13:59:25 +0300 Subject: [PATCH] libunwind: Remove OS requirements from tests to

[libunwind] libunwind: Remove OS requirements from tests to make them run on more OSes (PR #167642)

2025-11-21 Thread Gleb Popov via cfe-commits
https://github.com/arrowd updated https://github.com/llvm/llvm-project/pull/167642 >From 369be95a2ab89fd2ed8679fd68f26218a624d2a0 Mon Sep 17 00:00:00 2001 From: Gleb Popov <[email protected]> Date: Tue, 30 Sep 2025 13:59:25 +0300 Subject: [PATCH 1/2] libunwind: Remove OS requirements from tests

[clang] [CIR] Upstream Builtin Exp2Op (PR #169152)

2025-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Letu Ren (FantasqueX) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/169152.diff 4 Files Affected: - (modified) clang/include/clang/CIR/Dialect/IR/CIROps.td (+10) - (modified) clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp

[clang] [CIR] Upstream Builtin Exp2Op (PR #169152)

2025-11-21 Thread Letu Ren via cfe-commits
https://github.com/FantasqueX created https://github.com/llvm/llvm-project/pull/169152 None >From 43d1ffab8b5a9067499a3ad6a047adb822bdedee Mon Sep 17 00:00:00 2001 From: Letu Ren Date: Sat, 22 Nov 2025 15:29:00 +0800 Subject: [PATCH] [CIR] Upstream Builtin Exp2Op --- clang/include/clang/CIR/

[clang-tools-extra] Add --project-root to clangd (PR #155905)

2025-11-21 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > > my editor's (Zed) built-in clangd client doesn't set the project root > > directory as the working directory for fallback commands. VSCode does > > actually have this behavior. > > Do you know how VSCode does this? I tried to reproduce the described behaviour in VSCo

[clang] [CIR] Add support for non-compile-time memory order (PR #168892)

2025-11-21 Thread Sirui Mu via cfe-commits
@@ -844,9 +869,63 @@ RValue CIRGenFunction::emitAtomicExpr(AtomicExpr *e) { emitAtomicOp(*this, e, dest, ptr, val1, val2, isWeakExpr, orderFailExpr, size, static_cast(ord)); } else { -assert(!cir::MissingFeatures::atomicExpr()); -cgm.errorNYI(

[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)

2025-11-21 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght edited https://github.com/llvm/llvm-project/pull/167159 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)

2025-11-21 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght edited https://github.com/llvm/llvm-project/pull/167159 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for non-compile-time memory order (PR #168892)

2025-11-21 Thread Sirui Mu via cfe-commits
https://github.com/Lancern updated https://github.com/llvm/llvm-project/pull/168892 >From 550e4978f9b6d02b4e72b622bf93a2f6d537cd08 Mon Sep 17 00:00:00 2001 From: Sirui Mu Date: Thu, 20 Nov 2025 23:37:37 +0800 Subject: [PATCH] [CIR] Add support for non-compile-time memory order This patch upstr

[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)

2025-11-21 Thread Zhikai Zeng via cfe-commits
@@ -7291,11 +7291,26 @@ ExprResult Sema::CheckTemplateArgument(NamedDecl *Param, QualType ParamType, Result = ActOnConstantExpression(Result.get()); if (Result.isInvalid() || !Result.get()) return ExprError(); +Expr* OldDeductionArg = DeductionArg; setDe

[clang] [analyzer] Fix [[clang::suppress]] for template instantiations (PR #168954)

2025-11-21 Thread Balázs Benics via cfe-commits
steakhal wrote: > Which means that there's probably a small opportunity for optimization there. > It may be a good idea to include the *uninstantiated* template in the scan > range while continuing to skip all instantiations? Because that's presumably > how everything else works anyway. And th

[clang] [clang][bytecode] Don't call getThis() on the bottom function frame (PR #169044)

2025-11-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `reverse-iteration` running on `hexagon-build-03` while building `clang` at step 6 "check_all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/110/builds/6439 Here is the relevant piece of the build l

[clang] [clang][bytecode][NFC] Remove VariableScope::emitDestruction (PR #169148)

2025-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes destroyLocals() does the same thing. --- Full diff: https://github.com/llvm/llvm-project/pull/169148.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+14-7) - (modified) clang/lib/

[clang] [clang][bytecode][NFC] Remove VariableScope::emitDestruction (PR #169148)

2025-11-21 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/169148 destroyLocals() does the same thing. >From 00ea6d737a7a6ba5cf0b94fdfa805d6b8f026f8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 22 Nov 2025 06:58:40 +0100 Subject: [PATCH] [clang][b

[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)

2025-11-21 Thread Zhikai Zeng via cfe-commits
@@ -5628,6 +5628,11 @@ class DesignatedInitExpr final FieldInfo.NameOrField = reinterpret_cast(FD); } +void clearFieldDecl() { + assert(isFieldDesignator() && "Only valid on a field designator"); Backl1ght wrote: According to the definition

[clang] [clang][bytecode] Don't call getThis() on the bottom function frame (PR #169044)

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

[clang] 3841e7d - [clang][bytecode] Don't call getThis() on the bottom function frame (#169044)

2025-11-21 Thread via cfe-commits
Author: Timm Baeder Date: 2025-11-22T05:18:18Z New Revision: 3841e7d818de2b7581351c6de3bfc9b13bdaeb30 URL: https://github.com/llvm/llvm-project/commit/3841e7d818de2b7581351c6de3bfc9b13bdaeb30 DIFF: https://github.com/llvm/llvm-project/commit/3841e7d818de2b7581351c6de3bfc9b13bdaeb30.diff LOG: [

[clang] [lld] [llvm] [WIP][IR][Constants] Change the semantic of `ConstantPointerNull` to represent an actual `nullptr` instead of a zero-value pointer (PR #166667)

2025-11-21 Thread Shilei Tian via cfe-commits
@@ -4275,8 +4275,15 @@ static void emitGlobalConstantImpl(const DataLayout &DL, const Constant *CV, return emitGlobalConstantFP(CFP, AP); } - if (isa(CV)) { -AP.OutStreamer->emitIntValue(0, Size); + if (auto *NullPtr = dyn_cast(CV)) { +if (std::optional Null

[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)

2025-11-21 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght updated https://github.com/llvm/llvm-project/pull/167159 >From 74abefc47084055f65210320260513ed06e6060f Mon Sep 17 00:00:00 2001 From: Backl1ght Date: Sat, 8 Nov 2025 17:13:21 + Subject: [PATCH 1/4] add check --- clang/docs/ReleaseNotes.rst |

[clang] [clang][Sema] fix incorrect ambiguous function call which use designated-initializer as template argument (PR #167159)

2025-11-21 Thread Zhikai Zeng via cfe-commits
https://github.com/Backl1ght updated https://github.com/llvm/llvm-project/pull/167159 >From 74abefc47084055f65210320260513ed06e6060f Mon Sep 17 00:00:00 2001 From: Backl1ght Date: Sat, 8 Nov 2025 17:13:21 + Subject: [PATCH 1/4] add check --- clang/docs/ReleaseNotes.rst |

[clang] [clang][bytecode] Fix conditional operator scoping wrt. local variables (PR #169030)

2025-11-21 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/169030 >From 480df19e28fcd631528d79802d5e23f5c788e05d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 21 Nov 2025 11:15:12 +0100 Subject: [PATCH] local activate --- clang/lib/AST/ByteCode/Byt

[clang] [clang][bytecode] Don't call getThis() on the bottom function frame (PR #169044)

2025-11-21 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/169044 >From fb46105ceed81ebea8088228969352ac6c52e891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Fri, 21 Nov 2025 15:20:40 +0100 Subject: [PATCH] [clang][bytecode] Don't call getThis() on the b

[clang] [clang][bytecode] Don't call getThis() on the bottom function frame (PR #169044)

2025-11-21 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr auto_merge_enabled https://github.com/llvm/llvm-project/pull/169044 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [WIP][IR][Constants] Change the semantic of `ConstantPointerNull` to represent an actual `nullptr` instead of a zero-value pointer (PR #166667)

2025-11-21 Thread Shilei Tian via cfe-commits
@@ -126,6 +126,40 @@ Constant *llvm::ConstantFoldCastInstruction(unsigned opc, Constant *V, if (isa(V)) return PoisonValue::get(DestTy); + if (opc == Instruction::IntToPtr) { +// We can't fold inttoptr(0) to ConstantPointerNull without checking the +// target d

[clang] [HLSL] Update indexed vector elements individually (PR #169144)

2025-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Helena Kotas (hekota) Changes When an individual element of a vector is updated via indexing into the vector, it needs to be handled as a store operation on that one vector element. Clang treats vectors as one unit, so a vector element ne

[clang] [HLSL] Update indexed vector elements individually (PR #169144)

2025-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Helena Kotas (hekota) Changes When an individual element of a vector is updated via indexing into the vector, it needs to be handled as a store operation on that one vector element. Clang treats vectors as one unit, so a vector element nee

[clang] Revert "[OpenMP] Fix firstprivate pointer handling in target regions" (PR #169143)

2025-11-21 Thread via cfe-commits
https://github.com/dpalermo closed https://github.com/llvm/llvm-project/pull/169143 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b6dadc7 - Revert "[OpenMP] Fix firstprivate pointer handling in target regions" (#169143)

2025-11-21 Thread via cfe-commits
Author: dpalermo Date: 2025-11-21T21:05:44-06:00 New Revision: b6dadc7e4d263e9983418d5362653edd4575c1b2 URL: https://github.com/llvm/llvm-project/commit/b6dadc7e4d263e9983418d5362653edd4575c1b2 DIFF: https://github.com/llvm/llvm-project/commit/b6dadc7e4d263e9983418d5362653edd4575c1b2.diff LOG:

[clang] [HLSL] Update indexed vector elements individually (PR #169144)

2025-11-21 Thread Helena Kotas via cfe-commits
https://github.com/hekota created https://github.com/llvm/llvm-project/pull/169144 When an individual element of a vector is updated via indexing into the vector, it needs to be handled as a store operation on that one vector element. Clang treats vectors as one unit, so a vector element needs

[clang] Revert "[OpenMP] Fix firstprivate pointer handling in target regions" (PR #169143)

2025-11-21 Thread via cfe-commits
https://github.com/dpalermo updated https://github.com/llvm/llvm-project/pull/169143 >From cefbc487d482c607b3292d4356f2eeac8783c719 Mon Sep 17 00:00:00 2001 From: dpalermo Date: Fri, 21 Nov 2025 20:57:27 -0600 Subject: [PATCH] Revert "[OpenMP] Fix firstprivate pointer handling in target region

[clang] [OpenMP] Fix firstprivate pointer handling in target regions (PR #167879)

2025-11-21 Thread via cfe-commits
dpalermo wrote: This PR is causing assertions in the check-offload tests: https://lab.llvm.org/staging/#/builders/105 https://lab.llvm.org/staging/#/builders/105/builds/37057 https://github.com/llvm/llvm-project/pull/167879 ___ cfe-commits mailing lis

[clang] Revert "[OpenMP] Fix firstprivate pointer handling in target regions" (PR #169143)

2025-11-21 Thread via cfe-commits
https://github.com/ronlieb approved this pull request. https://github.com/llvm/llvm-project/pull/169143 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[OpenMP] Fix firstprivate pointer handling in target regions" (PR #169143)

2025-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (dpalermo) Changes Reverts llvm/llvm-project#167879 This PR is causing assertions in the check-offload tests: https://lab.llvm.org/staging/#/builders/105 https://lab.llvm.org/staging/#/builders/105/builds/37057 --- Patch is 27.79 K

[clang] Revert "[OpenMP] Fix firstprivate pointer handling in target regions" (PR #169143)

2025-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: None (dpalermo) Changes Reverts llvm/llvm-project#167879 This PR is causing assertions in the check-offload tests: https://lab.llvm.org/staging/#/builders/105 https://lab.llvm.org/staging/#/builders/105/builds/37057 --- Patch is

[clang] Revert "[OpenMP] Fix firstprivate pointer handling in target regions" (PR #169143)

2025-11-21 Thread via cfe-commits
https://github.com/dpalermo created https://github.com/llvm/llvm-project/pull/169143 Reverts llvm/llvm-project#167879 This PR is causing assertions in the check-offload tests: https://lab.llvm.org/staging/#/builders/105 https://lab.llvm.org/staging/#/builders/105/builds/37057 >From cefbc487d4

[clang] [analyzer] Fix [[clang::suppress]] for template instantiations (PR #168954)

2025-11-21 Thread Artem Dergachev via cfe-commits
@@ -117,7 +117,12 @@ class CacheInitializer : public DynamicRecursiveASTVisitor { } } - CacheInitializer(Ranges &R) : Result(R) {} + CacheInitializer(Ranges &R) : Result(R) { +ShouldVisitTemplateInstantiations = true; +ShouldWalkTypesOfTypeLocs = false; +S

[clang] [analyzer] Fix [[clang::suppress]] for template instantiations (PR #168954)

2025-11-21 Thread Artem Dergachev via cfe-commits
@@ -1,4 +1,27 @@ -// RUN: %clang_analyze_cc1 -analyzer-checker=core -verify %s +// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -verify %s + +void clang_analyzer_warnIfReached(); + +struct Clazz { + template + static void templated_memfn(); +}; + +// Thi

[clang] [llvm] [llvm][clang] Remove `llvm::OwningArrayRef` (PR #169126)

2025-11-21 Thread Jakub Kuderski via cfe-commits
@@ -46,7 +46,7 @@ class BTFParser { // A copy of types table from the object file but using native byte // order. Should not be too big in practice, e.g. for ~250MiB vmlinux // image it is ~4MiB. - OwningArrayRef TypesBuffer; + std::vector TypesBuffer;

[clang] [llvm] [llvm][clang] Remove `llvm::OwningArrayRef` (PR #169126)

2025-11-21 Thread Jakub Kuderski via cfe-commits
@@ -22,10 +22,10 @@ struct CGDataPatchItem { // Where to patch. uint64_t Pos; // Source data. - OwningArrayRef D; + std::vector D; kuhar wrote: also here https://github.com/llvm/llvm-project/pull/169126 ___

[clang] [llvm] [llvm][clang] Remove `llvm::OwningArrayRef` (PR #169126)

2025-11-21 Thread Jakub Kuderski via cfe-commits
@@ -246,17 +246,17 @@ class VTableLayout { // point for a given vtable index. typedef llvm::SmallVector AddressPointsIndexMapTy; + using VTableIndicesTy = llvm::SmallVector; + private: - // Stores the component indices of the first component of each virtual table in -

[clang-tools-extra] [llvm] [Github][CI] Add `doc8` for clang-tidy documentation formatting (PR #168827)

2025-11-21 Thread via cfe-commits
https://github.com/zeyi2 ready_for_review https://github.com/llvm/llvm-project/pull/168827 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] Revert "Reland [MS][clang] Add support for vector deleting destructors" (PR #169116)

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

[clang] [compiler-rt] [llvm] [LFI] Introduce AArch64 LFI Target (PR #167061)

2025-11-21 Thread Zachary Yedidia via cfe-commits
https://github.com/zyedidia updated https://github.com/llvm/llvm-project/pull/167061 >From 9ca2065bc60b13f54504251dbb32e3b0784feb85 Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Mon, 20 Oct 2025 13:19:32 -0700 Subject: [PATCH 01/10] [LFI] Add aarch64_lfi subtarget --- llvm/include/llvm

[clang] [lldb] Revert "Reland [MS][clang] Add support for vector deleting destructors" (PR #169116)

2025-11-21 Thread Zequan Wu via cfe-commits
https://github.com/ZequanWu closed https://github.com/llvm/llvm-project/pull/169116 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] Revert "Reland [MS][clang] Add support for vector deleting destructors" (PR #169116)

2025-11-21 Thread Zequan Wu via cfe-commits
https://github.com/ZequanWu edited https://github.com/llvm/llvm-project/pull/169116 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add handling for static data members (PR #169134)

2025-11-21 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 112098 tests passed * 4078 tests skipped https://github.com/llvm/llvm-project/pull/169134 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/l

[clang] [CIR] Add handling for static data members (PR #169134)

2025-11-21 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/169134 >From b4d5cbe28641a8e7ed6df79e2a1756b53ff4bb67 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Fri, 21 Nov 2025 15:19:13 -0800 Subject: [PATCH 1/2] [CIR] Add handling for static data members This adds some

[clang] [CUDA] Add device-side kernel launch support (PR #165519)

2025-11-21 Thread via cfe-commits
@@ -525,6 +564,11 @@ Expected> getInput(const ArgList &Args) { object::Archive::create(Buffer); if (!LibFile) return LibFile.takeError(); + // Skip extracting archives with fat binaries. Forward them to nvlink. + if (hasFatBinary(**LibFile)) {

[clang] [clang][X86] Allow VALIGND/Q element-shift intrinsics in constexpr evaluation (PR #168206)

2025-11-21 Thread Muhammad Abdul via cfe-commits
https://github.com/0xzre updated https://github.com/llvm/llvm-project/pull/168206 >From 5e69309e94d0146759018f44e254acf9aff5b572 Mon Sep 17 00:00:00 2001 From: 0xzre Date: Sat, 15 Nov 2025 15:18:13 +0700 Subject: [PATCH 1/7] [clang][X86] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin -

[clang] [HLSL] Update vector swizzle elements individually (PR #169090)

2025-11-21 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/169090 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add builtin operator new/delete (PR #168578)

2025-11-21 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner updated https://github.com/llvm/llvm-project/pull/168578 From 185d4f496ffb5c9299089606213c52cb5b7a60bb Mon Sep 17 00:00:00 2001 From: hhuebner Date: Tue, 18 Nov 2025 18:50:47 +0100 Subject: [PATCH 1/6] [CIR] builtin operator new/delete --- clang/include/clang

[clang] [HLSL] Update vector swizzle elements individually (PR #169090)

2025-11-21 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/169090 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-11-21 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 111392 tests passed * 4438 tests skipped https://github.com/llvm/llvm-project/pull/169131 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/l

[clang] [llvm] [llvm][clang] Remove `llvm::OwningArrayRef` (PR #169126)

2025-11-21 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 192883 tests passed * 6187 tests skipped https://github.com/llvm/llvm-project/pull/169126 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/l

[clang] [clang][MinGW] Always link ntdll.dll (PR #162997)

2025-11-21 Thread via cfe-commits
trcrsired wrote: > Ok - I still think that's not a particularly compelling argument. It's much > easier for users to add something to the link line than to remove something > from it and adding something that the user didn't asker for seems > undesirable, even if it doesn't actually change the

[clang] [compiler-rt] [llvm] [LFI] Introduce AArch64 LFI Target (PR #167061)

2025-11-21 Thread Zachary Yedidia via cfe-commits
https://github.com/zyedidia edited https://github.com/llvm/llvm-project/pull/167061 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [LFI] Introduce AArch64 LFI Target (PR #167061)

2025-11-21 Thread Zachary Yedidia via cfe-commits
@@ -0,0 +1,387 @@ += +Lightweight Fault Isolation (LFI) in LLVM += + +.. contents:: + :local: + +Introduction + + +Lightweight Fault Isolation (LFI) is a compiler-based sandboxing technol

[clang] [CIR] Add handling for static data members (PR #169134)

2025-11-21 Thread Erich Keane via cfe-commits
@@ -1556,10 +1556,14 @@ void CIRGenModule::emitTopLevelDecl(Decl *decl) { break; case Decl::ClassTemplateSpecialization: - case Decl::CXXRecord: + case Decl::CXXRecord: { +CXXRecordDecl *crd = cast(decl); assert(!cir::MissingFeatures::generateDebugInfo()); -

[clang] [CIR] Add handling for static data members (PR #169134)

2025-11-21 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. 2 nits, else LGTM. https://github.com/llvm/llvm-project/pull/169134 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [LFI] Introduce AArch64 LFI Target (PR #167061)

2025-11-21 Thread Zachary Yedidia via cfe-commits
@@ -0,0 +1,387 @@ += +Lightweight Fault Isolation (LFI) in LLVM += + +.. contents:: + :local: + +Introduction + + +Lightweight Fault Isolation (LFI) is a compiler-based sandboxing technol

[clang] [CIR] Add handling for static data members (PR #169134)

2025-11-21 Thread Erich Keane via cfe-commits
@@ -0,0 +1,53 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir +// RUN: FileCheck %s -check-prefix=CIR --input-file=%t.cir +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-llvm %s -o %t-cir.ll +// RUN: FileCheck %s -che

[clang] [CIR] Add handling for static data members (PR #169134)

2025-11-21 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/169134 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Add Mustache HTML output to namespace test (PR #169107)

2025-11-21 Thread Erick Velez via cfe-commits
evelez7 wrote: I think once I'm done adding these tests we can switch pretty comfortably. I'd just like to switch without regressing on the output, or at least documenting what's there and what's not since that's been a problem with clang-doc. https://github.com/llvm/llvm-project/pull/169107 _

[clang] [CIR] Add handling for static data members (PR #169134)

2025-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes This adds some trivial handling to force emitting of child decls inside C++ records. --- Full diff: https://github.com/llvm/llvm-project/pull/169134.diff 3 Files Affected: - (modified) clang/include/cla

[clang] [CIR] Add handling for static data members (PR #169134)

2025-11-21 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/169134 This adds some trivial handling to force emitting of child decls inside C++ records. >From b4d5cbe28641a8e7ed6df79e2a1756b53ff4bb67 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Fri, 21 Nov 2025 15:19:13

[clang] [Clang][Driver] Allow -fsanitize-coverage with -fsanitize=alloc-token (PR #169128)

2025-11-21 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 111360 tests passed * 4438 tests skipped https://github.com/llvm/llvm-project/pull/169128 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/l

[clang] [CIR] Upstream overflow builtins (PR #166643)

2025-11-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-x86_64-debian` running on `lldb-x86_64-debian` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/162/builds/35723 Here is the relevant piece of the build lo

[clang] [OpenAC][CIR] func-local-declare 'copy' clause lowering (PR #169115)

2025-11-21 Thread Erich Keane via cfe-commits
https://github.com/erichkeane updated https://github.com/llvm/llvm-project/pull/169115 >From b567aad588f489e0ab4a83e40ece4562fe9d4bd8 Mon Sep 17 00:00:00 2001 From: erichkeane Date: Thu, 20 Nov 2025 12:16:06 -0800 Subject: [PATCH 1/3] [OpenAC][CIR] func-local-declare 'copy' clause lowering Thi

[clang] [CIR] Upstream overflow builtins (PR #166643)

2025-11-21 Thread via cfe-commits
github-actions[bot] wrote: @adams381 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 build

[clang] [CIR] Upstream overflow builtins (PR #166643)

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

[clang] 5bf7e8a - [CIR] Upstream overflow builtins (#166643)

2025-11-21 Thread via cfe-commits
Author: adams381 Date: 2025-11-21T16:17:01-08:00 New Revision: 5bf7e8a59a281988a0f5d2b659ba9d71b2c389c8 URL: https://github.com/llvm/llvm-project/commit/5bf7e8a59a281988a0f5d2b659ba9d71b2c389c8 DIFF: https://github.com/llvm/llvm-project/commit/5bf7e8a59a281988a0f5d2b659ba9d71b2c389c8.diff LOG:

[clang] [compiler-rt] [llvm] [LFI] Introduce AArch64 LFI Target (PR #167061)

2025-11-21 Thread Zachary Yedidia via cfe-commits
@@ -0,0 +1,387 @@ += +Lightweight Fault Isolation (LFI) in LLVM += + +.. contents:: + :local: + +Introduction + + +Lightweight Fault Isolation (LFI) is a compiler-based sandboxing technol

[clang] [compiler-rt] [llvm] [LFI] Introduce AArch64 LFI Target (PR #167061)

2025-11-21 Thread Zachary Yedidia via cfe-commits
@@ -0,0 +1,387 @@ += +Lightweight Fault Isolation (LFI) in LLVM += + +.. contents:: + :local: + +Introduction + + +Lightweight Fault Isolation (LFI) is a compiler-based sandboxing technol

[clang] [OpenAC][CIR] func-local-declare 'copy' clause lowering (PR #169115)

2025-11-21 Thread Erich Keane via cfe-commits
@@ -19,18 +19,52 @@ using namespace clang::CIRGen; namespace { struct OpenACCDeclareCleanup final : EHScopeStack::Cleanup { + SourceRange declareRange; mlir::acc::DeclareEnterOp enterOp; - OpenACCDeclareCleanup(mlir::acc::DeclareEnterOp enterOp) : enterOp(enterOp) {} +

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-11-21 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 h,cpp -- clang/include/clang/Analysis/Scalable/ASTEntit

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Jan Korous (jkorous-apple) Changes Add core abstractions for identifying program entities across compilation and link unit boundaries in the Scalable Static Analysis Framework (SSAF). Introduces three key components: - BuildNames

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jan Korous (jkorous-apple) Changes Add core abstractions for identifying program entities across compilation and link unit boundaries in the Scalable Static Analysis Framework (SSAF). Introduces three key components: - BuildNamespace: Rep

[clang] [OpenAC][CIR] func-local-declare 'copy' clause lowering (PR #169115)

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

[clang] [OpenAC][CIR] func-local-declare 'copy' clause lowering (PR #169115)

2025-11-21 Thread Bruno Cardoso Lopes via cfe-commits
@@ -19,18 +19,52 @@ using namespace clang::CIRGen; namespace { struct OpenACCDeclareCleanup final : EHScopeStack::Cleanup { + SourceRange declareRange; mlir::acc::DeclareEnterOp enterOp; - OpenACCDeclareCleanup(mlir::acc::DeclareEnterOp enterOp) : enterOp(enterOp) {} +

[clang-tools-extra] [clang-doc] Add Mustache HTML output to namespace test (PR #169107)

2025-11-21 Thread Paul Kirth via cfe-commits
ilovepi wrote: I'm not concerned at all about the history. Just wondering how much value it brings to the table to do this incrementally. I'm mostly fine with this, or with us switching mustache to be the default, and making the old implementation the `legacy` one until we're ready to delete i

[clang] [clang][ssaf] Introduce entity abstraction for SSAF (PR #169131)

2025-11-21 Thread Jan Korous via cfe-commits
https://github.com/jkorous-apple created https://github.com/llvm/llvm-project/pull/169131 Add core abstractions for identifying program entities across compilation and link unit boundaries in the Scalable Static Analysis Framework (SSAF). Introduces three key components: - BuildNamespace: Repr

[clang] [OpenAC][CIR] func-local-declare 'copy' clause lowering (PR #169115)

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

[clang] [compiler-rt] [llvm] [LFI] Introduce AArch64 LFI Target (PR #167061)

2025-11-21 Thread Zachary Yedidia via cfe-commits
@@ -0,0 +1,387 @@ += +Lightweight Fault Isolation (LFI) in LLVM += + +.. contents:: + :local: + +Introduction + + +Lightweight Fault Isolation (LFI) is a compiler-based sandboxing technol

[clang] [HLSL][Matrix] Add support for Matrix element and trunc Casts (PR #168915)

2025-11-21 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. CIR related changes: LGTM https://github.com/llvm/llvm-project/pull/168915 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for non-compile-time memory order (PR #168892)

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

[clang] [CIR] Add support for non-compile-time memory order (PR #168892)

2025-11-21 Thread Bruno Cardoso Lopes via cfe-commits
@@ -844,9 +869,63 @@ RValue CIRGenFunction::emitAtomicExpr(AtomicExpr *e) { emitAtomicOp(*this, e, dest, ptr, val1, val2, isWeakExpr, orderFailExpr, size, static_cast(ord)); } else { -assert(!cir::MissingFeatures::atomicExpr()); -cgm.errorNYI(

[clang] [CIR] Add support for non-compile-time memory order (PR #168892)

2025-11-21 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM after nit https://github.com/llvm/llvm-project/pull/168892 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Emit ready and suspend branches for cir.await (PR #168814)

2025-11-21 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. Great, thanks! LGTM https://github.com/llvm/llvm-project/pull/168814 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement global array dtor support (PR #169070)

2025-11-21 Thread Erich Keane via cfe-commits
@@ -693,6 +696,101 @@ void LoweringPreparePass::lowerUnaryOp(cir::UnaryOp op) { op.erase(); } +cir::FuncOp LoweringPreparePass::getOrCreateDtorFunc(CIRBaseBuilderTy &builder, + cir::GlobalOp op, +

[clang] [CIR] Add support for thread-local storage (TLS) (PR #168662)

2025-11-21 Thread Bruno Cardoso Lopes via cfe-commits
bcardosolopes wrote: Thanks for working on this. This PR handles both TLS and `BinOpOverflowOp`, they seem orthogonal and can be done incrementally - should be split in multiple PRs. https://github.com/llvm/llvm-project/pull/168662 ___ cfe-commits m

[clang] 136c9da - [CIR] Implement global array dtor support (#169070)

2025-11-21 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-11-21T15:47:12-08:00 New Revision: 136c9da55f72f692b9d2e9f623e09ae619a86e37 URL: https://github.com/llvm/llvm-project/commit/136c9da55f72f692b9d2e9f623e09ae619a86e37 DIFF: https://github.com/llvm/llvm-project/commit/136c9da55f72f692b9d2e9f623e09ae619a86e37.diff L

[clang] [CIR] Implement global array dtor support (PR #169070)

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

[clang] [CIR] Implement global array dtor support (PR #169070)

2025-11-21 Thread Andy Kaylor via cfe-commits
@@ -693,6 +696,101 @@ void LoweringPreparePass::lowerUnaryOp(cir::UnaryOp op) { op.erase(); } +cir::FuncOp LoweringPreparePass::getOrCreateDtorFunc(CIRBaseBuilderTy &builder, + cir::GlobalOp op, +

[clang] [CIR][X86] Add support for `kshiftl`/`kshiftr` builtins (PR #168591)

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

[clang] [CIR] Add builtin operator new/delete (PR #168578)

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

[clang] [CIR] Upstream AtomicFenceOp and signal/thread fence builtins (PR #168346)

2025-11-21 Thread Bruno Cardoso Lopes via cfe-commits
@@ -5122,6 +5122,41 @@ def CIR_AtomicClearOp : CIR_Op<"atomic.clear"> { }]; } +def CIR_SyncScopeKind : CIR_I32EnumAttr<"SyncScopeKind", "sync scope kind", [ bcardosolopes wrote: Move this attribute closer to `CIR_AtomicFetchKind` https://github.com/llvm/ll

[clang] [Clang][Driver] Allow -fsanitize-coverage with -fsanitize=alloc-token (PR #169128)

2025-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Marco Elver (melver) Changes These are not incompatible; allow them to be combined. --- Full diff: https://github.com/llvm/llvm-project/pull/169128.diff 2 Files Affected: - (modified) clang/lib/Driver/SanitizerArgs.cpp (+1-1) -

[clang] [Clang][Driver] Allow -fsanitize-coverage with -fsanitize=alloc-token (PR #169128)

2025-11-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Marco Elver (melver) Changes These are not incompatible; allow them to be combined. --- Full diff: https://github.com/llvm/llvm-project/pull/169128.diff 2 Files Affected: - (modified) clang/lib/Driver/SanitizerArgs.cpp (+1-1) - (modifi

[clang] [Clang][Driver] Allow -fsanitize-coverage with -fsanitize=alloc-token (PR #169128)

2025-11-21 Thread Marco Elver via cfe-commits
https://github.com/melver created https://github.com/llvm/llvm-project/pull/169128 These are not incompatible; allow them to be combined. >From a1dbfdb0d5fc877e5c78a6c4f4cf4dcb7b818ce0 Mon Sep 17 00:00:00 2001 From: Marco Elver Date: Sat, 22 Nov 2025 00:40:18 +0100 Subject: [PATCH] [Clang][Dri

[clang-tools-extra] [clang-doc] Add Mustache HTML output to namespace test (PR #169107)

2025-11-21 Thread Erick Velez via cfe-commits
evelez7 wrote: > Actually, thinking about this for another second. If our plan is to remove > the old backend, do we care about test parity? Is it valuable? We already > think the old output is bad, and have basically stopped adding new features > to it. What I do find useful is having a veri

  1   2   3   4   5   6   7   >