[clang] [CIR] Upstream VisitOpaqueValueExpr support for Complex & Scalar (PR #157331)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes This change adds support for the OpaqueValueExpr for Complex & Scalar Issue: https://github.com/llvm/llvm-project/issues/141365 --- Full diff: https://github.com/llvm/llvm-project/pull/157331.diff 5 Fi

[clang] [clang] Allow attributes on first constructor argument in pre-C++11 (PR #157300)

2025-09-07 Thread via cfe-commits
https://github.com/camc updated https://github.com/llvm/llvm-project/pull/157300 >From f4380abad3d19c7234cf632afca5413ec1a9c97e Mon Sep 17 00:00:00 2001 From: camc <69519329+c...@users.noreply.github.com> Date: Sat, 6 Sep 2025 18:44:57 + Subject: [PATCH 1/4] [clang] Allow attributes in constr

[clang] [llvm] Make sanitizer special case list slash-agnostic (PR #149886)

2025-09-07 Thread Devon Loehr via cfe-commits
https://github.com/DKLoehr updated https://github.com/llvm/llvm-project/pull/149886 >From 033278dc9c1962e43258e5a1948aef5155e7ecbd Mon Sep 17 00:00:00 2001 From: Devon Loehr Date: Mon, 21 Jul 2025 19:07:23 + Subject: [PATCH 1/3] Make special case matcher slash-agnostic --- clang/docs/Sani

[clang] [flang] [llvm] [mlir] [Support][NFC] Move OptimizationLevel to the Support directory (PR #157057)

2025-09-07 Thread David Sherwood via cfe-commits
https://github.com/david-arm updated https://github.com/llvm/llvm-project/pull/157057 >From 38a652542beb691c14a5d4ad832302ade1f579c4 Mon Sep 17 00:00:00 2001 From: David Sherwood Date: Fri, 5 Sep 2025 09:10:47 + Subject: [PATCH] [Support] Move OptimizationLevel to the Support directory Som

[clang] [CIR] Add support for __builtin_alloca (PR #157116)

2025-09-07 Thread Morris Hafner via cfe-commits
https://github.com/mmha created https://github.com/llvm/llvm-project/pull/157116 This patch adds support for the alloca builtin and extends AllocaOp with a dynamic size argument. >From 6080e710fcf5c2b8527a1c6ea1057891e5820bbf Mon Sep 17 00:00:00 2001 From: Morris Hafner Date: Fri, 5 Sep 2025 1

[clang] [Clang][OpenMP]Default clause variable category (PR #157063)

2025-09-07 Thread via cfe-commits
https://github.com/SunilKuravinakop updated https://github.com/llvm/llvm-project/pull/157063 >From dce17e9499e18ff0db4452d3ae316fdfc678fd2f Mon Sep 17 00:00:00 2001 From: Sunil Kuravinakop Date: Thu, 7 Aug 2025 03:41:16 -0500 Subject: [PATCH 1/7] Parsing and storing of "variable category" in Se

[clang-tools-extra] [clang-tidy] Remove global options IgnoreMacros and StrictMode (PR #157049)

2025-09-07 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. https://github.com/llvm/llvm-project/pull/157049 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64] Enable out-of-line atomics by default. (PR #157241)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Brad Smith (brad0) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/157241.diff 8 Files Affected: - (modified) clang/include/clang/Driver/ToolChain.h (-6) - (modified) clang/lib/Driver/ToolChains/CommonArgs.cpp

[clang] [clang] VectorExprEvaluator::VisitCallExpr - use APSInt callback instead of repeated switch statement (PR #157137)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Simon Pilgrim (RKSimon) Changes Create a EvaluateBinOpExpr helper that each related group of elementwise binop builtins can use with their own custom callback, to help reduce the amount of duplication and avoid too much code bloat as more

[clang] [Headers][X86] Add constexpr support for some AVX[512] intrinsics. (PR #157260)

2025-09-07 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/157260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Add constexpr support for some AVX[512] intrinsics. (PR #157260)

2025-09-07 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon auto_merge_enabled https://github.com/llvm/llvm-project/pull/157260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 49f28f6 - [Headers][X86] Add constexpr support for some AVX[512] intrinsics. (#157260)

2025-09-07 Thread via cfe-commits
Author: moorabbit Date: 2025-09-07T10:29:58Z New Revision: 49f28f6efb90cfcc45adf4e9ececc4b45254623a URL: https://github.com/llvm/llvm-project/commit/49f28f6efb90cfcc45adf4e9ececc4b45254623a DIFF: https://github.com/llvm/llvm-project/commit/49f28f6efb90cfcc45adf4e9ececc4b45254623a.diff LOG: [He

[clang] [Headers][X86] Add constexpr support for some AVX[512] intrinsics. (PR #157260)

2025-09-07 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/157260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-07 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slani

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-07 Thread via cfe-commits
=?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= S

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-07 Thread via cfe-commits
=?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= S

[clang] [lldb] [Clang][PowerPC] Add __dmr2048 type and DMF crypto builtins (PR #157152)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-powerpc @llvm/pr-subscribers-clang Author: Maryam Moghadas (maryammo) Changes --- Patch is 22.86 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/157152.diff 11 Files Affected: - (modified) clang/i

[clang] [llvm] Make sanitizer special case list slash-agnostic (PR #149886)

2025-09-07 Thread Devon Loehr via cfe-commits
@@ -59,7 +59,8 @@ Error SpecialCaseList::Matcher::insert(StringRef Pattern, unsigned LineNumber, Glob->LineNo = LineNumber; // We must be sure to use the string in `Glob` rather than the provided // reference which could be destroyed before match() is called - if (auto

[clang] [flang] [llvm] [mlir] [Support][NFC] Move OptimizationLevel to the Support directory (PR #157057)

2025-09-07 Thread Sergei Barannikov via cfe-commits
s-barannikov wrote: I always thought of ADT and Support libraries as being useful for other projects, OptLevel seems too llvm-specific to me. Could CodeGen directory be a better choice? https://github.com/llvm/llvm-project/pull/157057 ___ cfe-commit

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-07 Thread via cfe-commits
=?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= Slanina , =?utf-8?q?Tomáš?= S

[clang] [clang] Detect int-to-float narrowing when the back-conversion is unspecified (PR #157174)

2025-09-07 Thread via cfe-commits
https://github.com/camc updated https://github.com/llvm/llvm-project/pull/157174 >From c239432fd160dfb9cd0683c55a4b5ab24804a232 Mon Sep 17 00:00:00 2001 From: camc <69519329+c...@users.noreply.github.com> Date: Fri, 5 Sep 2025 20:47:06 + Subject: [PATCH 1/3] [clang] Detect int-to-float narrow

[clang] [Headers][X86] Add constexpr support for some AVX[512] intrinsics. (PR #157260)

2025-09-07 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/157260 >From 6a3ea1634162fa90e3b2deacb1b0ff7a1a907359 Mon Sep 17 00:00:00 2001 From: moorabbit Date: Thu, 4 Sep 2025 16:03:54 -0400 Subject: [PATCH 01/30] _mm_cvtepi64_pd --- clang/lib/Headers/avx512vldqintrin.h

[clang] [clang] Detect int-to-float narrowing when the back-conversion is unspecified (PR #157174)

2025-09-07 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/157174 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Detect int-to-float narrowing when the back-conversion is unspecified (PR #157174)

2025-09-07 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: Thanks. Will you need us to merge that for you? https://github.com/llvm/llvm-project/pull/157174 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Allow attributes on first constructor argument in pre-C++11 (PR #157300)

2025-09-07 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/157300 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add the candiscard attribute to suppress nodiscard (PR #154943)

2025-09-07 Thread Corentin Jabot via cfe-commits
@@ -489,6 +567,44 @@ void test() { from_a_template(); // expected-warning {{ignoring return value of type 'NoDiscard' declared with 'nodiscard' attribute}} from_a_template(); // no warning from_a_template(); // expected-warning {{ignoring return value of type 'WarnUnuse

[clang] [clang] Add the candiscard attribute to suppress nodiscard (PR #154943)

2025-09-07 Thread Corentin Jabot via cfe-commits
@@ -2452,6 +2452,44 @@ use the annotated ``[[nodiscard]]`` constructor or result in an annotated type. }]; } +def CanDiscardDocs : Documentation { + let Category = DocCatFunction; + let Heading = "candiscard"; + let Content = [{ +A function whose return type is marked w

[clang] [clang] Add the candiscard attribute to suppress nodiscard (PR #154943)

2025-09-07 Thread via cfe-commits
R-Goc wrote: How was the naming decided here? Any reason it isn't made similar to maybe_unused, as in may_discard if we are going this way? Neither of these make great language sense to me though. Since we are applying it to the return value I'd say something like discardable would make the mo

[clang] [clang] Detect int-to-float narrowing when the back-conversion is unspecified (PR #157174)

2025-09-07 Thread via cfe-commits
camc wrote: Yep, thanks https://github.com/llvm/llvm-project/pull/157174 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] VectorExprEvaluator::VisitCallExpr - use APSInt callback instead of repeated switch statement (PR #157137)

2025-09-07 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/157137 >From 32f6bdf7e206a09515ce6ee7c06a85ecee5fdaa3 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Fri, 5 Sep 2025 17:28:21 +0100 Subject: [PATCH] [clang] VectorExprEvaluator::VisitCallExpr - use APSInt callback

[clang] 4b3ad50 - [Clang][bytecode] interp__builtin_elementwise_binop - remove unused BuiltinID argument. NFC (#157109)

2025-09-07 Thread via cfe-commits
Author: Simon Pilgrim Date: 2025-09-05T15:06:04+01:00 New Revision: 4b3ad50698b4d6967cf94b745023c70fc1ec8a6c URL: https://github.com/llvm/llvm-project/commit/4b3ad50698b4d6967cf94b745023c70fc1ec8a6c DIFF: https://github.com/llvm/llvm-project/commit/4b3ad50698b4d6967cf94b745023c70fc1ec8a6c.diff

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-07 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slani

[clang] [clang-tools-extra] [compiler-rt] [flang] [libcxx] [libcxxabi] [lld] [lldb] [llvm] [Inclusive Language] migrate "sanity" checks to "soundness" checks (PR #156995)

2025-09-07 Thread Rick van Voorden via cfe-commits
vanvoorden wrote: > I'd like to see this massive change to be backed by an RFC on Discourse. @Endilll Fair enough… I opened an RFC pitch thread on the forums. Thanks! https://github.com/llvm/llvm-project/pull/156995 ___ cfe-commits mailing list cfe-co

[clang] [llvm] [CodeGen][AArch64] ptrauth intrinsic to safely construct relative ptr (PR #142047)

2025-09-07 Thread via cfe-commits
gitevedev wrote: Hi! A quick question - once this goes into main, will it also propagate to the relevant Swift 6.2 release branch (stable/20240723)? https://github.com/llvm/llvm-project/pull/142047 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [Clang][bytecode] Add interp__builtin_elementwise_triop_fp to handle general 3-operand floating point intrinsics (PR #157106)

2025-09-07 Thread Simon Pilgrim via cfe-commits
@@ -2736,12 +2736,14 @@ static bool interp__builtin_ia32_pmul(InterpState &S, CodePtr OpPC, return true; } -static bool interp__builtin_elementwise_fma(InterpState &S, CodePtr OpPC, -const CallExpr *Call) { +static bool interp__bu

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-07 Thread Steven Perron via cfe-commits
https://github.com/s-perron updated https://github.com/llvm/llvm-project/pull/156075 >From aaecbc5efd38190e8aedd9b3e3c95b2ede791a09 Mon Sep 17 00:00:00 2001 From: Steven Perron Date: Fri, 29 Aug 2025 13:40:55 -0400 Subject: [PATCH 1/9] [HLSL] Add copy assignment and construtor to resource type

[clang] [clang][PAC] Enable the PAC dynamic_cast to final class optimization (PR #152601)

2025-09-07 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/152601 >From e9a96bb893b9a751a108d3f80a877789facb64fb Mon Sep 17 00:00:00 2001 From: Oliver Hunt Date: Mon, 4 Aug 2025 20:54:46 -0700 Subject: [PATCH] [clang][PAC] Enable the PAC dynamic_cast to final class optimizatio

[clang] [flang] [llvm] [mlir] [Support][NFC] Move OptimizationLevel to the Support directory (PR #157057)

2025-09-07 Thread Mehdi Amini via cfe-commits
joker-eph wrote: As an alternative: can this be just made a header-only implementation? Since C++17 we can have `static inline` variables in a class (and `static constexpr` are by default inline: https://en.cppreference.com/w/cpp/language/inline.html https://github.com/llvm/llvm-project/pull

[clang] [llvm] Make sanitizer special case list slash-agnostic (PR #149886)

2025-09-07 Thread Devon Loehr via cfe-commits
https://github.com/DKLoehr updated https://github.com/llvm/llvm-project/pull/149886 >From 033278dc9c1962e43258e5a1948aef5155e7ecbd Mon Sep 17 00:00:00 2001 From: Devon Loehr Date: Mon, 21 Jul 2025 19:07:23 + Subject: [PATCH 1/3] Make special case matcher slash-agnostic --- clang/docs/Sani

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-07 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slani

[clang] [clang][bytecode][NFC] Remove some unnecessary if statements (PR #157329)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes We already checked that `IsStatic` is true above. --- Full diff: https://github.com/llvm/llvm-project/pull/157329.diff 1 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+3-10)

[clang] Add uniqueptr to -Wunsafe-buffer-usage (PR #156773)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (shreya-jain) Changes Add operator[] accesses of unique_ptr to -Wunsafe-buffer-usage as a subcategory under -Wunsafe-buffer-usage-unique-ptr-array-access. --- Full diff: https://github.com/llvm/llvm-project/pull/156773.diff

[clang] [KeyInstr] Add release note following #149509 (PR #156005)

2025-09-07 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams closed https://github.com/llvm/llvm-project/pull/156005 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64] Enable out-of-line atomics by default. (PR #157241)

2025-09-07 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/157241 >From 4e2f4778df068d94655795b8b604349931d06751 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 6 Sep 2025 03:43:30 -0400 Subject: [PATCH] [AArch64] Enable out-of-line atomics by default --- clang/include/cl

[clang] [CIR] Add support for delegating constructor initialization (PR #156757)

2025-09-07 Thread Morris Hafner via cfe-commits
https://github.com/mmha approved this pull request. LGTM. Can you add a couple more test cases? ```c++ struct WithBraceInit { int i{}; WithBraceInit() = default; WithBraceInit(int); }; WithBraceInit:WithBraceInit(int) : WithBraceInit() {} int main() { // Destinations are zeroed stati

[clang] [clang-tools-extra] [compiler-rt] [flang] [libcxx] [libcxxabi] [lld] [lldb] [llvm] [Inclusive Language] migrate "sanity" checks to "soundness" checks (PR #156995)

2025-09-07 Thread Rick van Voorden via cfe-commits
https://github.com/vanvoorden edited https://github.com/llvm/llvm-project/pull/156995 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Look through parens around reinterpret_cast to emit a warning (PR #157033)

2025-09-07 Thread Shafik Yaghmour via cfe-commits
@@ -167,6 +167,9 @@ void dereference_reinterpret_cast() { (void)reinterpret_cast(d); // expected-warning {{reinterpret_cast from 'double' to 'float &' has undefined behavior}} (void)*reinterpret_cast(&d); // expected-warning {{dereference of type 'float *' that was reint

[clang] [Clang] Support includes translated to module imports in -header-include-filtering=direct-per-file (PR #156756)

2025-09-07 Thread Jan Svoboda via cfe-commits
@@ -390,18 +396,43 @@ void HeaderIncludesDirectPerFileCallback::EndOfMainFile() { std::string Str; llvm::raw_string_ostream OS(Str); llvm::json::OStream JOS(OS); - JOS.array([&] { -for (auto S = SourceFiles.begin(), SE = SourceFiles.end(); S != SE; ++S) { - JOS

[clang] [clang][bytecode] Use InterpState::InConstantContext directly (PR #157224)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Instead of referring to the EvalInfo's flag. --- Full diff: https://github.com/llvm/llvm-project/pull/157224.diff 1 Files Affected: - (modified) clang/lib/AST/ByteCode/InterpState.cpp (+3-1) ``d

[clang] [llvm] [Support] Move OptimizationLevel to the Support directory (PR #157057)

2025-09-07 Thread David Sherwood via cfe-commits
https://github.com/david-arm edited https://github.com/llvm/llvm-project/pull/157057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Allow attributes on first constructor argument in pre-C++11 (PR #157300)

2025-09-07 Thread Nikolas Klauser via cfe-commits
@@ -6007,7 +6007,7 @@ bool Parser::isConstructorDeclarator(bool IsUnqualified, bool DeductionGuide, // A C++11 attribute here signals that we have a constructor, and is an // attribute on the first constructor parameter. - if (getLangOpts().CPlusPlus11 && + if (getLangO

[clang] [clang][analyzer] Model `strxfrm` (PR #156507)

2025-09-07 Thread Alejandro Álvarez Ayllón via cfe-commits
alejandro-alvarez-sonarsource wrote: Thanks! Do you mind merging? I have no rights to do so. https://github.com/llvm/llvm-project/pull/156507 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

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

2025-09-07 Thread via cfe-commits
@@ -0,0 +1,100 @@ + EugeneZelenko wrote: ```suggestion ``` https://github.com/llvm/llvm-project/pull/157213 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [libcxx] [clang][ThreadSafety] Handle mutex scope (PR #157171)

2025-09-07 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk edited https://github.com/llvm/llvm-project/pull/157171 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 59d69bf - [clang] Detect int-to-float narrowing when the back-conversion is unspecified (#157174)

2025-09-07 Thread via cfe-commits
Author: camc Date: 2025-09-07T20:59:58+08:00 New Revision: 59d69bfc20f1572936b29181a1cdfa309c4e209a URL: https://github.com/llvm/llvm-project/commit/59d69bfc20f1572936b29181a1cdfa309c4e209a DIFF: https://github.com/llvm/llvm-project/commit/59d69bfc20f1572936b29181a1cdfa309c4e209a.diff LOG: [cl

[clang] [clang] Detect int-to-float narrowing when the back-conversion is unspecified (PR #157174)

2025-09-07 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis closed https://github.com/llvm/llvm-project/pull/157174 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Detect int-to-float narrowing when the back-conversion is unspecified (PR #157174)

2025-09-07 Thread via cfe-commits
github-actions[bot] wrote: @camc 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, yo

[clang] [clang] Fix typo in comment (PR #156962)

2025-09-07 Thread via cfe-commits
benwu25 wrote: Hi @hstk30-hw, could you merge this change for me? Thanks! https://github.com/llvm/llvm-project/pull/156962 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] Fix merging of anonymous members of class templates. (PR #155948)

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

[clang] 46f2b35 - [clang][bytecode][NFC] Remove instance pointer from emitDestruction (#157040)

2025-09-07 Thread via cfe-commits
Author: Timm Baeder Date: 2025-09-05T10:29:43+02:00 New Revision: 46f2b35a98ec53dbf5999c92bace40555abe0d9d URL: https://github.com/llvm/llvm-project/commit/46f2b35a98ec53dbf5999c92bace40555abe0d9d DIFF: https://github.com/llvm/llvm-project/commit/46f2b35a98ec53dbf5999c92bace40555abe0d9d.diff L

[clang] [clang] Add the candiscard attribute to suppress nodiscard (PR #154943)

2025-09-07 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: > Is an RFC required? CC @cor3ntin I this so, yes, this is sufficiently weird and novel that it needs an RFC - I am a bit surprised by the motivation, especially in light of MSVC successfully deploying expected with `nodiscard` - Is this a solution in search of a problem? http

[clang] [CIR] Upstream a batch of passing tests from CIR-Incubator (PR #157333)

2025-09-07 Thread Burhan Söğüt via cfe-commits
https://github.com/bursot edited https://github.com/llvm/llvm-project/pull/157333 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Improve handling of placement new in `PointerArith` (PR #155855)

2025-09-07 Thread Arseniy Zaostrovnykh via cfe-commits
Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?=, Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?=, Alejandro =?utf-8?q?=C3=81lvarez_Ayll=C3=B3n?= Message-ID: In-Reply-To: https://github.com/necto commented: I have approved this fix downstream https://github.com/llvm/llvm-project/pull/155855 _

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

2025-09-07 Thread via cfe-commits
@@ -0,0 +1,47 @@ +.. title:: clang-tidy - bugprone-loop-variable-copied-then-modified + +bugprone-loop-variable-copied-then-modified +=== + +Warns when a loop variable is copied and subsequently modified. + +This pattern is considered bugpro

[clang] [clang] Restrict -Wnrvo to C++ code only. (PR #157059)

2025-09-07 Thread via cfe-commits
javiermunozkirschberg wrote: If I understood everything correctly, and please accept my apologies if I did not (it's my first contribution), I should copy here the maintainers. So thanks a lot in advance @jansvoboda11 for your review, and my apologies for anything I could have done wrong :) h

[clang] [CIR] Add support for delegating constructors with VTT args (PR #156970)

2025-09-07 Thread Andy Kaylor via cfe-commits
@@ -70,3 +70,266 @@ DelegatingWithZeroing::DelegatingWithZeroing(int) : DelegatingWithZeroing() {} // OGCG: store i32 %[[I_ARG]], ptr %[[I_ADDR]] // OGCG: %[[THIS:.*]] = load ptr, ptr %[[THIS_ADDR]] // OGCG: call void @llvm.memset.p0.i64(ptr align 4 %[[THIS]], i8 0, i64

[clang] [clang] Add the candiscard attribute to suppress nodiscard (PR #154943)

2025-09-07 Thread via cfe-commits
R-Goc wrote: > I this so, yes, this is sufficiently weird and novel that it needs an RFC - I > am a bit surprised by the motivation, especially in light of MSVC > successfully deploying expected with `nodiscard` - Is this a solution in > search of a problem? The original issue contains the re

[clang] [flang] [llvm] [mlir] [Support][NFC] Move OptimizationLevel to the Support directory (PR #157057)

2025-09-07 Thread Matt Arsenault via cfe-commits
arsenm wrote: > Perhaps the TargetParser directory is more suitable for them. Not sure what > they are used for. It's closer but not quite right. I think there probably should be some kind of ABI-information for this sort of stuff. TargetParser is more specific to frontend-backend interaction

[clang] [clang] Allow attributes on first constructor argument in pre-C++11 (PR #157300)

2025-09-07 Thread Yanzuo Liu via cfe-commits
@@ -324,6 +324,8 @@ Bug Fixes to Attribute Support is skipped, such as error recovery and code completion. (#GH153551) - Using ``[[gnu::cleanup(some_func)]]`` where some_func is annotated with ``[[gnu::error("some error")]]`` now correctly triggers an error. (#GH146520) +-

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-09-07 Thread via cfe-commits
=?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slanina , =?utf-8?q?Tom=C3=A1=C5=A1?= Slani

[clang] [clang] VectorExprEvaluator::VisitCallExpr - use APSInt callback instead of repeated switch statement (PR #157137)

2025-09-07 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr approved this pull request. https://github.com/llvm/llvm-project/pull/157137 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8f37668 - [clang][bytecode] Print 8 bit integers as 32 bit in Function::dump() (#156858)

2025-09-07 Thread via cfe-commits
Author: Timm Baeder Date: 2025-09-04T14:15:05+02:00 New Revision: 8f376689ecdb76f78053f9186646dc14c82d5628 URL: https://github.com/llvm/llvm-project/commit/8f376689ecdb76f78053f9186646dc14c82d5628 DIFF: https://github.com/llvm/llvm-project/commit/8f376689ecdb76f78053f9186646dc14c82d5628.diff L

[clang] [clang] Detect int-to-float narrowing when the back-conversion is unspecified (PR #157174)

2025-09-07 Thread via cfe-commits
https://github.com/camc updated https://github.com/llvm/llvm-project/pull/157174 >From 73696f81166f958e212c5ea314528791c5201565 Mon Sep 17 00:00:00 2001 From: camc <69519329+c...@users.noreply.github.com> Date: Fri, 5 Sep 2025 20:47:06 + Subject: [PATCH 1/3] [clang] Detect int-to-float narrow

[clang] [llvm] [InstCombine] Strip leading zero indices from GEP (PR #155415)

2025-09-07 Thread Jan Patrick Lehr via cfe-commits
jplehr wrote: Given this is in the `preopt` IR, the change would occur in an even earlier stage, right? I'll see if I can get some IR out of whatever stage that may be. https://github.com/llvm/llvm-project/pull/155415 ___ cfe-commits mailing list cfe-

[libclc] [libclc] Implement erf/erfc vector function with loop since scalar function is large (PR #157055)

2025-09-07 Thread Wenju He via cfe-commits
https://github.com/wenju-he updated https://github.com/llvm/llvm-project/pull/157055 >From 84fbdfea1fc1f9d7d61ef388df4d34eb2d0552d0 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Fri, 5 Sep 2025 10:41:01 +0200 Subject: [PATCH 1/3] [libclc] Implement erf/erfc vector function with loop since scal

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

2025-09-07 Thread via cfe-commits
@@ -0,0 +1,47 @@ +.. title:: clang-tidy - bugprone-loop-variable-copied-then-modified + +bugprone-loop-variable-copied-then-modified +=== + +Warns when a loop variable is copied and subsequently modified. EugeneZelenko wrote

[clang] [llvm] [OpenMP] Fix non-contiguous array omp target update (PR #156889)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ivan R. Ivanov (ivanradanov) Changes The existing implementation has three issues which this patch addresses. 1. The last dimension which represents the bytes in the type, has the wrong stride and count. For example, for a 4 byte int, cou

[clang] [clang][bytecode] Use InterpState::InConstantContext directly (PR #157224)

2025-09-07 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/157224 Instead of referring to the EvalInfo's flag. >From f2cb50e0ef663cc2b414cf08397d3b0d22a2407a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 6 Sep 2025 06:56:37 +0200 Subject: [PATCH] [c

[clang] [HLSL] Add copy assignment and construtor to resource types (PR #156075)

2025-09-07 Thread Steven Perron via cfe-commits
@@ -1,49 +1,65 @@ -// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.6-compute -finclude-default-header \ -// RUN: -emit-llvm -disable-llvm-passes -o - %s | FileCheck %s - -// This test verifies handling of multi-dimensional local arrays of resources -// when used as a function a

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

2025-09-07 Thread Erich Keane via cfe-commits
@@ -7532,6 +7532,25 @@ A managed variable can be accessed in both device and host code. }]; } +def CUDAClusterDimsAttrDoc : Documentation { + let Category = DocCatDecl; + let Content = [{ +In CUDA/HIP programming, the ``__cluster_dims__`` attribute can be applied to a ke

[clang] [clang][bytcode][NFC] Use UnsignedOrNone for global ids (PR #157328)

2025-09-07 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/157328 None >From 01a982ee754f779ac9ac1086aa9b7248f925ebdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 7 Sep 2025 09:30:09 +0200 Subject: [PATCH] [clang][bytcode][NFC] Use UnsignedOrNone f

[clang] [clang][bytecode][NFC] Remove some unnecessary if statements (PR #157329)

2025-09-07 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/157329 We already checked that `IsStatic` is true above. >From 25c6f1fd5f1f4bfc34d233509740d654ef8495dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 7 Sep 2025 09:31:17 +0200 Subject: [PATC

[clang] [clang-repl] Sink RemoteJITUtils into Interpreter class (NFC) (PR #155140)

2025-09-07 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 edited https://github.com/llvm/llvm-project/pull/155140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode][NFC] Remove some unnecessary if statements (PR #157329)

2025-09-07 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/157329 >From 68802b7acced1723499157dc351b72c16dd30a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 7 Sep 2025 09:31:17 +0200 Subject: [PATCH] [clang][bytecode][NFC] Remove some unnecessary i

[clang] [clang][bytcode][NFC] Use UnsignedOrNone for global ids (PR #157328)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/157328.diff 4 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+8-7) - (modified) clang/lib/AST/ByteCode/EvalEmitter.cpp (+1-1)

[clang] [CIR] Add support for atomic compare-and-swap (PR #156253)

2025-09-07 Thread Sirui Mu via cfe-commits
https://github.com/Lancern updated https://github.com/llvm/llvm-project/pull/156253 >From b6cf3df7cddd48206d28aa7ee562fb576a8a9b2f Mon Sep 17 00:00:00 2001 From: Sirui Mu Date: Mon, 1 Sep 2025 00:34:29 +0800 Subject: [PATCH] [CIR] Add support for atomic compare-and-swap This patch adds support

[clang] [Clang-Repl] Sinking RemoteJITUtils into Interpreter class(Refactoring) (PR #155140)

2025-09-07 Thread Abhinav Kumar via cfe-commits
kr-2003 wrote: > Not sure what's the problem but if that does not fail upstream please remove > it. What are the other declarations that make OffloadArch ambiguous? Sorry, it was mistake from my side. I included ``using namespace clang;`` in the ClangRepl.cpp. So, it was getting confused by th

[clang] [CIR] Upstream VisitOpaqueValueExpr support for Complex & Scalar (PR #157331)

2025-09-07 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/157331 This change adds support for the OpaqueValueExpr for Complex & Scalar Issue: https://github.com/llvm/llvm-project/issues/141365 >From 8941ba8930c4487c958c8f4746570575bb976931 Mon Sep 17 00:00:00 2001 From

[clang] [CIR] Upstream a batch of passing tests from CIR-Incubator (PR #157333)

2025-09-07 Thread Burhan Söğüt via cfe-commits
https://github.com/bursot created https://github.com/llvm/llvm-project/pull/157333 These tests were migrated from `clang/test/CIR-Incubator` to `clang/test/CIR` without modification. - Only tests that pass under the current configuration were moved. - No refactors, no removals, no CMake or lit

[clang] [CIR] Upstream a batch of passing tests from CIR-Incubator (PR #157333)

2025-09-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Burhan Söğüt (bursot) Changes These tests were migrated from `clang/test/CIR-Incubator` to `clang/test/CIR` without modification. - Only tests that pass under the current configuration were moved. - No refactors, no removals, no CMake or

[clang] [CIR] Upstream a batch of passing tests from CIR-Incubator (PR #157333)

2025-09-07 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [CIR] Upstream a batch of passing tests from CIR-Incubator (PR #157333)

2025-09-07 Thread Burhan Söğüt via cfe-commits
https://github.com/bursot edited https://github.com/llvm/llvm-project/pull/157333 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Sink RemoteJITUtils into Interpreter class (NFC) (PR #155140)

2025-09-07 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev closed https://github.com/llvm/llvm-project/pull/155140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 645dd32 - [clang-repl] Sink RemoteJITUtils into Interpreter class. NFC (#155140)

2025-09-07 Thread via cfe-commits
Author: Abhinav Kumar Date: 2025-09-07T18:35:29+03:00 New Revision: 645dd324d1b7d028745c2a4045b69e745df2ae6a URL: https://github.com/llvm/llvm-project/commit/645dd324d1b7d028745c2a4045b69e745df2ae6a DIFF: https://github.com/llvm/llvm-project/commit/645dd324d1b7d028745c2a4045b69e745df2ae6a.diff

[clang] [clang-repl] Sink RemoteJITUtils into Interpreter class (NFC) (PR #155140)

2025-09-07 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev approved this pull request. LGTM! Thank you for the patience. https://github.com/llvm/llvm-project/pull/155140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [clang] Restrict -Wnrvo to C++ code only. (PR #157059)

2025-09-07 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/157059 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] Fix merging of anonymous members of class templates. (PR #155948)

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

[clang-tools-extra] [clang-tidy] Support find for string-like classes in readability-container-contains (PR #157243)

2025-09-07 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank updated https://github.com/llvm/llvm-project/pull/157243 >From 95171f2b3163e13db197f98cdd977d977219b0a4 Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Sat, 6 Sep 2025 10:42:12 -0400 Subject: [PATCH] [clang-tidy] Support find for string-like classes in reada

[clang] 13d50c2 - [X86][bytecode] Allow SSE/AVX BLENDVPD/PD intrinsics to be used in constexpr (#157126)

2025-09-07 Thread via cfe-commits
Author: Simon Pilgrim Date: 2025-09-05T20:14:29Z New Revision: 13d50c24a083a04355b37d45aae6b4ba9fc294af URL: https://github.com/llvm/llvm-project/commit/13d50c24a083a04355b37d45aae6b4ba9fc294af DIFF: https://github.com/llvm/llvm-project/commit/13d50c24a083a04355b37d45aae6b4ba9fc294af.diff LOG:

[clang] [libunwind] [llvm] [wasm] Toolchain support for `wasm32-wali-linux-musl` target (PR #156087)

2025-09-07 Thread Arjun Ramesh via cfe-commits
@@ -199,6 +199,7 @@ class Triple { SUSE, OpenEmbedded, Intel, +WALI, arjunr2 wrote: We're really not adding a new OS to the set of triples here since we're reusing Linux, just the new ABI for Wasm. It's not too late to modify the rustc, but n

  1   2   3   4   >