[libunwind] [libunwind][Haiku] Fix signal frame unwinding (PR #135367)

2025-05-25 Thread Trung Nguyen via cfe-commits
trungnt2910 wrote: Tried to give [x86 unwinding](https://github.com/trungnt2910/libunwind-haiku/commit/61a36e3d8ed6da29653bba63165093cadc5) a shot. The general idea is correct, but it is currently impossible to unwind past a `syscall` due to the system relying on another [magic `commpage`

[clang] [llvm] [Clang][LoongArch] Support target attribute for function (PR #140700)

2025-05-25 Thread via cfe-commits
@@ -0,0 +1,19 @@ +// RUN: %clang_cc1 -triple loongarch64-linux-gnu -fsyntax-only -verify %s + +// expected-error@+1 {{function multiversioning is not supported on the current target}} +void __attribute__((target("default"))) bar(void){} + +// expected-error@+1 {{target(arch=..)

[clang] [llvm] [Clang][LoongArch] Support target attribute for function (PR #140700)

2025-05-25 Thread via cfe-commits
@@ -0,0 +1,19 @@ +// RUN: %clang_cc1 -triple loongarch64-linux-gnu -fsyntax-only -verify %s + +// expected-error@+1 {{function multiversioning is not supported on the current target}} +void __attribute__((target("default"))) bar(void){} + +// expected-error@+1 {{target(arch=..)

[clang] [llvm] [Clang][LoongArch] Support target attribute for function (PR #140700)

2025-05-25 Thread via cfe-commits
@@ -388,6 +388,76 @@ bool LoongArchTargetInfo::handleTargetFeatures( return true; } +enum class AttrFeatureKind { Arch, Tune, NoFeature, Feature, Invalid }; + +static std::pair +getAttrFeatureTypeAndValue(llvm::StringRef AttrFeature) { + if (auto Split = AttrFeature.split("

[clang] [llvm] [Clang][LoongArch] Support target attribute for function (PR #140700)

2025-05-25 Thread via cfe-commits
https://github.com/Ami-zhang updated https://github.com/llvm/llvm-project/pull/140700 >From 3355685f4debcd901f27efccc346de0f302a796c Mon Sep 17 00:00:00 2001 From: Ami-zhang Date: Wed, 14 May 2025 15:21:54 +0800 Subject: [PATCH 1/2] [Clang][LoongArch] Support target attribute for function This

[clang] [flang] [llvm] Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (PR #136098)

2025-05-25 Thread via cfe-commits
fanju110 wrote: > Thank you for seeing this through and making all the little changes. I have > requested reviews from @MaskRay and @aeubanks for the clang side of things. hello,I noticed that this PR has been awaiting clang review for three weeks. I still haven't gotten a comment from them.wo

[clang-tools-extra] Follow style configuration in clangd when inserting missing includes (PR #140594)

2025-05-25 Thread Nathan Ridge via cfe-commits
@@ -262,6 +264,8 @@ TEST(IncludeCleaner, GenerateMissingHeaderDiags) { TU.Filename = "main.cpp"; TU.AdditionalFiles["a.h"] = guard("#include \"b.h\""); TU.AdditionalFiles["b.h"] = guard("void b();"); + TU.AdditionalFiles["a_angled.h"] = guard("#include \"b_angled.h\"");

[clang] [llvm] Arm64EC entry/exit thunks, consolidated. (PR #79067)

2025-05-25 Thread Fangrui Song via cfe-commits
@@ -44,7 +44,11 @@ define void @varargs_caller() nounwind { ; CHECK-NEXT:stp xzr, x30, [sp, #24] // 8-byte Folded Spill ; CHECK-NEXT:stp x9, x8, [sp] ; CHECK-NEXT:str xzr, [sp, #16] -; CHECK-NEXT:bl varargs_callee +; CHECK-NEXT:.weak_anti_dep varargs_callee

[clang] [flang] [llvm] Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (PR #136098)

2025-05-25 Thread via cfe-commits
https://github.com/fanju110 updated https://github.com/llvm/llvm-project/pull/136098 >From 9494c9752400e4708dbc8b6a5ca4993ea9565e95 Mon Sep 17 00:00:00 2001 From: fanyikang Date: Thu, 17 Apr 2025 15:17:07 +0800 Subject: [PATCH 01/13] Add support for IR PGO (-fprofile-generate/-fprofile-use=/fi

[clang] [Clang] Reapply CWG2369 "Ordering between constraints and substitution" (PR #122423)

2025-05-25 Thread Younan Zhang via cfe-commits
zyn0217 wrote: @cor3ntin it's ready :) https://github.com/llvm/llvm-project/pull/122423 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Reapply CWG2369 "Ordering between constraints and substitution" (PR #122423)

2025-05-25 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/122423 >From 56bacf47c53aca276ae4fa6aa2972b7eda152ddd Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Fri, 10 Jan 2025 09:46:24 +0800 Subject: [PATCH 01/17] Reapply "[Clang] Implement CWG2369 "Ordering between const

[clang] [Clang] Reapply CWG2369 "Ordering between constraints and substitution" (PR #122423)

2025-05-25 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/122423 >From 56bacf47c53aca276ae4fa6aa2972b7eda152ddd Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Fri, 10 Jan 2025 09:46:24 +0800 Subject: [PATCH 01/16] Reapply "[Clang] Implement CWG2369 "Ordering between const

[clang] [Clang][CodeGen] Add metadata for load from reference (PR #98746)

2025-05-25 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw closed https://github.com/llvm/llvm-project/pull/98746 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Follow style configuration in clangd when inserting missing includes (PR #140594)

2025-05-25 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 requested changes to this pull request. https://github.com/llvm/llvm-project/pull/140594 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Follow style configuration in clangd when inserting missing includes (PR #140594)

2025-05-25 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > > But since we have both config options, maybe there is a reason for > > overwrites in this direction as well. > > Hmm, I was mainly focusing on the quoted -> angled case, hence why only the > `AngledHeaders` filter is used. But I have to agree that following the config

[clang-tools-extra] [clang-tidy] added `AllowedTypes` option to `readability-qualified-auto` check (PR #136571)

2025-05-25 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/136571 >From ac83f555e2667c516bdd194d9006a2a7bc4d9af7 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Mon, 21 Apr 2025 18:29:28 +0300 Subject: [PATCH 1/2] added Allowed types to qualified-auto --- .../readabilit

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/134375 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Baranov Victor via cfe-commits
@@ -80,13 +78,47 @@ void ExceptionEscapeCheck::check(const MatchFinder::MatchResult &Result) { if (!MatchedDecl) return; - if (Tracer.analyze(MatchedDecl).getBehaviour() == - utils::ExceptionAnalyzer::State::Throwing) -// FIXME: We should provide more informat

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-25 Thread via cfe-commits
@@ -142,6 +142,12 @@ New checks Finds potentially erroneous calls to ``reset`` method on smart pointers when the pointee type also has a ``reset`` method. +- New :doc:`portability-avoid-pragma-once EugeneZelenko wrote: Please keep alphabetical order (by c

[clang] [llvm] [Clang][LoongArch] Support target attribute for function (PR #140700)

2025-05-25 Thread via cfe-commits
@@ -0,0 +1,92 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --check-globals all --version 5 +// RUN: %clang --target=loongarch64-linux-gnu %s -S -emit-llvm -o - \ +// RUN: | FileCheck %s + +__attribute__((target("div32"))) +// CHECK

[libunwind] [libunwind][Haiku] Fix signal frame unwinding (PR #135367)

2025-05-25 Thread Brad Smith via cfe-commits
brad0 wrote: cc @MaskRay https://github.com/llvm/llvm-project/pull/135367 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind][Haiku] Fix signal frame unwinding (PR #135367)

2025-05-25 Thread Brad Smith via cfe-commits
brad0 wrote: Yes, that is fine. Thanks. https://github.com/llvm/llvm-project/pull/135367 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang][LoongArch] Support target attribute for function (PR #140700)

2025-05-25 Thread via cfe-commits
https://github.com/heiher approved this pull request. LGTM with nits. https://github.com/llvm/llvm-project/pull/140700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind][Haiku] Fix signal frame unwinding (PR #135367)

2025-05-25 Thread Trung Nguyen via cfe-commits
trungnt2910 wrote: The latest commit is known to build well on `i386`. Signal frame unwinding is still not supported, but I believe this is out of scope for this PR. https://github.com/llvm/llvm-project/pull/135367 ___ cfe-commits mailing list cfe-com

[clang] [llvm] [Clang][LoongArch] Support target attribute for function (PR #140700)

2025-05-25 Thread via cfe-commits
@@ -388,6 +388,76 @@ bool LoongArchTargetInfo::handleTargetFeatures( return true; } +enum class AttrFeatureKind { Arch, Tune, NoFeature, Feature, Invalid }; + +static std::pair +getAttrFeatureTypeAndValue(llvm::StringRef AttrFeature) { + if (auto Split = AttrFeature.split("

[clang] [llvm] [Clang][LoongArch] Support target attribute for function (PR #140700)

2025-05-25 Thread via cfe-commits
https://github.com/heiher edited https://github.com/llvm/llvm-project/pull/140700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind][Haiku] Fix signal frame unwinding (PR #135367)

2025-05-25 Thread Trung Nguyen via cfe-commits
https://github.com/trungnt2910 updated https://github.com/llvm/llvm-project/pull/135367 >From 7d363093d85084e8f7f4c3994f207a36781ededc Mon Sep 17 00:00:00 2001 From: Trung Nguyen Date: Fri, 11 Apr 2025 23:53:14 +1000 Subject: [PATCH] [libunwind][Haiku] Fix signal frame unwinding The current un

[clang-tools-extra] [clang-tidy] Fix false positives in `bugprone-crtp-constructor-accessibility` check (PR #132543)

2025-05-25 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/132543 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] eda3e96 - [clang-tidy] Fix false positives in `bugprone-crtp-constructor-accessibility` check (#132543)

2025-05-25 Thread via cfe-commits
Author: Baranov Victor Date: 2025-05-26T06:25:19+03:00 New Revision: eda3e96b401a9b86132e39432e41e2000d1ab382 URL: https://github.com/llvm/llvm-project/commit/eda3e96b401a9b86132e39432e41e2000d1ab382 DIFF: https://github.com/llvm/llvm-project/commit/eda3e96b401a9b86132e39432e41e2000d1ab382.diff

[clang] 641b2a5 - [Driver][X86] Add -m[no-]apxf to m_x86_Features_Group (#140874)

2025-05-25 Thread via cfe-commits
Author: Feng Zou Date: 2025-05-26T10:42:53+08:00 New Revision: 641b2a58ea55b5532639ca7eb3a8a5795c87bd5d URL: https://github.com/llvm/llvm-project/commit/641b2a58ea55b5532639ca7eb3a8a5795c87bd5d DIFF: https://github.com/llvm/llvm-project/commit/641b2a58ea55b5532639ca7eb3a8a5795c87bd5d.diff LOG:

[clang-tools-extra] [clang-tidy] Fix false negative `modernize-use-ranges` when using getter function (PR #127377)

2025-05-25 Thread Congcong Cai via cfe-commits
HerrCai0907 wrote: Maybe it is more straightforward to detect function which return ref of member variable like `const std::vector& get() const { return v; }` and bypass the SideEffect check. https://github.com/llvm/llvm-project/pull/127377 ___ cfe-c

[clang] [llvm] [Options] Add same-address constraint to the description of '-m[no]ld-seq-sa' (PR #141192)

2025-05-25 Thread via cfe-commits
https://github.com/Ami-zhang closed https://github.com/llvm/llvm-project/pull/141192 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7af14e5 - [NFC][Options] Add same-address constraint to the description of '-m[no]ld-seq-sa' (#141192)

2025-05-25 Thread via cfe-commits
Author: Ami-zhang Date: 2025-05-26T10:53:17+08:00 New Revision: 7af14e5118dcc308f32857f78886bbad12ff9e92 URL: https://github.com/llvm/llvm-project/commit/7af14e5118dcc308f32857f78886bbad12ff9e92 DIFF: https://github.com/llvm/llvm-project/commit/7af14e5118dcc308f32857f78886bbad12ff9e92.diff LOG

[clang] [llvm] [Options] Add same-address constraint to the description of '-m[no]ld-seq-sa' (PR #141192)

2025-05-25 Thread via cfe-commits
https://github.com/Ami-zhang updated https://github.com/llvm/llvm-project/pull/141192 >From 31897be26bf2f2cdb43883adc9bb43dee7008887 Mon Sep 17 00:00:00 2001 From: Ami-zhang Date: Fri, 23 May 2025 10:21:00 +0800 Subject: [PATCH] [NFC][Options] Add same-address constraint to the description of

[clang] [Driver][X86] Add -m[no-]apxf to m_x86_Features_Group (PR #140874)

2025-05-25 Thread Feng Zou via cfe-commits
https://github.com/fzou1 closed https://github.com/llvm/llvm-project/pull/140874 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Remove unused includes (NFC) (PR #141448)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141448 These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compiler-spec

[clang] [Driver][X86] Add -m[no-]apxf to m_x86_Features_Group (PR #140874)

2025-05-25 Thread Shengchen Kan via cfe-commits
https://github.com/KanRobert approved this pull request. https://github.com/llvm/llvm-project/pull/140874 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Remove unused includes (NFC) (PR #141448)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-loongarch Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or

[clang] [Driver] Remove unused includes (NFC) (PR #141448)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-hexagon Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or c

[clang-tools-extra] [clang-tidy] Fix false negative `modernize-use-ranges` when using getter function (PR #127377)

2025-05-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 requested changes to this pull request. https://github.com/llvm/llvm-project/pull/127377 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][RISCV] Emit RISCV function-signature-based CFI label in llvm::Function metadata (PR #111661)

2025-05-25 Thread Ming-Yi Lai via cfe-commits
mylai-mtk wrote: > For missing prototypes, we can statically detect calls which pass arguments > to function without a prototype. Generating code we know will never work, > without a diagnostic, is a bad idea. @efriedma-quic If what you need to see are diagnostics, I can add them in this PR.

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/140388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 64bc35f - [NFC] Fix bad link in `clang/lib/Sema/SemaTypeTraits.cpp` (#141405)

2025-05-25 Thread via cfe-commits
Author: Connector Switch Date: 2025-05-26T10:13:14+08:00 New Revision: 64bc35f33e9d330e1bfff07436010b43ce332d9b URL: https://github.com/llvm/llvm-project/commit/64bc35f33e9d330e1bfff07436010b43ce332d9b DIFF: https://github.com/llvm/llvm-project/commit/64bc35f33e9d330e1bfff07436010b43ce332d9b.di

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
@@ -80,13 +78,47 @@ void ExceptionEscapeCheck::check(const MatchFinder::MatchResult &Result) { if (!MatchedDecl) return; - if (Tracer.analyze(MatchedDecl).getBehaviour() == - utils::ExceptionAnalyzer::State::Throwing) -// FIXME: We should provide more informat

[clang] [Driver] Remove unused includes (NFC) (PR #141448)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or compi

[clang] [Driver] Remove unused includes (NFC) (PR #141448)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, which likely cause platform- or c

[clang] [Driver] Remove unused includes (NFC) (PR #141448)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v @llvm/pr-subscribers-backend-arm Author: Kazu Hirata (kazutakahirata) Changes These are identified by misc-include-cleaner. I've filtered out those that break builds. Also, I'm staying away from llvm-config.h, config.h, and Compiler.h, w

[clang] [AST] Use llvm::none_of (NFC) (PR #141447)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141447.diff 1 Files Affected: - (modified) clang/unittests/AST/ASTImporterFixtures.cpp (+2-3) ``diff diff --git a/clang/unittests/

[clang] [Analysis] Use llvm::erase_if (NFC) (PR #141446)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/141446.diff 1 Files Affected: - (modified) clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp (+1-3) ``diff diff --git a/clang/

[clang] [AST] Use llvm::none_of (NFC) (PR #141447)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141447 None >From acb3fc1898cc1ab8a388a45594f84fa9f61ed644 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 25 May 2025 10:32:08 -0700 Subject: [PATCH] [AST] Use llvm::none_of (NFC) --- clang/unittests/A

[clang] [Analysis] Use llvm::erase_if (NFC) (PR #141446)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141446 None >From 5042f47e7c990892c13e4de21ae7a4ff1baec308 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 25 May 2025 10:35:44 -0700 Subject: [PATCH] [Analysis] Use llvm::erase_if (NFC) --- clang/unitt

[clang-tools-extra] [clang-tidy] Fix false negative `modernize-use-ranges` when using getter function (PR #127377)

2025-05-25 Thread Congcong Cai via cfe-commits
@@ -51,7 +51,13 @@ static std::string getFullPrefix(ArrayRef Signature) { namespace { AST_MATCHER(Expr, hasSideEffects) { - return Node.HasSideEffects(Finder->getASTContext()); + bool CheckArg = true; + if (const CXXMemberCallExpr *Call = dyn_cast(&Node)) { +if (Call->

[clang] [NFC] Fix bad link in `clang/lib/Sema/SemaTypeTraits.cpp` (PR #141405)

2025-05-25 Thread Connector Switch via cfe-commits
https://github.com/c8ef closed https://github.com/llvm/llvm-project/pull/141405 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add avoid-pragma-once. (PR #140388)

2025-05-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/140388 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Implement intrinsics for XAndesVDot (PR #141441)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-risc-v Author: Jim Lin (tclin914) Changes This patch implements clang intrinsic support for XAndesVDot. The document for the intrinsics can be found at: https://github.com/andestech/andes-vector-intrinsic-doc/blob/ast-

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/134375 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
@@ -80,13 +78,47 @@ void ExceptionEscapeCheck::check(const MatchFinder::MatchResult &Result) { if (!MatchedDecl) return; - if (Tracer.analyze(MatchedDecl).getBehaviour() == - utils::ExceptionAnalyzer::State::Throwing) -// FIXME: We should provide more informat

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 commented: Could you add some separate tests for this diagnostic? I am not sure current test case is covered all scenarios in this PR https://github.com/llvm/llvm-project/pull/134375 ___ cfe-commits mailing list cfe-com

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
@@ -80,13 +78,47 @@ void ExceptionEscapeCheck::check(const MatchFinder::MatchResult &Result) { if (!MatchedDecl) return; - if (Tracer.analyze(MatchedDecl).getBehaviour() == - utils::ExceptionAnalyzer::State::Throwing) -// FIXME: We should provide more informat

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/134375 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
@@ -80,13 +78,47 @@ void ExceptionEscapeCheck::check(const MatchFinder::MatchResult &Result) { if (!MatchedDecl) return; - if (Tracer.analyze(MatchedDecl).getBehaviour() == - utils::ExceptionAnalyzer::State::Throwing) -// FIXME: We should provide more informat

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
@@ -377,6 +402,8 @@ Task h_ShouldDiag(const int a, // CHECK-MESSAGES: :[[@LINE-2]]:45: warning: an exception may be thrown in function 'h_ShouldDiag' which should not throw exceptions co_yield a / b; } +// CHECK-MESSAGES: :133:7: note: frame #0: unhandled exception may be

[clang-tools-extra] [clang-tidy] Improve `bugprone-exception-escape`: add stacktrace of escaped exception (PR #134375)

2025-05-25 Thread Congcong Cai via cfe-commits
@@ -80,13 +78,47 @@ void ExceptionEscapeCheck::check(const MatchFinder::MatchResult &Result) { if (!MatchedDecl) return; - if (Tracer.analyze(MatchedDecl).getBehaviour() == - utils::ExceptionAnalyzer::State::Throwing) -// FIXME: We should provide more informat

[clang] [Driver][X86] Add -m[no-]apxf to m_x86_Features_Group (PR #140874)

2025-05-25 Thread Feng Zou via cfe-commits
fzou1 wrote: @KanRobert , any further comments? https://github.com/llvm/llvm-project/pull/140874 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind][Haiku] Fix signal frame unwinding (PR #135367)

2025-05-25 Thread Brad Smith via cfe-commits
brad0 wrote: > You mean adding support for `i386`? Yes. > From what I understand about the linked issue, x86 is failing due to some > signal frame unwinding function prototypes got leaked to general Haiku code, > `_LIBUNWIND_TARGET_HAIKU`, but the implementation part got an additional > `_LI

[clang] [clang][AIX] Fix -print-runtime-dir fallback on AIX (PR #141439)

2025-05-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Jake Egan (jakeegan) Changes If the runtime path is not found (by getTargetSubDirPath()), since per target runtime directory is enabled on AIX, we should fall back to the target subdirectory rather than the OS subdirectory. --- Fu

[clang] [clang][AIX] Fix -print-runtime-dir fallback on AIX (PR #141439)

2025-05-25 Thread Jake Egan via cfe-commits
https://github.com/jakeegan ready_for_review https://github.com/llvm/llvm-project/pull/141439 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][AIX] Fix -print-runtime-dir fallback on AIX (PR #141439)

2025-05-25 Thread Jake Egan via cfe-commits
https://github.com/jakeegan updated https://github.com/llvm/llvm-project/pull/141439 >From b044f81c6d1ed67ce7ee27bce7a62d36b3841bad Mon Sep 17 00:00:00 2001 From: Jake Egan Date: Sun, 25 May 2025 19:40:59 -0400 Subject: [PATCH 1/2] Fix rt dir fallback --- clang/lib/Driver/ToolChain.cpp

[clang] [clang][AIX] Fix -print-runtime-dir fallback on AIX (PR #141439)

2025-05-25 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 HEAD~1 HEAD --extensions c,cpp -- clang/lib/Driver/ToolChain.cpp clang/test/Driver/ai

[libunwind] [libunwind][Haiku] Fix signal frame unwinding (PR #135367)

2025-05-25 Thread Trung Nguyen via cfe-commits
trungnt2910 wrote: You mean adding support for `i386`? >From what I understand about the linked issue, x86 is failing due to some >signal frame unwinding function prototypes got leaked to general Haiku code, >`_LIBUNWIND_TARGET_HAIKU`, but the implementation part got an additional >`_LIBUNWIN

[clang] [clang][AIX] Fix -print-runtime-dir fallback on AIX (PR #141439)

2025-05-25 Thread Jake Egan via cfe-commits
https://github.com/jakeegan created https://github.com/llvm/llvm-project/pull/141439 If the runtime path is not found (by getTargetSubDirPath()), since per target runtime directory is enabled on AIX, we should fall back to the target subdirectory rather than the OS subdirectory. >From b044f81

[libunwind] [libunwind][Haiku] Fix signal frame unwinding (PR #135367)

2025-05-25 Thread Brad Smith via cfe-commits
brad0 wrote: @trungnt2910 It would be good to also fix i386 while you're at it. https://github.com/haikuports/haikuports/commit/7d537e1161adc0ad1860c030e303fad54104d196 https://github.com/llvm/llvm-project/pull/135367 ___ cfe-commits mailing list cfe-

[clang] [clang-format] Handle Java text blocks (PR #141334)

2025-05-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-fast` running on `sanitizer-buildbot4` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/11756 Here is the relevant piece

[clang] [clang-format] Handle Java text blocks (PR #141334)

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

[clang] [clang-format] Handle Java text blocks (PR #141334)

2025-05-25 Thread Owen Pan via cfe-commits
owenca wrote: /cherry-pick b7f5950bb3b97eac979925a3bbf015530c26962e https://github.com/llvm/llvm-project/pull/141334 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b7f5950 - [clang-format] Handle Java text blocks (#141334)

2025-05-25 Thread via cfe-commits
Author: Owen Pan Date: 2025-05-25T15:40:45-07:00 New Revision: b7f5950bb3b97eac979925a3bbf015530c26962e URL: https://github.com/llvm/llvm-project/commit/b7f5950bb3b97eac979925a3bbf015530c26962e DIFF: https://github.com/llvm/llvm-project/commit/b7f5950bb3b97eac979925a3bbf015530c26962e.diff LOG:

[clang] [clang-format] Handle Java text blocks (PR #141334)

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

[clang] Thread safety analysis: Skip functions acquiring/releasing parameters (PR #141432)

2025-05-25 Thread Aaron Puchert via cfe-commits
aaronpuchert wrote: @melver, this request came from @AaronBallman. But since you're also working on Thread Safety Analysis in C, you might have some thoughts of your own about this. I haven't checked any real-world code yet. (Specifically, how many functions would be affected by this exclusio

[clang] Thread safety analysis: Skip functions acquiring/releasing parameters (PR #141432)

2025-05-25 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 HEAD~1 HEAD --extensions cpp -- clang/lib/Analysis/ThreadSafety.cpp clang/test/SemaC

[clang] Thread safety analysis: Skip functions acquiring/releasing parameters (PR #141432)

2025-05-25 Thread Aaron Puchert via cfe-commits
https://github.com/aaronpuchert created https://github.com/llvm/llvm-project/pull/141432 The analysis already excludes functions with a zero-argument acquire or release attribute. According to the requirements enforced by -Wthread-safety-attributes, these are methods of a capability class wher

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

2025-05-25 Thread Aaron Puchert via cfe-commits
https://github.com/aaronpuchert edited https://github.com/llvm/llvm-project/pull/137133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-05-25 Thread Aaron Puchert via cfe-commits
@@ -235,6 +266,20 @@ class FactSet { return false; } + std::optional replaceLock(FactManager &FM, iterator It, +std::unique_ptr Entry) { +if (It == end()) + return std::nullopt; +FactID F = FM.newFact(std::move(Entry)); +

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

2025-05-25 Thread Aaron Puchert via cfe-commits
https://github.com/aaronpuchert approved this pull request. I think this looks good, thanks for your contribution! https://github.com/llvm/llvm-project/pull/137133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] 403c722 - [ByteCode] Drop const from a return type (NFC) (#141415)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T13:28:50-07:00 New Revision: 403c72265766c1c3e7bc93f8d358088f184f2689 URL: https://github.com/llvm/llvm-project/commit/403c72265766c1c3e7bc93f8d358088f184f2689 DIFF: https://github.com/llvm/llvm-project/commit/403c72265766c1c3e7bc93f8d358088f184f2689.diff L

[clang] [ByteCode] Drop const from a return type (NFC) (PR #141415)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141415 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Handle Java text blocks (PR #141334)

2025-05-25 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/141334 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [Clang] Add __builtin_common_reference (PR #121199)

2025-05-25 Thread via cfe-commits
@@ -3231,6 +3241,230 @@ static QualType builtinCommonTypeImpl(Sema &S, TemplateName BaseTemplate, } } +static QualType CopyCV(QualType From, QualType To) { + if (From.isConstQualified()) +To.addConst(); + if (From.isVolatileQualified()) +To.addVolatile(); + retur

[clang] replace the extension with the right functions (PR #141110)

2025-05-25 Thread Sean Perry via cfe-commits
https://github.com/perry-ca closed https://github.com/llvm/llvm-project/pull/141110 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d2eec93 - replace the extension with the right functions (#141110)

2025-05-25 Thread via cfe-commits
Author: Sean Perry Date: 2025-05-25T15:07:20-04:00 New Revision: d2eec93f7c652946e98b4c872ddf1d353b28dabe URL: https://github.com/llvm/llvm-project/commit/d2eec93f7c652946e98b4c872ddf1d353b28dabe DIFF: https://github.com/llvm/llvm-project/commit/d2eec93f7c652946e98b4c872ddf1d353b28dabe.diff LO

[clang] [ByteCode] Drop const from a return type (NFC) (PR #141415)

2025-05-25 Thread Tim Gymnich via cfe-commits
https://github.com/tgymnich approved this pull request. https://github.com/llvm/llvm-project/pull/141415 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Use StringRef::consume_front (NFC) (PR #141412)

2025-05-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-windows` running on `linaro-armv8-windows-msvc-05` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/141/builds/8996 Here is the relevant piece of

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/141369 >From 3a8bcd052d25d138b3a9a53bbcc69d48500b4b41 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 24 May 2025 14:18:06 +0200 Subject: [PATCH 1/3] [CIR] Upstream global initialization for ComplexType --

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Henrich Lauko via cfe-commits
@@ -276,4 +276,38 @@ def ConstPtrAttr : CIR_Attr<"ConstPtr", "ptr", [TypedAttrInterface]> { }]; } +//===--===// +// ConstComplexAttr +//===---

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Henrich Lauko via cfe-commits
@@ -226,6 +227,42 @@ mlir::Value CIRAttrToValue::visitCirAttr(cir::IntAttr intAttr) { loc, converter->convertType(intAttr.getType()), intAttr.getValue()); } +/// FPAttr visitor. +mlir::Value CIRAttrToValue::visitCirAttr(cir::FPAttr fltAttr) { + mlir::Location loc = par

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Henrich Lauko via cfe-commits
@@ -385,6 +385,13 @@ mlir::Type CIRGenTypes::convertType(QualType type) { break; } + case Type::Complex: { +const ComplexType *ct = cast(ty); +mlir::Type elementTy = convertType(ct->getElementType()); xlauko wrote: ```suggestion const auto

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-25 Thread Henrich Lauko via cfe-commits
@@ -231,7 +231,8 @@ static LogicalResult checkConstantTypes(mlir::Operation *op, mlir::Type opType, } if (isa(attrType)) { -if (isa(opType)) +if (isa( +opType)) return success(); return op->emitOpError("zero expects struct or array type");

[clang-tools-extra] [clang-tidy] Remove unused includes (NFC) (PR #141420)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141420 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] ba007a6 - [clang-tidy] Remove unused includes (NFC) (#141420)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T10:55:36-07:00 New Revision: ba007a60d07fb4ac685c8bca7b7a18b870e287b2 URL: https://github.com/llvm/llvm-project/commit/ba007a60d07fb4ac685c8bca7b7a18b870e287b2 DIFF: https://github.com/llvm/llvm-project/commit/ba007a60d07fb4ac685c8bca7b7a18b870e287b2.diff L

[clang] [Sema] Remove unused includes (NFC) (PR #141419)

2025-05-25 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/141419 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 12af64d - [Sema] Remove unused includes (NFC) (#141419)

2025-05-25 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-05-25T10:55:32-07:00 New Revision: 12af64d0d7dedfcee6da3c458edda64884e8f3bb URL: https://github.com/llvm/llvm-project/commit/12af64d0d7dedfcee6da3c458edda64884e8f3bb DIFF: https://github.com/llvm/llvm-project/commit/12af64d0d7dedfcee6da3c458edda64884e8f3bb.diff L

  1   2   >