[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-18 Thread via cfe-commits
@@ -130,7 +130,10 @@ int main(void) { P(object_size, (s0, 3)); // Whatever - + P(bswapg, ((char)N)); + P(bswapg, ((short)N)); + P(bswapg, ((int)N)); + P(bswapg, ((unsigned long)N)); clingfei wrote: Added, thanks! And I fixed another failure reported

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-18 Thread via cfe-commits
https://github.com/clingfei updated https://github.com/llvm/llvm-project/pull/162433 >From 92466f3789ce1849ebee8a405efd42e191c591f5 Mon Sep 17 00:00:00 2001 From: clingfei <[email protected]> Date: Wed, 8 Oct 2025 15:05:44 +0800 Subject: [PATCH 01/13] [Clang] Add __builtin_bswapg --- clang/inc

[clang] [clang-format][NFC] Simplify AlignMacroMatches (PR #164122)

2025-10-18 Thread via cfe-commits
@@ -665,22 +664,21 @@ void WhitespaceManager::alignConsecutiveMacros() { // If token is a ")", skip over the parameter list, to the // token that precedes the "(" -if (Current->is(tok::r_paren) && Current->MatchingParen) { - Current = Current->MatchingParen->P

[clang] [clang-format][NFC] Simplify AlignMacroMatches (PR #164122)

2025-10-18 Thread via cfe-commits
@@ -656,7 +656,6 @@ void WhitespaceManager::alignConsecutiveMacros() { auto AlignMacrosMatches = [](const Change &C) { const FormatToken *Current = C.Tok; owenca wrote: We should `assert(Current)` here. https://github.com/llvm/llvm-project/pull/164122

[clang] [clang-format][NFC] Simplify AlignMacroMatches (PR #164122)

2025-10-18 Thread via cfe-commits
@@ -665,22 +664,21 @@ void WhitespaceManager::alignConsecutiveMacros() { // If token is a ")", skip over the parameter list, to the // token that precedes the "(" -if (Current->is(tok::r_paren) && Current->MatchingParen) { - Current = Current->MatchingParen->P

[clang] [clang-format][NFC] Simplify AlignMacroMatches (PR #164122)

2025-10-18 Thread via cfe-commits
@@ -665,22 +664,21 @@ void WhitespaceManager::alignConsecutiveMacros() { // If token is a ")", skip over the parameter list, to the // token that precedes the "(" -if (Current->is(tok::r_paren) && Current->MatchingParen) { - Current = Current->MatchingParen->P

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-18 Thread via cfe-commits
https://github.com/clingfei updated https://github.com/llvm/llvm-project/pull/162433 >From 92466f3789ce1849ebee8a405efd42e191c591f5 Mon Sep 17 00:00:00 2001 From: clingfei <[email protected]> Date: Wed, 8 Oct 2025 15:05:44 +0800 Subject: [PATCH 01/12] [Clang] Add __builtin_bswapg --- clang/inc

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-18 Thread Oliver Hunt via cfe-commits
@@ -130,7 +130,10 @@ int main(void) { P(object_size, (s0, 3)); // Whatever - + P(bswapg, ((char)N)); + P(bswapg, ((short)N)); + P(bswapg, ((int)N)); + P(bswapg, ((unsigned long)N)); ojhunt wrote: maybe add _BitInt checks to this set of tests as well?

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-18 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt commented: This looks good to me sans the mod 16 bit rule vs 8*2^^N question https://github.com/llvm/llvm-project/pull/162433 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/list

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-18 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt edited https://github.com/llvm/llvm-project/pull/162433 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-18 Thread via cfe-commits
https://github.com/clingfei updated https://github.com/llvm/llvm-project/pull/162433 >From 92466f3789ce1849ebee8a405efd42e191c591f5 Mon Sep 17 00:00:00 2001 From: clingfei <[email protected]> Date: Wed, 8 Oct 2025 15:05:44 +0800 Subject: [PATCH 01/11] [Clang] Add __builtin_bswapg --- clang/inc

[clang] [clang-format][NFC] Annotate attribute squares more effectively (PR #164052)

2025-10-18 Thread via cfe-commits
@@ -6453,8 +6448,8 @@ bool TokenAnnotator::canBreakBefore(const AnnotatedLine &Line, Left.getPrecedence() == prec::Assignment)) { return true; } owenca wrote: ```suggestion } if (Left.is(TT_AttributeLSquare) && Right.is(tok::l_square)) {

[clang] [clang-format][NFC] Annotate attribute squares more effectively (PR #164052)

2025-10-18 Thread via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/164052 >From ea15af3f787b3f7af725a5407e5324f64fdb7966 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 17 Oct 2025 21:37:42 -0700 Subject: [PATCH 1/3] [clang-format][NFC] Annotate attribute squares more effectively

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-18 Thread Oliver Hunt via cfe-commits
@@ -0,0 +1,212 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify -fexperimental-new-constant-interpreter %s + +void test_basic_type_checks() { + static_assert(__is_same(char, decltype(__builtin_bswapg((char)0))), ""); + static_assert(__is

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-18 Thread Oliver Hunt via cfe-commits
@@ -0,0 +1,212 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify -fexperimental-new-constant-interpreter %s + +void test_basic_type_checks() { + static_assert(__is_same(char, decltype(__builtin_bswapg((char)0))), ""); + static_assert(__is

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-18 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt requested changes to this pull request. https://github.com/llvm/llvm-project/pull/162433 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-18 Thread Oliver Hunt via cfe-commits
@@ -3622,6 +3622,15 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID, Builder.CreateArithmeticFence(ArgValue, ConvertType(ArgType))); return RValue::get(ArgValue); } + case Builtin::BI__builtin_bswapg: { +Value *ArgValue =

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-18 Thread Oliver Hunt via cfe-commits
@@ -0,0 +1,212 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify -fexperimental-new-constant-interpreter %s + +void test_basic_type_checks() { + static_assert(__is_same(char, decltype(__builtin_bswapg((char)0))), ""); + static_assert(__is

[clang] [Clang][NFC] Fix a warning in TransformNestedRequirement (PR #164148)

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

[clang] [C++][Modules] Import declaration should in global module fragment, module interface or module implementation (PR #164106)

2025-10-18 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast commented: I am unaware of any such restriction. An _pp-import_ is a _control-line_, which is in turn a _group-part_. A _preprocessing-file_ can directly contain a _group_ with being a _module-file_. There _is_ a restriction on _pp-global-module-fragmen

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-18 Thread Oliver Hunt via cfe-commits
@@ -755,6 +755,12 @@ def BSwap : Builtin, Template<["unsigned short", "uint32_t", "uint64_t"], let Prototype = "T(T)"; } +def BSwapg : Builtin { + let Spellings = ["__builtin_bswapg"]; + let Attributes = [NoThrow, Const, Constexpr, CustomTypeChecking]; + let Prototype =

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-10-18 Thread Hubert Tong via cfe-commits
@@ -986,6 +989,14 @@ def warn_module_conflict : Warning< InGroup; // C++20 modules +def err_pp_module_name_is_macro : Error< + "%select{module|partition}0 name component %1 cannot be a object-like macro">; +def err_pp_module_expected_ident : Error< + "expected %select{ide

[clang] [clang][Sema][NFC] Remove unused delayed template parsing cleanup callback (PR #164149)

2025-10-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Victor Chernyakin (localspook) Changes The last use of it was removed in 6163aa9. --- Full diff: https://github.com/llvm/llvm-project/pull/164149.diff 3 Files Affected: - (modified) clang/include/clang/Sema/Sema.h (+1-5) - (modified) c

[clang] [clang][Sema][NFC] Remove unused delayed template parsing cleanup callback (PR #164149)

2025-10-18 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/164149 The last use of it was removed in 6163aa9. >From 43bc40aa82cbe0158fa0d8e0ebb736ac75064076 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sat, 18 Oct 2025 21:18:45 -0700 Subject: [PATCH] [clang][Sema]

[clang] [llvm] Mac release workaround (PR #163607)

2025-10-18 Thread Tom Stellard via cfe-commits
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/163607 >From b2f00eb013f5174b1ab5199bb7cc4cab6d5ed059 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 11 Oct 2025 17:39:12 -0700 Subject: [PATCH 01/23] [Darwin][Driver] Prefer linking with toolchain's libc++ i

[clang] [llvm] Mac release workaround (PR #163607)

2025-10-18 Thread Tom Stellard via cfe-commits
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/163607 >From b2f00eb013f5174b1ab5199bb7cc4cab6d5ed059 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Sat, 11 Oct 2025 17:39:12 -0700 Subject: [PATCH 01/22] [Darwin][Driver] Prefer linking with toolchain's libc++ i

[clang] [Clang][NFC] Fix a warning in TransformNestedRequirement (PR #164148)

2025-10-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/164148 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ef46f8a - [Clang][NFC] Fix a warning in TransformNestedRequirement (#164148)

2025-10-18 Thread via cfe-commits
Author: Younan Zhang Date: 2025-10-19T04:03:38Z New Revision: ef46f8a7d73c1657b2448fc2f3f41ff6eecc4c0f URL: https://github.com/llvm/llvm-project/commit/ef46f8a7d73c1657b2448fc2f3f41ff6eecc4c0f DIFF: https://github.com/llvm/llvm-project/commit/ef46f8a7d73c1657b2448fc2f3f41ff6eecc4c0f.diff LOG:

[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

2025-10-18 Thread Hubert Tong via cfe-commits
@@ -986,6 +989,14 @@ def warn_module_conflict : Warning< InGroup; // C++20 modules +def err_pp_module_name_is_macro : Error< + "%select{module|partition}0 name component %1 cannot be a object-like macro">; +def err_pp_module_expected_ident : Error< + "expected %select{ide

[clang] [Clang][NFC] Fix a warning in TransformNestedRequirement (PR #164148)

2025-10-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 auto_merge_enabled https://github.com/llvm/llvm-project/pull/164148 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Fix a warning in TransformNestedRequirement (PR #164148)

2025-10-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes The logical or expression should be parenthesized. Fixes https://github.com/llvm/llvm-project/issues/164104 --- Full diff: https://github.com/llvm/llvm-project/pull/164148.diff 1 Files Affected: - (modifi

[clang] [Clang][NFC] Fix a warning in TransformNestedRequirement (PR #164148)

2025-10-18 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 created https://github.com/llvm/llvm-project/pull/164148 The logical or expression should be parenthesized. Fixes https://github.com/llvm/llvm-project/issues/164104 >From c9216a6fd9dbdc2b7cb10f7d30aed4ed18ff987f Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Sun,

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow AVX/AVX512 subvector extraction intrinsics to be used in constexpr #157712 (PR #162836)

2025-10-18 Thread via cfe-commits
SeongjaeP wrote: Thanks @RKSimon and @tbaederr for the feedback and reviews, really appreciate the help getting my first LLVM PR across the line https://github.com/llvm/llvm-project/pull/162836 ___ cfe-commits mailing list [email protected]

[clang] [clang-tools-extra] [llvm] [polly] [Unittest][Cygwin] Set $PATH when running unittests (PR #163947)

2025-10-18 Thread Tomohiro Kashiwada via cfe-commits
https://github.com/kikairoya updated https://github.com/llvm/llvm-project/pull/163947 >From efac315751bb086490a64e68e17fc9cc38afe328 Mon Sep 17 00:00:00 2001 From: kikairoya Date: Fri, 17 Oct 2025 19:19:09 +0900 Subject: [PATCH 1/2] [Unittest][Cygwin] Set $PATH when running unittests As the Cy

[clang] [clang-tools-extra] [llvm] [polly] [Unittest][Cygwin] Set $PATH when running unittests (PR #163947)

2025-10-18 Thread Tomohiro Kashiwada via cfe-commits
@@ -19,12 +19,12 @@ if platform.system() == "Darwin": shlibpath_var = "DYLD_LIBRARY_PATH" -elif platform.system() == "Windows": +elif platform.system() == "Windows" or sys.platform == "cygwin": shlibpath_var = "PATH" else: shlibpath_var = "LD_LIBRARY_PATH" conf

[clang-tools-extra] [clang-tools-extra][Unittest] Fix wrong reference to CMake configuration variable (PR #164147)

2025-10-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Tomohiro Kashiwada (kikairoya) Changes `@SHLIBDIR@` is replaced by CMake's configuration function, so it must be in `lit.site.cfg.py.in` but not `lit.cfg.py`. `lit.cfg.py` must reference variables in generated `lit.site.cfg.py

[clang-tools-extra] [clang-tools-extra][Unittest] Fix wrong reference to CMake configuration variable (PR #164147)

2025-10-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Tomohiro Kashiwada (kikairoya) Changes `@SHLIBDIR@` is replaced by CMake's configuration function, so it must be in `lit.site.cfg.py.in` but not `lit.cfg.py`. `lit.cfg.py` must reference variables in generated `lit.site.cfg.py`. We didn

[clang-tools-extra] [clang-tools-extra][Unittest] Fix wrong reference to CMake configuration variable (PR #164147)

2025-10-18 Thread Tomohiro Kashiwada via cfe-commits
https://github.com/kikairoya created https://github.com/llvm/llvm-project/pull/164147 `@SHLIBDIR@` is replaced by CMake's configuration function, so it must be in `lit.site.cfg.py.in` but not `lit.cfg.py`. `lit.cfg.py` must reference variables in generated `lit.site.cfg.py`. We didn't notice

[clang] [CIR] Implement logical not for VectorType (PR #160762)

2025-10-18 Thread Amr Hesham via cfe-commits
@@ -1295,4 +1295,30 @@ void foo23() { // OGCG: %[[NE_B_ZERO:.*]] = icmp ne <4 x i32> %[[TMP_B]], zeroinitializer // OGCG: %[[VEC_OR:.*]] = and <4 x i1> %[[NE_A_ZERO]], %[[NE_B_ZERO]] // OGCG: %[[RESULT:.*]] = sext <4 x i1> %[[VEC_OR]] to <4 x i32> -// OGCG: store <4 x i32> %[[R

[clang] [clang-tools-extra] [llvm] [polly] [Unittest][Cygwin] Set $PATH when running unittests (PR #163947)

2025-10-18 Thread Tomohiro Kashiwada via cfe-commits
@@ -19,12 +19,12 @@ if platform.system() == "Darwin": shlibpath_var = "DYLD_LIBRARY_PATH" -elif platform.system() == "Windows": +elif platform.system() == "Windows" or sys.platform == "cygwin": shlibpath_var = "PATH" else: shlibpath_var = "LD_LIBRARY_PATH" conf

[clang] [llvm] [PowerPC] Add Support for BCDSHIFT, BCDSHIFTR, BCDTRUNC, BCDUTRUNC, and BCDUSHIFT instruction support (PR #154715)

2025-10-18 Thread Aditi Medhane via cfe-commits
https://github.com/AditiRM updated https://github.com/llvm/llvm-project/pull/154715 >From 20acfd4109a453060f3678e536234de94012f19c Mon Sep 17 00:00:00 2001 From: AditiRM Date: Thu, 21 Aug 2025 09:40:59 + Subject: [PATCH 01/13] Implement frontend for bcd builtins --- clang/include/clang/Ba

[libunwind] [libunwind][test] Add check for objcopy to improve test compatibility (PR #161112)

2025-10-18 Thread Wu Yingcong via cfe-commits
https://github.com/yingcong-wu edited https://github.com/llvm/llvm-project/pull/161112 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-10-18 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/162443 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Portability Avoid Unprototyped Functions Check (PR #161023)

2025-10-18 Thread Baranov Victor via cfe-commits
vbvictor wrote: > You can probably also add the -Wstrict-prototypes to the ExtraArgs field in > the .clang-tidy file. This is a good workaround (maybe not very well-known) So you have config ```yaml # .clang-tidy Checks: clang-diagnostic-strict-prototypes ExtraArgs: ["-Wstrict-prototypes"] ```

[clang] [X86] Allow PSHUFD/PSHUFLW/PSHUFW intrinsics to be used in constexpr (#156611) (PR #161094)

2025-10-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Nagraj Gaonkar (NagrajMG) Changes ## [Headers][X86] Allow PSHUFD/PSHUFLW/PSHUFW shuffle intrinsics to be used in `constexpr` ### PSHUFW — shuffle 4×i16 in MMX (64-bit) | Intrinsic | X86 Builtin| CPUID Flags | Header

[clang] [NFC][OpenACC] Remove 'initExpr' from AST/etc. (PR #161674)

2025-10-18 Thread Corentin Jabot via cfe-commits
@@ -13011,10 +13009,9 @@ OpenACCClause *ASTRecordReader::readOpenACCClause() { llvm::SmallVector RecipeList; for (unsigned I = 0; I < VarList.size(); ++I) { - static_assert(sizeof(OpenACCReductionRecipe) == 2 * sizeof(int *)); + static_assert(sizeof(OpenACCRe

[clang] [clang-format] Option to insert spaces before the closing `*/` (PR #162105)

2025-10-18 Thread via cfe-commits
@@ -4684,6 +4684,15 @@ struct FormatStyle { /// \version 17 bool SpaceBeforeJsonColon; + /// If ``true``, a space is inserted immediately before the closing ``*/`` in + /// block comments that contain content. + /// \code + ///true:

[clang-tools-extra] [NFC][clang-tidy] Fix potential constant overflow (PR #162647)

2025-10-18 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam created https://github.com/llvm/llvm-project/pull/162647 None >From 1d564a71e2db68ba371dbd1c91e51d1c4d038322 Mon Sep 17 00:00:00 2001 From: Zahira Ammarguellat Date: Thu, 9 Oct 2025 05:45:01 -0700 Subject: [PATCH] [NFC][clang-tidy] Fix potential constant overflow -

[clang] [clang][analyzer] Remove a copy in a loop in VAListChecker (PR #162620)

2025-10-18 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun closed https://github.com/llvm/llvm-project/pull/162620 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][SanitizerSection] Store Section& instead of Entries and FileIdx (PR #162382)

2025-10-18 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/162382 None >From a0c54f51b99dc095f6e401da5db96c0cec6185d0 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Tue, 7 Oct 2025 15:06:43 -0700 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?

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

2025-10-18 Thread Andy Kaylor via cfe-commits
@@ -1,8 +1,8 @@ -// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -fexceptions -fcxx-exceptions -emit-cir %s -o %t.cir andykaylor wrote: Maybe move the throw case

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

2025-10-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Morris Hafner (mmha) Changes Added support for ConditionalOperator, BinaryConditionalOperator and OpaqueValueExpr as lvalue. Implemented support for ternary operators with one branch being a throw expression. This required weakening the

[clang] [CIR] Add support for virtual destructor calls (PR #162725)

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

[clang] [llvm] [NFC] Change spelling of cluster feature to "clusters" (PR #162103)

2025-10-18 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/162103 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AMDGPU][NFC] Fix clang frontend<->sema layering issue (PR #162865)

2025-10-18 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/162865 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [openmp] [Clang][OpenMP][LoopTransformations] Add support for "#pragma omp fuse" loop transformation directive and "looprange" clause (PR #139293)

2025-10-18 Thread Roger Ferrer Ibáñez via cfe-commits
https://github.com/rofirrim closed https://github.com/llvm/llvm-project/pull/139293 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-10-18 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,54 @@ +// RUN: %check_clang_tidy %s bugprone-loop-variable-copied-then-modified %t --fix-notes \ PiotrZSL wrote: missing tests with "auto&&" and "const auto" https://github.com/llvm/llvm-project/pull/157213 ___

[clang-tools-extra] [clang-tidy] Add new check `modernize-use-structured-binding` (PR #158462)

2025-10-18 Thread via cfe-commits
flovent wrote: CI failure seems irrelevant. https://github.com/llvm/llvm-project/pull/158462 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang][OpenMP] Change MEH member of `AttachPtrExprComparator` from pointer to reference. (PR #161785)

2025-10-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Abhinav Gaba (abhinavgaba) Changes Also adds an instance of `AttachPtrExprComparator` to the `MappableExprHandler` class, so that it can be reused for multiple comparisons. This was extracted out of #153683 to make that PR more focused on

[clang] [clang-tools-extra] [clang-tidy] Add new check: `readability-redundant-typename` (PR #161574)

2025-10-18 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/161574 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Change masked load / store builtin interface to take scalar pointer (PR #156063)

2025-10-18 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/156063 >From eae6411ce53499b2d7fa5f83607cc83fa74edc64 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Fri, 29 Aug 2025 12:11:15 -0500 Subject: [PATCH] [Clang] Assume unaligned in maksed load / store builtins Summary

[clang] [clang][modules-driver] Add dependency scan and dependency graph (PR #152770)

2025-10-18 Thread Chuanqi Xu via cfe-commits
@@ -1829,6 +1831,53 @@ Compilation *Driver::BuildCompilation(ArrayRef ArgList) { // Populate the tool chains for the offloading devices, if any. CreateOffloadingDeviceToolChains(*C, Inputs); + modules::StdModuleManifest Manifest; + if (C->getArgs().hasFlag(options::OPT_f

[clang] [llvm] [LICM] Sink unused l-invariant loads in preheader. (PR #157559)

2025-10-18 Thread Vigneshwar Jayakumar via cfe-commits
VigneshwarJ wrote: @nikic , That was due to a bad MSSA update, fixed that issue. https://github.com/llvm/llvm-project/pull/157559 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fixing array-to-pointer decay induced issue with conversion of the multidimentional arrays in C language. (PR #159896)

2025-10-18 Thread via cfe-commits
earnol wrote: @AaronBallman Please check this PR and associated discussion https://github.com/llvm/llvm-project/issues/159603. Summary of the goal here is not have an error (warning is ok) when multidimentional array being cast to the pointer of the same base type. https://github.com/llvm/llvm

[clang] [llvm] [FlowSensitive] [StatusOr] [1/N] Add mock headers (PR #163261)

2025-10-18 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-quick` running on `linaro-clang-aarch64-quick` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/65/builds/24050 Here is the relevant pie

[clang] [CIR] Support ComplexType in CallExpr args (PR #156236)

2025-10-18 Thread Henrich Lauko via cfe-commits
@@ -909,3 +909,46 @@ void foo33(__builtin_va_list a) { // OGCG: %[[B_IMAG_PTR:.*]] = getelementptr inbounds nuw { float, float }, ptr %[[B_ADDR]], i32 0, i32 1 // OGCG: store float %[[RESULT_REAL]], ptr %[[B_REAL_PTR]], align 4 // OGCG: store float %[[RESULT_IMAG]], ptr %[[

[clang] [Headers][X86] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - allow PALIGNR byte shift intrinsics to be used in constexpr (PR #162005)

2025-10-18 Thread Ye Tian via cfe-commits
@@ -2975,6 +2975,75 @@ static bool interp__builtin_vec_set(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_x86_psrldq_byteshift(InterpState &S, CodePtr OpPC, + const CallExpr *Call, +

[clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-10-18 Thread Matheus Izvekov via cfe-commits
@@ -359,6 +366,16 @@ class DeclSpec { LLVM_PREFERRED_TYPE(TQ) unsigned TypeQualifiers : 5; // Bitwise OR of TQ. + // overflow behavior qualifiers + LLVM_PREFERRED_TYPE(bool) mizvekov wrote: Though please prefer an enum class. https://github.com/llvm/l

[clang] [clang][X86] tbm-builtins.c - add -fexperimental-new-constant-interpreter bytecode test coverage (PR #161174)

2025-10-18 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/161174 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [GitHub] Bump clang-tidy version to 21th in CI (PR #160193)

2025-10-18 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/160193 >From e78a08ba18618ad8b1bc4e0a7203fc311d8fb75e Mon Sep 17 00:00:00 2001 From: Baranov Victor Date: Mon, 22 Sep 2025 23:22:19 +0300 Subject: [PATCH 1/7] WIP --- .github/workflows/pr-code-lint.yml | 5 - 1

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

2025-10-18 Thread Bruno Cardoso Lopes via cfe-commits
@@ -853,6 +853,14 @@ class CIRGenFunction : public CIRGenTypeCache { FunctionArgList args, clang::SourceLocation loc, clang::SourceLocation startLoc); + /// returns true if aggregate type has a volatile member. + /// TODO(cir): this

[clang] [clang] Replace LLVM_ATTRIBUTE_UNUSED with [[maybe_unused]] (NFC) (PR #163914)

2025-10-18 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/163914 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Only block pointers can be partially initialized (PR #160075)

2025-10-18 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/160075 So ignore the rest in `checkFullyInitialized()`. Fixes #160071 >From a955773e97e1b24bdccc8703ebd3bfa3e91f37e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 22 Sep 2025 13:24:18 +0200

[clang] [CIR] Upstream Exception CXXTryStmt (PR #162528)

2025-10-18 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor commented: I'm concerned about the level of testing here. It seems like there is a good bit of code that isn't covered by the test. https://github.com/llvm/llvm-project/pull/162528 ___ cfe-commits mailing list cfe-commits

[clang] [analyzer] Hotfix a boolean conversion crash in the Z3 SMTConv (PR #158276)

2025-10-18 Thread via cfe-commits
https://github.com/vabridgers closed https://github.com/llvm/llvm-project/pull/158276 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Enable constexpr handling for MMX/SSE/AVX/AVX512 PMADDWD/PMADDUBSW intrinsics (PR #161563)

2025-10-18 Thread Simon Pilgrim via cfe-commits
@@ -3364,6 +3425,16 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, return interp__builtin_elementwise_int_binop(S, OpPC, Call, llvm::APIntOps::avgCeilU); + case clang::X86::BI__builtin_ia32_pm

[clang] [Clang] disallow constexpr with auto and explicit type in C23 (PR #163469)

2025-10-18 Thread Oleksandr T. via cfe-commits
@@ -62,6 +62,8 @@ auto basic_usage(auto auto) { // c23-error {{'auto' not allowed in function pr int auto_cxx_decl = auto(0); // expected-error {{expected expression}} + constexpr auto int x = 0; // c23-error {{cannot combine with previous 'auto' declaration specifier

[clang] [clang][deps] Add module map describing compiled module to file dependencies. (PR #160226)

2025-10-18 Thread Volodymyr Sapsai via cfe-commits
https://github.com/vsapsai updated https://github.com/llvm/llvm-project/pull/160226 >From 46288ffafa2ec3e9b85d567fae1568448e3f3863 Mon Sep 17 00:00:00 2001 From: Volodymyr Sapsai Date: Mon, 22 Sep 2025 21:01:00 -0700 Subject: [PATCH 1/5] [clang][deps] Add module map describing compiled module

[clang] [HLSL] Add support for elementwise and aggregate splat casting struct types with bitfields (PR #161263)

2025-10-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Sarah Spall (spall) Changes Adds support for elementwise and aggregate splat casting struct types with bitfields. Replacing existing Flattening function which used to produce a list of GEPs representing a flattened object with one

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

2025-10-18 Thread Morris Hafner via cfe-commits
mmha wrote: The problem with throw exprs is that they lower to `cir.throw` + `cir.unreachable` as the terminator of a split block. `TernaryOp` on the other hand expects both branches to terminate with a `YieldOp`. Adding any instructions past `unreachable` fails verification. So I changed `Fla

[clang] [clang] Fix catching pointers by reference on mingw targets (PR #162546)

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

[clang] [llvm] [clang][OMPIRBuilder] Fix two missed function pointer type issues (PR #162914)

2025-10-18 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex edited https://github.com/llvm/llvm-project/pull/162914 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 511c1f9 - [HLSL][NFC] Refactor structured buffer methods tests (#161908)

2025-10-18 Thread via cfe-commits
Author: Helena Kotas Date: 2025-10-14T14:57:14-07:00 New Revision: 511c1f9f151e22757cdac0b291022bf1cccbfc1d URL: https://github.com/llvm/llvm-project/commit/511c1f9f151e22757cdac0b291022bf1cccbfc1d DIFF: https://github.com/llvm/llvm-project/commit/511c1f9f151e22757cdac0b291022bf1cccbfc1d.diff

[clang] [analyzer] Hotfix a boolean conversion crash in the Z3 SMTConv (PR #158276)

2025-10-18 Thread via cfe-commits
vabridgers wrote: Thanks @NagyDonat and @steakhal for the review comments and acknowledgements. Even characterizing these issues can be difficult, and frankly I would like to do more than just report crashes with reproducers and post half-step solutions. But we are trying to make use of these

[clang] [clang-format] Support fine-grained alignment of variable declarations (PR #160270)

2025-10-18 Thread via cfe-commits
owenca wrote: > This allows disabling variable alignment declarations while still having > function alignment. It also distinguishes between class member variables and > other variables (e.g. function local variables). See https://clang.llvm.org/docs/ClangFormatStyleOptions.html#adding-additi

[clang] [HIP][SPIRV] Enable the SPIRV backend instead of the translator through an experimental flag. (PR #162282)

2025-10-18 Thread Alex Voicu via cfe-commits
@@ -0,0 +1,12 @@ +// This test case validates the behavior of -use-experimental-spirv-backend + +// Test that -use-experimental-spirv-backend calls clang -cc1 with the SPIRV triple. AlexVlx wrote: We need special handling because we do not invoke the BE in its d

[clang] [Clang] Add __builtin_bswapg (PR #162433)

2025-10-18 Thread via cfe-commits
https://github.com/clingfei updated https://github.com/llvm/llvm-project/pull/162433 >From 92466f3789ce1849ebee8a405efd42e191c591f5 Mon Sep 17 00:00:00 2001 From: clingfei <[email protected]> Date: Wed, 8 Oct 2025 15:05:44 +0800 Subject: [PATCH 1/3] [Clang] Add __builtin_bswapg --- clang/inclu

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

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

[clang] [OpenACC][CIR] Implement 'alloca copying' for private lowering (PR #161382)

2025-10-18 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. Looks good, with a repeated nit about getResult() https://github.com/llvm/llvm-project/pull/161382 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/

[clang] Sort attributes according to source position before printing (PR #162556)

2025-10-18 Thread Giuliano Belinassi via cfe-commits
giulianobelinassi wrote: Regarding https://github.com/llvm/llvm-project/pull/162687 : There is an oddie I found with ``` __attribute__((device)) register long global_dev_hreg asm("rsp"); // device-side error ``` This should error out but it doesn't anymore, probably because __attribute__((devi

[clang] fb458aa - Reland "[LLVM] Add GNU make jobserver support (#145131)"

2025-10-18 Thread Yaxun Liu via cfe-commits
Author: Yaxun (Sam) Liu Date: 2025-10-03T17:38:37-04:00 New Revision: fb458aa91f8fa614086e855ab29749e81e834194 URL: https://github.com/llvm/llvm-project/commit/fb458aa91f8fa614086e855ab29749e81e834194 DIFF: https://github.com/llvm/llvm-project/commit/fb458aa91f8fa614086e855ab29749e81e834194.dif

[clang] [Headers][X86] Allow basic AVX512 predicate ops to be used in constexpr (PR #159998)

2025-10-18 Thread via cfe-commits
fennecJ wrote: Cheers, thanks for the review! https://github.com/llvm/llvm-project/pull/159998 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer][NFC] Explain why operator new/delete should never be eval-called (PR #161370)

2025-10-18 Thread Balázs Benics via cfe-commits
https://github.com/balazs-benics-sonarsource updated https://github.com/llvm/llvm-project/pull/161370 From 2d0a111ebf0262a4f814e1afefce63f996f6aaae Mon Sep 17 00:00:00 2001 From: Balazs Benics Date: Tue, 30 Sep 2025 14:23:49 +0200 Subject: [PATCH 1/3] [analyzer][NFC] Explain why operator new/de

[clang] [win][clang] Align scalar deleting destructors with MSABI (PR #139566)

2025-10-18 Thread Eli Friedman via cfe-commits
@@ -8546,10 +8546,12 @@ class Sema final : public SemaBase { bool Diagnose = true); FunctionDecl *FindUsualDeallocationFunction(SourceLocation StartLoc, ImplicitDeallocationParameters, -

[clang] [clang][analyzer] Clear `ObjCMethodCall`'s cache between runs (PR #161327)

2025-10-18 Thread Alejandro Álvarez Ayllón via cfe-commits
alejandro-alvarez-sonarsource wrote: > I remember debugging this. Fun times. I wonder if we could do even better by > smuggling in some reference to that helper function, so we could move that > global into a field. E.g. as a sibling of the allocator pool. I have been looking at this, and I am

[clang] [CIR][OpenACC] Implement pointer/array recipe destructors (PR #160189)

2025-10-18 Thread Erich Keane via cfe-commits
erichkeane wrote: > Thank you Erich for the comments showing type of array. That helped! The > changes look great to me! > Awesome, thanks! I'll still be doing a patch to do the recipe-ordering cleanup, but that should be effectively NFC, but I'll do that after this gets merged. > A few se

[libunwind] 0c2913a - [libcxx] Use %{temp} instead of %T (#162323)

2025-10-18 Thread via cfe-commits
Author: Aiden Grossman Date: 2025-10-09T16:52:42-07:00 New Revision: 0c2913afc82a683d82f16f09442d49b1fb25ca67 URL: https://github.com/llvm/llvm-project/commit/0c2913afc82a683d82f16f09442d49b1fb25ca67 DIFF: https://github.com/llvm/llvm-project/commit/0c2913afc82a683d82f16f09442d49b1fb25ca67.diff

[clang] [HLSL] Add matrix constructors using initalizer lists (PR #162743)

2025-10-18 Thread Chris B via cfe-commits
https://github.com/llvm-beanz commented: Your testing is focused on `CXXFunctionalCastExpr`, but the implementation of that should be the same as the general initializer list implementation (it is for vectors), so the testing also needs to cover those cases. Things like: ``` [numthreads(1,1,1

[clang] [Sema] Keep attribute lists in the order the attributes were parsed (PR #162714)

2025-10-18 Thread Henrik G. Olsson via cfe-commits
https://github.com/hnrklssn updated https://github.com/llvm/llvm-project/pull/162714 >From dfb1520de70f3c56a74ee798180f9a82934fe40f Mon Sep 17 00:00:00 2001 From: "Henrik G. Olsson" Date: Wed, 8 Oct 2025 23:10:18 -0700 Subject: [PATCH 1/8] [attrs] Rename allAll, takeAllFrom etc. for clarity (NF

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

2025-10-18 Thread Juan Manuel Martinez Caamaño via cfe-commits
https://github.com/jmmartinez updated https://github.com/llvm/llvm-project/pull/163207 From 3a517f0ede2a6a4157c1f5d9cbbc53f27ad4b1e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Martinez=20Caama=C3=B1o?= Date: Thu, 16 Oct 2025 14:21:08 +0200 Subject: [PATCH] [Clang][NFC] Rename Unqu

  1   2   3   4   5   6   7   8   9   10   >