[clang-tools-extra] 94bb9e1 - [clang-doc] Serialize record files with mangled name (#148021)

2025-07-11 Thread via cfe-commits
Author: Erick Velez Date: 2025-07-11T13:39:41-07:00 New Revision: 94bb9e12ec4ec243aac747910c5ae6359f354642 URL: https://github.com/llvm/llvm-project/commit/94bb9e12ec4ec243aac747910c5ae6359f354642 DIFF: https://github.com/llvm/llvm-project/commit/94bb9e12ec4ec243aac747910c5ae6359f354642.diff L

[clang-tools-extra] [clang-doc] Serialize record files with mangled name (PR #148021)

2025-07-11 Thread Erick Velez via cfe-commits
https://github.com/evelez7 closed https://github.com/llvm/llvm-project/pull/148021 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[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 tested this and it broke things for me. This turns cygLLVM-20.dll into a > symlink, this doesn't work with existing binaries because DLLs in the import > table can't follow the Cygwin symlinks (they're loaded by the Windows > loader). It looks like for new binaries it does

[clang] 15d36aa - [clang][CodeGen] Preserve addrspace of enqueue_kernel builtin. (#148062)

2025-07-11 Thread via cfe-commits
Author: jofrn Date: 2025-07-11T17:00:28-04:00 New Revision: 15d36aa4ce6f78579c6a6a44226502621bb0c241 URL: https://github.com/llvm/llvm-project/commit/15d36aa4ce6f78579c6a6a44226502621bb0c241 DIFF: https://github.com/llvm/llvm-project/commit/15d36aa4ce6f78579c6a6a44226502621bb0c241.diff LOG: [c

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

2025-07-11 Thread Thurston Dang via cfe-commits
thurstond wrote: > Complements [this feature](https://github.com/llvm/llvm-project/pull/141997); > adds a synthetic inline frame named __clang_trap_msg$$ > in debug info. [stub, since I'm not 100% sure on this and kind of just > repeats what's already been stated in the first paragraph]. AFAI

[clang] [clang-tools-extra] [lldb] [llvm] [mlir] Fix typos 'seperate' -> 'separate' (NFC) (PR #144368)

2025-07-11 Thread via cfe-commits
https://github.com/GameRoMan edited https://github.com/llvm/llvm-project/pull/144368 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[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
@@ -730,6 +754,18 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC, options::OPT_fno_sanitize_recover_EQ); RecoverableKinds &= Kinds; + // Parse any -fsanitize-trap=<...> flags the user provided, then + // diagnose any which do not have a matching -fsanitize=<...>

[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
@@ -348,6 +348,30 @@ parseSanitizeSkipHotCutoffArgs(const Driver &D, const llvm::opt::ArgList &Args, return Cutoffs; } +// Given a set of mismatched bits, TrapOnly (bits the user asked to trap but +// that aren’t actually enabled), emit a warning based on -fsanitize-trap=NA

[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
@@ -874,4 +874,9 @@ def warn_drv_openacc_without_cir : Warning<"OpenACC directives will result in no runtime behavior; use " "-fclangir to enable runtime effect">, InGroup; + +def warn_drv_sanitize_trap_mismatch : Warning< + "-fsanitize-trap=%0 has no e

[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] fix crash in codegen caused by deferred asm diagnostics under -fopenmp (PR #147163)

2025-07-11 Thread Alexey Bataev via cfe-commits
@@ -2092,18 +2092,36 @@ Sema::SemaDiagnosticBuilder::~SemaDiagnosticBuilder() { } Sema::SemaDiagnosticBuilder -Sema::targetDiag(SourceLocation Loc, unsigned DiagID, const FunctionDecl *FD) { +Sema::targetDiag(SourceLocation Loc, unsigned DiagID, FunctionDecl *FD) { FD = FD

[clang] [Clang][P1061] Fix template arguments in local classes (PR #121225)

2025-07-11 Thread Matheus Izvekov via cfe-commits
@@ -4433,8 +4433,12 @@ Sema::InstantiateClassMembers(SourceLocation PointOfInstantiation, // No need to instantiate in-class initializers during explicit // instantiation. if (Field->hasInClassInitializer() && TSK == TSK_ImplicitInstantiation) { +// H

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

2025-07-11 Thread Changpeng Fang via cfe-commits
https://github.com/changpeng updated https://github.com/llvm/llvm-project/pull/148141 >From c9cf9873e35205f9715acd545680713c0dd912aa Mon Sep 17 00:00:00 2001 From: Changpeng Fang Date: Fri, 11 Jul 2025 01:04:04 -0700 Subject: [PATCH 1/3] =?UTF-8?q?AMDGPU:=20Remove=20"gws"=20from=20the=20?= =?U

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

2025-07-11 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Actually, thinking about it, maybe we should just do the nop insertion for UEFI targets. The UEFI environment is very similar to Windows. CC @Prabhuk . https://github.com/llvm/llvm-project/pull/144745 ___ cfe-commits mailing lis

[clang-tools-extra] [clangd] Improve Markup Rendering (PR #140498)

2025-07-11 Thread via cfe-commits
https://github.com/tcottin updated https://github.com/llvm/llvm-project/pull/140498 >From 8fadd8d51fa3d96c7fb82b9d749ef3f35441ac64 Mon Sep 17 00:00:00 2001 From: Tim Cottin Date: Mon, 19 May 2025 06:26:36 + Subject: [PATCH 1/5] [clangd] Improve Markup Rendering --- clang-tools-extra/clang

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

2025-07-11 Thread Dan Liew via cfe-commits
@@ -85,6 +85,96 @@ enum VariableTypeDescriptorKind : uint16_t { //Miscellaneous Helper Methods //======// +static llvm::StringRef GetUBSanTrapForHandler(SanitizerHandler ID) { -

[clang] Thread Safety Analysis: Warn when using negative reentrant capability (PR #141599)

2025-07-11 Thread Cory Fields via cfe-commits
theuni wrote: > > On a related note, do we emit `-Wthread-safety-negative` for reentrant > > locks? I don't remember that we carved out an exception for that, and we > > probably should. > > We do - and it's deliberate on my part as I've been trying to indicate that > there might be valid use

[clang-tools-extra] [clang-tidy] Teach `readability-uppercase-literal-suffix` about C++23 and C23 suffixes (PR #148275)

2025-07-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Victor Chernyakin (localspook) Changes C++23 integer literal suffixes: | Suffix | Type | |-|-| |`z` | `std::make_signed_t`| |`uz` | `std::size_t`| C++23 floating-point literal suffixe

[clang-tools-extra] [clang-tidy] Teach `readability-uppercase-literal-suffix` about C++23 and C23 suffixes (PR #148275)

2025-07-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Victor Chernyakin (localspook) Changes C++23 integer literal suffixes: | Suffix | Type | |-|-| |`z` | `std::make_signed_t`| |`uz` | `std::size_t`| C++23 floating-point literal suffixes: | S

[clang-tools-extra] [clang-tidy] Teach `readability-uppercase-literal-suffix` about C++23 and C23 suffixes (PR #148275)

2025-07-11 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/148275 C++23 integer literal suffixes: | Suffix | Type | |-|-| |`z` | `std::make_signed_t`| |`uz` | `std::size_t`| C++23 floating-point literal suffixes: | Suffix | Type | |-|

[clang-tools-extra] [doc] Add documentation for clang-change-namespace (PR #148277)

2025-07-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Konrad Kleine (kwk) Changes This adds rst documentation for the `clang-change-namespace` program. I ran the examples locally to ensure they work. See #35519 --- Full diff: https://github.com/llvm/llvm-project/pull/148277.diff

[clang-tools-extra] [doc] Add documentation for clang-change-namespace (PR #148277)

2025-07-11 Thread Konrad Kleine via cfe-commits
https://github.com/kwk created https://github.com/llvm/llvm-project/pull/148277 This adds rst documentation for the `clang-change-namespace` program. I ran the examples locally to ensure they work. See #35519 >From e5f1b218ae17c2c9767ddff7fe3d2fbb2962e4fb Mon Sep 17 00:00:00 2001 From: Konrad

[clang-tools-extra] [clang-tidy] Teach `readability-uppercase-literal-suffix` about C++23 and C23 suffixes (PR #148275)

2025-07-11 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook edited https://github.com/llvm/llvm-project/pull/148275 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-11 Thread Dan Liew via cfe-commits
@@ -85,6 +85,96 @@ enum VariableTypeDescriptorKind : uint16_t { //Miscellaneous Helper Methods //======// +static llvm::StringRef GetUBSanTrapForHandler(SanitizerHandler ID) { + switch

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

2025-07-11 Thread Dan Liew via cfe-commits
delcypher wrote: > What is debug info size impact? We'll ask @anthonyhatran to run some experiments on a few open source projects (if you have any that you interested in then particular please let us know). I wonder how much this will matter in practice though because (at least for Apple plat

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

2025-07-11 Thread Tom Honermann via cfe-commits
@@ -4084,6 +4084,19 @@ bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, Scope *S, diag::note_carries_dependency_missing_first_decl) << 0/*Function*/; } +// SYCL spec 2020 +// The first declaration of a function with external linkage m

[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,16 @@ 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][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-11 Thread Tom Honermann via cfe-commits
@@ -100,11 +100,9 @@ int main() { // Verify that SYCL kernel caller functions are emitted for each device target. // -// FIXME: The following set of matches are used to skip over the declaration of -// main(). main() shouldn't be emitted in device code, but that pruning isn't

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

2025-07-11 Thread Tom Honermann via cfe-commits
@@ -4084,6 +4084,19 @@ bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, Scope *S, diag::note_carries_dependency_missing_first_decl) << 0/*Function*/; } +// SYCL spec 2020 +// The first declaration of a function with external linkage m

[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
@@ -4084,6 +4084,19 @@ bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, Scope *S, diag::note_carries_dependency_missing_first_decl) << 0/*Function*/; } +// SYCL spec 2020 +// The first declaration of a function with external linkage m

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

2025-07-11 Thread Tom Honermann via cfe-commits
@@ -1641,6 +1641,13 @@ def DeviceKernel : DeclOrTypeAttr { }]; } +def SYCLExternal : InheritableAttr { + let Spellings = [Clang<"sycl_external">]; + let Subjects = SubjectList<[Function], ErrorDiag>; + let LangOpts = [SYCLDevice]; tahonermann wrote: In res

[clang] [HLSL] Disallow writing to readonly resources (PR #147806)

2025-07-11 Thread Chris B via cfe-commits
https://github.com/llvm-beanz approved this pull request. https://github.com/llvm/llvm-project/pull/147806 ___ 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
https://github.com/tahonermann requested changes to this pull request. This is looking good @schittir! I added some comments for minor issues. I still need to review the tests more closely. https://github.com/llvm/llvm-project/pull/140282 ___ cfe-comm

[clang] [HLSL] Disallow writing to readonly resources (PR #147806)

2025-07-11 Thread Steven Perron via cfe-commits
https://github.com/s-perron approved this pull request. https://github.com/llvm/llvm-project/pull/147806 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-11 Thread Tomohiro Kashiwada via cfe-commits
https://github.com/kikairoya updated https://github.com/llvm/llvm-project/pull/147132 >From 9198e98e6dd7a02c5c5b65e400d788b6bac3a3c3 Mon Sep 17 00:00:00 2001 From: kikairoya Date: Sat, 28 Jun 2025 13:11:42 +0900 Subject: [PATCH 1/5] [libclang][Cygwin] Put unversioned DLL file aside of versione

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

2025-07-11 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/147793 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for non-virtual base class initialization (PR #148080)

2025-07-11 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/148080 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-11 Thread Dan Liew via cfe-commits
delcypher wrote: @fmayer > I would prefer this to be behind a flag (not necessarily in this PR), even if > it's default turned on. People might not want synthetic frames added to their > debug information and the top frame to point to the real code; also as this > somewhat overlaps with the l

[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
@@ -730,6 +754,18 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC, options::OPT_fno_sanitize_recover_EQ); RecoverableKinds &= Kinds; + // Parse any -fsanitize-trap=<...> flags the user provided, then + // diagnose any which do not have a matching -fsanitize=<...>

[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: Gentle ping @vbvictor 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] [llvm] [HIPSTDPAR] Add support for globals (PR #146813)

2025-07-11 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx updated https://github.com/llvm/llvm-project/pull/146813 >From d98e3785a144ada9881cdbe24c86f273850eca20 Mon Sep 17 00:00:00 2001 From: Alex Voicu Date: Thu, 3 Jul 2025 02:02:04 +0100 Subject: [PATCH 1/6] Add support for true globals. --- llvm/lib/Transforms/HipStdPa

[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 Baranov Victor via cfe-commits
vbvictor wrote: I will take a look at the weekend. Sorry for double ping of other reviewers, GitHub mobile is kind of strange.. https://github.com/llvm/llvm-project/pull/144240 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[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] Fix Windows EH IP2State tables (remove +1 bias) (PR #144745)

2025-07-11 Thread Eli Friedman via cfe-commits
@@ -37,9 +37,11 @@ cond.end: ; preds = %entry, %cond.true ; CHECK: testq ; CHECK: je ; CHECK: callq alloc +; CHECK-NEXT: nop efriedma-quic wrote: Do we actually need a nop here? As far as I can tell, msvc doesn't inser

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

2025-07-11 Thread Eli Friedman via cfe-commits
@@ -101,7 +101,8 @@ define void @f5() "frame-pointer"="all" { ; CHECK-NEXT:.seh_endprologue ; CHECK-NEXT:leaq -92(%rbp), %rcx ; CHECK-NEXT:callq external -; CHECK-NEXT:nop +; UEFI does not have SEH, so does not require NOP +; WIN64-NEXT:nop

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

2025-07-11 Thread Eli Friedman 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 efriedma-quic wrote: Sho

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

2025-07-11 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: You might need to edit the FileCheck commands for the UEFI tests so there's a non-overlapping prefix it can use. (When two outputs in the same test file are different, FileCheck usually splits the emitted checks on a per-function basis.) https://github.com/llvm/llvm-proje

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

2025-07-11 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: What is debug info size impact? https://github.com/llvm/llvm-project/pull/145967 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-11 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > @fmayer > > > I would prefer this to be behind a flag (not necessarily in this PR), even > > if it's default turned on. People might not want synthetic frames added to > > their debug information and the top frame to point to the real code; also > > as this somewhat overla

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

2025-07-11 Thread Vitaly Buka via cfe-commits
@@ -85,6 +85,96 @@ enum VariableTypeDescriptorKind : uint16_t { //Miscellaneous Helper Methods //======// +static llvm::StringRef GetUBSanTrapForHandler(SanitizerHandler ID) { -

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

2025-07-11 Thread Vitaly Buka via cfe-commits
@@ -85,6 +85,96 @@ enum VariableTypeDescriptorKind : uint16_t { //Miscellaneous Helper Methods //======// +static llvm::StringRef GetUBSanTrapForHandler(SanitizerHandler ID) { + switch

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

2025-07-11 Thread Tomohiro Kashiwada via cfe-commits
https://github.com/kikairoya updated https://github.com/llvm/llvm-project/pull/147132 >From 9198e98e6dd7a02c5c5b65e400d788b6bac3a3c3 Mon Sep 17 00:00:00 2001 From: kikairoya Date: Sat, 28 Jun 2025 13:11:42 +0900 Subject: [PATCH 1/6] [libclang][Cygwin] Put unversioned DLL file aside of versione

[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 requested changes to this pull request. Looks good for the sketch patch. I have a few minor questions and nits that I've left. Please add a few driver test cases to illustrate how you expect this to work (including a test case that suppresses the warning). https://

[clang] [clang-tools-extra] [lldb] [Clang][AST][NFC] (`RecordDecl` -> `CXXRecordDecl`)`::isInjectedClassName` (PR #148195)

2025-07-11 Thread Yanzuo Liu via cfe-commits
zwuis wrote: > > I'm not sure if I should update > > `llvm/include/llvm/Testing/Demangle/DemangleTestCases.inc` and > > `libcxxabi/test/DemangleTestCases.inc`. > > Why would you need to? There are no changes to mangling/demangling here AFAICT These files test demangling `RecordDecl::isInjecte

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

2025-07-11 Thread Michael Klemm via cfe-commits
https://github.com/mjklemm approved this pull request. LGTM 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] [Clang][CodeGen] Emit “trap reasons” on UBSan traps (PR #145967)

2025-07-11 Thread Dan Liew via cfe-commits
delcypher wrote: @PiJoules > Moving forward, I think it would be good to gather consensus on a better > scheme with respect to verbose messages handled by the debugger. Rather than > baking a custom format into the function name, we think it's more portable > and straightforward to use stand

[clang] [Clang][P1061] Fix template arguments in local classes (PR #121225)

2025-07-11 Thread Jason Rice via cfe-commits
@@ -4433,8 +4433,12 @@ Sema::InstantiateClassMembers(SourceLocation PointOfInstantiation, // No need to instantiate in-class initializers during explicit // instantiation. if (Field->hasInClassInitializer() && TSK == TSK_ImplicitInstantiation) { +// H

[clang] [CIR] Upstream ComplexRealPtrOp for ComplexType (PR #144235)

2025-07-11 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/144235 >From 1543f10164d64c28951ae4fff396f58877c43f74 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Mon, 7 Jul 2025 20:52:33 +0200 Subject: [PATCH 1/2] [CIR] Upstream ComplexRealPtrOp for ComplexType --- cla

[clang] 44baef9 - [CIR] Use ZeroAttr as zeroinitializer for ComplexType (#148033)

2025-07-11 Thread via cfe-commits
Author: Amr Hesham Date: 2025-07-11T19:57:21+02:00 New Revision: 44baef98431e21309a4b364fa7b3704a7b687ad6 URL: https://github.com/llvm/llvm-project/commit/44baef98431e21309a4b364fa7b3704a7b687ad6 DIFF: https://github.com/llvm/llvm-project/commit/44baef98431e21309a4b364fa7b3704a7b687ad6.diff LO

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

2025-07-11 Thread Eli Friedman 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 efriedma-quic wrote: I t

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

2025-07-11 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > There is still one test case that fails: `cfi-check-fail-debuginfo.c`. From > the crash report, I thought it was due to double wrapping, so I initially > added a guard to prevent that, leading the test case to pass. Upon internal > discussion, the guard has since been remov

[clang] [CIR] Use ZeroAttr as zeroinitializer for ComplexType (PR #148033)

2025-07-11 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/148033 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-11 Thread Eli Friedman via cfe-commits
@@ -37,9 +37,11 @@ cond.end: ; preds = %entry, %cond.true ; CHECK: testq ; CHECK: je ; CHECK: callq alloc +; CHECK-NEXT: nop efriedma-quic wrote: There is no handler? This function doesn't contain any exception-handlin

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

2025-07-11 Thread via cfe-commits
sivadeilra wrote: > This looks hand-edited; please regenerate with update_llc_test_checks. I ran `update_llc_test_checks.py` on `win64_frame.ll` and it deleted all of the checks from the body of `f5` and `f6`. That doesn't seem right. I tried running it with `--function f5` and it still delet

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

2025-07-11 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: I don't think we want to use the "isInvalidDecl" bit here. The declaration is still valid in the sense that code referring to the declaration should treat it normally. (For example, we want overload resolution to work the same way it usually does.) One way to think of t

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

2025-07-11 Thread Shilei Tian via cfe-commits
shiltian wrote: This PR is messed up at this moment. https://github.com/llvm/llvm-project/pull/147425 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][OpenMP] In 6.0, can omit length in array section (PR #148048)

2025-07-11 Thread David Pagan via cfe-commits
ddpagan wrote: @alexey-bataev - thanks for reviewing, Alexey. I'll put together a codegen test. https://github.com/llvm/llvm-project/pull/148048 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

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

2025-07-11 Thread Nikita Popov via cfe-commits
https://github.com/nikic commented: clang/test/DebugInfo/KeyInstructions/flag.cpp is failing. https://github.com/llvm/llvm-project/pull/148244 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[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 created https://github.com/llvm/llvm-project/pull/148292 None >From c220c16d134dd1a1690e973abd4ca5b2401e6510 Mon Sep 17 00:00:00 2001 From: Changpeng Fang Date: Fri, 11 Jul 2025 13:20:00 -0700 Subject: [PATCH] AMDGPU: Implement s_wait_asynccnt and s_wait_tensorcnt

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

2025-07-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Changpeng Fang (changpeng) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/148292.diff 8 Files Affected: - (modified) clang/include/clang/Basic/BuiltinsAMDGPU.def (+3) - (modified) clang/test/CodeGenOpenCL/bu

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

2025-07-11 Thread Anthony Tran via cfe-commits
@@ -730,6 +754,18 @@ SanitizerArgs::SanitizerArgs(const ToolChain &TC, options::OPT_fno_sanitize_recover_EQ); RecoverableKinds &= Kinds; + // Parse any -fsanitize-trap=<...> flags the user provided, then + // diagnose any which do not have a matching -fsanitize=<...>

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

2025-07-11 Thread Anthony Tran via cfe-commits
https://github.com/anthonyhatran 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] [llvm] [HLSL][RootSignature] Retain `SourceLocation` of `RootElement` for `SemaHLSL` diagnostics (PR #147115)

2025-07-11 Thread via cfe-commits
https://github.com/joaosaffran approved this pull request. 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-tools-extra] [clang-doc] Serialize record files with mangled name (PR #148021)

2025-07-11 Thread Erick Velez via cfe-commits
evelez7 wrote: ### Merge activity * **Jul 11, 8:37 PM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/148021). https://github.com/llvm/llvm-project/pull/148021

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

2025-07-11 Thread Anthony Tran via cfe-commits
https://github.com/anthonyhatran deleted https://github.com/llvm/llvm-project/pull/145967 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-11 Thread Anthony Tran via cfe-commits
@@ -68,9 +68,9 @@ double f1(int b, int i) { //. // CHECK-TRAP: [[META0:![0-9]+]] = distinct !DICompileUnit(language: DW_LANG_C11, file: [[META1:![0-9]+]], isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None) -// CHEC

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

2025-07-11 Thread via cfe-commits
https://github.com/zebullax updated https://github.com/llvm/llvm-project/pull/148090 >From 11909560ed6cb4e56192fbbfe4d8b1cdf58e1cb1 Mon Sep 17 00:00:00 2001 From: zebullax Date: Fri, 11 Jul 2025 09:12:44 +0900 Subject: [PATCH 1/2] Build argument string for clang::warn_unused_result Preserve th

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

2025-07-11 Thread Anthony Tran via cfe-commits
https://github.com/anthonyhatran edited https://github.com/llvm/llvm-project/pull/145967 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-11 Thread Changpeng Fang via cfe-commits
changpeng wrote: Need to fix two additional LIT tests... https://github.com/llvm/llvm-project/pull/148141 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-11 Thread via cfe-commits
https://github.com/zebullax updated https://github.com/llvm/llvm-project/pull/148090 >From 11909560ed6cb4e56192fbbfe4d8b1cdf58e1cb1 Mon Sep 17 00:00:00 2001 From: zebullax Date: Fri, 11 Jul 2025 09:12:44 +0900 Subject: [PATCH 1/2] Build argument string for clang::warn_unused_result Preserve th

[clang] [Clang] Consider default template arguments when synthesizing CTAD guides (PR #147675)

2025-07-11 Thread Younan Zhang via cfe-commits
@@ -1061,15 +1061,36 @@ BuildDeductionGuideForTypeAlias(Sema &SemaRef, SmallVector DeduceResults( F->getTemplateParameters()->size()); + // We don't have to deduce against the alias template specialization, + // if the source template is a synthesized alias deduction

[clang] [Clang] Consider default template arguments when synthesizing CTAD guides (PR #147675)

2025-07-11 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/147675 >From f8b1894ad39560edb5bb0c14194a3a2d54a911ff Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Wed, 9 Jul 2025 16:29:45 +0800 Subject: [PATCH 1/3] [Clang] Consider default template arguments when synthesizing

[clang] [Clang] Consider default template arguments when synthesizing CTAD guides (PR #147675)

2025-07-11 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/147675 >From f8b1894ad39560edb5bb0c14194a3a2d54a911ff Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Wed, 9 Jul 2025 16:29:45 +0800 Subject: [PATCH 1/2] [Clang] Consider default template arguments when synthesizing

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

2025-07-11 Thread Changpeng Fang via cfe-commits
https://github.com/changpeng updated https://github.com/llvm/llvm-project/pull/148141 >From c9cf9873e35205f9715acd545680713c0dd912aa Mon Sep 17 00:00:00 2001 From: Changpeng Fang Date: Fri, 11 Jul 2025 01:04:04 -0700 Subject: [PATCH 1/2] =?UTF-8?q?AMDGPU:=20Remove=20"gws"=20from=20the=20?= =?U

[clang] c042273 - [clang][bytecode] Check lambda captures before binding decls (#148130)

2025-07-11 Thread via cfe-commits
Author: Timm Baeder Date: 2025-07-11T10:51:59+02:00 New Revision: c0422733e3b78ae29cc41b729a2a4adafc0c63bc URL: https://github.com/llvm/llvm-project/commit/c0422733e3b78ae29cc41b729a2a4adafc0c63bc DIFF: https://github.com/llvm/llvm-project/commit/c0422733e3b78ae29cc41b729a2a4adafc0c63bc.diff L

[clang] [clang][bytecode] Check lambda captures before binding decls (PR #148130)

2025-07-11 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/148130 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[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
@@ -519,14 +519,53 @@ void reopen_std_stream(void) { if (!fp) return; stdout = fp; // Let's make them alias. - clang_analyzer_eval(fp == oldStdout); // expected-warning {{UNKNOWN}} - clang_analyzer_eval(fp == stdout);// expected-warning {{TRUE}} no-FALSE -

[clang] [LifetimeSafety] Introduce intra-procedural analysis in Clang (PR #142313)

2025-07-11 Thread Utkarsh Saxena via cfe-commits
usx95 wrote: Sorry for the trouble. Thanks @Prabhuk and @dyung for spotting and fixing this! https://github.com/llvm/llvm-project/pull/142313 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [LifetimeSafety] Introduce intra-procedural analysis in Clang (PR #142313)

2025-07-11 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-x64-windows-msvc` running on `windows-gcebot2` while building `clang` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/63/builds/7795 Here is the relevant piece of the build

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

2025-07-11 Thread Corentin Jabot via cfe-commits
cor3ntin wrote: This change needs a release note. Please add an entry to `clang/docs/ReleaseNotes.rst` in the section the most adapted to the change, and referencing any Github issue this change fixes. Thanks! https://github.com/llvm/llvm-project/pull/148090 ___

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

2025-07-11 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM with a release note Please give some time for @AaronBallman to look at this change too https://github.com/llvm/llvm-project/pull/148090 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang][CodeGen] Set `dead_on_return` on indirect pointer arguments (PR #148159)

2025-07-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-systemz Author: Antonio Frighetto (antoniofrighetto) Changes Let Clang emit `dead_on_return` attribute on indirect pointer arguments, namely, large aggregates that the ABI mandates be passed by value, but lowered to an indirect argument. Writes

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

2025-07-11 Thread via cfe-commits
https://github.com/zebullax updated https://github.com/llvm/llvm-project/pull/148090 >From 11909560ed6cb4e56192fbbfe4d8b1cdf58e1cb1 Mon Sep 17 00:00:00 2001 From: zebullax Date: Fri, 11 Jul 2025 09:12:44 +0900 Subject: [PATCH 1/3] Build argument string for clang::warn_unused_result Preserve th

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

2025-07-11 Thread via cfe-commits
zebullax wrote: Seems 🟢 ``` ➜ clang git:(patch-1) ✗ build/bin/llvm-lit -sv clang-p2996/clang/test/SemaCXX/warn-unused-result.cpp ... Testing Time: 0.40s Total Discovered Tests: 1 Passed: 1 (100.00%) ``` https://github.com/llvm/llvm-project/pull/148090 ___

[clang] [LifetimeSafety] Implement dataflow analysis for loan propagation (PR #148065)

2025-07-11 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 updated https://github.com/llvm/llvm-project/pull/148065 >From 123045c4db9ec6969fc111ab817b8f238d0ee23c Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Thu, 10 Jul 2025 22:00:01 + Subject: [PATCH] [LifetimeSafety] Implement dataflow analysis for loan propagatio

[clang] fa921d1 - [Clang][Doc] Add Changelog line for (#144886) (#147978)

2025-07-11 Thread via cfe-commits
Author: Juan Manuel Martinez Caamaño Date: 2025-07-11T12:43:40+02:00 New Revision: fa921d166a77afbf0e1c4b2e0b4c0020da21594c URL: https://github.com/llvm/llvm-project/commit/fa921d166a77afbf0e1c4b2e0b4c0020da21594c DIFF: https://github.com/llvm/llvm-project/commit/fa921d166a77afbf0e1c4b2e0b4c002

[clang] [Clang][Doc] Add Changelog line for (#144886) (PR #147978)

2025-07-11 Thread Juan Manuel Martinez Caamaño via cfe-commits
https://github.com/jmmartinez closed https://github.com/llvm/llvm-project/pull/147978 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [lldb] [Clang][AST][NFC] (`RecordDecl` -> `CXXRecordDecl`)`::isInjectedClassName` (PR #148195)

2025-07-11 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/148195 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] a61ea9f - [clang-tidy] Add an option in 'readability-named-parameter' to print names without comment (#147953)

2025-07-11 Thread via cfe-commits
Author: Dmitry Polukhin Date: 2025-07-11T11:51:20+01:00 New Revision: a61ea9fd9b9c100ce4fce9212dc85230257fd5c8 URL: https://github.com/llvm/llvm-project/commit/a61ea9fd9b9c100ce4fce9212dc85230257fd5c8 DIFF: https://github.com/llvm/llvm-project/commit/a61ea9fd9b9c100ce4fce9212dc85230257fd5c8.dif

  1   2   3   4   5   >