[clang] [HLSL] Fix debug info generation for RWBuffer types (PR #119041)

2024-12-21 Thread via cfe-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/119041 >From 999f15be166d25521dfca4f95c1c909152f382e0 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Fri, 6 Dec 2024 01:27:24 + Subject: [PATCH 1/8] Apply DXC fix and add tests --- clang/test/CodeGenHLSL/d

[clang] [clang][bytecode] Create local scopes for if then/else statements (PR #120852)

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

[clang] acb7dfa - [clang][bytecode] Create local scopes for if then/else statements (#120852)

2024-12-21 Thread via cfe-commits
Author: Timm Baeder Date: 2024-12-22T08:04:49+01:00 New Revision: acb7dfaa017dc11106bf97de4e8bf72d47ff54a8 URL: https://github.com/llvm/llvm-project/commit/acb7dfaa017dc11106bf97de4e8bf72d47ff54a8 DIFF: https://github.com/llvm/llvm-project/commit/acb7dfaa017dc11106bf97de4e8bf72d47ff54a8.diff L

[clang] [clang][bytecode] Create local scopes for if then/else statements (PR #120852)

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

[clang] [clang-format] Fix crashes when the macro expansion is empty (PR #119428)

2024-12-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang` at step 2 "checkout". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/11848 Here is the relevant piece of the bu

[clang] [clang-format] Fix crashes when the macro expansion is empty (PR #119428)

2024-12-21 Thread via cfe-commits
github-actions[bot] wrote: @amane-ame 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 buil

[clang] [clang-format] Fix crashes when the macro expansion is empty (PR #119428)

2024-12-21 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/119428 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] cac6777 - [clang-format] Fix crashes when the macro expansion is empty (#119428)

2024-12-21 Thread via cfe-commits
Author: 天音あめ Date: 2024-12-21T22:21:27-08:00 New Revision: cac6777ca14e162eb6e97e20da266802846ab953 URL: https://github.com/llvm/llvm-project/commit/cac6777ca14e162eb6e97e20da266802846ab953 DIFF: https://github.com/llvm/llvm-project/commit/cac6777ca14e162eb6e97e20da266802846ab953.diff LOG: [cl

[clang-tools-extra] [clang-doc] Migrate away from PointerUnion::{is,get} (NFC) (PR #120872)

2024-12-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Kazu Hirata (kazutakahirata) Changes Note that PointerUnion::{is,get} have been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_ca

[clang-tools-extra] [clang-doc] Migrate away from PointerUnion::{is,get} (NFC) (PR #120872)

2024-12-21 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/120872 Note that PointerUnion::{is,get} have been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast >From 74f40fd73

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-21 Thread via cfe-commits
4m4n-x-B4w4ne wrote: I have wrote a basic-level test similar to other checks and also have done a clean PR build. Can you please review it? https://github.com/llvm/llvm-project/pull/120087 ___ cfe-commits mailing lis

[clang] [clang-format] Fix crashes when the macro expansion is empty (PR #119428)

2024-12-21 Thread via cfe-commits
https://github.com/amane-ame updated https://github.com/llvm/llvm-project/pull/119428 From 3a4c1a924faef3a7a09126694fcb943bd7083451 Mon Sep 17 00:00:00 2001 From: amane-ame Date: Wed, 11 Dec 2024 02:13:43 +0800 Subject: [PATCH 1/7] Fix crashes when the macro expansion is empty --- clang/lib/F

[clang-tools-extra] Added options to readability-implicit-bool-conversion (PR #120087)

2024-12-21 Thread via cfe-commits
https://github.com/4m4n-x-B4w4ne updated https://github.com/llvm/llvm-project/pull/120087 >From 03f536888ddc5b7be2514c2d880c6d3119b7f4ee Mon Sep 17 00:00:00 2001 From: 4m4n-x-B4w4ne <125849251+4m4n-x-b4w...@users.noreply.github.com> Date: Mon, 16 Dec 2024 19:43:42 +0530 Subject: [PATCH 01/31] Up

[clang] Mechanically port bulk of x86 builtins to TableGen (PR #120831)

2024-12-21 Thread Craig Topper via cfe-commits
topperc wrote: When I was still involved in X86 my recollection was we primarily used LLi. It looks like there was a large replacement of LLi with Oi here fa8cd7691ac28d07f6a127ed26f0dbe49699bd59. https://github.com/llvm/llvm-project/pull/120831 ___

[clang-tools-extra] [clangd] Augment code completion results with documentation from the index. (PR #120099)

2024-12-21 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > I've come across an issue with this, again. This seems to work for headers > I've written myself (or at least ones in my own project), but for e.g. > standard library include types, it doesn't work. Something like > > ``` > std::string a; > a.^ > ``` > > still cont

[clang] Mechanically port bulk of x86 builtins to TableGen (PR #120831)

2024-12-21 Thread Phoebe Wang via cfe-commits
phoebewang wrote: > A long way from an expert on OpenCL, but it seems to not even have the > concept of `long long`, and `long` is defined as a 64-bit type (and just > optional for embedded stuff)? > > https://registry.khronos.org/OpenCL/sdk/3.0/docs/man/html/scalarDataTypes.html Thanks for t

[clang] [clang] constexpr built-in reduce min/max function. (PR #120866)

2024-12-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (c8ef) Changes Part of #51787. This patch adds constexpr support for the built-in reduce min/max function. --- Full diff: https://github.com/llvm/llvm-project/pull/120866.diff 5 Files Affected: - (modified) clang/docs/LanguageExte

[clang] [clang] constexpr built-in reduce min/max function. (PR #120866)

2024-12-21 Thread via cfe-commits
https://github.com/c8ef ready_for_review https://github.com/llvm/llvm-project/pull/120866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Phoebe Wang via cfe-commits
=?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= Message-ID: In-Reply-To: @@ -24,573 +24,3369 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width_

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Phoebe Wang via cfe-commits
=?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= Message-ID: In-Reply-To: @@ -24,573 +24,3369 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width_

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Phoebe Wang via cfe-commits
=?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= Message-ID: In-Reply-To: @@ -24,573 +24,3369 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width_

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Phoebe Wang via cfe-commits
=?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= Message-ID: In-Reply-To: @@ -24,573 +24,3369 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width_

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Phoebe Wang via cfe-commits
=?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= Message-ID: In-Reply-To: @@ -24,573 +24,3369 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width_

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Phoebe Wang via cfe-commits
=?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= Message-ID: In-Reply-To: @@ -24,573 +24,3369 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width_

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Phoebe Wang via cfe-commits
=?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= Message-ID: In-Reply-To: @@ -24,573 +24,3369 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width_

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Phoebe Wang via cfe-commits
=?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= , =?utf-8?q?Mikołaj_Piróg?= Message-ID: In-Reply-To: @@ -24,573 +24,3369 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width_

[clang] [clang] constexpr built-in reduce min/max function. (PR #120866)

2024-12-21 Thread via cfe-commits
https://github.com/c8ef created https://github.com/llvm/llvm-project/pull/120866 Part of #51787. This patch adds constexpr support for the built-in reduce min/max function. >From 4e16d47641bd02203753752636f1fe90182552e9 Mon Sep 17 00:00:00 2001 From: c8ef Date: Sun, 22 Dec 2024 11:08:43 +0800

[clang] [clang] fix uefi target for aarch64 & x86_64 (PR #120632)

2024-12-21 Thread Tristan Ross via cfe-commits
https://github.com/RossComputerGuy updated https://github.com/llvm/llvm-project/pull/120632 >From a9b162f2dbf8e2e102bc8f4cf7af51331e648502 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Thu, 19 Dec 2024 10:54:58 -0800 Subject: [PATCH 1/5] [clang] fix uefi data layout on x86 & aarch64 --- c

[clang] [clang] Introduce a new UEFI target predefine. (PR #111719)

2024-12-21 Thread via cfe-commits
https://github.com/Prabhuk edited https://github.com/llvm/llvm-project/pull/111719 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Introduce a new UEFI target predefine. (PR #111719)

2024-12-21 Thread via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/111719 >From 05eab970b59c61b22e8afa1ed9381906ae925c03 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Wed, 9 Oct 2024 10:16:58 -0700 Subject: [PATCH 1/6] [clang] Introduce a new UEFI target predefine. --- clang/lib/Bas

[clang] [clang] fix uefi target for aarch64 & x86_64 (PR #120632)

2024-12-21 Thread via cfe-commits
@@ -788,16 +789,28 @@ class LLVM_LIBRARY_VISIBILITY ZOSTargetInfo : public OSTargetInfo { // UEFI target template class LLVM_LIBRARY_VISIBILITY UEFITargetInfo : public OSTargetInfo { + llvm::Triple Triple; + protected: void getOSDefines(const LangOptions &Opts, const llv

[clang] dce2245 - [clang][driver] Cleanup UEFI toolchain driver (#111473)

2024-12-21 Thread via cfe-commits
Author: Prabhuk Date: 2024-12-21T17:44:45-08:00 New Revision: dce2245ba49fad419e551b0143f41431ec8e7f03 URL: https://github.com/llvm/llvm-project/commit/dce2245ba49fad419e551b0143f41431ec8e7f03 DIFF: https://github.com/llvm/llvm-project/commit/dce2245ba49fad419e551b0143f41431ec8e7f03.diff LOG:

[clang] [libcxx] [clang][driver] Cleanup UEFI toolchain driver (PR #111473)

2024-12-21 Thread via cfe-commits
https://github.com/Prabhuk closed https://github.com/llvm/llvm-project/pull/111473 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Migrate away from PointerUnion::get (NFC) (PR #120844)

2024-12-21 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/120844 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c9df8da - [Serialization] Migrate away from PointerUnion::get (NFC) (#120844)

2024-12-21 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-12-21T17:40:39-08:00 New Revision: c9df8da659acde9445e1de5259d34ccf96948b44 URL: https://github.com/llvm/llvm-project/commit/c9df8da659acde9445e1de5259d34ccf96948b44 DIFF: https://github.com/llvm/llvm-project/commit/c9df8da659acde9445e1de5259d34ccf96948b44.diff L

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

2024-12-21 Thread via cfe-commits
@@ -11077,6 +11077,221 @@ TEST_F(FormatTest, WrapsTemplateDeclarationsWithComments) { Style); } +TEST_F(FormatTest, BreakBeforeTemplateClose) { leijurv wrote: Sure! https://github.com/llvm/llvm-project/pull/118046/commits/2c3a64c8f32a5c43887db4d107a41

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

2024-12-21 Thread via cfe-commits
@@ -11077,6 +11077,221 @@ TEST_F(FormatTest, WrapsTemplateDeclarationsWithComments) { Style); } +TEST_F(FormatTest, BreakBeforeTemplateClose) { + FormatStyle Style = getGoogleStyle(FormatStyle::LK_Cpp); + Style.ColumnLimit = 0; + verifyNoChange("template \n" +

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

2024-12-21 Thread via cfe-commits
https://github.com/leijurv updated https://github.com/llvm/llvm-project/pull/118046 >From 1caf823165b16f6701993d586df51d5cdbf0885e Mon Sep 17 00:00:00 2001 From: Leijurv Date: Fri, 29 Nov 2024 21:54:36 -0600 Subject: [PATCH 1/4] [clang-format] Add BreakBeforeTemplateClose option --- clang/doc

[clang] 40acaa3 - [clang-format] Fix a crash in `QualifierAlignment: Right` (#120821)

2024-12-21 Thread via cfe-commits
Author: Owen Pan Date: 2024-12-21T17:16:29-08:00 New Revision: 40acaa394fa235796c2d98de87380887c59d5448 URL: https://github.com/llvm/llvm-project/commit/40acaa394fa235796c2d98de87380887c59d5448 DIFF: https://github.com/llvm/llvm-project/commit/40acaa394fa235796c2d98de87380887c59d5448.diff LOG:

[clang] [clang-format] Fix a crash in `QualifierAlignment: Right` (PR #120821)

2024-12-21 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/120821 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] Single byte coverage with branch coverage (PR #113115)

2024-12-21 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni edited https://github.com/llvm/llvm-project/pull/113115 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Mechanically port bulk of x86 builtins to TableGen (PR #120831)

2024-12-21 Thread Chandler Carruth via cfe-commits
chandlerc wrote: A long way from an expert on OpenCL, but it seems to not even have the concept of `long long`, and `long` is defined as a 64-bit type (and just optional for embedded stuff)? https://registry.khronos.org/OpenCL/sdk/3.0/docs/man/html/scalarDataTypes.html https://github.com/llvm

[clang] [Clang] Add __builtin_selectvector and use it for AVX512 intrinsics (PR #91306)

2024-12-21 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 closed https://github.com/llvm/llvm-project/pull/91306 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Remove the `CustomEntry` escape hatch from builtin TableGen (PR #120861)

2024-12-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Chandler Carruth (chandlerc) Changes This was an especially challenging escape hatch because it directly forced the use of a specific X-macro structure and prevented any other form of TableGen emission. The problematic feature that motiv

[clang] Remove the `CustomEntry` escape hatch from builtin TableGen (PR #120861)

2024-12-21 Thread Chandler Carruth via cfe-commits
https://github.com/chandlerc created https://github.com/llvm/llvm-project/pull/120861 This was an especially challenging escape hatch because it directly forced the use of a specific X-macro structure and prevented any other form of TableGen emission. The problematic feature that motivated th

[clang] [clang-format] Fix a crash in `QualifierAlignment: Right` (PR #120821)

2024-12-21 Thread Emilia Kond via cfe-commits
https://github.com/rymiel approved this pull request. https://github.com/llvm/llvm-project/pull/120821 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Mechanically port bulk of x86 builtins to TableGen (PR #120831)

2024-12-21 Thread Chandler Carruth via cfe-commits
chandlerc wrote: > > * Systematically using `Oi` instead of `LLi` for the type `long long int`. > > The `.def` file uses a mixture of `Oi` and `LLi`. I chose the shorter > > encoding. > > The mixture use of `Oi` and `LLi` is a mess, but `Oi` has different meaning > for OpenCL targets. I think

[clang] [clang] fix uefi target for aarch64 & x86_64 (PR #120632)

2024-12-21 Thread Tristan Ross via cfe-commits
@@ -788,16 +789,28 @@ class LLVM_LIBRARY_VISIBILITY ZOSTargetInfo : public OSTargetInfo { // UEFI target template class LLVM_LIBRARY_VISIBILITY UEFITargetInfo : public OSTargetInfo { + llvm::Triple Triple; + protected: void getOSDefines(const LangOptions &Opts, const llv

[clang] [clang] Introduce a new UEFI target predefine. (PR #111719)

2024-12-21 Thread via cfe-commits
Prabhuk wrote: > Didn't know this existed, but we have #120632 tracking it now. Thanks. I left another comment there for @RossComputerGuy to decide on whether to land this patch or not. https://github.com/llvm/llvm-project/pull/111719 ___ cfe-commits

[clang] [clang] fix uefi target for aarch64 & x86_64 (PR #120632)

2024-12-21 Thread via cfe-commits
@@ -788,16 +789,28 @@ class LLVM_LIBRARY_VISIBILITY ZOSTargetInfo : public OSTargetInfo { // UEFI target template class LLVM_LIBRARY_VISIBILITY UEFITargetInfo : public OSTargetInfo { + llvm::Triple Triple; + protected: void getOSDefines(const LangOptions &Opts, const llv

[clang] [clang] Introduce a new UEFI target predefine. (PR #111719)

2024-12-21 Thread via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/111719 >From 05eab970b59c61b22e8afa1ed9381906ae925c03 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Wed, 9 Oct 2024 10:16:58 -0700 Subject: [PATCH 1/6] [clang] Introduce a new UEFI target predefine. --- clang/lib/Bas

[clang] [clang-format] add BinPackLongBracedLists style option (PR #112482)

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

[clang] [clang-format] add BinPackLongBracedLists style option (PR #112482)

2024-12-21 Thread Björn Schäpers via cfe-commits
HazardyKnusperkeks wrote: > > I think it should be merges with `BinPackArguments` to get an enum > > > > * Never > > * TwentyOrAbove (name is debatable) > > * Always > > * (Leave?) > > Currently the 20 item limit is only enforced on C++ initializer lists. Making > it part of the `BinPackArgume

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

2024-12-21 Thread Björn Schäpers via cfe-commits
@@ -1452,6 +1476,7 @@ FormatStyle getLLVMStyle(FormatStyle::LanguageKind Language) { FormatStyle LLVMStyle; LLVMStyle.AccessModifierOffset = -2; LLVMStyle.AlignAfterOpenBracket = FormatStyle::BAS_Align; + LLVMStyle.AlignAfterOpenBracketBreak = {}; Hazar

[clang] [libcxx] [clang][driver] Cleanup UEFI toolchain driver (PR #111473)

2024-12-21 Thread via cfe-commits
@@ -35,6 +35,24 @@ UEFI::UEFI(const Driver &D, const llvm::Triple &Triple, const ArgList &Args) Tool *UEFI::buildLinker() const { return new tools::uefi::Linker(*this); } +void UEFI::AddClangSystemIncludeArgs(const ArgList &DriverArgs, + A

[clang] [Serialization] Migrate away from PointerUnion::get (NFC) (PR #120844)

2024-12-21 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/120844 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Mikołaj Piróg via cfe-commits
https://github.com/mikolaj-pirog edited https://github.com/llvm/llvm-project/pull/120766 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Mikołaj Piróg via cfe-commits
@@ -24,567 +24,3243 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width__(256))) +/// Convert two 128-bit vectors, \a __A and \a __B, containing packed +/// single-precision (32-bit) floating-point elements t

[clang] [clang] Introduce a new UEFI target predefine. (PR #111719)

2024-12-21 Thread via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/111719 >From 05eab970b59c61b22e8afa1ed9381906ae925c03 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Wed, 9 Oct 2024 10:16:58 -0700 Subject: [PATCH 1/5] [clang] Introduce a new UEFI target predefine. --- clang/lib/Bas

[clang] [clang] Introduce a new UEFI target predefine. (PR #111719)

2024-12-21 Thread via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/111719 >From 05eab970b59c61b22e8afa1ed9381906ae925c03 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Wed, 9 Oct 2024 10:16:58 -0700 Subject: [PATCH 1/5] [clang] Introduce a new UEFI target predefine. --- clang/lib/Bas

[clang] [clang][bytecode] Create local scopes for if then/else statements (PR #120852)

2024-12-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes In case those aren't compound statements. --- Full diff: https://github.com/llvm/llvm-project/pull/120852.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+21-6) - (modified) clang

[clang] [clang][bytecode] Create local scopes for if then/else statements (PR #120852)

2024-12-21 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/120852 In case those aren't compound statements. >From a2cf825d002c867804bb65e6f156a87c8da6b07d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 21 Dec 2024 20:04:44 +0100 Subject: [PATCH] [cla

[clang] [clang-format] Fix crashes when the macro expansion is empty (PR #119428)

2024-12-21 Thread Owen Pan via cfe-commits
https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/119428 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix crashes when the macro expansion is empty (PR #119428)

2024-12-21 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/119428 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add readability-use-span-first-last check (PR #118074)

2024-12-21 Thread Denis Mikhailov via cfe-commits
@@ -0,0 +1,149 @@ +// RUN: %check_clang_tidy -std=c++20 %s readability-use-span-first-last %t + +namespace std { +template +class span { + T* ptr; + __SIZE_TYPE__ len; + +public: + span(T* p, __SIZE_TYPE__ l) : ptr(p), len(l) {} + + span subspan(__SIZE_TYPE__ offset) const

[clang-tools-extra] [clang-tidy] Add readability-string-view-substr check (PR #120055)

2024-12-21 Thread Denis Mikhailov via cfe-commits
@@ -0,0 +1,108 @@ +// RUN: %check_clang_tidy %s readability-stringview-substr %t + +namespace std { +template +class basic_string_view { +public: + using size_type = unsigned long; + static constexpr size_type npos = -1; + + basic_string_view(const char*) {} + basic_string_vi

[clang-tools-extra] [clang-tidy] Add readability-string-view-substr check (PR #120055)

2024-12-21 Thread Denis Mikhailov via cfe-commits
@@ -0,0 +1,108 @@ +// RUN: %check_clang_tidy %s readability-stringview-substr %t + +namespace std { +template +class basic_string_view { +public: + using size_type = unsigned long; + static constexpr size_type npos = -1; + + basic_string_view(const char*) {} + basic_string_vi

[clang] [clang-format] Fix crashes when the macro expansion is empty (PR #119428)

2024-12-21 Thread Owen Pan via cfe-commits
@@ -217,6 +219,31 @@ TEST_F(MacroCallReconstructorTest, Identifier) { EXPECT_THAT(std::move(Unexp).takeResult(), matchesLine(line(U.consume("X"; } +TEST_F(MacroCallReconstructorTest, IdentifierObject) { owenca wrote: How about`EmptyDefinition` instead

[clang-tools-extra] [clang-tidy] Added bugprone-exception-rethrow check (PR #86448)

2024-12-21 Thread Denis Mikhailov via cfe-commits
@@ -0,0 +1,103 @@ +// RUN: %check_clang_tidy %s bugprone-exception-rethrow %t -- -- -fexceptions + +struct exception {}; + +namespace std { + template + T&& move(T &&x) { +return static_cast(x); + } +} + +void correct() { + try { + throw exception(); + } catch(const

[clang] [Clang] Prevent assignment to captured structured bindings inside immutable lambda (PR #120849)

2024-12-21 Thread via cfe-commits
https://github.com/TilakChad created https://github.com/llvm/llvm-project/pull/120849 For structured bindings, a call to getCapturedDeclRefType(...) was missing. This PR fixes that behavior and adds the related diagnostics too. This fixes https://github.com/llvm/llvm-project/issues/95081. >F

[clang] [Clang] Prevent assignment to captured structured bindings inside immutable lambda (PR #120849)

2024-12-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: TilakChad (TilakChad) Changes For structured bindings, a call to getCapturedDeclRefType(...) was missing. This PR fixes that behavior and adds the related diagnostics too. This fixes https://github.com/llvm/llvm-project/issues/95081. --

[clang] [Clang] Prevent assignment to captured structured bindings inside immutable lambda (PR #120849)

2024-12-21 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] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Mikołaj Piróg via cfe-commits
https://github.com/mikolaj-pirog edited https://github.com/llvm/llvm-project/pull/120766 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Mikołaj Piróg via cfe-commits
@@ -24,567 +24,3243 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width__(256))) +/// Convert two 128-bit vectors, \a __A and \a __B, containing packed +/// single-precision (32-bit) floating-point elements t

[clang] [compiler-rt] [llvm] Single byte coverage with branch coverage (PR #113115)

2024-12-21 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni edited https://github.com/llvm/llvm-project/pull/113115 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Migrate away from PointerUnion::get (NFC) (PR #120844)

2024-12-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Note that PointerUnion::get has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast I'm not tou

[clang] [Serialization] Migrate away from PointerUnion::get (NFC) (PR #120844)

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

[clang] [Serialization] Migrate away from PointerUnion::get (NFC) (PR #120844)

2024-12-21 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/120844 Note that PointerUnion::get has been soft deprecated in PointerUnion.h: // FIXME: Replace the uses of is(), get() and dyn_cast() with //isa, cast and the llvm::dyn_cast I'm not touching Point

[clang] [Clang][Comments] Allow HTML tags across multiple lines (PR #120843)

2024-12-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: nerix (Nerixyz) Changes HTML starting tags that span multiple lines were previously not allowed (or rather, only the starting line was lexed as HTML). Doxygen allows those tags. This PR allows the starting tags to span multiple lines. The

[clang] [Clang][Comments] Allow HTML tags across multiple lines (PR #120843)

2024-12-21 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] [Clang][Comments] Allow HTML tags across multiple lines (PR #120843)

2024-12-21 Thread via cfe-commits
https://github.com/Nerixyz created https://github.com/llvm/llvm-project/pull/120843 HTML starting tags that span multiple lines were previously not allowed (or rather, only the starting line was lexed as HTML). Doxygen allows those tags. This PR allows the starting tags to span multiple lines.

[clang] [Coverage] Introduce `getBranchCounterPair()`. NFC. (PR #112702)

2024-12-21 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni updated https://github.com/llvm/llvm-project/pull/112702 >From fc697f04fd6c9f3c217ce04e3f1dd082c1f1a705 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 16 Oct 2024 23:16:53 +0900 Subject: [PATCH 1/4] [Coverage] Introduce `getBranchCounterPair()`. NFC. This

[clang] [Coverage] Introduce the type `CounterPair` for RegionCounterMap. NFC. (PR #112724)

2024-12-21 Thread NAKAMURA Takumi via cfe-commits
https://github.com/chapuni updated https://github.com/llvm/llvm-project/pull/112724 >From e4172ca273a6fdfcbfc4662c9e37276ef34c2df4 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Thu, 17 Oct 2024 00:32:26 +0900 Subject: [PATCH 1/3] Introduce the type `CounterPair` for RegionCounterMap `Co

[clang] [Sema] Migrate away from PointerUnion::{is, get} (NFC) (PR #120829)

2024-12-21 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/120829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1e146df - [Sema] Migrate away from PointerUnion::{is,get} (NFC) (#120829)

2024-12-21 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-12-21T08:17:41-08:00 New Revision: 1e146dfb4fc82229c17ba5a7da847d87de214351 URL: https://github.com/llvm/llvm-project/commit/1e146dfb4fc82229c17ba5a7da847d87de214351 DIFF: https://github.com/llvm/llvm-project/commit/1e146dfb4fc82229c17ba5a7da847d87de214351.diff L

[clang] [llvm] Depot runners pgo (PR #120777)

2024-12-21 Thread Tom Stellard via cfe-commits
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/120777 >From cb87398ea7f654559799ff7f79f292842832c29c Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Wed, 20 Nov 2024 20:59:38 -0800 Subject: [PATCH 01/12] Workflows: Use new depot runners for x86 Linux release bu

[clang] Mechanically port bulk of x86 builtins to TableGen (PR #120831)

2024-12-21 Thread Phoebe Wang via cfe-commits
phoebewang wrote: > * Systematically using `Oi` instead of `LLi` for the type `long long int`. > The `.def` file uses a mixture of `Oi` and `LLi`. I chose the shorter > encoding. The mixture use of `Oi` and `LLi` is a mess, but `Oi` has different meaning for OpenCL targets. I think we should

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

2024-12-21 Thread Phoebe Wang via cfe-commits
@@ -245,6 +245,7 @@ class LangOptionsBase { /// construction vtable because it hasn't added 'type' as a substitution. /// - Skip mangling enclosing class templates of member-like friend /// function templates. +/// - Incorrectly return C++ records in AVX

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Phoebe Wang via cfe-commits
phoebewang wrote: We cannot let clang-format to format it. Maybe use `clang-format off` to turn it off. https://github.com/llvm/llvm-project/pull/120766 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Phoebe Wang via cfe-commits
@@ -24,567 +24,3243 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width__(256))) +/// Convert two 128-bit vectors, \a __A and \a __B, containing packed +/// single-precision (32-bit) floating-point elements t

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Phoebe Wang via cfe-commits
@@ -24,567 +24,3243 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width__(256))) +/// Convert two 128-bit vectors, \a __A and \a __B, containing packed +/// single-precision (32-bit) floating-point elements t

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Phoebe Wang via cfe-commits
@@ -24,567 +24,3243 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width__(256))) +/// Convert two 128-bit vectors, \a __A and \a __B, containing packed +/// single-precision (32-bit) floating-point elements t

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Phoebe Wang via cfe-commits
@@ -24,567 +24,3243 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width__(256))) +/// Convert two 128-bit vectors, \a __A and \a __B, containing packed +/// single-precision (32-bit) floating-point elements t

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Phoebe Wang via cfe-commits
@@ -24,567 +24,3243 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width__(256))) +/// Convert two 128-bit vectors, \a __A and \a __B, containing packed +/// single-precision (32-bit) floating-point elements t

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Phoebe Wang via cfe-commits
@@ -24,567 +24,3243 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width__(256))) +/// Convert two 128-bit vectors, \a __A and \a __B, containing packed +/// single-precision (32-bit) floating-point elements t

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Phoebe Wang via cfe-commits
@@ -24,567 +24,3243 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width__(256))) +/// Convert two 128-bit vectors, \a __A and \a __B, containing packed +/// single-precision (32-bit) floating-point elements t

[clang] [X86][AVX10.2] Add comments for the avx10_2convertintrin.h file (PR #120766)

2024-12-21 Thread Phoebe Wang via cfe-commits
@@ -24,567 +24,3243 @@ __attribute__((__always_inline__, __nodebug__, __target__("avx10.2-256"), \ __min_vector_width__(256))) +/// Convert two 128-bit vectors, \a __A and \a __B, containing packed +/// single-precision (32-bit) floating-point elements t

[clang] [Sema] Migrate away from PointerUnion::{is, get} (NFC) (PR #120829)

2024-12-21 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. https://github.com/llvm/llvm-project/pull/120829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] use specified type verbatim in modernize-use-using fix (PR #113837)

2024-12-21 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti closed https://github.com/llvm/llvm-project/pull/113837 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] f77152d - [clang-tidy] use specified type verbatim in modernize-use-using fix (#113837)

2024-12-21 Thread via cfe-commits
Author: Julian Schmidt Date: 2024-12-21T13:06:30+01:00 New Revision: f77152d9a44b49ee38b15085034bbfe22b4b3992 URL: https://github.com/llvm/llvm-project/commit/f77152d9a44b49ee38b15085034bbfe22b4b3992 DIFF: https://github.com/llvm/llvm-project/commit/f77152d9a44b49ee38b15085034bbfe22b4b3992.diff

  1   2   >