[clang] [C++20] [Modules] [Serialization] Delay marking pending incomplete decl chains until the end of `finishPendingActions`. (PR #121245)

2025-01-28 Thread Michael Park via cfe-commits
https://github.com/mpark updated https://github.com/llvm/llvm-project/pull/121245 >From f8d317ce75e51e467487cb10a89e44b73e6b386a Mon Sep 17 00:00:00 2001 From: Michael Park Date: Tue, 28 Jan 2025 22:01:37 -0800 Subject: [PATCH 1/2] [C++20][Modules][Serialization] Add a unit test for #121245.

[clang] [C++20][Modules][Serialization] Delay marking pending incomplete decl chains until the end of `finishPendingActions`. (PR #121245)

2025-01-28 Thread Michael Park via cfe-commits
https://github.com/mpark edited https://github.com/llvm/llvm-project/pull/121245 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20] [Modules] [Serialization] Delay marking pending incomplete decl chains until the end of `finishPendingActions`. (PR #121245)

2025-01-28 Thread Michael Park via cfe-commits
mpark wrote: Okay folks, I've finally managed to get a reasonable repro as a unit test! The new unit test, with `Debug` build fails like this: ``` FAIL: Clang :: Modules/pr121245.cpp (8522 of 22154) TEST 'Clang :: Modules/pr121245.cpp' FAILED Exit Code:

[clang] [clang-format] Add ClassHeadName to help annotating StartOfName (PR #124891)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixes #124574. --- Full diff: https://github.com/llvm/llvm-project/pull/124891.diff 4 Files Affected: - (modified) clang/lib/Format/FormatToken.h (+2) - (modified) clang/lib/Format/TokenAnnotator.cpp (+

[clang] [analyzer][docs] CSA release notes for clang-20 (PR #124798)

2025-01-28 Thread Arseniy Zaostrovnykh via cfe-commits
https://github.com/necto approved this pull request. I don't know the best practices related to release notes, but the changes look good to me https://github.com/llvm/llvm-project/pull/124798 ___ cfe-commits mailing list cfe-commits@lists.llvm.org htt

[clang] [clang-format] Fix annotating attrs in class/struct (PR #124634)

2025-01-28 Thread Owen Pan via cfe-commits
@@ -2633,12 +2633,20 @@ class AnnotatingParser { PreviousNotConst->MatchingParen->Previous->isNot(tok::kw_template); } -if ((PreviousNotConst->is(tok::r_paren) && - PreviousNotConst->is(TT_TypeDeclarationParen)) || -PreviousNotConst->is(TT

[clang] [clang-format] Add ClassHeadName to help annotating StartOfName (PR #124891)

2025-01-28 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/124891 Fixes #124574. >From 04fd96533a48b0f6fdbacb6c9947740bf4c58992 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Tue, 28 Jan 2025 23:16:10 -0800 Subject: [PATCH] [clang-format] Add ClassHeadName to help annotating S

[clang] [Clang][P1061] Add stuctured binding packs (PR #121417)

2025-01-28 Thread via cfe-commits
cor3ntin wrote: @ricejasonf let us know if you want us to merge on your behalf https://github.com/llvm/llvm-project/pull/121417 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [NFC] Introduce `ConstDynamicRecursiveASTVisitor` (reland) (PR #124821)

2025-01-28 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/124821 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][P1061] Add stuctured binding packs (PR #121417)

2025-01-28 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. Now that the Clang 20 branch has happened, I think we should go ahead with that PR - It would be great to explore merging ResolvedUnexpandedPackExpr and FunctionParmPackExpr in a separate PR. Is that something you would be interested in

[clang] [clang][bytecode] Fix dummy handling for p2280r4 (PR #124396)

2025-01-28 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/124396 >From 6a7c6ff71b7dce7ad57d5ca0203537800bfa303f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 22 Jan 2025 11:57:10 +0100 Subject: [PATCH] [clang][bytecode] Fix dummy handling for p2280r

[clang] [Sema] Migrate away from PointerUnion::dyn_cast (NFC) (PR #124883)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast This p

[clang] [HLSL][NFC] Add test check to make sure the resource handle gets stored in the resource global (PR #124866)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-hlsl Author: Helena Kotas (hekota) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/124866.diff 1 Files Affected: - (modified) clang/test/CodeGenHLSL/resource-bindings.hlsl (+4) ``diff diff --git

[clang] [HLSL][NFC] Add test check to make sure the resource handle gets stored in the resource global (PR #124866)

2025-01-28 Thread Helena Kotas via cfe-commits
https://github.com/hekota ready_for_review https://github.com/llvm/llvm-project/pull/124866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][NFC] Add test check to make sure the resource handle gets stored in the resource global (PR #124866)

2025-01-28 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/124866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][NFC] Add test check to make sure the resource handle gets stored in the resource global (PR #124866)

2025-01-28 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/124866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Migrate away from PointerUnion::dyn_cast (NFC) (PR #124883)

2025-01-28 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/124883 Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast This patch migrat

[clang] [HLSL][NFC] Checks store instructions in resource binding test (PR #124866)

2025-01-28 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/124866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #124882)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast Litera

[clang] [C++20] [Modules] [Serialization] Delay marking pending incomplete decl chains until the end of `finishPendingActions`. (PR #121245)

2025-01-28 Thread Michael Park via cfe-commits
https://github.com/mpark updated https://github.com/llvm/llvm-project/pull/121245 >From f8d317ce75e51e467487cb10a89e44b73e6b386a Mon Sep 17 00:00:00 2001 From: Michael Park Date: Tue, 28 Jan 2025 22:01:37 -0800 Subject: [PATCH 1/2] [C++20][Modules][Serialization] Add a unit test for #121245.

[clang] [AST] Migrate away from PointerUnion::dyn_cast (NFC) (PR #124882)

2025-01-28 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/124882 Note that PointerUnion::dyn_cast has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast Literal migration

[clang] [C++20] [Modules] [Serialization] Delay marking pending incomplete decl chains until the end of `finishPendingActions`. (PR #121245)

2025-01-28 Thread Michael Park via cfe-commits
https://github.com/mpark updated https://github.com/llvm/llvm-project/pull/121245 >From 9879eb1e68c7799f14ddef37cf43f43e65ce735e Mon Sep 17 00:00:00 2001 From: Michael Park Date: Fri, 27 Dec 2024 17:52:19 -0800 Subject: [PATCH] Delay marking pending incomplete decl chains until the end of `fin

[clang] [llvm] [RISCV] Add a generic OOO CPU (PR #120712)

2025-01-28 Thread Yingwei Zheng via cfe-commits
@@ -0,0 +1,494 @@ +//===-- RISCVSchedGenericOOO.td - Generic O3 Processor -*- tablegen -*-===// +// +// 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: Ap

[clang] [llvm] [RISCV] Add a generic OOO CPU (PR #120712)

2025-01-28 Thread Yingwei Zheng via cfe-commits
@@ -0,0 +1,494 @@ +//===-- RISCVSchedGenericOOO.td - Generic O3 Processor -*- tablegen -*-===// +// +// 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: Ap

[clang] b28e879 - [clang-format] Simplify ConfigParseTest for int/unsigned options (#124704)

2025-01-28 Thread via cfe-commits
Author: Owen Pan Date: 2025-01-28T21:04:41-08:00 New Revision: b28e879a8323189ee05733a0ef3779a6768a9ea3 URL: https://github.com/llvm/llvm-project/commit/b28e879a8323189ee05733a0ef3779a6768a9ea3 DIFF: https://github.com/llvm/llvm-project/commit/b28e879a8323189ee05733a0ef3779a6768a9ea3.diff LOG:

[clang] [clang-format] Fix annotating attrs in class/struct (PR #124634)

2025-01-28 Thread Owen Pan via cfe-commits
@@ -2633,12 +2633,20 @@ class AnnotatingParser { PreviousNotConst->MatchingParen->Previous->isNot(tok::kw_template); } -if ((PreviousNotConst->is(tok::r_paren) && - PreviousNotConst->is(TT_TypeDeclarationParen)) || -PreviousNotConst->is(TT

[clang] [clang-format] Simplify ConfigParseTest for int/unsigned options (PR #124704)

2025-01-28 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/124704 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Diagnose default arguments defined in different scopes (PR #124844)

2025-01-28 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/124844 >From da30f708caee020677675277673e0b7c6f9c644f Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Fri, 24 Jan 2025 15:15:17 +0400 Subject: [PATCH 01/14] [clang] Diagnose default arguments defined in differe

[clang] [clang] Diagnose default arguments defined in different scopes (PR #124844)

2025-01-28 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/124844 >From da30f708caee020677675277673e0b7c6f9c644f Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Fri, 24 Jan 2025 15:15:17 +0400 Subject: [PATCH 01/13] [clang] Diagnose default arguments defined in differe

[clang] [Clang][P1061] Add stuctured binding packs (PR #121417)

2025-01-28 Thread Jason Rice via cfe-commits
@@ -4213,8 +4226,35 @@ class DecompositionDecl final static DecompositionDecl *CreateDeserialized(ASTContext &C, GlobalDeclID ID, unsigned NumBindings); - ArrayRef bindings() const { -return llvm::ArrayRef(getTrailingObject

[clang] [ARM] Forbid use of TLS with execute-only (PR #124806)

2025-01-28 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/124806 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [libcxx] [lld] [llvm] [openmp] [pstl] Bump version to 21.0.0git (PR #124870)

2025-01-28 Thread Tom Stellard via cfe-commits
https://github.com/tstellar closed https://github.com/llvm/llvm-project/pull/124870 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reland: [clang] improve print / dump of anonymous declarations (PR #124858)

2025-01-28 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/124858 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64] Match GCC behaviour for zero-size structs (PR #124760)

2025-01-28 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: The likelihood of anyone actually tripping over this outside a synthetic testcase is very low; you need a combination of unusual constructs to hit this. So I'm not really worried about documentation/ABI compat flags. https://github.com/llvm/llvm-project/pull/124760 __

[clang] [clang-format] Add BreakBeforeTemplateClose option (PR #118046)

2025-01-28 Thread via cfe-commits
@@ -11220,6 +11220,333 @@ TEST_F(FormatTest, WrapsTemplateDeclarationsWithComments) { Style); } +TEST_F(FormatTest, BreakBeforeTemplateCloser) { + FormatStyle Style = getGoogleStyle(FormatStyle::LK_Cpp); + // Begin with tests covering the case where there is no constr

[clang] [clang][Sema] Improve template argument deduction diagnostic (PR #122754)

2025-01-28 Thread Aidan Goldfarb via cfe-commits
https://github.com/AidanGoldfarb updated https://github.com/llvm/llvm-project/pull/122754 >From b6c576fb90362640b2fd4e41bd7f13dfee95d04d Mon Sep 17 00:00:00 2001 From: Aidan Date: Mon, 13 Jan 2025 11:53:39 -0500 Subject: [PATCH 01/21] initial template arg fix push --- .../clang/Basic/Diagnost

[clang] [X86][AVX10] Disable m[no-]avx10.1 and switch m[no-]avx10.2 to alias of 512 bit options (PR #124511)

2025-01-28 Thread Evgenii Kudriashov via cfe-commits
https://github.com/e-kud approved this pull request. LGTM. I think complete disable of AVX10 versions later or equal than specified in `-mno` is more clear than implicitly disabling only 512 version instructions. https://github.com/llvm/llvm-project/pull/124511 _

[clang] [X86][AVX10] Disable m[no-]avx10.1 and switch m[no-]avx10.2 to alias of 512 bit options (PR #124511)

2025-01-28 Thread Evgenii Kudriashov via cfe-commits
e-kud wrote: I've been playing around and found that `-mavx10.2 -mno-avx10.2-512` enables `avx10.1-512` but `-mavx10.2-512 -mno-avx10.2-512` obviously doesn't. Does it make sense? It happens because when options match, they are eliminated before processing. But this is a problem not related to

[clang] [AArch64] Match GCC behaviour for zero-size structs (PR #124760)

2025-01-28 Thread Richard Smith via cfe-commits
zygoloid wrote: Also, is it worth adding `-fclang-abi-compat=` support to control this change? https://github.com/llvm/llvm-project/pull/124760 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [HLSL][NFC] Checks store instructions in resource binding test (PR #124866)

2025-01-28 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/124866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Checks store instructions in resource binding test (PR #124866)

2025-01-28 Thread Helena Kotas via cfe-commits
https://github.com/hekota created https://github.com/llvm/llvm-project/pull/124866 None >From 402e768521b33c7d1758d6aca2ff13741551cf4f Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Tue, 28 Jan 2025 17:16:02 -0800 Subject: [PATCH] [HLSL] Checks store instructions in resource binding test -

[clang] [ubsan] Connect -fsanitize-skip-hot-cutoff to LowerAllowCheckPass (PR #124857)

2025-01-28 Thread Vitaly Buka via cfe-commits
@@ -795,12 +795,29 @@ static void addSanitizers(const Triple &TargetTriple, PB.registerOptimizerLastEPCallback(SanitizersCallback); } - if (LowerAllowCheckPass::IsRequested()) { + bool lowerAllowCheck = LowerAllowCheckPass::IsRequested(); + // Is there a non-zero cuto

[clang] [ubsan] Connect -fsanitize-skip-hot-cutoff to LowerAllowCheckPass (PR #124857)

2025-01-28 Thread Vitaly Buka via cfe-commits
@@ -795,12 +795,29 @@ static void addSanitizers(const Triple &TargetTriple, PB.registerOptimizerLastEPCallback(SanitizersCallback); } - if (LowerAllowCheckPass::IsRequested()) { + bool lowerAllowCheck = LowerAllowCheckPass::IsRequested(); vitalybuka wr

[clang] [ubsan] Connect -fsanitize-skip-hot-cutoff to LowerAllowCheckPass (PR #124857)

2025-01-28 Thread Thurston Dang via cfe-commits
https://github.com/thurstond edited https://github.com/llvm/llvm-project/pull/124857 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ubsan] Connect -fsanitize-skip-hot-cutoff to LowerAllowCheckPass (PR #124857)

2025-01-28 Thread Thurston Dang via cfe-commits
@@ -795,12 +795,29 @@ static void addSanitizers(const Triple &TargetTriple, PB.registerOptimizerLastEPCallback(SanitizersCallback); } - if (LowerAllowCheckPass::IsRequested()) { + bool lowerAllowCheck = LowerAllowCheckPass::IsRequested(); thurstond wro

[clang] [ubsan] Connect -fsanitize-skip-hot-cutoff to LowerAllowCheckPass (PR #124857)

2025-01-28 Thread Thurston Dang via cfe-commits
@@ -7,18 +10,26 @@ // CHECK-LABEL: define dso_local noundef i32 @div( // CHECK-SAME: i32 noundef [[X:%.*]], i32 noundef [[Y:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] { // CHECK-NEXT: [[ENTRY:.*:]] -// CHECK-NEXT:[[TMP0:%.*]] = icmp eq i32 [[Y]], 0, !nosanitize [[META2:

[clang] [HLSL] Constant buffer layout struct update (PR #124840)

2025-01-28 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/124840 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Constant buffer layout struct update (PR #124840)

2025-01-28 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/124840 >From 63c465b40512ad4c5fff84c0b2b022b49d46eaa7 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Tue, 28 Jan 2025 13:20:30 -0800 Subject: [PATCH 1/2] [HLSL] Constant buffer layout struct update - create structs

[clang] [ubsan] Connect -fsanitize-skip-hot-cutoff to LowerAllowCheckPass (PR #124857)

2025-01-28 Thread Vitaly Buka via cfe-commits
@@ -7,18 +10,26 @@ // CHECK-LABEL: define dso_local noundef i32 @div( // CHECK-SAME: i32 noundef [[X:%.*]], i32 noundef [[Y:%.*]]) local_unnamed_addr #[[ATTR0:[0-9]+]] { // CHECK-NEXT: [[ENTRY:.*:]] -// CHECK-NEXT:[[TMP0:%.*]] = icmp eq i32 [[Y]], 0, !nosanitize [[META2:

[clang] [ubsan] Connect -fsanitize-skip-hot-cutoff to LowerAllowCheckPass (PR #124857)

2025-01-28 Thread Vitaly Buka via cfe-commits
@@ -3614,29 +3614,35 @@ void CodeGenFunction::EmitCheck( llvm::Value *RecoverableCond = nullptr; llvm::Value *TrapCond = nullptr; bool NoMerge = false; + // Expand checks into: + // (Check1 || !allow_ubsan_check) && (Check2 || !allow_ubsan_check) ... + // We need sep

[clang] [ubsan] Connect -fsanitize-skip-hot-cutoff to LowerAllowCheckPass (PR #124857)

2025-01-28 Thread Vitaly Buka via cfe-commits
@@ -3614,29 +3614,35 @@ void CodeGenFunction::EmitCheck( llvm::Value *RecoverableCond = nullptr; llvm::Value *TrapCond = nullptr; bool NoMerge = false; + // Expand checks into: + // (Check1 || !allow_ubsan_check) && (Check2 || !allow_ubsan_check) ... + // We need sep

[clang] [HLSL] Codegen for `cbuffer` declarations without embedded arrays or structs (PR #119755)

2025-01-28 Thread Helena Kotas via cfe-commits
https://github.com/hekota closed https://github.com/llvm/llvm-project/pull/119755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [ubsan] Connect -fsanitize-skip-hot-cutoff to LowerAllowCheckPass (PR #124857)

2025-01-28 Thread Vitaly Buka via cfe-commits
@@ -795,12 +795,29 @@ static void addSanitizers(const Triple &TargetTriple, PB.registerOptimizerLastEPCallback(SanitizersCallback); } - if (LowerAllowCheckPass::IsRequested()) { + bool lowerAllowCheck = LowerAllowCheckPass::IsRequested(); + // Is there a non-zero cuto

[clang] [ubsan] Connect -fsanitize-skip-hot-cutoff to LowerAllowCheckPass (PR #124857)

2025-01-28 Thread Vitaly Buka via cfe-commits
@@ -795,12 +795,29 @@ static void addSanitizers(const Triple &TargetTriple, PB.registerOptimizerLastEPCallback(SanitizersCallback); } - if (LowerAllowCheckPass::IsRequested()) { + bool lowerAllowCheck = LowerAllowCheckPass::IsRequested(); + // Is there a non-zero cuto

[clang] Reland: [clang] improve print / dump of anonymous declarations (PR #124858)

2025-01-28 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/124858 ast-print: A DeclRef to an anonymous NTTP will print 'value-parameter--', similar to how we print type parameters. ast-dump: A bareDeclRef to an anonymous entity will print some extra identifying information,

[clang] Reland: [clang] improve print / dump of anonymous declarations (PR #124858)

2025-01-28 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/124858 >From dcf882d61f09c3218f1df372e4dbc82406820f8d Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Mon, 27 Jan 2025 01:04:47 -0300 Subject: [PATCH] [clang] improve print / dump of anonymous declarations ast-p

[clang] Reland: [clang] improve print / dump of anonymous declarations (PR #124858)

2025-01-28 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/124858 >From bdcb8e21182f23fa39b5bba1b5d523f93d3d0ff1 Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Mon, 27 Jan 2025 01:04:47 -0300 Subject: [PATCH] [clang] improve print / dump of anonymous declarations ast-p

[clang] Reland: [clang] improve print / dump of anonymous declarations (PR #124858)

2025-01-28 Thread Matheus Izvekov via cfe-commits
@@ -0,0 +1,27 @@ +// RUN: %clang_analyze_cc1 -analyzer-checker=debug.DumpCFG -triple x86_64-apple-darwin12 -std=c++20 %s 2>&1 | FileCheck %s + +struct A { + static A a; + char b; + friend bool operator==(A, A) = default; +}; +bool _ = A() == A::a; + +// CHECK-LABEL: bool opera

[clang] Reland: [clang] improve print / dump of anonymous declarations (PR #124858)

2025-01-28 Thread Matheus Izvekov via cfe-commits
@@ -1257,28 +1257,48 @@ void StmtPrinter::VisitConstantExpr(ConstantExpr *Node) { } void StmtPrinter::VisitDeclRefExpr(DeclRefExpr *Node) { - if (const auto *OCED = dyn_cast(Node->getDecl())) { + ValueDecl *VD = Node->getDecl(); + if (const auto *OCED = dyn_cast(VD)) {

[clang] [clang] UEFI handle unsupported triples. (PR #124824)

2025-01-28 Thread Reid Kleckner via cfe-commits
@@ -637,6 +637,10 @@ static llvm::Triple computeTargetTriple(const Driver &D, } } + // Currently the only architecture supported by *-uefi triples are x86_64. + if(Target.isUEFI() && Target.getArch() != llvm::Triple::x86_64) rnk wrote: ```suggestion

[clang] [clang] UEFI handle unsupported triples. (PR #124824)

2025-01-28 Thread Reid Kleckner via cfe-commits
rnk wrote: +1 for a test https://github.com/llvm/llvm-project/pull/124824 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Reland: [clang] improve print / dump of anonymous declarations (PR #124858)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Matheus Izvekov (mizvekov) Changes ast-print: A DeclRef to an anonymous NTTP will print 'value-parameter--', similar to how we print type parameters. ast-dump: A bareDeclRef to an anonymous entity will print some extra iden

[clang] [llvm] [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (PR #124767)

2025-01-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-x86_64-debian-fast` running on `gribozavr4` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/56/builds/17382 Here is the relevant piec

[clang] [llvm] [Clang] Cleanup docs and comments relating to -fextend-variable-liveness (PR #124767)

2025-01-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/18238 Here is the relevant piec

[clang] [clang] UEFI handle unsupported triples. (PR #124824)

2025-01-28 Thread via cfe-commits
https://github.com/Prabhuk edited https://github.com/llvm/llvm-project/pull/124824 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Abort on unsupported uefi triples. (PR #124824)

2025-01-28 Thread via cfe-commits
https://github.com/Prabhuk edited https://github.com/llvm/llvm-project/pull/124824 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Abort on unsupported uefi triples. (PR #124824)

2025-01-28 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 9c1d2f84e91f39cdd17519ca61bd2aacd8bcbd84 4ad52946c35a879e3ef0f6dbf3704fadc7912ca5 --e

[clang] [clang] improve print / dump of anonymous declarations (PR #124605)

2025-01-28 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: The test case provided shows a bug in the original implementation of the analyzer anyway. Here is the clang output for the slightly reduced repro: ```C++ struct A { static A a; char b; friend bool operator==(A, A) = default; }; bool _ = A() == A::a; ``` Original clang out

[clang] [clang] Abort on unsupported uefi triples. (PR #124824)

2025-01-28 Thread via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/124824 >From 270c260ba8160c71c6602fcb91a635368ee09a88 Mon Sep 17 00:00:00 2001 From: Prabhu Karthikeyan Rajasekaran Date: Tue, 28 Jan 2025 19:07:06 + Subject: [PATCH 1/3] [clang] Abort on unsupported uefi triples.

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Bruno Cardoso Lopes via cfe-commits
@@ -0,0 +1,41 @@ +//- LowerToLLVM.cpp - Lowering from CIR to LLVMIR -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [Clang] Add fake use emission to Clang with -fextend-lifetimes (PR #110102)

2025-01-28 Thread Stephen Tozer via cfe-commits
SLTozer wrote: I made a mistake and missed one of the tests in the fix-forward commit - the [build with the fix commit](https://luci-milo.appspot.com/ui/p/fuchsia/builders/toolchain.ci/clang-windows-x64/b8724466517233166081/overview) only recently finished, so I've pushed up a second fix now -

[clang] [ubsan] Connect -fsanitize-skip-hot-cutoff to LowerAllowCheckPass (PR #124857)

2025-01-28 Thread Thurston Dang via cfe-commits
https://github.com/thurstond updated https://github.com/llvm/llvm-project/pull/124857 >From 68246540d28c765af1fe4d61244e35cc8ff723cc Mon Sep 17 00:00:00 2001 From: Thurston Dang Date: Wed, 22 Jan 2025 18:59:07 + Subject: [PATCH 1/4] [ubsan] Connect -fsanitize-skip-hot-cutoff to LowerAllowC

[clang] [ubsan] Connect -fsanitize-skip-hot-cutoff to LowerAllowCheckPass (PR #124857)

2025-01-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Thurston Dang (thurstond) Changes This adds the plumbing between -fsanitize-skip-hot-cutoff (introduced in https://github.com/llvm/llvm-project/pull/121619) and LowerAllowCheckPass (introduced in https://github.com/llvm/llvm-pro

[clang] [ubsan] Connect -fsanitize-skip-hot-cutoff to LowerAllowCheckPass (PR #124857)

2025-01-28 Thread Thurston Dang via cfe-commits
https://github.com/thurstond created https://github.com/llvm/llvm-project/pull/124857 This adds the plumbing between -fsanitize-skip-hot-cutoff (introduced in https://github.com/llvm/llvm-project/pull/121619) and LowerAllowCheckPass (introduced in https://github.com/llvm/llvm-project/pull/124

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Bruno Cardoso Lopes via cfe-commits
@@ -44,7 +44,7 @@ class CIRGenerator : public clang::ASTConsumer { const clang::CodeGenOptions &codeGenOpts; protected: - std::unique_ptr mlirContext; + std::shared_ptr mlirContext; bcardosolopes wrote: We run passes post CIRGen (LLVM lowering is one exam

[clang] [clang] Abort on unsupported uefi triples. (PR #124824)

2025-01-28 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/124824 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Abort on unsupported uefi triples. (PR #124824)

2025-01-28 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi commented: This patch needs a test for the new driver logic. I'd also suggest adding some error handling in LLVM, so that it isn't possible to try an generate wrong code if this triple is supplied somewhere else (e.g. by another frontend or through opt). https://git

[clang] [clang] Abort on unsupported uefi triples. (PR #124824)

2025-01-28 Thread Paul Kirth via cfe-commits
@@ -6677,6 +6677,9 @@ const ToolChain &Driver::getToolChain(const ArgList &Args, TC = std::make_unique(*this, Target, Args); break; case llvm::Triple::UEFI: + if (Target.getArch() != llvm::Triple::x86_64) +llvm::report_fatal_error("Currently the onl

[clang] [clang] Abort on unsupported uefi triples. (PR #124824)

2025-01-28 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/124824 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix annotating attrs in class/struct (PR #124634)

2025-01-28 Thread Gedare Bloom via cfe-commits
https://github.com/gedare updated https://github.com/llvm/llvm-project/pull/124634 >From 5292f110ce4c7f5b060165e3c3f817b6716c2c1e Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Mon, 27 Jan 2025 14:49:54 -0700 Subject: [PATCH 1/2] [clang-format] Fix annotating attrs in class/struct An attrib

[clang] [clang-format] Add AlignAfterOpenBracketOptions (PR #108332)

2025-01-28 Thread Gedare Bloom via cfe-commits
@@ -1169,6 +1181,18 @@ template <> struct MappingTraits { IO.mapOptional("WhitespaceSensitiveMacros", Style.WhitespaceSensitiveMacros); +// If AlignAfterOpenBracket was specified but AlignAfterOpenBracketBreak +// was not, initialize the latter f

[clang] [clang-format] Add AlignAfterOpenBracketOptions (PR #108332)

2025-01-28 Thread Gedare Bloom via cfe-commits
https://github.com/gedare deleted https://github.com/llvm/llvm-project/pull/108332 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)

2025-01-28 Thread Bruno Cardoso Lopes via cfe-commits
@@ -55,6 +55,9 @@ class CIRGenerator : public clang::ASTConsumer { void Initialize(clang::ASTContext &astContext) override; bool HandleTopLevelDecl(clang::DeclGroupRef group) override; mlir::ModuleOp getModule() const; + std::unique_ptr takeContext() { b

[clang] [clang-format] Fix annotating attrs in class/struct (PR #124634)

2025-01-28 Thread Gedare Bloom via cfe-commits
gedare wrote: > I'd add an annotating test. (And drop the formatting test.) Yes, that's a good idea, I've done it. I started with the formatting test, but it is unnecessary (although a good, complicated bit of formatting) since the bug was in the annotation. https://github.com/llvm/llvm-proje

[clang] [clang] NFC: cleanup check template argument (PR #124668)

2025-01-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-aarch64-debug-reverse-iteration` running on `linaro-flang-aarch64-debug-reverse-iteration` while building `clang` at step 6 "test-build-unified-tree-check-flang". Full details are available at: https://lab.llvm.org/bui

[clang] [clang] NFC: cleanup check template argument (PR #124668)

2025-01-28 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-aarch64-dylib` running on `linaro-flang-aarch64-dylib` while building `clang` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/50/builds/9534 Here is the relevant

[clang] [Clang] allow restrict qualifier for array types with pointer types as element types (PR #120896)

2025-01-28 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/120896 >From 295df258043ef5a87ae603eedd308b863bad7b59 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sun, 22 Dec 2024 15:14:30 +0200 Subject: [PATCH] [Clang] allow restrict qualifier for array types with pointer

[clang] [clang-cl]: generate debug info when `novtable` is specified (PR #124643)

2025-01-28 Thread via cfe-commits
github-actions[bot] wrote: @Nerixyz 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] [clang-cl]: generate debug info when `novtable` is specified (PR #124643)

2025-01-28 Thread David Blaikie via cfe-commits
https://github.com/dwblaikie closed https://github.com/llvm/llvm-project/pull/124643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3812189 - [clang-cl]: generate debug info when `novtable` is specified (#124643)

2025-01-28 Thread via cfe-commits
Author: nerix Date: 2025-01-28T15:02:33-08:00 New Revision: 381218950e9c0fc17256e1fe4093fd108acc2ac4 URL: https://github.com/llvm/llvm-project/commit/381218950e9c0fc17256e1fe4093fd108acc2ac4 DIFF: https://github.com/llvm/llvm-project/commit/381218950e9c0fc17256e1fe4093fd108acc2ac4.diff LOG: [c

[clang] [clang-cl]: generate debug info when `novtable` is specified (PR #124643)

2025-01-28 Thread via cfe-commits
Nerixyz wrote: I don't have commit access, so I'd need someone to merge this for me. https://github.com/llvm/llvm-project/pull/124643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 548ecde - Add extra explicit triple to fix errors from #110102

2025-01-28 Thread Stephen Tozer via cfe-commits
Author: Stephen Tozer Date: 2025-01-28T22:51:30Z New Revision: 548ecde42886149dd4d69366d7c2dc02076a7083 URL: https://github.com/llvm/llvm-project/commit/548ecde42886149dd4d69366d7c2dc02076a7083 DIFF: https://github.com/llvm/llvm-project/commit/548ecde42886149dd4d69366d7c2dc02076a7083.diff LOG:

[clang] [clang] Return larger CXX records in memory (PR #120670)

2025-01-28 Thread Pranav Kant via cfe-commits
pranavk wrote: > Shouldn't this have some sort of Release not maybe under the X86 section? there's no x86 section in the release notes. So I added it in ABI section. https://github.com/llvm/llvm-project/pull/120670 ___ cfe-commits mailing list cfe-co

[clang] [clang] Return larger CXX records in memory (PR #120670)

2025-01-28 Thread Pranav Kant via cfe-commits
https://github.com/pranavk updated https://github.com/llvm/llvm-project/pull/120670 >From 3f7f567dde22f7501822b83c33eeff8dd596 Mon Sep 17 00:00:00 2001 From: Pranav Kant Date: Fri, 20 Dec 2024 02:17:23 + Subject: [PATCH 1/2] [clang] Return larger CXX records in memory We incorrectly re

[clang] [Clang][Driver][Test] Created test for unsupported driver options (PR #120900)

2025-01-28 Thread via cfe-commits
@@ -0,0 +1,626 @@ +#!/usr/bin/env python3 + +""" generate_unsupported_in_drivermode.py + +usage: python generate_unsupported_in_drivermode.py /Options.td [/llvm-tblgen] + +This script generates a Lit regression test file that validates that options +are only exposed to intended d

[clang] [clang module] Current Working Directory Pruning (PR #124786)

2025-01-28 Thread Qiongsi Wu via cfe-commits
https://github.com/qiongsiwu updated https://github.com/llvm/llvm-project/pull/124786 >From 7060564de1bb6062639f4b4839fa17958f212755 Mon Sep 17 00:00:00 2001 From: Qiongsi Wu Date: Mon, 27 Jan 2025 16:44:30 -0800 Subject: [PATCH 1/2] Initial implementation of clang modules current working dire

[clang] [clang-format] Add AlignAfterOpenBracketOptions (PR #108332)

2025-01-28 Thread Gedare Bloom via cfe-commits
https://github.com/gedare updated https://github.com/llvm/llvm-project/pull/108332 >From c7b34d10bb8f937f9a11778c327f82cee8e60fe5 Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Thu, 20 Jun 2024 17:35:39 -0600 Subject: [PATCH 1/5] Format: add AlignAfterOpenBracketOptions Introduce new option

[clang] Add clang atomic control options and attribute (PR #114841)

2025-01-28 Thread Artem Belevich via cfe-commits
@@ -0,0 +1,19 @@ +//===--- AtomicOptions.def - Atomic Options database -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [clang-format] Add AlignAfterOpenBracketOptions (PR #108332)

2025-01-28 Thread Gedare Bloom via cfe-commits
@@ -1452,6 +1476,7 @@ FormatStyle getLLVMStyle(FormatStyle::LanguageKind Language) { FormatStyle LLVMStyle; LLVMStyle.AccessModifierOffset = -2; LLVMStyle.AlignAfterOpenBracket = FormatStyle::BAS_Align; + LLVMStyle.AlignAfterOpenBracketBreak = {}; gedar

[clang] [Clang][Driver] Add new flags to control machine instruction verification (PR #70282)

2025-01-28 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/70282 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   6   >