@@ -130,7 +130,10 @@ int main(void) {
P(object_size, (s0, 3));
// Whatever
-
+ P(bswapg, ((char)N));
+ P(bswapg, ((short)N));
+ P(bswapg, ((int)N));
+ P(bswapg, ((unsigned long)N));
clingfei wrote:
Added, thanks!
And I fixed another failure reported
https://github.com/clingfei updated
https://github.com/llvm/llvm-project/pull/162433
>From 92466f3789ce1849ebee8a405efd42e191c591f5 Mon Sep 17 00:00:00 2001
From: clingfei <[email protected]>
Date: Wed, 8 Oct 2025 15:05:44 +0800
Subject: [PATCH 01/13] [Clang] Add __builtin_bswapg
---
clang/inc
@@ -665,22 +664,21 @@ void WhitespaceManager::alignConsecutiveMacros() {
// If token is a ")", skip over the parameter list, to the
// token that precedes the "("
-if (Current->is(tok::r_paren) && Current->MatchingParen) {
- Current = Current->MatchingParen->P
@@ -656,7 +656,6 @@ void WhitespaceManager::alignConsecutiveMacros() {
auto AlignMacrosMatches = [](const Change &C) {
const FormatToken *Current = C.Tok;
owenca wrote:
We should `assert(Current)` here.
https://github.com/llvm/llvm-project/pull/164122
@@ -665,22 +664,21 @@ void WhitespaceManager::alignConsecutiveMacros() {
// If token is a ")", skip over the parameter list, to the
// token that precedes the "("
-if (Current->is(tok::r_paren) && Current->MatchingParen) {
- Current = Current->MatchingParen->P
@@ -665,22 +664,21 @@ void WhitespaceManager::alignConsecutiveMacros() {
// If token is a ")", skip over the parameter list, to the
// token that precedes the "("
-if (Current->is(tok::r_paren) && Current->MatchingParen) {
- Current = Current->MatchingParen->P
https://github.com/clingfei updated
https://github.com/llvm/llvm-project/pull/162433
>From 92466f3789ce1849ebee8a405efd42e191c591f5 Mon Sep 17 00:00:00 2001
From: clingfei <[email protected]>
Date: Wed, 8 Oct 2025 15:05:44 +0800
Subject: [PATCH 01/12] [Clang] Add __builtin_bswapg
---
clang/inc
@@ -130,7 +130,10 @@ int main(void) {
P(object_size, (s0, 3));
// Whatever
-
+ P(bswapg, ((char)N));
+ P(bswapg, ((short)N));
+ P(bswapg, ((int)N));
+ P(bswapg, ((unsigned long)N));
ojhunt wrote:
maybe add _BitInt checks to this set of tests as well?
https://github.com/ojhunt commented:
This looks good to me sans the mod 16 bit rule vs 8*2^^N question
https://github.com/llvm/llvm-project/pull/162433
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/list
https://github.com/ojhunt edited
https://github.com/llvm/llvm-project/pull/162433
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/clingfei updated
https://github.com/llvm/llvm-project/pull/162433
>From 92466f3789ce1849ebee8a405efd42e191c591f5 Mon Sep 17 00:00:00 2001
From: clingfei <[email protected]>
Date: Wed, 8 Oct 2025 15:05:44 +0800
Subject: [PATCH 01/11] [Clang] Add __builtin_bswapg
---
clang/inc
@@ -6453,8 +6448,8 @@ bool TokenAnnotator::canBreakBefore(const AnnotatedLine
&Line,
Left.getPrecedence() == prec::Assignment)) {
return true;
}
owenca wrote:
```suggestion
}
if (Left.is(TT_AttributeLSquare) && Right.is(tok::l_square)) {
https://github.com/owenca updated
https://github.com/llvm/llvm-project/pull/164052
>From ea15af3f787b3f7af725a5407e5324f64fdb7966 Mon Sep 17 00:00:00 2001
From: Owen Pan
Date: Fri, 17 Oct 2025 21:37:42 -0700
Subject: [PATCH 1/3] [clang-format][NFC] Annotate attribute squares more
effectively
@@ -0,0 +1,212 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -verify
-fexperimental-new-constant-interpreter %s
+
+void test_basic_type_checks() {
+ static_assert(__is_same(char, decltype(__builtin_bswapg((char)0))), "");
+ static_assert(__is
@@ -0,0 +1,212 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -verify
-fexperimental-new-constant-interpreter %s
+
+void test_basic_type_checks() {
+ static_assert(__is_same(char, decltype(__builtin_bswapg((char)0))), "");
+ static_assert(__is
https://github.com/ojhunt requested changes to this pull request.
https://github.com/llvm/llvm-project/pull/162433
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -3622,6 +3622,15 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl
GD, unsigned BuiltinID,
Builder.CreateArithmeticFence(ArgValue, ConvertType(ArgType)));
return RValue::get(ArgValue);
}
+ case Builtin::BI__builtin_bswapg: {
+Value *ArgValue =
@@ -0,0 +1,212 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsyntax-only -verify
-fexperimental-new-constant-interpreter %s
+
+void test_basic_type_checks() {
+ static_assert(__is_same(char, decltype(__builtin_bswapg((char)0))), "");
+ static_assert(__is
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `lldb-arm-ubuntu` running
on `linaro-lldb-arm-ubuntu` while building `clang` at step 6 "test".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/18/builds/22066
Here is the relevant piece of the build lo
https://github.com/hubert-reinterpretcast commented:
I am unaware of any such restriction.
An _pp-import_ is a _control-line_, which is in turn a _group-part_.
A _preprocessing-file_ can directly contain a _group_ with being a
_module-file_.
There _is_ a restriction on _pp-global-module-fragmen
@@ -755,6 +755,12 @@ def BSwap : Builtin, Template<["unsigned short",
"uint32_t", "uint64_t"],
let Prototype = "T(T)";
}
+def BSwapg : Builtin {
+ let Spellings = ["__builtin_bswapg"];
+ let Attributes = [NoThrow, Const, Constexpr, CustomTypeChecking];
+ let Prototype =
@@ -986,6 +989,14 @@ def warn_module_conflict : Warning<
InGroup;
// C++20 modules
+def err_pp_module_name_is_macro : Error<
+ "%select{module|partition}0 name component %1 cannot be a object-like
macro">;
+def err_pp_module_expected_ident : Error<
+ "expected %select{ide
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Victor Chernyakin (localspook)
Changes
The last use of it was removed in 6163aa9.
---
Full diff: https://github.com/llvm/llvm-project/pull/164149.diff
3 Files Affected:
- (modified) clang/include/clang/Sema/Sema.h (+1-5)
- (modified) c
https://github.com/localspook created
https://github.com/llvm/llvm-project/pull/164149
The last use of it was removed in 6163aa9.
>From 43bc40aa82cbe0158fa0d8e0ebb736ac75064076 Mon Sep 17 00:00:00 2001
From: Victor Chernyakin
Date: Sat, 18 Oct 2025 21:18:45 -0700
Subject: [PATCH] [clang][Sema]
https://github.com/tstellar updated
https://github.com/llvm/llvm-project/pull/163607
>From b2f00eb013f5174b1ab5199bb7cc4cab6d5ed059 Mon Sep 17 00:00:00 2001
From: Tom Stellard
Date: Sat, 11 Oct 2025 17:39:12 -0700
Subject: [PATCH 01/23] [Darwin][Driver] Prefer linking with toolchain's libc++
i
https://github.com/tstellar updated
https://github.com/llvm/llvm-project/pull/163607
>From b2f00eb013f5174b1ab5199bb7cc4cab6d5ed059 Mon Sep 17 00:00:00 2001
From: Tom Stellard
Date: Sat, 11 Oct 2025 17:39:12 -0700
Subject: [PATCH 01/22] [Darwin][Driver] Prefer linking with toolchain's libc++
i
https://github.com/zyn0217 closed
https://github.com/llvm/llvm-project/pull/164148
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Younan Zhang
Date: 2025-10-19T04:03:38Z
New Revision: ef46f8a7d73c1657b2448fc2f3f41ff6eecc4c0f
URL:
https://github.com/llvm/llvm-project/commit/ef46f8a7d73c1657b2448fc2f3f41ff6eecc4c0f
DIFF:
https://github.com/llvm/llvm-project/commit/ef46f8a7d73c1657b2448fc2f3f41ff6eecc4c0f.diff
LOG:
@@ -986,6 +989,14 @@ def warn_module_conflict : Warning<
InGroup;
// C++20 modules
+def err_pp_module_name_is_macro : Error<
+ "%select{module|partition}0 name component %1 cannot be a object-like
macro">;
+def err_pp_module_expected_ident : Error<
+ "expected %select{ide
https://github.com/zyn0217 auto_merge_enabled
https://github.com/llvm/llvm-project/pull/164148
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Younan Zhang (zyn0217)
Changes
The logical or expression should be parenthesized.
Fixes https://github.com/llvm/llvm-project/issues/164104
---
Full diff: https://github.com/llvm/llvm-project/pull/164148.diff
1 Files Affected:
- (modifi
https://github.com/zyn0217 created
https://github.com/llvm/llvm-project/pull/164148
The logical or expression should be parenthesized.
Fixes https://github.com/llvm/llvm-project/issues/164104
>From c9216a6fd9dbdc2b7cb10f7d30aed4ed18ff987f Mon Sep 17 00:00:00 2001
From: Younan Zhang
Date: Sun,
SeongjaeP wrote:
Thanks @RKSimon and @tbaederr for the feedback and reviews, really appreciate
the help getting my first LLVM PR across the line
https://github.com/llvm/llvm-project/pull/162836
___
cfe-commits mailing list
[email protected]
https://github.com/kikairoya updated
https://github.com/llvm/llvm-project/pull/163947
>From efac315751bb086490a64e68e17fc9cc38afe328 Mon Sep 17 00:00:00 2001
From: kikairoya
Date: Fri, 17 Oct 2025 19:19:09 +0900
Subject: [PATCH 1/2] [Unittest][Cygwin] Set $PATH when running unittests
As the Cy
@@ -19,12 +19,12 @@
if platform.system() == "Darwin":
shlibpath_var = "DYLD_LIBRARY_PATH"
-elif platform.system() == "Windows":
+elif platform.system() == "Windows" or sys.platform == "cygwin":
shlibpath_var = "PATH"
else:
shlibpath_var = "LD_LIBRARY_PATH"
conf
llvmbot wrote:
@llvm/pr-subscribers-clang-tools-extra
Author: Tomohiro Kashiwada (kikairoya)
Changes
`@SHLIBDIR@` is replaced by CMake's configuration function, so it must
be in `lit.site.cfg.py.in` but not `lit.cfg.py`. `lit.cfg.py` must reference
variables in generated `lit.site.cfg.py
llvmbot wrote:
@llvm/pr-subscribers-clangd
Author: Tomohiro Kashiwada (kikairoya)
Changes
`@SHLIBDIR@` is replaced by CMake's configuration function, so it must
be in `lit.site.cfg.py.in` but not `lit.cfg.py`. `lit.cfg.py` must reference
variables in generated `lit.site.cfg.py`.
We didn
https://github.com/kikairoya created
https://github.com/llvm/llvm-project/pull/164147
`@SHLIBDIR@` is replaced by CMake's configuration function, so it must be in
`lit.site.cfg.py.in` but not `lit.cfg.py`. `lit.cfg.py` must reference
variables in generated `lit.site.cfg.py`.
We didn't notice
@@ -1295,4 +1295,30 @@ void foo23() {
// OGCG: %[[NE_B_ZERO:.*]] = icmp ne <4 x i32> %[[TMP_B]], zeroinitializer
// OGCG: %[[VEC_OR:.*]] = and <4 x i1> %[[NE_A_ZERO]], %[[NE_B_ZERO]]
// OGCG: %[[RESULT:.*]] = sext <4 x i1> %[[VEC_OR]] to <4 x i32>
-// OGCG: store <4 x i32> %[[R
@@ -19,12 +19,12 @@
if platform.system() == "Darwin":
shlibpath_var = "DYLD_LIBRARY_PATH"
-elif platform.system() == "Windows":
+elif platform.system() == "Windows" or sys.platform == "cygwin":
shlibpath_var = "PATH"
else:
shlibpath_var = "LD_LIBRARY_PATH"
conf
https://github.com/AditiRM updated
https://github.com/llvm/llvm-project/pull/154715
>From 20acfd4109a453060f3678e536234de94012f19c Mon Sep 17 00:00:00 2001
From: AditiRM
Date: Thu, 21 Aug 2025 09:40:59 +
Subject: [PATCH 01/13] Implement frontend for bcd builtins
---
clang/include/clang/Ba
https://github.com/yingcong-wu edited
https://github.com/llvm/llvm-project/pull/161112
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/NagyDonat edited
https://github.com/llvm/llvm-project/pull/162443
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
vbvictor wrote:
> You can probably also add the -Wstrict-prototypes to the ExtraArgs field in
> the .clang-tidy file.
This is a good workaround (maybe not very well-known)
So you have config
```yaml
# .clang-tidy
Checks: clang-diagnostic-strict-prototypes
ExtraArgs: ["-Wstrict-prototypes"]
```
llvmbot wrote:
@llvm/pr-subscribers-backend-x86
Author: Nagraj Gaonkar (NagrajMG)
Changes
## [Headers][X86] Allow PSHUFD/PSHUFLW/PSHUFW shuffle intrinsics to be used in
`constexpr`
### PSHUFW — shuffle 4×i16 in MMX (64-bit)
| Intrinsic | X86 Builtin| CPUID Flags | Header
@@ -13011,10 +13009,9 @@ OpenACCClause *ASTRecordReader::readOpenACCClause() {
llvm::SmallVector RecipeList;
for (unsigned I = 0; I < VarList.size(); ++I) {
- static_assert(sizeof(OpenACCReductionRecipe) == 2 * sizeof(int *));
+ static_assert(sizeof(OpenACCRe
@@ -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:
https://github.com/zahiraam created
https://github.com/llvm/llvm-project/pull/162647
None
>From 1d564a71e2db68ba371dbd1c91e51d1c4d038322 Mon Sep 17 00:00:00 2001
From: Zahira Ammarguellat
Date: Thu, 9 Oct 2025 05:45:01 -0700
Subject: [PATCH] [NFC][clang-tidy] Fix potential constant overflow
-
https://github.com/Xazax-hun closed
https://github.com/llvm/llvm-project/pull/162620
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vitalybuka created
https://github.com/llvm/llvm-project/pull/162382
None
>From a0c54f51b99dc095f6e401da5db96c0cec6185d0 Mon Sep 17 00:00:00 2001
From: Vitaly Buka
Date: Tue, 7 Oct 2025 15:06:43 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?
@@ -1,8 +1,8 @@
-// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o
%t.cir
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -fclangir -fexceptions
-fcxx-exceptions -emit-cir %s -o %t.cir
andykaylor wrote:
Maybe move the throw case
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Morris Hafner (mmha)
Changes
Added support for ConditionalOperator, BinaryConditionalOperator and
OpaqueValueExpr as lvalue.
Implemented support for ternary operators with one branch being a throw
expression. This required weakening the
https://github.com/bcardosolopes approved this pull request.
LGTM after nit
https://github.com/llvm/llvm-project/pull/162725
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/arsenm approved this pull request.
https://github.com/llvm/llvm-project/pull/162103
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/arsenm approved this pull request.
https://github.com/llvm/llvm-project/pull/162865
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/rofirrim closed
https://github.com/llvm/llvm-project/pull/139293
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,54 @@
+// RUN: %check_clang_tidy %s bugprone-loop-variable-copied-then-modified %t
--fix-notes \
PiotrZSL wrote:
missing tests with "auto&&" and "const auto"
https://github.com/llvm/llvm-project/pull/157213
___
flovent wrote:
CI failure seems irrelevant.
https://github.com/llvm/llvm-project/pull/158462
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Abhinav Gaba (abhinavgaba)
Changes
Also adds an instance of `AttachPtrExprComparator` to the `MappableExprHandler`
class, so that it can be reused for multiple comparisons.
This was extracted out of #153683 to make that PR more focused on
https://github.com/localspook edited
https://github.com/llvm/llvm-project/pull/161574
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/jhuber6 updated
https://github.com/llvm/llvm-project/pull/156063
>From eae6411ce53499b2d7fa5f83607cc83fa74edc64 Mon Sep 17 00:00:00 2001
From: Joseph Huber
Date: Fri, 29 Aug 2025 12:11:15 -0500
Subject: [PATCH] [Clang] Assume unaligned in maksed load / store builtins
Summary
@@ -1829,6 +1831,53 @@ Compilation *Driver::BuildCompilation(ArrayRef ArgList) {
// Populate the tool chains for the offloading devices, if any.
CreateOffloadingDeviceToolChains(*C, Inputs);
+ modules::StdModuleManifest Manifest;
+ if (C->getArgs().hasFlag(options::OPT_f
VigneshwarJ wrote:
@nikic , That was due to a bad MSSA update, fixed that issue.
https://github.com/llvm/llvm-project/pull/157559
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
earnol wrote:
@AaronBallman Please check this PR and associated discussion
https://github.com/llvm/llvm-project/issues/159603.
Summary of the goal here is not have an error (warning is ok) when
multidimentional array being cast to the pointer of the same base type.
https://github.com/llvm/llvm
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-aarch64-quick`
running on `linaro-clang-aarch64-quick` while building `clang` at step 5 "ninja
check 1".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/65/builds/24050
Here is the relevant pie
@@ -909,3 +909,46 @@ void foo33(__builtin_va_list a) {
// OGCG: %[[B_IMAG_PTR:.*]] = getelementptr inbounds nuw { float, float },
ptr %[[B_ADDR]], i32 0, i32 1
// OGCG: store float %[[RESULT_REAL]], ptr %[[B_REAL_PTR]], align 4
// OGCG: store float %[[RESULT_IMAG]], ptr %[[
@@ -2975,6 +2975,75 @@ static bool interp__builtin_vec_set(InterpState &S,
CodePtr OpPC,
return true;
}
+static bool interp__builtin_x86_psrldq_byteshift(InterpState &S, CodePtr OpPC,
+ const CallExpr *Call,
+
@@ -359,6 +366,16 @@ class DeclSpec {
LLVM_PREFERRED_TYPE(TQ)
unsigned TypeQualifiers : 5; // Bitwise OR of TQ.
+ // overflow behavior qualifiers
+ LLVM_PREFERRED_TYPE(bool)
mizvekov wrote:
Though please prefer an enum class.
https://github.com/llvm/l
https://github.com/RKSimon closed
https://github.com/llvm/llvm-project/pull/161174
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/vbvictor updated
https://github.com/llvm/llvm-project/pull/160193
>From e78a08ba18618ad8b1bc4e0a7203fc311d8fb75e Mon Sep 17 00:00:00 2001
From: Baranov Victor
Date: Mon, 22 Sep 2025 23:22:19 +0300
Subject: [PATCH 1/7] WIP
---
.github/workflows/pr-code-lint.yml | 5 -
1
@@ -853,6 +853,14 @@ class CIRGenFunction : public CIRGenTypeCache {
FunctionArgList args, clang::SourceLocation loc,
clang::SourceLocation startLoc);
+ /// returns true if aggregate type has a volatile member.
+ /// TODO(cir): this
https://github.com/kazutakahirata closed
https://github.com/llvm/llvm-project/pull/163914
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/tbaederr created
https://github.com/llvm/llvm-project/pull/160075
So ignore the rest in `checkFullyInitialized()`.
Fixes #160071
>From a955773e97e1b24bdccc8703ebd3bfa3e91f37e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?=
Date: Mon, 22 Sep 2025 13:24:18 +0200
https://github.com/andykaylor commented:
I'm concerned about the level of testing here. It seems like there is a good
bit of code that isn't covered by the test.
https://github.com/llvm/llvm-project/pull/162528
___
cfe-commits mailing list
cfe-commits
https://github.com/vabridgers closed
https://github.com/llvm/llvm-project/pull/158276
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -3364,6 +3425,16 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC,
const CallExpr *Call,
return interp__builtin_elementwise_int_binop(S, OpPC, Call,
llvm::APIntOps::avgCeilU);
+ case clang::X86::BI__builtin_ia32_pm
@@ -62,6 +62,8 @@ auto basic_usage(auto auto) { // c23-error {{'auto' not
allowed in function pr
int auto_cxx_decl = auto(0); // expected-error {{expected expression}}
+ constexpr auto int x = 0; // c23-error {{cannot combine with previous 'auto'
declaration specifier
https://github.com/vsapsai updated
https://github.com/llvm/llvm-project/pull/160226
>From 46288ffafa2ec3e9b85d567fae1568448e3f3863 Mon Sep 17 00:00:00 2001
From: Volodymyr Sapsai
Date: Mon, 22 Sep 2025 21:01:00 -0700
Subject: [PATCH 1/5] [clang][deps] Add module map describing compiled module
llvmbot wrote:
@llvm/pr-subscribers-clang-codegen
Author: Sarah Spall (spall)
Changes
Adds support for elementwise and aggregate splat casting struct types with
bitfields. Replacing existing Flattening function which used to produce a list
of GEPs representing a flattened object with one
mmha wrote:
The problem with throw exprs is that they lower to `cir.throw` +
`cir.unreachable` as the terminator of a split block. `TernaryOp` on the other
hand expects both branches to terminate with a `YieldOp`. Adding any
instructions past `unreachable` fails verification. So I changed `Fla
https://github.com/mstorsjo closed
https://github.com/llvm/llvm-project/pull/162546
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/sarnex edited
https://github.com/llvm/llvm-project/pull/162914
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Helena Kotas
Date: 2025-10-14T14:57:14-07:00
New Revision: 511c1f9f151e22757cdac0b291022bf1cccbfc1d
URL:
https://github.com/llvm/llvm-project/commit/511c1f9f151e22757cdac0b291022bf1cccbfc1d
DIFF:
https://github.com/llvm/llvm-project/commit/511c1f9f151e22757cdac0b291022bf1cccbfc1d.diff
vabridgers wrote:
Thanks @NagyDonat and @steakhal for the review comments and acknowledgements.
Even characterizing these issues can be difficult, and frankly I would like to
do more than just report crashes with reproducers and post half-step solutions.
But we are trying to make use of these
owenca wrote:
> This allows disabling variable alignment declarations while still having
> function alignment. It also distinguishes between class member variables and
> other variables (e.g. function local variables).
See
https://clang.llvm.org/docs/ClangFormatStyleOptions.html#adding-additi
@@ -0,0 +1,12 @@
+// This test case validates the behavior of -use-experimental-spirv-backend
+
+// Test that -use-experimental-spirv-backend calls clang -cc1 with the SPIRV
triple.
AlexVlx wrote:
We need special handling because we do not invoke the BE in its d
https://github.com/clingfei updated
https://github.com/llvm/llvm-project/pull/162433
>From 92466f3789ce1849ebee8a405efd42e191c591f5 Mon Sep 17 00:00:00 2001
From: clingfei <[email protected]>
Date: Wed, 8 Oct 2025 15:05:44 +0800
Subject: [PATCH 1/3] [Clang] Add __builtin_bswapg
---
clang/inclu
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder
`llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while
building `clang` at step 6 "test-build-unified-tree-check-all".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/144/builds/37831
https://github.com/andykaylor approved this pull request.
Looks good, with a repeated nit about getResult()
https://github.com/llvm/llvm-project/pull/161382
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/
giulianobelinassi wrote:
Regarding https://github.com/llvm/llvm-project/pull/162687 : There is an oddie
I found with
```
__attribute__((device)) register long global_dev_hreg asm("rsp"); //
device-side error
```
This should error out but it doesn't anymore, probably because
__attribute__((devi
Author: Yaxun (Sam) Liu
Date: 2025-10-03T17:38:37-04:00
New Revision: fb458aa91f8fa614086e855ab29749e81e834194
URL:
https://github.com/llvm/llvm-project/commit/fb458aa91f8fa614086e855ab29749e81e834194
DIFF:
https://github.com/llvm/llvm-project/commit/fb458aa91f8fa614086e855ab29749e81e834194.dif
fennecJ wrote:
Cheers, thanks for the review!
https://github.com/llvm/llvm-project/pull/159998
___
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/balazs-benics-sonarsource updated
https://github.com/llvm/llvm-project/pull/161370
From 2d0a111ebf0262a4f814e1afefce63f996f6aaae Mon Sep 17 00:00:00 2001
From: Balazs Benics
Date: Tue, 30 Sep 2025 14:23:49 +0200
Subject: [PATCH 1/3] [analyzer][NFC] Explain why operator new/de
@@ -8546,10 +8546,12 @@ class Sema final : public SemaBase {
bool Diagnose = true);
FunctionDecl *FindUsualDeallocationFunction(SourceLocation StartLoc,
ImplicitDeallocationParameters,
-
alejandro-alvarez-sonarsource wrote:
> I remember debugging this. Fun times. I wonder if we could do even better by
> smuggling in some reference to that helper function, so we could move that
> global into a field. E.g. as a sibling of the allocator pool.
I have been looking at this, and I am
erichkeane wrote:
> Thank you Erich for the comments showing type of array. That helped! The
> changes look great to me!
>
Awesome, thanks! I'll still be doing a patch to do the recipe-ordering
cleanup, but that should be effectively NFC, but I'll do that after this gets
merged.
> A few se
Author: Aiden Grossman
Date: 2025-10-09T16:52:42-07:00
New Revision: 0c2913afc82a683d82f16f09442d49b1fb25ca67
URL:
https://github.com/llvm/llvm-project/commit/0c2913afc82a683d82f16f09442d49b1fb25ca67
DIFF:
https://github.com/llvm/llvm-project/commit/0c2913afc82a683d82f16f09442d49b1fb25ca67.diff
https://github.com/llvm-beanz commented:
Your testing is focused on `CXXFunctionalCastExpr`, but the implementation of
that should be the same as the general initializer list implementation (it is
for vectors), so the testing also needs to cover those cases.
Things like:
```
[numthreads(1,1,1
https://github.com/hnrklssn updated
https://github.com/llvm/llvm-project/pull/162714
>From dfb1520de70f3c56a74ee798180f9a82934fe40f Mon Sep 17 00:00:00 2001
From: "Henrik G. Olsson"
Date: Wed, 8 Oct 2025 23:10:18 -0700
Subject: [PATCH 1/8] [attrs] Rename allAll, takeAllFrom etc. for clarity (NF
https://github.com/jmmartinez updated
https://github.com/llvm/llvm-project/pull/163207
From 3a517f0ede2a6a4157c1f5d9cbbc53f27ad4b1e2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Juan=20Manuel=20Martinez=20Caama=C3=B1o?=
Date: Thu, 16 Oct 2025 14:21:08 +0200
Subject: [PATCH] [Clang][NFC] Rename Unqu
1 - 100 of 2998 matches
Mail list logo