[clang] [AMDGPU][Clang] Support for type inferring extended image builtins for AMDGPU (PR #164358)

2025-10-26 Thread Rana Pratap Reddy via cfe-commits
@@ -3,7 +3,7 @@ typedef int int4 __attribute__((ext_vector_type(4))); typedef float float4 __attribute__((ext_vector_type(4))); -typedef half half4 __attribute__((ext_vector_type(4))); +typedef _Float16 half4 __attribute__((ext_vector_type(4))); ranapratap55 w

[clang] [AMDGPU][Clang] Support for type inferring extended image builtins for AMDGPU (PR #164358)

2025-10-26 Thread Rana Pratap Reddy via cfe-commits
@@ -889,75 +889,116 @@ TARGET_BUILTIN(__builtin_amdgcn_cooperative_atomic_store_8x16B, "vV4i*V4iIicC*", // Image builtins //===--===// TARGET_BUILTIN(__builtin_amdgcn_image_load_1d_v4f32_i32, "V4fiiQtii", "nc

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

2025-10-26 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] [clang] Fix size and alignment of packed sub-byte integer vectors (PR #161796)

2025-10-26 Thread Steffen Larsen via cfe-commits
https://github.com/steffenlarsen updated https://github.com/llvm/llvm-project/pull/161796 >From 545a9dfc6abcb1c9a5c39c65c2aa1de2436f4ac9 Mon Sep 17 00:00:00 2001 From: "Larsen, Steffen" Date: Thu, 2 Oct 2025 22:56:47 -0700 Subject: [PATCH 1/4] [clang] Fix size and alignment of packed sub-byte i

[clang] [clang][HLSL] Fix include guard typo in hlsl_compat_overloads.h (PR #164540)

2025-10-26 Thread Krisitan Erik Olsen via cfe-commits
https://github.com/Kristianerik updated https://github.com/llvm/llvm-project/pull/164540 >From ea81ce0fb2440d0b12497fca7adfd08f3043f31e Mon Sep 17 00:00:00 2001 From: Kristianerik <[email protected]> Date: Tue, 21 Oct 2025 19:01:36 -0700 Subject: [PATCH] Fix include

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-10-26 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,584 @@ +//===-- SemaExpand.cpp - Semantic Analysis for Expansion Statements===// +// +// 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: Ap

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-10-26 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/165195 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-10-26 Thread via cfe-commits
@@ -0,0 +1,584 @@ +//===-- SemaExpand.cpp - Semantic Analysis for Expansion Statements===// +// +// 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: Ap

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-10-26 Thread via cfe-commits
@@ -2393,9 +2413,13 @@ ExprResult TemplateInstantiator::TransformFunctionParmPackRefExpr(DeclRefExpr *E, ValueDecl *PD) { typedef LocalInstantiationScope::DeclArgumentPack DeclArgumentPack; - llvm::PointerUnion *Found -

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-10-26 Thread via cfe-commits
@@ -0,0 +1,584 @@ +//===-- SemaExpand.cpp - Semantic Analysis for Expansion Statements===// +// +// 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: Ap

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-10-26 Thread via cfe-commits
@@ -0,0 +1,584 @@ +//===-- SemaExpand.cpp - Semantic Analysis for Expansion Statements===// +// +// 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: Ap

[clang-tools-extra] [clang-tidy] Add new check 'bugprone-inconsistent-ifelse-braces' (PR #162361)

2025-10-26 Thread Yanzuo Liu via cfe-commits
@@ -0,0 +1,41 @@ +//===--===// +// +// 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: Apac

[clang-tools-extra] [clang-tidy][NFC] Fix various clang-tidy warning on headers 1/N (PR #165175)

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

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

2025-10-26 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook approved this pull request. LGTM, but same question as in the open review comment https://github.com/llvm/llvm-project/pull/165172 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mail

[libclc] a61e016 - [libclc] Implement integer __clc_abs using __builtin_elementwise_abs (#164957)

2025-10-26 Thread via cfe-commits
Author: Wenju He Date: 2025-10-27T12:58:14+08:00 New Revision: a61e016565409b6a6620422dd915e591ea75f998 URL: https://github.com/llvm/llvm-project/commit/a61e016565409b6a6620422dd915e591ea75f998 DIFF: https://github.com/llvm/llvm-project/commit/a61e016565409b6a6620422dd915e591ea75f998.diff LOG:

[libclc] [libclc] Implement integer __clc_abs using __builtin_elementwise_abs (PR #164957)

2025-10-26 Thread Wenju He via cfe-commits
https://github.com/wenju-he closed https://github.com/llvm/llvm-project/pull/164957 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Implement integer __clc_abs using __builtin_elementwise_abs (PR #164957)

2025-10-26 Thread Wenju He via cfe-commits
@@ -6,7 +6,14 @@ // //===--===// +#ifdef __CLC_GEN_S wenju-he wrote: > I'm surprised this didnt' fold in instcombine anyway? You're right. Thanks for the insight. I have created a PR to fix

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-10-26 Thread Younan Zhang via cfe-commits
@@ -0,0 +1,584 @@ +//===-- SemaExpand.cpp - Semantic Analysis for Expansion Statements===// +// +// 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: Ap

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-10-26 Thread Younan Zhang via cfe-commits
@@ -0,0 +1,584 @@ +//===-- SemaExpand.cpp - Semantic Analysis for Expansion Statements===// +// +// 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: Ap

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-10-26 Thread Younan Zhang via cfe-commits
@@ -0,0 +1,584 @@ +//===-- SemaExpand.cpp - Semantic Analysis for Expansion Statements===// +// +// 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: Ap

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-10-26 Thread Younan Zhang via cfe-commits
@@ -2393,9 +2413,13 @@ ExprResult TemplateInstantiator::TransformFunctionParmPackRefExpr(DeclRefExpr *E, ValueDecl *PD) { typedef LocalInstantiationScope::DeclArgumentPack DeclArgumentPack; - llvm::PointerUnion *Found -

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-10-26 Thread Younan Zhang via cfe-commits
@@ -0,0 +1,584 @@ +//===-- SemaExpand.cpp - Semantic Analysis for Expansion Statements===// +// +// 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: Ap

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

2025-10-26 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook closed 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-tools-extra] 81de861 - [clang-tidy] Add new check: `readability-redundant-typename` (#161574)

2025-10-26 Thread via cfe-commits
Author: Victor Chernyakin Date: 2025-10-26T21:38:02-07:00 New Revision: 81de86123fcf376b3833fdb1448ceb7b74064383 URL: https://github.com/llvm/llvm-project/commit/81de86123fcf376b3833fdb1448ceb7b74064383 DIFF: https://github.com/llvm/llvm-project/commit/81de86123fcf376b3833fdb1448ceb7b74064383.d

[clang-tools-extra] [clang-tidy][NFC] Remove unused parameter in function (PR #164202)

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

[clang-tools-extra] 3b8f63d - [clang-tidy][NFC] Remove unused parameter in function (#164202)

2025-10-26 Thread via cfe-commits
Author: Victor Chernyakin Date: 2025-10-26T21:36:05-07:00 New Revision: 3b8f63dcc9d831d84f75bebde28b0c0eb27b66ff URL: https://github.com/llvm/llvm-project/commit/3b8f63dcc9d831d84f75bebde28b0c0eb27b66ff DIFF: https://github.com/llvm/llvm-project/commit/3b8f63dcc9d831d84f75bebde28b0c0eb27b66ff.d

[clang] [Clang] Fix a wrong diagnostic about a local variable inside a lambda in unevaluated context need capture (PR #165098)

2025-10-26 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 commented: FYI @mizvekov is working on a large patch that resolves a lot of lambda context related bugs and aims to remove these workarounds in the end. https://github.com/llvm/llvm-project/pull/165098 ___ cfe-commits mailin

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-10-26 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 origin/main HEAD --extensions h,cpp -- clang/lib/Sema/SemaExpand.cpp clang/test/AST/a

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: None (Sirraide) Changes This adds support for [expansion statements](https://wg21.link/P1306R5) (aka `template for`) to Clang. The implementation is based in part on @katzdm’s fork, so I’m adding him as a co-author whenever this is

[clang] [Clang] [C++26] Implement P1306R5 Expansion Statements (PR #165195)

2025-10-26 Thread via cfe-commits
Sirraide wrote: CC @katzdm https://github.com/llvm/llvm-project/pull/165195 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen][CIR][NFC] Refactor CGCXXABI classes for code sharing (PR #165078)

2025-10-26 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/165078 >From ba2b1d6a36b0163ddc2bb99d66018e94fe8a149f Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Fri, 24 Oct 2025 16:54:26 -0700 Subject: [PATCH 1/2] [Clang][CodeGen][NFC] Refactor CGCXXABI classes for code s

[clang] [flang] [llvm] [OpenMP] Add parser/semantic support for dyn_groupprivate clause (PR #152651)

2025-10-26 Thread Kevin Sala Penades via cfe-commits
https://github.com/kevinsala updated https://github.com/llvm/llvm-project/pull/152651 >From 099c502bdf02ed9bc34bbfc70a6e786746ecee90 Mon Sep 17 00:00:00 2001 From: Kevin Sala Date: Fri, 8 Aug 2025 10:43:52 -0700 Subject: [PATCH 1/9] [OpenMP] Add parser/semantic support for dyn_groupprivate cla

[clang] [flang] [llvm] [OpenMP] Add parser/semantic support for dyn_groupprivate clause (PR #152651)

2025-10-26 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 origin/main HEAD --extensions h,cpp -- clang/test/OpenMP/target_dyn_groupprivate_mess

[clang] [flang] [llvm] [OpenMP] Add parser/semantic support for dyn_groupprivate clause (PR #152651)

2025-10-26 Thread Kevin Sala Penades via cfe-commits
https://github.com/kevinsala updated https://github.com/llvm/llvm-project/pull/152651 >From 099c502bdf02ed9bc34bbfc70a6e786746ecee90 Mon Sep 17 00:00:00 2001 From: Kevin Sala Date: Fri, 8 Aug 2025 10:43:52 -0700 Subject: [PATCH 1/8] [OpenMP] Add parser/semantic support for dyn_groupprivate cla

[clang] [llvm] [RISCV] Support Zvfofp4min assembler version 0.1 (PR #164820)

2025-10-26 Thread Jim Lin via cfe-commits
https://github.com/tclin914 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/164820 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Support Zvfofp4min assembler version 0.1 (PR #164820)

2025-10-26 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat updated https://github.com/llvm/llvm-project/pull/164820 >From 0284d120e4d54693e8ef63e53bc8a42de3a08993 Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Tue, 29 Apr 2025 13:54:26 +0800 Subject: [PATCH 1/3] [RISCV] Support Zvfofp4min assembler version 0.1 OFP4 conversi

[clang] [clang][bytecode] Fix crash when array index is past end of array in C (PR #165186)

2025-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (camc) Changes Fixes #165090 Make sure to reject invalid pointer offsets in C, when the pointer is to an array. --- Full diff: https://github.com/llvm/llvm-project/pull/165186.diff 2 Files Affected: - (modified) clang/lib/AST/Byt

[clang] [clang][bytecode] Fix crash when array index is past end of array in C (PR #165186)

2025-10-26 Thread via cfe-commits
https://github.com/camc edited https://github.com/llvm/llvm-project/pull/165186 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Fix crash when array index is past end of array in C (PR #165186)

2025-10-26 Thread via cfe-commits
https://github.com/camc created https://github.com/llvm/llvm-project/pull/165186 Fixes #165090 Make sure to reject invalid pointer offsets in C, when the pointer is to an array. >From aab918e4bf4fae38abbefa797637ff3e7e063948 Mon Sep 17 00:00:00 2001 From: camc Date: Mon, 27 Oct 2025 02:02:04

[clang] [llvm] [RegisterCoalescer] Improve register allocation for return values by limiting rematerialization (PR #163047)

2025-10-26 Thread guan jian via cfe-commits
rez5427 wrote: @arsenm @preames @lukel97 @aengelke ping https://github.com/llvm/llvm-project/pull/163047 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [UBSan] Add check that detects division by zero for fixed-point types (PR #165181)

2025-10-26 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/165181 >From f6574b6b59b91ce299fa6977b2b326aae0bf235d Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sun, 26 Oct 2025 16:57:54 -0700 Subject: [PATCH 1/2] [UBSan] Add check that detects division by zero for

[clang] [compiler-rt] [UBSan] Add check that detects division by zero for fixed-point types (PR #165181)

2025-10-26 Thread Victor Chernyakin via cfe-commits
@@ -149,7 +151,7 @@ SANITIZER("shadow-call-stack", ShadowCallStack) // ABI or address space layout implications, and only catch undefined behavior. SANITIZER_GROUP("undefined", Undefined, Alignment | Bool | Builtin | ArrayBounds | Enum | -Flo

[clang] [compiler-rt] [UBSan] Add check that detects division by zero for fixed-point types (PR #165181)

2025-10-26 Thread Vitaly Buka via cfe-commits
@@ -149,7 +151,7 @@ SANITIZER("shadow-call-stack", ShadowCallStack) // ABI or address space layout implications, and only catch undefined behavior. SANITIZER_GROUP("undefined", Undefined, Alignment | Bool | Builtin | ArrayBounds | Enum | -Flo

[clang] [compiler-rt] [UBSan] Add check that detects division by zero for fixed-point types (PR #165181)

2025-10-26 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/165181 >From f6574b6b59b91ce299fa6977b2b326aae0bf235d Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sun, 26 Oct 2025 16:57:54 -0700 Subject: [PATCH] [UBSan] Add check that detects division by zero for fixe

[clang] [compiler-rt] [UBSan] Add check that detects division by zero for fixed-point types (PR #165181)

2025-10-26 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/165181 None >From f6574b6b59b91ce299fa6977b2b326aae0bf235d Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sun, 26 Oct 2025 16:57:54 -0700 Subject: [PATCH] [UBSan] Add check that detects division by zero for

[clang] [llvm] [RISCV] Support Zvfofp4min assembler version 0.1 (PR #164820)

2025-10-26 Thread Jim Lin via cfe-commits
@@ -740,6 +740,14 @@ def HasStdExtZvfbfminOrZvfofp8min "'Zvfbfmin' (Vector BF16 Converts) or " "'Zvfofp8min' (Vector OFP8 Converts)">; +def FeatureStdExtZvfofp4min tclin914 wrote: Should we put this before `Zv

[clang-tools-extra] [Docs][clang-tools-extra] Convert maintainers list to .rst format (PR #165171)

2025-10-26 Thread via cfe-commits
@@ -2,9 +2,13 @@ Clang Tools Extra Maintainers = -This file is a list of the maintainers -(https://llvm.org/docs/DeveloperPolicy.html#maintainers) for clang-tools-extra. +This file is a list of the +`maintainers

[clang-tools-extra] [clang-tidy][NFC] Fix various clang-tidy warning on headers 1/N (PR #165175)

2025-10-26 Thread via cfe-commits
https://github.com/EugeneZelenko approved this pull request. But please wait for other reviewers. https://github.com/llvm/llvm-project/pull/165175 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/c

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

2025-10-26 Thread via cfe-commits
@@ -29,6 +29,7 @@ AST_MATCHER(Stmt, isMacroExpansion) { AST_MATCHER(Stmt, isC23) { return Finder->getASTContext().getLangOpts().C23; } +// NOLINTNEXTLINE(llvm-prefer-static-over-anonymous-namespace) EugeneZelenko wrote: Ditto. https://github.com/llvm/llvm-p

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

2025-10-26 Thread via cfe-commits
@@ -20,6 +20,7 @@ namespace clang::tidy::bugprone { namespace { +// NOLINTNEXTLINE(llvm-prefer-static-over-anonymous-namespace) EugeneZelenko wrote: Why exception is needed here? https://github.com/llvm/llvm-project/pull/165172 _

[clang-tools-extra] [clang-tidy][NFC] Fix various clang-tidy warning on headers 1/N (PR #165175)

2025-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Baranov Victor (vbvictor) Changes Started running `clang-tidy` on our clang-tidy headers. This part covers what `clang-tidy` could fix automatically (with `--fix` option). The main goal is to enable `HeaderFilterRegex: 'clang

[clang-tools-extra] [clang-tidy][NFC] Fix various clang-tidy warning on headers 1/N (PR #165175)

2025-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Baranov Victor (vbvictor) Changes Started running `clang-tidy` on our clang-tidy headers. This part covers what `clang-tidy` could fix automatically (with `--fix` option). The main goal is to enable `HeaderFilterRegex: 'clang-tools-

[clang-tools-extra] [clang-tidy][NFC] Fix various clang-tidy warning on headers 1/N (PR #165175)

2025-10-26 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor created https://github.com/llvm/llvm-project/pull/165175 Started running `clang-tidy` on our clang-tidy headers. This part covers what `clang-tidy` could fix automatically (with `--fix` option). The main goal is to enable `HeaderFilterRegex: 'clang-tools-extra/clan

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

2025-10-26 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/165172 >From e611d88083e9ea0bb0e7dd6371b19587e745ccae Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Sun, 26 Oct 2025 23:56:03 +0300 Subject: [PATCH 1/2] [clang-tidy][NFC] Fix llvm-prefer-static-over-anonymous-n

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

2025-10-26 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 origin/main HEAD --extensions cpp -- clang-tools-extra/clang-tidy/bugprone/InvalidEnu

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

2025-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Baranov Victor (vbvictor) Changes Continue https://github.com/llvm/llvm-project/pull/153885. Final part. --- Patch is 21.74 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/165172.dif

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

2025-10-26 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor created https://github.com/llvm/llvm-project/pull/165172 Continue https://github.com/llvm/llvm-project/pull/153885. Final part. >From e611d88083e9ea0bb0e7dd6371b19587e745ccae Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Sun, 26 Oct 2025 23:56:03 +0300 Subject

[clang] [clang] Proofread ClangOffloadBundler.rst (PR #165136)

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

[clang] abdef44 - [clang] Proofread ClangOffloadBundler.rst (#165136)

2025-10-26 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-10-26T13:34:07-07:00 New Revision: abdef44814e8b6916107840a4aecf4cd085770ba URL: https://github.com/llvm/llvm-project/commit/abdef44814e8b6916107840a4aecf4cd085770ba DIFF: https://github.com/llvm/llvm-project/commit/abdef44814e8b6916107840a4aecf4cd085770ba.diff L

[clang-tools-extra] [Docs][clang-tools-extra] Convert maintainers list to .rst format (PR #165171)

2025-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Baranov Victor (vbvictor) Changes [Clang maintainers list](https://github.com/llvm/llvm-project/blob/main/clang/Maintainers.rst) is already in `.rst` format, which gives nice visuals. I think we should convert clang-tools-extr

[clang-tools-extra] [Docs][clang-tools-extra] Convert maintainers list to .rst format (PR #165171)

2025-10-26 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor created https://github.com/llvm/llvm-project/pull/165171 [Clang maintainers list](https://github.com/llvm/llvm-project/blob/main/clang/Maintainers.rst) is already in `.rst` format, which gives nice visuals. I think we should convert clang-tools-extra maintainers too

[clang-tools-extra] [clang-tidy] Emit warnings from user headers by default (PR #164165)

2025-10-26 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/164165 >From 2617825b31af641258450c2210cde414bbb96723 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Sun, 19 Oct 2025 18:16:12 +0300 Subject: [PATCH 1/3] [clang-tidy] Emit warnings from headers by default --- .

[clang-tools-extra] [clang-tidy] Emit warnings from user headers by default (PR #164165)

2025-10-26 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/164165 >From 2617825b31af641258450c2210cde414bbb96723 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Sun, 19 Oct 2025 18:16:12 +0300 Subject: [PATCH 1/2] [clang-tidy] Emit warnings from headers by default --- .

[clang-tools-extra] [clang-tidy] Emit warnings from user headers by default (PR #164165)

2025-10-26 Thread Baranov Victor via cfe-commits
@@ -133,13 +133,15 @@ file, if any. static cl::opt HeaderFilter("header-filter", desc(R"( Regular expression matching the names of the headers to output diagnostics from. Diagnostics -from the main file of each translation unit are -always displayed. +from the main file and all

[clang-tools-extra] [clang-tidy] Emit warnings from user headers by default (PR #164165)

2025-10-26 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/164165 >From 2582871583b632de671ee4a2900bf35726d6b9c4 Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Sun, 19 Oct 2025 18:16:12 +0300 Subject: [PATCH 1/2] [clang-tidy] Emit warnings from headers by default --- .

[clang] [clang-tools-extra] [llvm] [clang]: reflection operator parsing for global namespace and primitive types (PR #164692)

2025-10-26 Thread Nhat Nguyen via cfe-commits
https://github.com/changkhothuychung updated https://github.com/llvm/llvm-project/pull/164692 error: too big or took too long to generate ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [Clang] Drop Shell Requirements (PR #165149)

2025-10-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-s390x-linux` running on `systemz-1` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/42/builds/6700 Here is the relevant piece of the build log f

[clang-tools-extra] [clang-tidy] New option to remove arguments from the command line (PR #164344)

2025-10-26 Thread Baranov Victor via cfe-commits
=?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin Message-ID: In-Reply-To: @@ -112,6 +112,9 @@ struct ClangTidyOptions { /// comments in the relevant check. std::optional U

[clang-tools-extra] [clang-tidy] New option to remove arguments from the command line (PR #164344)

2025-10-26 Thread Baranov Victor via cfe-commits
=?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin Message-ID: In-Reply-To: @@ -112,6 +112,9 @@ struct ClangTidyOptions { /// comments in the relevant check. std::optional U

[clang-tools-extra] [clang-tidy] New option to remove arguments from the command line (PR #164344)

2025-10-26 Thread Baranov Victor via cfe-commits
=?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin Message-ID: In-Reply-To: @@ -0,0 +1,7 @@ +// RUN: not clang-tidy %s -- -fnot-an-option | FileCheck %s -check-prefix=INVALID-A +

[clang-tools-extra] [clang-tidy] New option to remove arguments from the command line (PR #164344)

2025-10-26 Thread Baranov Victor via cfe-commits
=?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin Message-ID: In-Reply-To: @@ -167,6 +167,9 @@ Improvements to clang-tidy scripts by adding the `-hide-progress` option to supp

[clang-tools-extra] [clang-tidy] New option to remove arguments from the command line (PR #164344)

2025-10-26 Thread Baranov Victor via cfe-commits
=?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin Message-ID: In-Reply-To: @@ -355,6 +356,16 @@ see https://clang.llvm.org/extra/clang-tidy/QueryBasedCustomChecks.html.

[clang] [Clang] Drop Shell Requirements (PR #165149)

2025-10-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-darwin` running on `doug-worker-3` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/23/builds/15002 Here is the

[clang] [clang] Proofread ClangOffloadBundler.rst (PR #165136)

2025-10-26 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/165136 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Drop Shell Requirements (PR #165149)

2025-10-26 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/24543 Here is the relevant pie

[clang-tools-extra] [clang-tidy] New option to remove arguments from the command line (PR #164344)

2025-10-26 Thread Carlos Galvez via cfe-commits
=?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin Message-ID: In-Reply-To: https://github.com/carlosgalvezp edited https://github.com/llvm/llvm-project/pull/164344 __

[clang-tools-extra] [clang-tidy] New option to remove arguments from the command line (PR #164344)

2025-10-26 Thread Carlos Galvez via cfe-commits
=?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin, =?utf-8?q?Félix-Antoine?= Constantin Message-ID: In-Reply-To: @@ -355,6 +356,16 @@ see https://clang.llvm.org/extra/clang-tidy/QueryBasedCustomChecks.html.

[clang] [flang] [flang][Driver] Enable -pie and -no-pie in flang's driver (PR #164890)

2025-10-26 Thread Tarun Prabhu via cfe-commits
tarunprabhu wrote: Per @MaskRay's comment, I have changed the name of `flang/test/Driver/misc-flags.f90` to `flang/test/Driver/linker-options.f90`. There is another test in `flang/test/Driver` named `linker-flags.f90`. Looking at the contents of that file, I think renaming it `link-libs.f90` w

[clang] [flang] [flang][Driver] Enable -pie and -no-pie in flang's driver (PR #164890)

2025-10-26 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu updated https://github.com/llvm/llvm-project/pull/164890 >From 3189a023e52154c37e72ed112c0fe2664a16cd69 Mon Sep 17 00:00:00 2001 From: Tarun Prabhu Date: Thu, 23 Oct 2025 14:41:02 -0600 Subject: [PATCH 1/2] [flang][Driver] Enable -pie and -no-pie in flang's driver

[clang] [Clang] Drop Shell Requirements (PR #165149)

2025-10-26 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 closed https://github.com/llvm/llvm-project/pull/165149 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f767f23 - [Clang] Drop Shell Requirements (#165149)

2025-10-26 Thread via cfe-commits
Author: Aiden Grossman Date: 2025-10-26T11:05:24-07:00 New Revision: f767f231e8ba0cb53d9dbadba3e9c75138f03f09 URL: https://github.com/llvm/llvm-project/commit/f767f231e8ba0cb53d9dbadba3e9c75138f03f09 DIFF: https://github.com/llvm/llvm-project/commit/f767f231e8ba0cb53d9dbadba3e9c75138f03f09.diff

[clang] [Clang] Drop Shell Requirements (PR #165149)

2025-10-26 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/165149 >From 8b23c143db457ae7a1a803b1bdc4249840ef774c Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Sun, 26 Oct 2025 08:40:24 + Subject: [PATCH 1/2] [Clang] Drop Shell Requirements These are basically

[clang] [X86][Clang] Allow constexpr evaluation of F16C CVTPS2PH intrinsics (PR #162295)

2025-10-26 Thread Simon Pilgrim via cfe-commits
@@ -3002,6 +3002,91 @@ static bool interp__builtin_vec_set(InterpState &S, CodePtr OpPC, return true; } +static bool interp__builtin_ia32_vcvtps2ph(InterpState &S, CodePtr OpPC, + const CallExpr *Call) { + // Arguments are: vector

[clang] [X86][Clang] Allow constexpr evaluation of F16C CVTPS2PH intrinsics (PR #162295)

2025-10-26 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: I just meant the AVX512F/VL variants vcvtps2ph_mask / vcvtps2ph256_mask / __builtin_ia32_vcvtps2ph512_mask - those should just require additional handling for the getNumArgs() == 4 masked variant. But I'm happy for this just to focus on the F16C cases if you prefer to iterate i

[clang] [clang] Proofread ClangOffloadBundler.rst (PR #165136)

2025-10-26 Thread Kazu Hirata via cfe-commits
@@ -312,7 +312,7 @@ Target ID = A target ID is used to indicate the processor and optionally its configuration, -expressed by a set of target features, that affect ISA generation. It is target +expressed by a set of target features that affect ISA generation. It is tar

[clang] [clang] Proofread ClangOffloadBundler.rst (PR #165136)

2025-10-26 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata updated https://github.com/llvm/llvm-project/pull/165136 >From 309a55e2dc2b1d2c5d5da9a866d80507e140dc93 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 25 Oct 2025 20:22:30 -0700 Subject: [PATCH 1/2] [clang] Proofread ClangOffloadBundler.rst --- clang/d

[clang] [clang] Proofread ClangOffloadBundler.rst (PR #165136)

2025-10-26 Thread Shilei Tian via cfe-commits
@@ -312,7 +312,7 @@ Target ID = A target ID is used to indicate the processor and optionally its configuration, -expressed by a set of target features, that affect ISA generation. It is target +expressed by a set of target features that affect ISA generation. It is tar

[clang] [CIR] Upstream non-empty Try block with catch all (PR #165158)

2025-10-26 Thread Amr Hesham via cfe-commits
AmrDeveloper wrote: Notes: - Lowering to LLVM will be a follow-up PR to make it easy to review. - In the handler block, I inserted YieldOp as a terminator until https://github.com/llvm/llvm-project/pull/165110 is merged https://github.com/llvm/llvm-project/pull/165158 _

[clang] [CIR] Upstream non-empty Try block with catch all (PR #165158)

2025-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Upstream support for try block and catch all block with a function call that may throw an exception. Issue https://github.com/llvm/llvm-project/issues/154992 --- Patch is 26.61 KiB, truncated to 20.00 K

[clang] [CIR] Upstream non-empty Try block with catch all (PR #165158)

2025-10-26 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/165158 Upstream support for try block and catch all block with a function call that may throw an exception. Issue https://github.com/llvm/llvm-project/issues/154992 >From f8393c73b0062ea7afa011b2ee57c6d5481a7388

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

2025-10-26 Thread via cfe-commits
https://github.com/Men-cotton updated https://github.com/llvm/llvm-project/pull/162105 >From ecebae00d63925bffeae4d23a12af83954e6165b Mon Sep 17 00:00:00 2001 From: mencotton Date: Tue, 7 Oct 2025 23:14:20 +0900 Subject: [PATCH] [clang-format] Add SpaceInComments controls for block comment del

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

2025-10-26 Thread via cfe-commits
@@ -332,6 +332,181 @@ TEST_F(FormatTestComments, UnderstandsSingleLineComments) { verifyNoCrash(StringRef("/*\\\0\n/", 6)); } +TEST_F(FormatTestComments, InsertsSpaceAfterOpeningBlockComment) { + FormatStyle Style = getLLVMStyle(); + Style.SpaceInComments.AfterOpeningComm

[clang] [llvm] [HLSL][DXIL][SPRIV] Added WaveActiveMin intrinsic (PR #164385)

2025-10-26 Thread Sietze Riemersma via cfe-commits
KungFuDonkey wrote: What is the process now to get this merged? I cannot click the merge button here https://github.com/llvm/llvm-project/pull/164385 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinf

[clang-tools-extra] [clang-tidy] New option to remove arguments from the command line (PR #164344)

2025-10-26 Thread Félix-Antoine Constantin via cfe-commits
@@ -355,6 +356,16 @@ see https://clang.llvm.org/extra/clang-tidy/QueryBasedCustomChecks.html. cl::init(false), cl::cat(ClangTidyCategory)); +static cl::list RemovedArgs("removed-arg",

[clang] [llvm] [HLSL][DXIL][SPIRV] Added WaveActiveBitOr HLSL intrinsic (PR #165156)

2025-10-26 Thread Sietze Riemersma via cfe-commits
https://github.com/KungFuDonkey edited https://github.com/llvm/llvm-project/pull/165156 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][DXIL][SPIRV] Added WaveActiveBitOr HLSL intrinsic (PR #165156)

2025-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl @llvm/pr-subscribers-clang Author: Sietze Riemersma (KungFuDonkey) Changes Adds the WaveActiveBitOr intrinsic. This intrinsic required a bit more work than the last intrinsics that I have done. There are some peculiarities, which I verified with

[clang] [llvm] [HLSL][DXIL][SPIRV] Added WaveActiveBitOr HLSL intrinsic (PR #165156)

2025-10-26 Thread Sietze Riemersma via cfe-commits
https://github.com/KungFuDonkey edited https://github.com/llvm/llvm-project/pull/165156 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][DXIL][SPIRV] Added WaveActiveBitOr HLSL intrinsic (PR #165156)

2025-10-26 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] [llvm] [HLSL][DXIL][SPIRV] Added WaveActiveBitOr HLSL intrinsic (PR #165156)

2025-10-26 Thread Sietze Riemersma via cfe-commits
https://github.com/KungFuDonkey created https://github.com/llvm/llvm-project/pull/165156 Adds the WaveActiveBitOr intrinsic. This intrinsic required a bit more work than the last intrinsics that I have done. There are some peculiarities, which I verified with dxcompiler: - WaveActiveBitOr onl

[clang] [CIR] Upstream Try block with only noexcept calls (PR #165153)

2025-10-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Upstream try block with only noexcept calls inside, which doesn't need to be converted to TryCallOp Issue https://github.com/llvm/llvm-project/issues/154992 --- Full diff: https://github.com/llvm/llvm-pr

  1   2   >