[clang] [clang][driver] Improve warning message for complex range overrides (PR #154899)

2025-08-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Shunsuke Watanabe (s-watanabe314) Changes This patch improves the warnings to show which user options override the complex range. When a complex range is overridden, explicitly display both the option nam

[clang] [clang][driver] Improve warning message for complex range overrides (PR #154899)

2025-08-21 Thread Shunsuke Watanabe via cfe-commits
https://github.com/s-watanabe314 created https://github.com/llvm/llvm-project/pull/154899 This patch improves the warnings to show which user options override the complex range. When a complex range is overridden, explicitly display both the option name and the implied complex range value for

[clang] 0fff460 - [Driver] DragonFly does not support C11 threads (#154886)

2025-08-21 Thread via cfe-commits
Author: Brad Smith Date: 2025-08-22T02:02:52-04:00 New Revision: 0fff4605922d137252875f072b3fb2973dbf9693 URL: https://github.com/llvm/llvm-project/commit/0fff4605922d137252875f072b3fb2973dbf9693 DIFF: https://github.com/llvm/llvm-project/commit/0fff4605922d137252875f072b3fb2973dbf9693.diff LO

[clang] [Driver] DragonFly does not support C11 threads (PR #154886)

2025-08-21 Thread Brad Smith via cfe-commits
https://github.com/brad0 closed https://github.com/llvm/llvm-project/pull/154886 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-08-21 Thread Aditi Medhane via cfe-commits
https://github.com/AditiRM edited https://github.com/llvm/llvm-project/pull/154715 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] DragonFly does not support C11 threads (PR #154886)

2025-08-21 Thread David CARLIER via cfe-commits
https://github.com/devnexen approved this pull request. https://github.com/llvm/llvm-project/pull/154886 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-08-21 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 1/8] Implement frontend for bcd builtins --- clang/include/clang/Basi

[clang] [llvm] [AMDGPU] Extend __builtin_amdgcn_ds_bpermute argument types (PR #153501)

2025-08-21 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions cpp -- clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp clang/lib

[clang] [llvm] [AMDGPU] Extend __builtin_amdgcn_ds_bpermute argument types (PR #153501)

2025-08-21 Thread via cfe-commits
github-actions[bot] wrote: :warning: undef deprecator found issues in your code. :warning: You can test this locally with the following command: ``bash git diff -U0 --pickaxe-regex -S '([^a-zA-Z0-9#_-]undef[^a-zA-Z0-9_-]|UndefValue::get)' 'HEAD~1' HEAD clang/lib/CodeGen/TargetBu

[clang] [llvm] [AMDGPU] Extend __builtin_amdgcn_ds_bpermute argument types (PR #153501)

2025-08-21 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu updated https://github.com/llvm/llvm-project/pull/153501 >From 8fef1b8dd9d91513c705c460e868ac5507eb4aea Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Wed, 13 Aug 2025 09:18:36 -0400 Subject: [PATCH 1/7] [AMDGPU] Extend __builtin_amdgcn_ds_bpermute argument

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #154889)

2025-08-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes getAsExpr() already returns Expr *. --- Full diff: https://github.com/llvm/llvm-project/pull/154889.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaTemplate.cpp (+1-1) ``diff diff

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #154889)

2025-08-21 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/154889 getAsExpr() already returns Expr *. >From c96a06285e73350b7b019821d04c26d3722985ec Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 21 Aug 2025 20:39:44 -0700 Subject: [PATCH] [Sema] Remove an unne

[clang] [llvm] [LoongArch] Add basic UEFI support (PR #154883)

2025-08-21 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,36 @@ +//===- LoongArchWinCOFFStreamer.cpp -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang-tools-extra] [llvm] [WIP] Add clang tidy premerge CI [WIP] (PR #154223)

2025-08-21 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/154223 >From b9e917fb7da29c1dc70e0e89b972fc3e2a631b4f Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Thu, 21 Aug 2025 21:20:33 +0300 Subject: [PATCH 1/3] Add clang-tidy violations for testing purpose --- .../cl

[clang-tools-extra] [llvm] [WIP] Add clang tidy premerge CI [WIP] (PR #154223)

2025-08-21 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code linter clang-tidy found issues in your code. :warning: You can test this locally with the following command: ```bash git diff -U0 origin/main..HEAD -- clang-tools-extra/clang-tidy/performance/MoveConstArgCheck.cpp | python3 clang-tools-ext

[clang] [Driver][Gnu] Auto-link libstdc++fs for GCC versions in [5.3, 9.2) (PR #154826)

2025-08-21 Thread Fangrui Song via cfe-commits
MaskRay wrote: I am concerned with auto -lstdc++fs as well. I think old GCC versions require -lstdc++fs. If you are going to make changes in this area, especially for the old versions [5.3, 9.2), please restrict them to AMD only. https://github.com/llvm/llvm-project/pull/154826 ___

[clang-tools-extra] [llvm] [WIP] Add clang tidy premerge CI [WIP] (PR #154223)

2025-08-21 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/154223 >From b9e917fb7da29c1dc70e0e89b972fc3e2a631b4f Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Thu, 21 Aug 2025 21:20:33 +0300 Subject: [PATCH 1/2] Add clang-tidy violations for testing purpose --- .../cl

[clang] [Driver] DragonFly does not support C11 threads (PR #154886)

2025-08-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brad Smith (brad0) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/154886.diff 2 Files Affected: - (modified) clang/lib/Basic/Targets/OSTargets.h (+3) - (modified) clang/test/Preprocessor/init.c (+8) ``diff

[clang] [Driver] DragonFly does not support C11 threads (PR #154886)

2025-08-21 Thread Brad Smith via cfe-commits
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/154886 None >From 99496fb8d559f889486e528124ed5e4e443611c7 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Fri, 22 Aug 2025 00:49:20 -0400 Subject: [PATCH] [Driver] DragonFly does not support C11 threads --- clang/lib

[clang] [llvm] [LoongArch] Add basic UEFI support (PR #154883)

2025-08-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-loongarch Author: None (leecheechen) Changes This patch adds initial UEFI support for LoongArch64, enabling the compilation and generation of UEFI applications for LoongArch targets. Key changes include: 1. Target support enhancements: - Ad

[clang] [llvm] [LoongArch] Add basic UEFI support (PR #154883)

2025-08-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-binary-utilities Author: None (leecheechen) Changes This patch adds initial UEFI support for LoongArch64, enabling the compilation and generation of UEFI applications for LoongArch targets. Key changes include: 1. Target support enhancements:

[clang] [llvm] [LoongArch] Add basic UEFI support (PR #154883)

2025-08-21 Thread via cfe-commits
https://github.com/leecheechen created https://github.com/llvm/llvm-project/pull/154883 This patch adds initial UEFI support for LoongArch64, enabling the compilation and generation of UEFI applications for LoongArch targets. Key changes include: 1. Target support enhancements: - Added UEF

[clang] [clang-format] Fix a bug in SkipMacroDefinitionBody (PR #154787)

2025-08-21 Thread via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/154787 >From 04dab5e8cf9646e88970350ee602cc82535322bc Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 21 Aug 2025 08:58:12 -0700 Subject: [PATCH 1/2] [clang-format] Fix a bug in SkipMacroDefinitionBody Fixes #154683

[clang] [llvm] [SPIRV][HLSL] Add DXC compatibility option for extension (PR #151554)

2025-08-21 Thread Steven Perron via cfe-commits
https://github.com/s-perron closed https://github.com/llvm/llvm-project/pull/151554 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix incorrect return type for `__builtin_shufflevector` (PR #154817)

2025-08-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Joseph Huber (jhuber6) Changes Summary: The `__builtin_shufflevector` call would return a GCC vector in all cases where the vector type was increased. Change this to preserve whether or not this was an extended vector. Fixes: https://githu

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

2025-08-21 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions cpp,h -- clang/include/clang/Driver/DependencyScanner.h cla

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

2025-08-21 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth updated https://github.com/llvm/llvm-project/pull/152770 >From f9dad8d99616e0799c318dda1a8e50351021f169 Mon Sep 17 00:00:00 2001 From: Naveen Seth Hanig Date: Fri, 22 Aug 2025 04:58:18 +0200 Subject: [PATCH] [clang][modules-driver] Add dependency scan and dependen

[clang] [Clang] Support generic bit counting builtins on fixed boolean vectors (PR #154203)

2025-08-21 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/154203 >From cc9d2d9e4923bad0d904d251fa116ad388b0b6ac Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Mon, 18 Aug 2025 15:59:46 -0500 Subject: [PATCH 1/6] [Clang] Support generic bit counting builtins on fixed boole

[clang] [Clang] Support generic bit counting builtins on fixed boolean vectors (PR #154203)

2025-08-21 Thread Timm Baeder via cfe-commits
@@ -141,6 +141,22 @@ static void diagnoseNonConstexprBuiltin(InterpState &S, CodePtr OpPC, S.CCEDiag(Loc, diag::note_invalid_subexpr_in_const_expr); } +static llvm::APSInt convertBoolVectorToInt(const Pointer &Val) { + assert(Val.getFieldDesc()->isPrimitiveArray() && +

[clang] [Clang] Support generic bit counting builtins on fixed boolean vectors (PR #154203)

2025-08-21 Thread Timm Baeder via cfe-commits
@@ -141,6 +141,22 @@ static void diagnoseNonConstexprBuiltin(InterpState &S, CodePtr OpPC, S.CCEDiag(Loc, diag::note_invalid_subexpr_in_const_expr); } +static llvm::APSInt convertBoolVectorToInt(const Pointer &Val) { + assert(Val.getFieldDesc()->isPrimitiveArray() && +

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

2025-08-21 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth updated https://github.com/llvm/llvm-project/pull/152770 >From 82ccdec367d18320ca5448a4b36e928889e17936 Mon Sep 17 00:00:00 2001 From: Naveen Seth Hanig Date: Fri, 22 Aug 2025 04:58:18 +0200 Subject: [PATCH] [clang][modules-driver] Add dependency scan and dependen

[clang] [llvm] Singleton hack of fixing static initialisation order ficaso (PR #154541)

2025-08-21 Thread via cfe-commits
https://github.com/Dalmurii updated https://github.com/llvm/llvm-project/pull/154541 >From 4bc8f7c83dfd53cc1984d722e78fbc1f19fbf991 Mon Sep 17 00:00:00 2001 From: ae2f Date: Wed, 20 Aug 2025 22:26:09 +0900 Subject: [PATCH 1/5] Fix of [Static Initialization Order Fiasco Issue](https://github.co

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

2025-08-21 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth ready_for_review https://github.com/llvm/llvm-project/pull/152770 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-08-21 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth updated https://github.com/llvm/llvm-project/pull/152770 >From 905e78df28462b647bfdb7cf3231198c90bf3097 Mon Sep 17 00:00:00 2001 From: Naveen Seth Hanig Date: Fri, 22 Aug 2025 04:58:18 +0200 Subject: [PATCH] [clang][modules-driver] Add dependency scan and dependen

[clang] [Clang] Implement diagnostics for why is_final is false (PR #154863)

2025-08-21 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 ready_for_review https://github.com/llvm/llvm-project/pull/154863 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Ignore default ctor with user provided argument in `readability-container-size-empty` (PR #154782)

2025-08-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy @llvm/pr-subscribers-clang-tools-extra Author: None (flovent) Changes Closes #154762 --- Full diff: https://github.com/llvm/llvm-project/pull/154782.diff 3 Files Affected: - (modified) clang-tools-extra/clang-tidy/readability/ContainerSiz

[clang] [llvm] [clang][DebugInfo] Emit unified (Itanium) mangled name to structor declarations (PR #154142)

2025-08-21 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/154142 >From d55e41fa03d09b2ddfc9484c4a70a7d21ed9a994 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Mon, 18 Aug 2025 15:12:45 +0100 Subject: [PATCH 01/10] [llvm][DebugInfo] Support DW_AT_linkage_names that are

[clang-tools-extra] [clang-tidy][doc] Improve option docs for readability-identifier-naming (PR #154806)

2025-08-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Carlos Galvez (carlosgalvezp) Changes Currently it's hard to find the "general" options, since they are listed in the middle of the "specific" options. Split them into two categories so they are easier to find. This can help in addi

[clang] [clang] Upstream `clang::CodeGen::getConstantSignedPointer` (PR #154453)

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

[clang] [clang] Upstream `clang::CodeGen::getConstantSignedPointer` (PR #154453)

2025-08-21 Thread Ben Barham via cfe-commits
https://github.com/bnbarham closed https://github.com/llvm/llvm-project/pull/154453 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0bc0209 - [clang] Upstream `clang::CodeGen::getConstantSignedPointer` (#154453)

2025-08-21 Thread via cfe-commits
Author: Anthony Latsis Date: 2025-08-21T17:55:57-07:00 New Revision: 0bc02096f692da5b2f6b50fa82395af930314bcb URL: https://github.com/llvm/llvm-project/commit/0bc02096f692da5b2f6b50fa82395af930314bcb DIFF: https://github.com/llvm/llvm-project/commit/0bc02096f692da5b2f6b50fa82395af930314bcb.diff

[clang] [Clang] Implement diagnostics for why is_final is false (PR #154863)

2025-08-21 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 created https://github.com/llvm/llvm-project/pull/154863 Adds onto https://github.com/llvm/llvm-project/issues/141911 >From a30420c14387dd41e7ab7ea1924b4471b3f0b71d Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Thu, 21 Aug 2025 20:45:53 -0400 Subject: [PATCH

[clang] [clang-format] Add an option to format integer and float literal case (PR #151590)

2025-08-21 Thread Andy MacGregor via cfe-commits
@@ -0,0 +1,190 @@ +//===--- NumericLiteralCaseFixer.cpp ---*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2

[clang] [HLSL][RootSignature] Introduce `HLSLFrontendAction` to implement `rootsig-define` (PR #154639)

2025-08-21 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/154639 >From d91de5f59ab2682b1067c7881a4af995422f9dfc Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Wed, 20 Aug 2025 12:06:03 -0700 Subject: [PATCH 1/9] nfc: move invocation of parsing to common location --- .../

[clang] [Clang]Throw frontend error for target feature mismatch when using flatten attribute (PR #154801)

2025-08-21 Thread Abhishek Kaushik via cfe-commits
https://github.com/abhishek-kaushik22 created https://github.com/llvm/llvm-project/pull/154801 Fixes #149866 >From 359de1e5786a413f3bfca6b09b60bd2fd67dbb1f Mon Sep 17 00:00:00 2001 From: Abhishek Kaushik Date: Thu, 21 Aug 2025 22:59:21 +0530 Subject: [PATCH] [Clang]Throw frontend error for t

[clang] [OpenCLCpp] Remove address-space from friend declaration (PR #153459)

2025-08-21 Thread via cfe-commits
https://github.com/piotrrak edited https://github.com/llvm/llvm-project/pull/153459 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] Allow AVX2 per-element shift intrinsics to be used in constexpr (PR #154780)

2025-08-21 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon created https://github.com/llvm/llvm-project/pull/154780 This handles constant folding for the AVX2 per-element shift intrinsics, which handle out of bounds shift amounts (logical result = 0, arithmetic result = signbit splat) AVX512 intrinsics will follow in follow

[clang] [clang] -fstrict-enums optimization for by-value parameters (PR #154807)

2025-08-21 Thread via cfe-commits
https://github.com/keinflue created https://github.com/llvm/llvm-project/pull/154807 This adds a range attribute to function parameters to enable optimization with regards to restricted value ranges of enumerations without fixed underlying type in C++ with the -fstrict-enums option. Loads for

[clang] [NFC][Diagnostics] Prevent incorrect clang-format reformatting in some headers related to Clang diagnostics (PR #154628)

2025-08-21 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. Yep, LGTM. https://github.com/llvm/llvm-project/pull/154628 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PAC] Fix codegen for polymorphic class variables with consteval constructors (PR #154858)

2025-08-21 Thread Akira Hatanaka via cfe-commits
https://github.com/ahatanak edited https://github.com/llvm/llvm-project/pull/154858 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Reland "[clangd] Add feature modules registry" (PR #154836)

2025-08-21 Thread Aleksandr Platonov via cfe-commits
https://github.com/ArcsinX created https://github.com/llvm/llvm-project/pull/154836 Reland #153756 LLVM_INSTANTIATE_REGISTRY(..) and FeatureModuleRegistry::entries() were in different translation units, that rises a warning when compiling with clang and leads to compilation failure if -Werror

[clang] [lldb] [UBSan][BoundsSafety] Implement support for more expressive "trap reasons" (PR #154618)

2025-08-21 Thread Dan Liew via cfe-commits
https://github.com/delcypher edited https://github.com/llvm/llvm-project/pull/154618 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Fix a crash in Destroy op (PR #154695)

2025-08-21 Thread Shafik Yaghmour via cfe-commits
@@ -2437,9 +2437,17 @@ inline bool Destroy(InterpState &S, CodePtr OpPC, uint32_t I) { const Pointer &Ptr = S.Current->getLocalPointer(Local.Offset); if (Ptr.getLifetime() == Lifetime::Ended) { - auto *D = cast(Ptr.getFieldDesc()->asDecl()); - S.FFDiag(D->ge

[clang] [Clang] Only enable builtins on aux triple if supported by language (PR #154217)

2025-08-21 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B commented: > This patch makes it so that builtins for the aux triple only get enabled if > they are marked as supported by the current language options. I'm not convinced that it's the right fix for the problem. * `__cpuidex`, uses `Languages = "ALL_MS_LANGUAGES"` w

[clang] [Clang] Only enable builtins on aux triple if supported by language (PR #154217)

2025-08-21 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B edited https://github.com/llvm/llvm-project/pull/154217 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Support generic bit counting builtins on fixed boolean vectors (PR #154203)

2025-08-21 Thread John McCall via cfe-commits
@@ -4213,7 +4213,7 @@ such as ``unsigned __int128`` and C23 ``unsigned _BitInt(N)``. ``__builtin_clzg`` (respectively ``__builtin_ctzg``) returns the number of leading (respectively trailing) 0 bits in the first argument. The first argument -can be of any unsigned integer ty

[clang] 761125f - [CIR][Dialect] Add SourceLangAttr (#152511)

2025-08-21 Thread via cfe-commits
Author: 7mile Date: 2025-08-21T09:51:37-07:00 New Revision: 761125f2676925fbc4ef23f8b5cc937ebea9a0fb URL: https://github.com/llvm/llvm-project/commit/761125f2676925fbc4ef23f8b5cc937ebea9a0fb DIFF: https://github.com/llvm/llvm-project/commit/761125f2676925fbc4ef23f8b5cc937ebea9a0fb.diff LOG: [C

[clang] [CIR] Add CIR vtable attribute (PR #154415)

2025-08-21 Thread Henrich Lauko via cfe-commits
@@ -496,6 +496,46 @@ def CIR_GlobalViewAttr : CIR_Attr<"GlobalView", "global_view", [ }]; } +//===--===// +// VTableAttr +//===--===// + +

[clang] [compiler-rt] Change compiler-rt lib search path for Hexagon-linux (PR #154530)

2025-08-21 Thread Brian Cain via cfe-commits
@@ -594,6 +592,9 @@ void HexagonToolChain::getHexagonLibraryPaths(const ArgList &Args, LibPaths.push_back(LibDirCpu); LibPaths.push_back(LibDir); } + if (getTriple().isMusl()) { +LibPaths.push_back(getCompilerRTPath()); + } } androm3da wrote:

[clang] [Clang][analyzer][NFC] Const-correct CheckerContext API (PR #154741)

2025-08-21 Thread Arseniy Zaostrovnykh via cfe-commits
necto wrote: Unless I see objections, I'll merge this PR tomorrow https://github.com/llvm/llvm-project/pull/154741 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream GotoSolver pass (PR #154596)

2025-08-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-remote-linux-ubuntu` running on `as-builder-9` while building `clang` at step 16 "test-check-lldb-api". Full details are available at: https://lab.llvm.org/buildbot/#/builders/195/builds/13560 Here is the relevant piec

[clang] [HLSL][DirectX] Add the Qdx-rootsignature-strip driver option (PR #154454)

2025-08-21 Thread Finn Plummer via cfe-commits
@@ -4601,6 +4601,16 @@ void Driver::BuildActions(Compilation &C, DerivedArgList &Args, Actions.push_back(C.MakeAction( LastAction, types::TY_DX_CONTAINER)); } +if (TC.requiresObjcopy(Args)) { + Action *LastAction = Actions.back(); + // llv

[clang] [Clang] Support generic bit counting builtins on fixed boolean vectors (PR #154203)

2025-08-21 Thread John McCall via cfe-commits
https://github.com/rjmccall edited https://github.com/llvm/llvm-project/pull/154203 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Implement Pointer::getType() for function pointers (PR #154788)

2025-08-21 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/154788 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix scope of typedefs present inside a template class (PR #146729)

2025-08-21 Thread via cfe-commits
@@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm -debug-info-kind=standalone -o - %s | FileCheck %s ykhatav wrote: Done. https://github.com/llvm/llvm-project/pull/146729 ___ cfe-commit

[clang] [NFC][Diagnostics] Prevent incorrect clang-format reformatting in some headers related to Clang diagnostics (PR #154628)

2025-08-21 Thread Dan Liew via cfe-commits
delcypher wrote: @erichkeane @Sirraide I just reformatted the entire files (opting out the enum that declares the ` DIAG_START_*` constants for readability. Assuming CI passes, is this good to go? https://github.com/llvm/llvm-project/pull/154628 ___

[clang] [NFC][Diagnostics] Prevent incorrect clang-format reformatting in some headers related to Clang diagnostics (PR #154628)

2025-08-21 Thread Dan Liew via cfe-commits
https://github.com/delcypher edited https://github.com/llvm/llvm-project/pull/154628 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++] Expose nullptr_t from stddef.h in C++ mode (PR #154599)

2025-08-21 Thread Aiden Grossman via cfe-commits
boomanaiden154 wrote: It looks like it's only the libc++ build with modules enabled that failed. It should reproduce with a libc++ runtimes build with the flags in https://github.com/llvm/llvm-project/blob/17eb05ddd3b0db41d69af9318a6a43760ee15910/.ci/monolithic-linux.sh#L94 set. If you can't

[clang] [flang] [flang] add -floop-interchange and enable it with opt levels (PR #140182)

2025-08-21 Thread Sebastian Pop via cfe-commits
sebpop wrote: Instead of spreading FUD around, please be more precise and open bug reports for the following: > There are fundamental flaws in DA's implementation, particularly in how it > handles wrapping of SCEVs. Tell me more about it in a separate bug, and let's see how we can work towards

[clang] [Clang] Fix incorrect return type for `__builtin_shufflevector` (PR #154817)

2025-08-21 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/154817 >From d2eceb10f6bb33c28f4891b0664e4978b7a76c88 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Thu, 21 Aug 2025 13:14:03 -0500 Subject: [PATCH] [Clang] Fix incorrect return type for `__builtin_shufflevector`

[clang-tools-extra] [llvm] [WIP] Add clang tidy premerge CI [WIP] (PR #154223)

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

[clang] [clang][bytecode] Guard strcmp against differing element types (PR #154777)

2025-08-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes This can happen when casts are involved. Fixes #154006 --- Full diff: https://github.com/llvm/llvm-project/pull/154777.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/InterpBuiltin.cpp (+6-1)

[clang] [compiler-rt] Change compiler-rt lib search path for Hexagon-linux (PR #154530)

2025-08-21 Thread Brian Cain via cfe-commits
@@ -594,6 +592,9 @@ void HexagonToolChain::getHexagonLibraryPaths(const ArgList &Args, LibPaths.push_back(LibDirCpu); LibPaths.push_back(LibDir); } + if (getTriple().isMusl()) { +LibPaths.push_back(getCompilerRTPath()); + } } androm3da wrote:

[clang] [CIR] Upstream GotoSolver pass (PR #154596)

2025-08-21 Thread via cfe-commits
@@ -0,0 +1,52 @@ +#include "PassDetail.h" +#include "clang/CIR/Dialect/IR/CIRDialect.h" +#include "clang/CIR/Dialect/Passes.h" +#include "llvm/Support/TimeProfiler.h" +#include + +using namespace mlir; +using namespace cir; + +namespace { + +struct GotoSolverPass : public GotoSol

[clang] [Clang] Support generic bit counting builtins on fixed boolean vectors (PR #154203)

2025-08-21 Thread John McCall via cfe-commits
@@ -1693,6 +1693,22 @@ getBitTestAtomicOrdering(BitTest::InterlockingKind I) { llvm_unreachable("invalid interlocking"); } +static llvm::Value *EmitIntegerExpr(CodeGenFunction &CGF, const Expr *E) { + llvm::Value *ArgValue = CGF.EmitScalarExpr(E); + llvm::Type *ArgType = A

[clang] 0961200 - [NFC][Diagnostics] Reformat `DiagnosticIDs.h` and `AllDiagnostics.h` (#154628)

2025-08-21 Thread via cfe-commits
Author: Dan Liew Date: 2025-08-21T14:06:49-07:00 New Revision: 09612007f1d1f431e4418acbe3373b14b21fb913 URL: https://github.com/llvm/llvm-project/commit/09612007f1d1f431e4418acbe3373b14b21fb913 DIFF: https://github.com/llvm/llvm-project/commit/09612007f1d1f431e4418acbe3373b14b21fb913.diff LOG:

[clang] [NFC][Diagnostics] Reformat `DiagnosticIDs.h` and `AllDiagnostics.h` (PR #154628)

2025-08-21 Thread Dan Liew via cfe-commits
https://github.com/delcypher closed https://github.com/llvm/llvm-project/pull/154628 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Diagnostics] Reformat `DiagnosticIDs.h` and `AllDiagnostics.h` (PR #154628)

2025-08-21 Thread Dan Liew via cfe-commits
delcypher wrote: The CI failure is due to an unrelated test failure. ``` Unresolved Tests (1): lldb-api :: tools/lldb-dap/moduleSymbols/TestDAP_moduleSymbols.py ``` https://github.com/llvm/llvm-project/pull/154628 ___ cfe-

[clang] [clang] Fix Variable Length Array `_Countof` Crash (PR #154627)

2025-08-21 Thread via cfe-commits
https://github.com/Mr-Anyone updated https://github.com/llvm/llvm-project/pull/154627 >From bdf360400228106ef4e50677797d30e18a2bab19 Mon Sep 17 00:00:00 2001 From: Vincent Date: Sat, 9 Aug 2025 23:07:30 +0800 Subject: [PATCH 1/2] [clang] Fix Variable Length Array `_Countof` Crash Check for mis

[clang] [Clang] Support generic bit counting builtins on fixed boolean vectors (PR #154203)

2025-08-21 Thread John McCall via cfe-commits
https://github.com/rjmccall edited https://github.com/llvm/llvm-project/pull/154203 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Support generic bit counting builtins on fixed boolean vectors (PR #154203)

2025-08-21 Thread John McCall via cfe-commits
@@ -4213,7 +4213,7 @@ such as ``unsigned __int128`` and C23 ``unsigned _BitInt(N)``. ``__builtin_clzg`` (respectively ``__builtin_ctzg``) returns the number of leading (respectively trailing) 0 bits in the first argument. The first argument -can be of any unsigned integer ty

[clang] Fix scope of typedefs present inside a template class (PR #146729)

2025-08-21 Thread via cfe-commits
https://github.com/ykhatav closed https://github.com/llvm/llvm-project/pull/146729 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 38f0b9e - Fix scope of typedefs present inside a template class (#146729)

2025-08-21 Thread via cfe-commits
Author: ykhatav Date: 2025-08-21T16:58:25-04:00 New Revision: 38f0b9e6d965b46a2c747a0010809fc6ba103045 URL: https://github.com/llvm/llvm-project/commit/38f0b9e6d965b46a2c747a0010809fc6ba103045 DIFF: https://github.com/llvm/llvm-project/commit/38f0b9e6d965b46a2c747a0010809fc6ba103045.diff LOG:

[clang] [clang-tools-extra] [clang] Improve nested name specifier AST representation (PR #147835)

2025-08-21 Thread Jordan Rupprecht via cfe-commits
rupprecht wrote: > > I'm trying to reduce a crash that only reproduces w/ in module builds. Does > > this sound familiar? > > Haven't seen this one yet. That may have something to do with demoted > definitions, a repro would be helpful. I'm trying to reduce it now, but because it's a modules

[clang] [flang] [flang] add -floop-interchange and enable it with opt levels (PR #140182)

2025-08-21 Thread Michael Kruse via cfe-commits
Meinersbur wrote: > > There are fundamental flaws in DA's implementation, particularly in how it > > handles wrapping of SCEVs. > > Tell me more about it in a separate bug, and let's see how we can work > towards fixing it. If you look over the code you can see that no attention was paid to i

[clang] [Clang] Fix incorrect return type for `__builtin_shufflevector` (PR #154817)

2025-08-21 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/154817 Summary: The `__builtin_shufflevector` call would return a GCC vector in all cases where the vector type was increased. Change this to preserve whether or not this was an extended vector. Fixes: https://github.c

[clang] [llvm] Fix Windows EH IP2State tables (remove +1 bias) (PR #144745)

2025-08-21 Thread Hans Wennborg via cfe-commits
zmodem wrote: I haven't dug into the details (and don't know much about WinEH), but we just bisected a Rust test failure to this revision. After this, https://github.com/rust-lang/rust/blob/213d946a384b46989f6fd9c8ae9c547b4e354455/tests/ui/asm/x86_64/may_unwind.rs fails on Windows. Do folks o

[clang] [HLSL][DirectX] Add the Qdx-rootsignature-strip driver option (PR #154454)

2025-08-21 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/154454 >From 0f11eb005276c35599216c60653a5126fbd7ed1e Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Fri, 8 Aug 2025 17:16:06 + Subject: [PATCH 1/5] add BinaryModifyJobClass --- clang/include/clang/Driver/Acti

[clang-tools-extra] [clang-tidy][NFC] Fix "llvm-prefer-static-over-anonymous-namespace" warnings 1/N (PR #153885)

2025-08-21 Thread Baranov Victor via cfe-commits
vbvictor wrote: Should be fairly easy to review @carlosgalvezp There will be more patches coming with fixing this check. https://github.com/llvm/llvm-project/pull/153885 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cg

[clang] [Clang]Throw frontend error for target feature mismatch when using flatten attribute (PR #154801)

2025-08-21 Thread Abhishek Kaushik via cfe-commits
abhishek-kaushik22 wrote: @efriedma-quic @AaronBallman Can you please review this one? I messed up the last pr https://github.com/llvm/llvm-project/pull/154801 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

[clang] [Clang] Fix incorrect return type for `__builtin_shufflevector` (PR #154817)

2025-08-21 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. I expect this doesn't have much effect in most cases; we have a bunch of implicit conversions between vector types, so probably in most cases the vector gets converted to the right type before anyone actually tries to use it. LGTM h

[clang] [Clang] Support generic bit counting builtins on fixed boolean vectors (PR #154203)

2025-08-21 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 edited https://github.com/llvm/llvm-project/pull/154203 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang] Improve nested name specifier AST representation (PR #147835)

2025-08-21 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: > I'm trying to reduce a crash that only reproduces w/ in module builds. Does > this sound familiar? > > ``` > assertion failed at clang/lib/AST/RecordLayoutBuilder.cpp:3380 in const > ASTRecordLayout &clang::ASTContext::getASTRecordLayout(const RecordDecl *) > const: D && "Ca

[clang] [Driver][Gnu] Auto-link libstdc++fs for GCC versions in [5.3, 9.2) (PR #154826)

2025-08-21 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 commented: Do you know if gcc auto links these and this behavior matches? https://github.com/llvm/llvm-project/pull/154826 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinf

[clang] [Driver][Gnu] Auto-link libstdc++fs for GCC versions in [5.3, 9.2) (PR #154826)

2025-08-21 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu edited https://github.com/llvm/llvm-project/pull/154826 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][Gnu] Auto-link libstdc++fs for GCC versions in [5.3, 9.2) (PR #154826)

2025-08-21 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu edited https://github.com/llvm/llvm-project/pull/154826 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][Gnu] Auto-link libstdc++fs for GCC < 9.2 (PR #154826)

2025-08-21 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu updated https://github.com/llvm/llvm-project/pull/154826 >From 7e93842c711d077e187a54bdc6ca7565fc1eaff9 Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Thu, 21 Aug 2025 15:12:43 -0400 Subject: [PATCH] [Driver][Gnu] Auto-link libstdc++fs for GCC versions in [5.

[clang-tools-extra] Reland "[clangd] Add feature modules registry" (PR #154836)

2025-08-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra @llvm/pr-subscribers-clangd Author: Aleksandr Platonov (ArcsinX) Changes Reland #153756 LLVM_INSTANTIATE_REGISTRY(..) and FeatureModuleRegistry::entries() were in different translation units, that rises a warning when compiling with c

[clang] [Clang] Fix incorrect return type for `__builtin_shufflevector` (PR #154817)

2025-08-21 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/154817 >From d2eceb10f6bb33c28f4891b0664e4978b7a76c88 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Thu, 21 Aug 2025 13:14:03 -0500 Subject: [PATCH] [Clang] Fix incorrect return type for `__builtin_shufflevector`

[clang] [Driver][Gnu] Auto-link libstdc++fs for GCC < 9.2 (PR #154826)

2025-08-21 Thread Yaxun Liu via cfe-commits
yxsamliu wrote: > What about an even older GCC where std::filesystem didn't exist? The oldest GCC that has -libstdc++fs is 5.3 (https://godbolt.org/z/sroE5zvE7). I can put another boundary on it there. https://github.com/llvm/llvm-project/pull/154826 ___

  1   2   3   4   5   >