[clang] [llvm] [X86] Remove WIDEKL feature from Pantherlake and Clearwaterforest (PR #148184)

2025-07-11 Thread Phoebe Wang via cfe-commits
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

[clang] [KeyInstr] Add release note & update option (PR #148244)

2025-07-11 Thread Orlando Cazalet-Hyams via 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

[clang] [KeyInstr] Add release note & update option (PR #148244)

2025-07-11 Thread via cfe-commits
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.

[clang] [clang-tools-extra] [Clang] [Diagnostics] Simplify filenames that contain '..' (PR #143520)

2025-07-11 Thread Aaron Ballman via cfe-commits
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

[clang] [WIP][DO NOT MERGE][Clang][Driver] Emit warning when -fsanitize-trap=<...> is passed without associated -fsanitize=<...> (PR #147997)

2025-07-11 Thread Dan Liew via cfe-commits
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

[clang] [clang-tools-extra] [Clang] [Diagnostics] Simplify filenames that contain '..' (PR #143520)

2025-07-11 Thread via 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

[clang-tools-extra] d7a1754 - [clang-tidy][NFC] add '.clang-tidy' config for clang-tidy project (#147793)

2025-07-11 Thread via cfe-commits
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

[clang] [Clang][AArch64] Relax SVE bf16 requirement for opaque builtins. (PR #147795)

2025-07-11 Thread Paul Walker via cfe-commits
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

[clang] [CIR] Add bit reverse and byte reverse operations (PR #147200)

2025-07-11 Thread Sirui Mu via 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/

[clang] [CIR] Add bit reverse and byte reverse operations (PR #147200)

2025-07-11 Thread Sirui Mu via cfe-commits
@@ -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

[clang] [PATCH 1/4] [clang] Improve nested name specifier AST representation (PR #147835)

2025-07-11 Thread via cfe-commits
@@ -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

[clang] [PATCH 1/4] [clang] Improve nested name specifier AST representation (PR #147835)

2025-07-11 Thread via cfe-commits
@@ -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

[clang] [PATCH 1/4] [clang] Improve nested name specifier AST representation (PR #147835)

2025-07-11 Thread via 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

[clang] [PATCH 1/4] [clang] Improve nested name specifier AST representation (PR #147835)

2025-07-11 Thread via cfe-commits
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

[clang] [PATCH 1/4] [clang] Improve nested name specifier AST representation (PR #147835)

2025-07-11 Thread via 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 __

[clang] [PATCH 1/4] [clang] Improve nested name specifier AST representation (PR #147835)

2025-07-11 Thread via cfe-commits
@@ -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

[clang] [Clang] Partial implementation of support for P3074 (trivial unions) (PR #146815)

2025-07-11 Thread via cfe-commits
@@ -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

[clang] [Clang] Partial implementation of support for P3074 (trivial unions) (PR #146815)

2025-07-11 Thread via cfe-commits
@@ -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

[clang] [Clang] Partial implementation of support for P3074 (trivial unions) (PR #146815)

2025-07-11 Thread via cfe-commits
@@ -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; +

[clang] [Clang] Partial implementation of support for P3074 (trivial unions) (PR #146815)

2025-07-11 Thread via cfe-commits
@@ -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() &&

[clang] [Clang] Partial implementation of support for P3074 (trivial unions) (PR #146815)

2025-07-11 Thread via cfe-commits
@@ -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; +

[clang] [Clang] Partial implementation of support for P3074 (trivial unions) (PR #146815)

2025-07-11 Thread via cfe-commits
@@ -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

[clang] [Clang] Partial implementation of support for P3074 (trivial unions) (PR #146815)

2025-07-11 Thread via cfe-commits
@@ -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

[clang] [Clang] fix crash in codegen caused by deferred asm diagnostics under -fopenmp (PR #147163)

2025-07-11 Thread Oleksandr T. via cfe-commits
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

[clang] [clang][scan-deps] Report a scanned TU's visible modules (PR #147969)

2025-07-11 Thread Cyndy Ishida via cfe-commits
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

[clang] [Clang] Extract offloading code from static libs with 'offload-arch=' (PR #147823)

2025-07-11 Thread Joseph Huber via cfe-commits
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

[clang] [llvm] [HIPSTDPAR] Add support for globals (PR #146813)

2025-07-11 Thread Alex Voicu via cfe-commits
@@ -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. +

[clang] [llvm] [HIPSTDPAR] Add support for globals (PR #146813)

2025-07-11 Thread Alex Voicu via cfe-commits
@@ -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. +

[clang] [PowerPC] Add DMF basic builtins (PR #145372)

2025-07-11 Thread Maryam Moghadas via cfe-commits
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

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

2025-07-11 Thread via cfe-commits
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

[clang-tools-extra] [clang-tidy] Improve integer comparison by matching valid expressions outside implicitCastExpr for use-integer-sign-comparison (PR #144240)

2025-07-11 Thread David Rivera via cfe-commits
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

[clang-tools-extra] [clang-tidy] added `RespectOpaqueTypes` option to `readability-qualified-auto check` (PR #147060)

2025-07-11 Thread Baranov Victor via 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

[clang] [clang][analyzer] Add C standard streams to the internal memory space (PR #147766)

2025-07-11 Thread Balázs Kéri via cfe-commits
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

[clang] [Clang] Extract offloading code from static libs with 'offload-arch=' (PR #147823)

2025-07-11 Thread Joseph Huber via cfe-commits
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

[clang] 535d691 - [Clang] Extract offloading code from static libs with 'offload-arch=' (#147823)

2025-07-11 Thread via 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

[clang] AMDGPU: Remove "gws" from the “read-only” target feature list (PR #148141)

2025-07-11 Thread Changpeng Fang via cfe-commits
@@ -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

[clang] [llvm] [IRBuilder] Improve setting of DebugLoc in SetInsertPoint. (PR #147091)

2025-07-11 Thread Abid Qadeer via cfe-commits
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

[clang] df10df8 - [CIR] Fold ComplexImagOp from ComplexCreateOp (#148010)

2025-07-11 Thread via 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

[clang] AMDGPU: Remove "gws" from the “read-only” target feature list (PR #148141)

2025-07-11 Thread Changpeng Fang via cfe-commits
@@ -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 : {

[clang] [CIR] Fold ComplexImagOp from ComplexCreateOp (PR #148010)

2025-07-11 Thread Amr Hesham via cfe-commits
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

[clang] [clang] Fix pointer comparisons between pointers to constexpr-unknown (PR #147663)

2025-07-11 Thread Eli Friedman via 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

[clang] Revert "[clang] [ubsan] add __has_feature for UBSan checks" (PR #148322)

2025-07-11 Thread Florian Mayer via cfe-commits
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:

[clang] 102c15a - Revert "[clang] [ubsan] add __has_feature for UBSan checks" (#148322)

2025-07-11 Thread via cfe-commits
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

[clang] Revert "[clang] [ubsan] add __has_feature for UBSan checks" (PR #148322)

2025-07-11 Thread via cfe-commits
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

[clang] [RISCV] Add -march=unset to cancel and ignore a previous -march. (PR #148321)

2025-07-11 Thread Craig Topper via cfe-commits
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

[clang] Revert "[clang] [ubsan] add __has_feature for UBSan checks" (PR #148322)

2025-07-11 Thread Florian Mayer via cfe-commits
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

[clang] Reapply "[clang] [ubsan] add __has_feature for UBSan checks" (#148322) (PR #148323)

2025-07-11 Thread Florian Mayer via 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] =

[clang] Reapply "[clang] [ubsan] add __has_feature for UBSan checks" (#148322) (PR #148323)

2025-07-11 Thread via cfe-commits
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

[clang] Reapply "[clang] [ubsan] add __has_feature for UBSan checks" (#148322) (PR #148323)

2025-07-11 Thread Florian Mayer via cfe-commits
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

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-11 Thread Tom Honermann via cfe-commits
@@ -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

[clang] [llvm] [HLSL][RootSignature] Retain `SourceLocation` of `RootElement` for `SemaHLSL` diagnostics (PR #147115)

2025-07-11 Thread Finn Plummer via cfe-commits
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

[clang] [RISCV] Add -march=unset to cancel and ignore a previous -march. (PR #148321)

2025-07-11 Thread Craig Topper via 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

[clang] [llvm] [clang] [ubsan] add __has_feature for UBSan checks (PR #148310)

2025-07-11 Thread LLVM Continuous Integration via cfe-commits
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

[clang] [RISCV] Add -march=unset to cancel and ignore a previous -march. (PR #148321)

2025-07-11 Thread via cfe-commits
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

[clang] [llvm] [libclang][Cygwin] Provide unversioned DLL file alongside versioned one (PR #147132)

2025-07-11 Thread Tomohiro Kashiwada via cfe-commits
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/

[clang] 2f1673e - Follow up on #147623

2025-07-11 Thread Owen Pan via cfe-commits
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:

[clang] Reapply "[clang] [ubsan] add __has_feature for UBSan checks" (#148322) (PR #148323)

2025-07-11 Thread Florian Mayer via cfe-commits
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

[clang] AMDGPU: Remove "gws" from the “read-only” target feature list (PR #148141)

2025-07-11 Thread Shilei Tian via cfe-commits
@@ -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 : {

[clang] [clang] Build argument string for clang::warn_unused_result (PR #148090)

2025-07-11 Thread Aaron Ballman via cfe-commits
@@ -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

[clang] [clang] Build argument string for clang::warn_unused_result (PR #148090)

2025-07-11 Thread Aaron Ballman via cfe-commits
@@ -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

[clang] [clang] Build argument string for clang::warn_unused_result (PR #148090)

2025-07-11 Thread Aaron Ballman via cfe-commits
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.

[clang] [clang] Build argument string for clang::warn_unused_result (PR #148090)

2025-07-11 Thread Aaron Ballman via cfe-commits
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

[clang] 15c3793 - [clang][scan-deps] Report a scanned TU's visible modules (#147969)

2025-07-11 Thread via 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

[clang] [clang][scan-deps] Report a scanned TU's visible modules (PR #147969)

2025-07-11 Thread Cyndy Ishida via cfe-commits
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

[clang] [PATCH 1/4] [clang] Improve nested name specifier AST representation (PR #147835)

2025-07-11 Thread via 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

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-11 Thread Orlando Cazalet-Hyams via cfe-commits
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

[clang] [llvm] [DTLTO][Clang] Add support for Integrated Distributed ThinLTO (PR #147265)

2025-07-11 Thread Paul Kirth via cfe-commits
@@ -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 --

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-11 Thread Orlando Cazalet-Hyams via cfe-commits
@@ -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

[clang] [llvm] [KeyInstr] Add docs (PR #137991)

2025-07-11 Thread Orlando Cazalet-Hyams via cfe-commits
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

[clang] [Clang][CodeGen] Emit “trap reasons” on UBSan traps (PR #145967)

2025-07-11 Thread Paul Kirth via cfe-commits
@@ -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; +} + +//

[clang] [llvm] [AMDGPU] Add support for `v_tanh_bf16` on gfx1250 (PR #147425)

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

[clang] [PATCH 1/4] [clang] Improve nested name specifier AST representation (PR #147835)

2025-07-11 Thread John McCall via cfe-commits
@@ -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

[clang] a0fcb50 - [ARM] Improve arm_neon.h header diagnostic when included on unsupported targets (#147817)

2025-07-11 Thread via cfe-commits
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

[clang] [ARM] Improve arm_neon.h header diagnostic when included on unsupported targets (PR #147817)

2025-07-11 Thread Jon Roelofs via cfe-commits
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

[clang] [CIR] Implement SubOp for ComplexType (PR #148025)

2025-07-11 Thread Amr Hesham via 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

[clang] 53183be - [CIR] Fold ComplexRealOp from ComplexCreateOp (#147592)

2025-07-11 Thread via cfe-commits
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

[clang] [CIR] Fold ComplexRealOp from ComplexCreateOp (PR #147592)

2025-07-11 Thread Amr Hesham via cfe-commits
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

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-11 Thread via 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

[clang] [clang] Fix pointer comparisons between pointers to constexpr-unknown (PR #147663)

2025-07-11 Thread Eli Friedman via 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

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

2025-07-11 Thread via cfe-commits
@@ -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,

[clang] [PATCH 1/4] [clang] Improve nested name specifier AST representation (PR #147835)

2025-07-11 Thread Matheus Izvekov via cfe-commits
@@ -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

[clang] [clang-tools-extra] [clang-query] Allow for trailing comma in matchers (PR #148018)

2025-07-11 Thread Aaron Ballman via cfe-commits
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

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

2025-07-11 Thread via cfe-commits
@@ -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

[clang] [CIR] Fold ComplexRealOp from ComplexCreateOp (PR #147592)

2025-07-11 Thread LLVM Continuous Integration via cfe-commits
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

[clang] [Clang] suppress deprecated field warnings in implicit special-member functions (PR #147400)

2025-07-11 Thread Shashi Shankar via 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

[clang] [Clang] Partial implementation of support for P3074 (trivial unions) (PR #146815)

2025-07-11 Thread via cfe-commits
@@ -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

[clang] [Clang] suppress deprecated field warnings in implicit special-member functions (PR #147400)

2025-07-11 Thread Shashi Shankar via cfe-commits
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

[clang] [Clang] Partial implementation of support for P3074 (trivial unions) (PR #146815)

2025-07-11 Thread via cfe-commits
@@ -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; +

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-11 Thread Tom Honermann via cfe-commits
@@ -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

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-11 Thread Tom Honermann via cfe-commits
@@ -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

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-11 Thread Tom Honermann via cfe-commits
@@ -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

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-11 Thread Tom Honermann via cfe-commits
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 _

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-11 Thread Tom Honermann via cfe-commits
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

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-11 Thread Tom Honermann via 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; + +//

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-11 Thread Tom Honermann via cfe-commits
@@ -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

[clang] [clang] Fix pointer comparisons between pointers to constexpr-unknown (PR #147663)

2025-07-11 Thread Eli Friedman via 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

[clang] 8c1b516 - AMDGPU: Implement s_wait_asynccnt and s_wait_tensorcnt for gfx1250 (#148292)

2025-07-11 Thread via cfe-commits
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

[clang] [llvm] AMDGPU: Implement s_wait_asynccnt and s_wait_tensorcnt for gfx1250 (PR #148292)

2025-07-11 Thread Changpeng Fang via cfe-commits
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

[clang] [Clang] suppress deprecated field warnings in implicit special-member functions (PR #147400)

2025-07-11 Thread Shashi Shankar via 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

[clang] [Clang] suppress deprecated field warnings in implicit special-member functions (PR #147400)

2025-07-11 Thread Shashi Shankar via cfe-commits
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

<    1   2   3   4   5   >