https://github.com/phoebewang closed
https://github.com/llvm/llvm-project/pull/148184
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/OCHyams created
https://github.com/llvm/llvm-project/pull/148244
Make the option visible, improve the help text, and add a release note.
>From e31f415c4a1ba18f771a6119bee2bc11f4f705bb Mon Sep 17 00:00:00 2001
From: Orlando Cazalet-Hyams
Date: Fri, 11 Jul 2025 14:35:12 +0100
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Orlando Cazalet-Hyams (OCHyams)
Changes
Make the option visible, improve the help text, and add a release note.
---
Full diff: https://github.com/llvm/llvm-project/pull/148244.diff
2 Files Affected:
- (modified) clang/docs/ReleaseNotes.
AaronBallman wrote:
> > Windows doesn't have `/tmp` for example. I don't think we have any
> > [substitutions](https://llvm.org/docs/CommandGuide/lit.html#substitutions)
> > for getting the temp directory.
>
> Ah, I meant non-windows systems (I thought `REQUIRES: shell` already meant
> non-wi
https://github.com/delcypher edited
https://github.com/llvm/llvm-project/pull/147997
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Sirraide wrote:
> I suppose another option is to use a regex in the test to accept either form
> of canonicalization with a comment that lit tests are sometimes run from
> network mounts and that's why the test is the way it is.
I mean, at that point we can just delete the test entirely though
Author: Baranov Victor
Date: 2025-07-11T17:17:59+03:00
New Revision: d7a17540f8b1577367957581355834eefb72a970
URL:
https://github.com/llvm/llvm-project/commit/d7a17540f8b1577367957581355834eefb72a970
DIFF:
https://github.com/llvm/llvm-project/commit/d7a17540f8b1577367957581355834eefb72a970.diff
https://github.com/paulwalker-arm closed
https://github.com/llvm/llvm-project/pull/147795
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Lancern updated
https://github.com/llvm/llvm-project/pull/147200
>From fb556207b6a0504e0b767dd655ae5df146a70f30 Mon Sep 17 00:00:00 2001
From: Sirui Mu
Date: Mon, 7 Jul 2025 00:45:48 +0800
Subject: [PATCH] [CIR] Add bit reverse and byte reverse operations
---
clang/include/
@@ -2661,6 +2661,45 @@ def BitPopcountOp : CIR_BitOpBase<"bit.popcnt",
}];
}
+def BitReverseOp : CIR_BitOpBase<"bit.reverse",
+ CIR_UIntOfWidths<[8, 16, 32, 64]>> {
+ let summary = "Reverse the bit pattern of the operand integer";
+ let desc
@@ -0,0 +1,585 @@
+//===- NestedNameSpecifier.h - C++ nested name specifiers ---*- C++
-*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
@@ -0,0 +1,585 @@
+//===- NestedNameSpecifier.h - C++ nested name specifiers ---*- C++
-*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
@@ -2068,7 +2080,9 @@ class ASTContext : public RefCountedBase {
/// if it hasn't yet been built.
QualType getRawCFConstantStringType() const {
if (CFConstantStringTypeDecl)
- return getTypedefType(CFConstantStringTypeDecl);
+ return getTypedefType(ElaboratedT
https://github.com/Sirraide edited
https://github.com/llvm/llvm-project/pull/147835
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/Sirraide commented:
Some comments, but I will say that I haven’t nearly reviewed all of this
because it’s rather massive (and I’m also not too familiar w/ everything around
NNSs).
https://github.com/llvm/llvm-project/pull/147835
__
@@ -6,534 +6,266 @@
//
//===--===//
//
-// This file defines the NestedNameSpecifier class, which represents
-// a C++ nested-name-specifier.
+// This file completes the definition of the NestedNameSpecifie
@@ -15,8 +16,9 @@ constexpr NonConstexpr2a nc2a = NonConstexpr2a(); // ok, does
not call construct
constexpr int nc2_a = NonConstexpr2().nl.a; // ok
constexpr int nc2a_a = NonConstexpr2a().a; // ok
struct Helper {
- friend constexpr NonConstexpr1::NonConstexpr1(); // expected
@@ -1217,6 +1217,9 @@ void CXXRecordDecl::addedMember(Decl *D) {
// those because they are always unnamed.
bool IsZeroSize = Field->isZeroSize(Context);
+// P3074
+const bool TrivialUnion = Context.getLangOpts().CPlusPlus26 && isUnion();
Sirrai
@@ -0,0 +1,80 @@
+// RUN: %clang_cc1 -verify -std=c++26 %s -Wno-defaulted-function-deleted
-triple x86_64-linux-gnu
+
+struct NonTrivial {
+ int i;
+ constexpr NonTrivial(int i) :i(i) { }
+ constexpr ~NonTrivial() { }
+};
+
+union U0 {
+ NonTrivial nt;
+ int i;
+};
+U0 u0;
+
@@ -9543,6 +9543,45 @@ bool
SpecialMemberDeletionInfo::shouldDeleteForSubobjectCall(
if (DiagKind == -1)
return false;
+ if (S.Context.getLangOpts().CPlusPlus26 && inUnion() &&
Sirraide wrote:
```suggestion
if (S.LangOpts.CPlusPlus26 && inUnion() &&
@@ -0,0 +1,80 @@
+// RUN: %clang_cc1 -verify -std=c++26 %s -Wno-defaulted-function-deleted
-triple x86_64-linux-gnu
+
+struct NonTrivial {
+ int i;
+ constexpr NonTrivial(int i) :i(i) { }
+ constexpr ~NonTrivial() { }
+};
+
+union U0 {
+ NonTrivial nt;
+ int i;
+};
+U0 u0;
+
@@ -9543,6 +9543,45 @@ bool
SpecialMemberDeletionInfo::shouldDeleteForSubobjectCall(
if (DiagKind == -1)
return false;
+ if (S.Context.getLangOpts().CPlusPlus26 && inUnion() &&
+ CSM == CXXSpecialMemberKind::Destructor) {
+// [class.dtor]/7 In C++26, a destruc
@@ -9543,6 +9543,45 @@ bool
SpecialMemberDeletionInfo::shouldDeleteForSubobjectCall(
if (DiagKind == -1)
return false;
+ if (S.Context.getLangOpts().CPlusPlus26 && inUnion() &&
Sirraide wrote:
(also in a few other places below)
https://github.com/llv
https://github.com/a-tarasyuk updated
https://github.com/llvm/llvm-project/pull/147163
>From 4e0cf4e00d4cfd837e9dfd9e6aed88aca1de295a Mon Sep 17 00:00:00 2001
From: Oleksandr Tarasiuk
Date: Sun, 6 Jul 2025 00:35:48 +0300
Subject: [PATCH 1/5] [Clang] fix crash in codegen caused by deferred asm
https://github.com/cyndyishida updated
https://github.com/llvm/llvm-project/pull/147969
>From 87900ca81b552c9d7718c8a38a21f53260534c6e Mon Sep 17 00:00:00 2001
From: Cyndy Ishida
Date: Wed, 9 Jul 2025 21:50:44 -0700
Subject: [PATCH 1/2] [clang][scan-deps] Report a scanned TU's visible modules
https://github.com/jhuber6 updated
https://github.com/llvm/llvm-project/pull/147823
>From 7f9ea74bfb79084bc4000b22acda68e9e9c996b9 Mon Sep 17 00:00:00 2001
From: Joseph Huber
Date: Wed, 9 Jul 2025 15:32:57 -0500
Subject: [PATCH] [Clang] Extract offloading code from static libs with
'offload-ar
@@ -114,24 +115,221 @@ static inline void clearModule(Module &M) { // TODO:
simplify.
eraseFromModule(*M.ifuncs().begin());
}
+static inline SmallVector>
+collectIndirectableUses(GlobalVariable *G) {
+ // We are interested only in use chains that end in an Instruction.
+
@@ -114,24 +115,221 @@ static inline void clearModule(Module &M) { // TODO:
simplify.
eraseFromModule(*M.ifuncs().begin());
}
+static inline SmallVector>
+collectIndirectableUses(GlobalVariable *G) {
+ // We are interested only in use chains that end in an Instruction.
+
https://github.com/maryammo approved this pull request.
Could you please add this builtins to
ppc-dmf-paired-vec-memops-builtin-err.c
ppc-future-mma-builtin-err.c -> I missed to rename it to
ppc-dmf-mma-builtin-err.c
and add a new one to check error for no-isa-future-instructions target
attri
https://github.com/sivadeilra updated
https://github.com/llvm/llvm-project/pull/144745
>From c09b0546b228ebddfe2ac83d71db6c9f503d48f0 Mon Sep 17 00:00:00 2001
From: Arlie Davis
Date: Fri, 13 Jun 2025 12:45:34 -0700
Subject: [PATCH] Fix IP2State tables
style: revert one change
Adjust tests
ad
RiverDave wrote:
> I will take a look at the weekend.
No Rush, enjoy your weekend 😸
https://github.com/llvm/llvm-project/pull/144240
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
vbvictor wrote:
> In this case when looking at the type of Data the IntPtr type does not
> appear, only int*
This is a known "problem" of clang with preserving type sugar.
TL;DR currently there is no way to get `IntPtr` as you need.
There is work in progress to preserve `IntPtr` through all AS
https://github.com/balazske updated
https://github.com/llvm/llvm-project/pull/147766
From f8dc303029c68762cdbd19b217730192d26f6fca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?=
Date: Wed, 9 Jul 2025 16:55:07 +0200
Subject: [PATCH 1/3] [clang][analyzer] Add C standard stream
https://github.com/jhuber6 closed
https://github.com/llvm/llvm-project/pull/147823
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Joseph Huber
Date: 2025-07-11T10:26:24-05:00
New Revision: 535d6917ec3308ade866f205644b740666312342
URL:
https://github.com/llvm/llvm-project/commit/535d6917ec3308ade866f205644b740666312342
DIFF:
https://github.com/llvm/llvm-project/commit/535d6917ec3308ade866f205644b740666312342.diff
@@ -816,12 +816,12 @@ kernel void test_target_features_kernel(global int *i) {
// NOCPU: attributes #[[ATTR10]] = { convergent nounwind }
//.
// GFX900: attributes #[[ATTR0:[0-9]+]] = { "objc_arc_inert" }
-// GFX900: attributes #[[ATTR1]] = { convergent norecurse nounwind
"den
abidh wrote:
Polite ping.
https://github.com/llvm/llvm-project/pull/147091
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Amr Hesham
Date: 2025-07-11T19:18:08+02:00
New Revision: df10df8b0caec9e649dd8c4415610038b7926060
URL:
https://github.com/llvm/llvm-project/commit/df10df8b0caec9e649dd8c4415610038b7926060
DIFF:
https://github.com/llvm/llvm-project/commit/df10df8b0caec9e649dd8c4415610038b7926060.diff
LO
@@ -266,7 +266,7 @@ AMDGPUTargetInfo::AMDGPUTargetInfo(const llvm::Triple
&Triple,
MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64;
CUMode = !(GPUFeatures & llvm::AMDGPU::FEATURE_WGP);
- for (auto F : {"image-insts", "gws", "vmem-to-lds-load-insts"})
+ for (auto F : {
https://github.com/AmrDeveloper closed
https://github.com/llvm/llvm-project/pull/148010
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -14544,6 +14538,23 @@ EvaluateComparisonBinaryOperator(EvalInfo &Info, const
BinaryOperator *E,
(LHSValue.Base && isZeroSized(RHSValue)))
return DiagComparison(
diag::note_constexpr_pointer_comparison_zero_sized);
+ // A constexpr-unknown
https://github.com/fmayer created
https://github.com/llvm/llvm-project/pull/148322
Reverts llvm/llvm-project#148310
Some targets don't support the flags passed in the test
>From f1cc3eaf2707726d86efbb651478d7310b8a3840 Mon Sep 17 00:00:00 2001
From: Florian Mayer
Date: Fri, 11 Jul 2025 18:01:
Author: Florian Mayer
Date: 2025-07-11T18:01:32-07:00
New Revision: 102c15ad28d3c312ea8926c85dbf907ca0d07b84
URL:
https://github.com/llvm/llvm-project/commit/102c15ad28d3c312ea8926c85dbf907ca0d07b84
DIFF:
https://github.com/llvm/llvm-project/commit/102c15ad28d3c312ea8926c85dbf907ca0d07b84.diff
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Florian Mayer (fmayer)
Changes
Reverts llvm/llvm-project#148310
Some targets don't support the flags passed in the test
---
Full diff: https://github.com/llvm/llvm-project/pull/148322.diff
2 Files Affected:
- (modified) clang/include/c
https://github.com/topperc updated
https://github.com/llvm/llvm-project/pull/148321
>From 9521bd783966635f3219ac02e3fe43ed33294546 Mon Sep 17 00:00:00 2001
From: Craig Topper
Date: Fri, 11 Jul 2025 17:42:49 -0700
Subject: [PATCH 1/2] [RISCV] Add -march=unset to cancel and ignore a previous
-ma
https://github.com/fmayer closed
https://github.com/llvm/llvm-project/pull/148322
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/fmayer created
https://github.com/llvm/llvm-project/pull/148323
This reverts commit 102c15ad28d3c312ea8926c85dbf907ca0d07b84.
>From 64b17b603b9300bb15b28d5ded80b174b8eacbb9 Mon Sep 17 00:00:00 2001
From: Florian Mayer
Date: Fri, 11 Jul 2025 18:06:48 -0700
Subject: [PATCH] =
llvmbot wrote:
@llvm/pr-subscribers-clang
Author: Florian Mayer (fmayer)
Changes
This reverts commit 102c15ad28d3c312ea8926c85dbf907ca0d07b84.
---
Full diff: https://github.com/llvm/llvm-project/pull/148323.diff
2 Files Affected:
- (modified) clang/include/clang/Basic/Features.def (+4
https://github.com/fmayer updated
https://github.com/llvm/llvm-project/pull/148323
>From 64b17b603b9300bb15b28d5ded80b174b8eacbb9 Mon Sep 17 00:00:00 2001
From: Florian Mayer
Date: Fri, 11 Jul 2025 18:06:48 -0700
Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=
=?UT
@@ -0,0 +1,70 @@
+// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsycl-is-device -std=c++20 -fsyntax-only -verify -DCPP20 %s
+// Semantic tests for sycl_external attribute
+
+[[clang::sycl_external]] // expected-error {{'sycl_external' can only b
https://github.com/inbelic edited
https://github.com/llvm/llvm-project/pull/147115
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/topperc created
https://github.com/llvm/llvm-project/pull/148321
-mcpu is used to determine the ISA string if an explicit -march is not present
on the command line. If there is a -march present it always has priority over
-mcpu regardless of where it appears in the command l
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-win`
running on `sie-win-worker` while building `clang` at step 7
"test-build-unified-tree-check-all".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/46/builds/19969
Here is th
llvmbot wrote:
@llvm/pr-subscribers-clang-driver
Author: Craig Topper (topperc)
Changes
-mcpu is used to determine the ISA string if an explicit -march is not present
on the command line. If there is a -march present it always has priority over
-mcpu regardless of where it appears in the
kikairoya wrote:
> I think linking with `-lLLVM-20` should bind to `cygLLVM-20.dll`, or
> `cygLLVM-20.1.dll` if `-lLLVM` but is it possible?
It may be possible with llvm-dlltool but seems hacky. I've just reversed the
link direction using SONAME and putting symlinks to it.
https://github.com/
Author: Owen Pan
Date: 2025-07-11T18:15:27-07:00
New Revision: 2f1673eaa0e3b0c98cdd66429849ec27e220055b
URL:
https://github.com/llvm/llvm-project/commit/2f1673eaa0e3b0c98cdd66429849ec27e220055b
DIFF:
https://github.com/llvm/llvm-project/commit/2f1673eaa0e3b0c98cdd66429849ec27e220055b.diff
LOG:
https://github.com/fmayer updated
https://github.com/llvm/llvm-project/pull/148323
>From 64b17b603b9300bb15b28d5ded80b174b8eacbb9 Mon Sep 17 00:00:00 2001
From: Florian Mayer
Date: Fri, 11 Jul 2025 18:06:48 -0700
Subject: [PATCH 1/3] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=
=?UT
@@ -266,7 +266,7 @@ AMDGPUTargetInfo::AMDGPUTargetInfo(const llvm::Triple
&Triple,
MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64;
CUMode = !(GPUFeatures & llvm::AMDGPU::FEATURE_WGP);
- for (auto F : {"image-insts", "gws", "vmem-to-lds-load-insts"})
+ for (auto F : {
@@ -2902,28 +2902,41 @@ static void handleWarnUnusedResult(Sema &S, Decl *D,
const ParsedAttr &AL) {
}
StringRef Str;
- if (AL.isStandardAttributeSyntax() && !AL.getScopeName()) {
-// The standard attribute cannot be applied to variable declarations such
-// as
@@ -2902,28 +2902,41 @@ static void handleWarnUnusedResult(Sema &S, Decl *D,
const ParsedAttr &AL) {
}
StringRef Str;
- if (AL.isStandardAttributeSyntax() && !AL.getScopeName()) {
-// The standard attribute cannot be applied to variable declarations such
-// as
https://github.com/AaronBallman approved this pull request.
LGTM aside from a nit with the comments (sorry for causing that confusion in
the first place).
https://github.com/llvm/llvm-project/pull/148090
___
cfe-commits mailing list
cfe-commits@lists.
https://github.com/AaronBallman edited
https://github.com/llvm/llvm-project/pull/148090
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Author: Cyndy Ishida
Date: 2025-07-11T09:33:55-07:00
New Revision: 15c3793cdf947be16a4686d26998143fd6487641
URL:
https://github.com/llvm/llvm-project/commit/15c3793cdf947be16a4686d26998143fd6487641
DIFF:
https://github.com/llvm/llvm-project/commit/15c3793cdf947be16a4686d26998143fd6487641.diff
https://github.com/cyndyishida closed
https://github.com/llvm/llvm-project/pull/147969
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -2068,7 +2080,9 @@ class ASTContext : public RefCountedBase {
/// if it hasn't yet been built.
QualType getRawCFConstantStringType() const {
if (CFConstantStringTypeDecl)
- return getTypedefType(CFConstantStringTypeDecl);
+ return getTypedefType(ElaboratedT
https://github.com/OCHyams updated
https://github.com/llvm/llvm-project/pull/137991
>From cb89d1f1bb60db07743f1973f9b263424fab9f6d Mon Sep 17 00:00:00 2001
From: Orlando Cazalet-Hyams
Date: Wed, 30 Apr 2025 15:19:03 +0100
Subject: [PATCH 1/5] [KeyInstr] Add docs
---
clang/docs/KeyInstructions
@@ -0,0 +1,43 @@
+// REQUIRES: lld
+
+/// Check DTLTO options are forwarded to the linker.
+
+// RUN: echo "--target=x86_64-linux-gnu \
+// RUN: -Xthinlto-distributor=distarg1 \
+// RUN: -Xthinlto-distributor=distarg2,distarg3 \
+// RUN: -fuse-ld=lld" > %t.rsp
--
@@ -0,0 +1,120 @@
+# Key Instructions in Clang
+
+Key Instructions is an LLVM feature that reduces the jumpiness of optimized
code debug stepping. This document explains how Clang applies the necessary
metadata.
+
+## Implementation
+
+See the [LLVM docs](../../llvm/docs/KeyInst
OCHyams wrote:
Sorry for the wait... I've addressed the feedback - how does this look now?
https://github.com/llvm/llvm-project/pull/137991
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-comm
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -triple arm64-apple-macosx14.0.0 -O0
-debug-info-kind=standalone -dwarf-version=5 \
+// RUN: -fsanitize=float-cast-overflow -fsanitize-trap=float-cast-overflow
-emit-llvm %s -o - | FileCheck %s
+
+int f(float x) {
+ return (int)x;
+}
+
+//
github-actions[bot] wrote:
:warning: undef deprecator found issues in your code. :warning:
You can test this locally with the following command:
``bash
git diff -U0 --pickaxe-regex -S
'([^a-zA-Z0-9#_-]undef[^a-zA-Z0-9_-]|UndefValue::get)' 'HEAD~1' HEAD
llvm/test/CodeGen/AMDGPU/l
@@ -0,0 +1,585 @@
+//===- NestedNameSpecifier.h - C++ nested name specifiers ---*- C++
-*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
Author: Jon Roelofs
Date: 2025-07-11T10:21:13-07:00
New Revision: a0fcb50bf99d1d48458ee27ca92e5cd54e9910d5
URL:
https://github.com/llvm/llvm-project/commit/a0fcb50bf99d1d48458ee27ca92e5cd54e9910d5
DIFF:
https://github.com/llvm/llvm-project/commit/a0fcb50bf99d1d48458ee27ca92e5cd54e9910d5.diff
L
https://github.com/jroelofs closed
https://github.com/llvm/llvm-project/pull/147817
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/AmrDeveloper updated
https://github.com/llvm/llvm-project/pull/148025
>From c430b7dd359ffbc9e356ab242d18554830ed5ee2 Mon Sep 17 00:00:00 2001
From: AmrDeveloper
Date: Thu, 10 Jul 2025 20:37:25 +0200
Subject: [PATCH 1/2] [CIR] Implement SubOp for ComplexType
---
clang/includ
Author: Amr Hesham
Date: 2025-07-11T19:27:54+02:00
New Revision: 53183be294e92093a37f3875a8c586c74fbd4d7c
URL:
https://github.com/llvm/llvm-project/commit/53183be294e92093a37f3875a8c586c74fbd4d7c
DIFF:
https://github.com/llvm/llvm-project/commit/53183be294e92093a37f3875a8c586c74fbd4d7c.diff
LO
https://github.com/AmrDeveloper closed
https://github.com/llvm/llvm-project/pull/147592
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -107,3 +110,282 @@ void Cygwin::AddClangSystemIncludeArgs(const ArgList
&DriverArgs,
addExternCSystemInclude(DriverArgs, CC1Args, SysRoot + "/usr/include");
addExternCSystemInclude(DriverArgs, CC1Args, SysRoot +
"/usr/include/w32api");
}
+
+static bool getStaticPIE(con
@@ -14544,6 +14538,23 @@ EvaluateComparisonBinaryOperator(EvalInfo &Info, const
BinaryOperator *E,
(LHSValue.Base && isZeroSized(RHSValue)))
return DiagComparison(
diag::note_constexpr_pointer_comparison_zero_sized);
+ // A constexpr-unknown
@@ -84,12 +84,12 @@ define void @pr66984(ptr %arg) personality ptr
@__CxxFrameHandler3 {
; X86_64-NEXT:movq %rcx, {{[-0-9]+}}(%r{{[sb]}}p) # 8-byte Spill
; X86_64-NEXT: .Ltmp0:
; X86_64-NEXT:callq throw
+; X86_64-NEXT:nop
sivadeilra wrote:
Well,
@@ -0,0 +1,585 @@
+//===- NestedNameSpecifier.h - C++ nested name specifiers ---*- C++
-*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM
Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Ap
https://github.com/AaronBallman commented:
Thanks for the PR! I think we need to think about this a little bit; my concern
is that folks often use clang-query to write queries they'll eventually be
using in clang-tidy checks. However, the tidy checks are using the C++ DSL
which won't support t
@@ -37,9 +37,11 @@ cond.end: ; preds =
%entry, %cond.true
; CHECK: testq
; CHECK: je
; CHECK: callq alloc
+; CHECK-NEXT: nop
sivadeilra wrote:
I believe it is necessary because it is immediately before
`.seh_startepilo
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `openmp-s390x-linux`
running on `systemz-1` while building `clang` at step 6 "test-openmp".
Full details are available at:
https://lab.llvm.org/buildbot/#/builders/88/builds/13818
Here is the relevant piece of the build log f
https://github.com/shashi1687 updated
https://github.com/llvm/llvm-project/pull/147400
>From 29c3c9c6d25cc7c47d01a9d819ea37e92361aea2 Mon Sep 17 00:00:00 2001
From: Shashi Shankar
Date: Mon, 7 Jul 2025 22:54:22 +0200
Subject: [PATCH 1/3] Sema: suppress deprecated field warnings in implicit
spe
@@ -1217,6 +1217,9 @@ void CXXRecordDecl::addedMember(Decl *D) {
// those because they are always unnamed.
bool IsZeroSize = Field->isZeroSize(Context);
+// P3074
+const bool TrivialUnion = Context.getLangOpts().CPlusPlus26 && isUnion();
Sirrai
shashi1687 wrote:
Hi All,
I’ve pushed an update addressing the feedback:
- Moved the suppression guard into the case AR_Deprecated: block
- Used dyn_cast_if_present and combined
isImplicit()/isDefaulted() in one check
- Consolidated constructor/destructor detection with isa
- Removed the Fu
@@ -0,0 +1,80 @@
+// RUN: %clang_cc1 -verify -std=c++26 %s -Wno-defaulted-function-deleted
-triple x86_64-linux-gnu
+
+struct NonTrivial {
+ int i;
+ constexpr NonTrivial(int i) :i(i) { }
+ constexpr ~NonTrivial() { }
+};
+
+union U0 {
+ NonTrivial nt;
+ int i;
+};
+U0 u0;
+
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+// expected-warning@+1{{'clang::sycl_external' attribute ignored}}
tahonermann wrote:
```suggestion
// These tests validate that the sycl_external attribute is ignored when SYCL
// support is not en
@@ -0,0 +1,70 @@
+// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify %s
+// RUN: %clang_cc1 -fsycl-is-device -std=c++20 -fsyntax-only -verify -DCPP20 %s
+// Semantic tests for sycl_external attribute
tahonermann wrote:
Add spacing to avoid potential merge
@@ -0,0 +1,19 @@
+// RUN: %clang_cc1 -fsycl-is-device -fsyntax-only -verify %s
+
+// expected-error@+1{{'clang::sycl_external' attribute only applies to
functions}}
+[[clang::sycl_external]] int a;
+
+
+// expected-error@+2{{'clang::sycl_external' attribute only applies to
funct
https://github.com/tahonermann requested changes to this pull request.
A few more comments. I still haven't finished my review of
`sycl-external-attr.cpp`, but will try to later today or over the weekend.
https://github.com/llvm/llvm-project/pull/140282
_
https://github.com/tahonermann edited
https://github.com/llvm/llvm-project/pull/140282
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -0,0 +1,12 @@
+// RUN: %clang_cc1 -fsyntax-only -verify %s
+
+// expected-warning@+1{{'clang::sycl_external' attribute ignored}}
+[[clang::sycl_external]] void bar() {}
+
+// expected-warning@+1{{'clang::sycl_external' attribute ignored}}
+[[clang::sycl_external]] int a;
+
+//
@@ -12879,6 +12879,15 @@ def err_sycl_special_type_num_init_method : Error<
"types with 'sycl_special_class' attribute must have one and only one
'__init' "
"method defined">;
+// SYCL external attribute diagnostics
+def err_sycl_attribute_invalid_linkage : Error<
+ "'sy
@@ -14544,6 +14538,23 @@ EvaluateComparisonBinaryOperator(EvalInfo &Info, const
BinaryOperator *E,
(LHSValue.Base && isZeroSized(RHSValue)))
return DiagComparison(
diag::note_constexpr_pointer_comparison_zero_sized);
+ // A constexpr-unknown
Author: Changpeng Fang
Date: 2025-07-11T15:07:21-07:00
New Revision: 8c1b5169484533a41d6a05603315a092c364975d
URL:
https://github.com/llvm/llvm-project/commit/8c1b5169484533a41d6a05603315a092c364975d
DIFF:
https://github.com/llvm/llvm-project/commit/8c1b5169484533a41d6a05603315a092c364975d.diff
https://github.com/changpeng closed
https://github.com/llvm/llvm-project/pull/148292
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/shashi1687 updated
https://github.com/llvm/llvm-project/pull/147400
>From 29c3c9c6d25cc7c47d01a9d819ea37e92361aea2 Mon Sep 17 00:00:00 2001
From: Shashi Shankar
Date: Mon, 7 Jul 2025 22:54:22 +0200
Subject: [PATCH 1/3] Sema: suppress deprecated field warnings in implicit
spe
https://github.com/shashi1687 edited
https://github.com/llvm/llvm-project/pull/147400
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
201 - 300 of 440 matches
Mail list logo