[clang] [C23] Handle type compatibility of unnamed records (PR #141783)

2025-05-28 Thread Aaron Ballman via cfe-commits
@@ -359,3 +359,35 @@ struct alignment { // c17-error {{redefinition of 'alignment'}} \ c23-error {{type 'struct alignment' has a member with an attribute which currently causes the types to be treated as though they are incompatible}} int x; }; + +//

[clang] [C23] Handle type compatibility of unnamed records (PR #141783)

2025-05-28 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/141783 >From deeb52c330fc0c1fbdbfe77403c1320d76fa460d Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 28 May 2025 10:51:07 -0400 Subject: [PATCH 1/4] [C23] Handle type compatibility of unnamed records At

[clang] [llvm] [DirectX] Use resource names when generating DXIL metadata (PR #140635)

2025-05-28 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/140635 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Separate implicit int conversion on negation sign to new diagnostic group (PR #139429)

2025-05-28 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,64 @@ +// RUN: %clang_cc1 %s -verify -Wimplicit-int-conversion +// RUN: %clang_cc1 %s -verify -Wimplicit-int-conversion -Wno-implicit-int-conversion-on-negation -DNO_DIAG + +char test_char(char x) { + return -x; +#ifndef NO_DIAG + // expected-warning@-2 {{implicit co

[clang] [Clang] Separate implicit int conversion on negation sign to new diagnostic group (PR #139429)

2025-05-28 Thread Aaron Ballman via cfe-commits
@@ -352,6 +352,9 @@ Improvements to Clang's diagnostics - Now correctly diagnose a tentative definition of an array with static storage duration in pedantic mode in C. (#GH50661) +- Split diagnosis of implicit integer comparison on negation to a new diagnostic group ``-Wimp

[clang] [Clang] Separate implicit int conversion on negation sign to new diagnostic group (PR #139429)

2025-05-28 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman edited https://github.com/llvm/llvm-project/pull/139429 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Separate implicit int conversion on negation sign to new diagnostic group (PR #139429)

2025-05-28 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,64 @@ +// RUN: %clang_cc1 %s -verify -Wimplicit-int-conversion +// RUN: %clang_cc1 %s -verify -Wimplicit-int-conversion -Wno-implicit-int-conversion-on-negation -DNO_DIAG AaronBallman wrote: A better approach than using `-D` is to specify a prefix to

[clang] [Clang] Separate implicit int conversion on negation sign to new diagnostic group (PR #139429)

2025-05-28 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman commented: Thank you for working on this! https://github.com/llvm/llvm-project/pull/139429 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [llvm] [clang] Simplify device kernel attributes (PR #137882)

2025-05-28 Thread Nick Sarnie via cfe-commits
https://github.com/sarnex updated https://github.com/llvm/llvm-project/pull/137882 >From 080a9d43ba6544d46c2b36c5dc6a5af421264580 Mon Sep 17 00:00:00 2001 From: "Sarnie, Nick" Date: Wed, 7 May 2025 12:17:30 -0700 Subject: [PATCH 1/6] [clang] Simplify device kernel attributes Signed-off-by: Sar

[clang] [llvm] [DirectX] Detect resources with identical overlapping binding (PR #140645)

2025-05-28 Thread Helena Kotas via cfe-commits
https://github.com/hekota edited https://github.com/llvm/llvm-project/pull/140645 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C23] Handle type compatibility of unnamed records (PR #141783)

2025-05-28 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/141783 >From deeb52c330fc0c1fbdbfe77403c1320d76fa460d Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 28 May 2025 10:51:07 -0400 Subject: [PATCH 1/5] [C23] Handle type compatibility of unnamed records At

[clang] [clang][modules][deps]Remove -F option from test for clang-scan-deps (PR #141614)

2025-05-28 Thread Cyndy Ishida via cfe-commits
cyndyishida wrote: > what is the correct way to enable support for -F in clang tests? @jamieschmeiser can you please answer my question? https://github.com/llvm/llvm-project/pull/141614 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://

[clang] [clang][modules][deps]Remove -F option from test for clang-scan-deps (PR #141614)

2025-05-28 Thread Jamie Schmeiser via cfe-commits
jamieschmeiser wrote: I am looking into what is done elsewhere. Not relying on -F, as is now the case here, is one way (which doesn't really answer your question...) https://github.com/llvm/llvm-project/pull/141614 ___ cfe-commits mailing list cfe-co

[libcxx] [libcxxabi] [libunwind] [llvm] [libcxxabi][libunwind] Support for using LLVM libc (PR #134893)

2025-05-28 Thread Petr Hosek via cfe-commits
petrhosek wrote: @ldionne Ping? https://github.com/llvm/llvm-project/pull/134893 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyIntsr][Clang] Builtins alloca auto-init atom (PR #134651)

2025-05-28 Thread Stephen Tozer via cfe-commits
https://github.com/SLTozer approved this pull request. https://github.com/llvm/llvm-project/pull/134651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [Sema] Fix bug in builtin AS override (PR #138141)

2025-05-28 Thread Jay Foad via cfe-commits
jayfoad wrote: > Thanks. I will wait for #137425 to be resolved, then rebase or convert this > PR as needed. It's merged now so can you rebase? https://github.com/llvm/llvm-project/pull/138141 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[clang] [C2y] Handle FP-suffixes on prefixed octals (#141230) (PR #141695)

2025-05-28 Thread Naveen Seth Hanig via cfe-commits
@@ -1432,14 +1432,26 @@ void NumericLiteralParser::ParseNumberStartingWithZero(SourceLocation TokLoc) { Diags.Report(TokLoc, DiagId); ++s; DigitsBegin = s; -SawOctalPrefix = true; +radix = 8; naveen-seth wrote: I don't think the octal digi

[clang] [llvm] [HLSL][SPIR-V] Handle SV_Postion builtin in PS (PR #141759)

2025-05-28 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts created https://github.com/llvm/llvm-project/pull/141759 This PR goes on top of #138530 This commit is using the same mechanism as vk::ext_builtin_input to implement the SV_Position semantic input. The HLSL signature is not yet ready for DXIL, hence this commit only i

[libclc] [libclc] Move vload & vstore to CLC library (PR #141755)

2025-05-28 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/141755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] add fix-it hints for unknown attributes (PR #141305)

2025-05-28 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: I'm really in favor of this direction, this is great, thank you! I have a few suggestions here (and if there is good reason, feel free to ignore the ones re return-type & setting invalid in particular), but this is pretty good for me. https://github.co

[clang] [Clang] add fix-it hints for unknown attributes (PR #141305)

2025-05-28 Thread Erich Keane via cfe-commits
@@ -1842,8 +1842,7 @@ void Parser::ProhibitCXX11Attributes(ParsedAttributes &Attrs, continue; if (AL.getKind() == ParsedAttr::UnknownAttribute) { if (WarnOnUnknownAttrs) -Diag(AL.getLoc(), diag::warn_unknown_attribute_ignored) -<< AL << AL.g

[clang] [Clang] add fix-it hints for unknown attributes (PR #141305)

2025-05-28 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/141305 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] add fix-it hints for unknown attributes (PR #141305)

2025-05-28 Thread Erich Keane via cfe-commits
@@ -7867,15 +7865,16 @@ void Sema::checkUnusedDeclAttributes(Declarator &D) { void Sema::DiagnoseUnknownAttribute(const ParsedAttr &AL) { std::string NormalizedFullName = '\'' + AL.getNormalizedFullName() + '\''; + SourceRange NR = AL.getNormalizedRange();

[clang] [Clang] add fix-it hints for unknown attributes (PR #141305)

2025-05-28 Thread Erich Keane via cfe-commits
@@ -672,12 +672,13 @@ static Attr *ProcessStmtAttribute(Sema &S, Stmt *St, const ParsedAttr &A, !(A.existsInTarget(S.Context.getTargetInfo()) || (S.Context.getLangOpts().SYCLIsDevice && Aux && A.existsInTarget(*Aux { -S.Diag(A.getLoc(), A.isRegul

[clang] [clang] Move opt level in clang toolchain to clang::ConstructJob start (PR #141036)

2025-05-28 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu closed https://github.com/llvm/llvm-project/pull/141036 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 06ee672 - [clang] Move opt level in clang toolchain to clang::ConstructJob start (#141036)

2025-05-28 Thread via cfe-commits
Author: Omar Ahmed Date: 2025-05-28T07:40:00-06:00 New Revision: 06ee672fc5222009d38fa8334b0b5438645f2a66 URL: https://github.com/llvm/llvm-project/commit/06ee672fc5222009d38fa8334b0b5438645f2a66 DIFF: https://github.com/llvm/llvm-project/commit/06ee672fc5222009d38fa8334b0b5438645f2a66.diff LO

[clang] [llvm] Support the inline asm 'a' constraint on PowerPC (PR #141604)

2025-05-28 Thread Kamau Bridgeman via cfe-commits
kamaub wrote: After discussion with the IBM llvm on power team I will separate the type promotion error test case file into another patch as the error is only exposed by, not caused by this patch. https://github.com/llvm/llvm-project/pull/141604 ___

[clang] [llvm] Support the inline asm 'a' constraint on PowerPC (PR #141604)

2025-05-28 Thread Kamau Bridgeman via cfe-commits
https://github.com/kamaub edited https://github.com/llvm/llvm-project/pull/141604 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Trying to fix undefined symbol error caused by iterator variable (PR #141507)

2025-05-28 Thread via cfe-commits
@@ -2969,6 +2969,11 @@ static LValue EmitGlobalVarDeclLValue(CodeGenFunction &CGF, llvm::Value *V = CGF.CGM.GetAddrOfGlobalVar(VD); + if (VD->hasAttr()) { +llvm::GlobalVariable *Var = llvm::dyn_cast(V); +Var->setInitializer(CGF.CGM.EmitNullConstant(E->getType()));

[clang] [llvm] [HLSL][SPIR-V] Handle SV_Postion builtin in PS (PR #141759)

2025-05-28 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts updated https://github.com/llvm/llvm-project/pull/141759 From 085154ddedf3b0789a3908231d04f997e9e66ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathan=20Gau=C3=ABr?= Date: Wed, 30 Apr 2025 11:06:55 +0200 Subject: [PATCH 1/8] [HLSL] Implement vk::ext_builtin_input attr

[clang] 857ffa1 - [clang][bytecode] Recursively start lifetimes as well (#141742)

2025-05-28 Thread via cfe-commits
Author: Timm Baeder Date: 2025-05-28T16:16:00+02:00 New Revision: 857ffa19156695a36798660326922a3537ab828a URL: https://github.com/llvm/llvm-project/commit/857ffa19156695a36798660326922a3537ab828a DIFF: https://github.com/llvm/llvm-project/commit/857ffa19156695a36798660326922a3537ab828a.diff L

[clang] [clang][bytecode] Recursively start lifetimes as well (PR #141742)

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

[clang] [llvm] [ARM, AArch64] Don't put BTI at asm goto branch targets (PR #141562)

2025-05-28 Thread Simon Tatham via cfe-commits
https://github.com/statham-arm updated https://github.com/llvm/llvm-project/pull/141562 >From 1be326ffb4350f2818068da1aa4bde2adae41d70 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Wed, 14 May 2025 17:02:21 +0100 Subject: [PATCH 1/3] [ARM,AArch64] Don't put BTI at asm goto branch targets I

[clang] [C23] Handle type compatibility of unnamed records (PR #141783)

2025-05-28 Thread Mariya Podchishchaeva via cfe-commits
@@ -359,3 +359,29 @@ struct alignment { // c17-error {{redefinition of 'alignment'}} \ c23-error {{type 'struct alignment' has a member with an attribute which currently causes the types to be treated as though they are incompatible}} int x; }; + +//

[clang] [llvm] [UBSan] Support src:*=sanitize for multiple ignorelists. (PR #141640)

2025-05-28 Thread Qinkun Bao via cfe-commits
https://github.com/qinkunbao closed https://github.com/llvm/llvm-project/pull/141640 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ARM, AArch64] Don't put BTI at asm goto branch targets (PR #141562)

2025-05-28 Thread Matt Arsenault via cfe-commits
@@ -121,14 +121,21 @@ bool IsValidCloning(const MachineFunction &MF, } if (PathBB->isMachineBlockAddressTaken()) { // Avoid cloning blocks which have their address taken since we can't -// rewire branches to those blocks as easily (e.g., branches wit

[clang] 45b874b - [UBSan] Support src:*=sanitize for multiple ignorelists. (#141640)

2025-05-28 Thread via cfe-commits
Author: Qinkun Bao Date: 2025-05-28T11:12:53-04:00 New Revision: 45b874bc57af1520a1a6a3118f45d12c48704987 URL: https://github.com/llvm/llvm-project/commit/45b874bc57af1520a1a6a3118f45d12c48704987 DIFF: https://github.com/llvm/llvm-project/commit/45b874bc57af1520a1a6a3118f45d12c48704987.diff LO

[libclc] b474c3f - [libclc] Move vload & vstore to CLC library (#141755)

2025-05-28 Thread via cfe-commits
Author: Fraser Cormack Date: 2025-05-28T16:16:12+01:00 New Revision: b474c3f69eae4230fc9a2eff07ba63d2bbac65c0 URL: https://github.com/llvm/llvm-project/commit/b474c3f69eae4230fc9a2eff07ba63d2bbac65c0 DIFF: https://github.com/llvm/llvm-project/commit/b474c3f69eae4230fc9a2eff07ba63d2bbac65c0.diff

[libclc] [libclc] Move vload & vstore to CLC library (PR #141755)

2025-05-28 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck closed https://github.com/llvm/llvm-project/pull/141755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ARM, AArch64] Don't put BTI at asm goto branch targets (PR #141562)

2025-05-28 Thread Simon Tatham via cfe-commits
@@ -121,14 +121,21 @@ bool IsValidCloning(const MachineFunction &MF, } if (PathBB->isMachineBlockAddressTaken()) { // Avoid cloning blocks which have their address taken since we can't -// rewire branches to those blocks as easily (e.g., branches wit

[libclc] [llvm] [libclc] Support LLVM_ENABLE_RUNTIMES when building (PR #141574)

2025-05-28 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: I'm assuming the libc++ tests aren't failing due to this PR. They seem unstable, looking at jobs run for other PRs. https://github.com/llvm/llvm-project/pull/141574 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lis

[clang] [llvm] Support the inline asm 'a' constraint on PowerPC (PR #141604)

2025-05-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Kamau Bridgeman (kamaub) Changes This patch adds backend and frontend support for address operand constraint `a` for GCC style inline assembly. It allows the user to specify X-FORM addressing mode operations in inline assmebly without doi

[clang] [llvm] Support the inline asm 'a' constraint on PowerPC (PR #141604)

2025-05-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-powerpc Author: Kamau Bridgeman (kamaub) Changes This patch adds backend and frontend support for address operand constraint `a` for GCC style inline assembly. It allows the user to specify X-FORM addressing mode operations in inline assmebly wit

[clang] [llvm] Support the inline asm 'a' constraint on PowerPC (PR #141604)

2025-05-28 Thread Kamau Bridgeman via cfe-commits
https://github.com/kamaub updated https://github.com/llvm/llvm-project/pull/141604 >From e4102e3c4ec77e98c9a5efd3c79cd6a7690ba6a1 Mon Sep 17 00:00:00 2001 From: Kamau Bridgeman Date: Tue, 27 May 2025 09:39:07 -0400 Subject: [PATCH 1/3] [WIP] Support the inline asm 'a' constraint on PowerPC Thi

[clang] [llvm] Support the inline asm 'a' constraint on PowerPC (PR #141604)

2025-05-28 Thread Kamau Bridgeman via cfe-commits
https://github.com/kamaub ready_for_review https://github.com/llvm/llvm-project/pull/141604 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Rename -Wdeprecated-switch-case to -Wdeprecated-declarations-switch-case (PR #141779)

2025-05-28 Thread Nico Weber via cfe-commits
https://github.com/nico approved this pull request. Thanks :) https://github.com/llvm/llvm-project/pull/141779 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [WIP] Support the inline asm 'a' constraint on PowerPC (PR #141604)

2025-05-28 Thread Kamau Bridgeman via cfe-commits
https://github.com/kamaub updated https://github.com/llvm/llvm-project/pull/141604 >From e4102e3c4ec77e98c9a5efd3c79cd6a7690ba6a1 Mon Sep 17 00:00:00 2001 From: Kamau Bridgeman Date: Tue, 27 May 2025 09:39:07 -0400 Subject: [PATCH 1/2] [WIP] Support the inline asm 'a' constraint on PowerPC Thi

[clang] [flang] [llvm] Add IR Profile-Guided Optimization (IR PGO) support to the Flang compiler (PR #136098)

2025-05-28 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu approved this pull request. @fanju110, Thanks for seeing this through! https://github.com/llvm/llvm-project/pull/136098 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [llvm] Trying to fix undefined symbol error caused by iterator variable (PR #141507)

2025-05-28 Thread via cfe-commits
https://github.com/ShashwathiNavada updated https://github.com/llvm/llvm-project/pull/141507 >From 435206a8beb2af0368757bd1cf0850db30088ca5 Mon Sep 17 00:00:00 2001 From: Shashwathi N Date: Mon, 19 May 2025 14:29:47 -0500 Subject: [PATCH 1/4] Trying to fix undefined symbol error caused by itera

[clang] [CIR] Defer declarations and tentative definitions (PR #141700)

2025-05-28 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/141700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Refactor error handling to use ExitOnError (PR #141699)

2025-05-28 Thread Samarth Narang via cfe-commits
snarang181 wrote: @ilovepi, requesting your review here. https://github.com/llvm/llvm-project/pull/141699 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement address sanitizer on AIX (PR #129925)

2025-05-28 Thread David Tenty via cfe-commits
@@ -259,6 +260,56 @@ void aix::Linker::ConstructJob(Compilation &C, const JobAction &JA, // Specify linker input file(s). AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs, JA); + // Add sanitizer libraries. + const SanitizerArgs &Sanitize = ToolChain.getSanitizerArgs(Ar

[clang] [clang][Sema] Diagnose exceptions only in non-dependent context in discarded `try/catch/throw` blocks (PR #139859)

2025-05-28 Thread Rajveer Singh Bharadwaj via cfe-commits
Rajveer100 wrote: Thanks for merging, it would be nice if the members could help me with this: https://github.com/llvm/llvm-project/issues/139365 https://github.com/llvm/llvm-project/pull/139859 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [flang] [mlir] [flang] Add support for -mprefer-vector-width= (PR #141380)

2025-05-28 Thread Cameron McInally via cfe-commits
https://github.com/mcinally updated https://github.com/llvm/llvm-project/pull/141380 >From 9f8619cb54a3a11e4c90af7f5156141ddc59e4d4 Mon Sep 17 00:00:00 2001 From: Cameron McInally Date: Sat, 24 May 2025 13:35:13 -0700 Subject: [PATCH 1/3] [flang] Add support for -mprefer-vector-width= This pat

[clang] [clang][ThreadSafety]: fix discrepancy between capability attributes (PR #139343)

2025-05-28 Thread Cory Fields via cfe-commits
theuni wrote: Ping. I'm unsure of the fix here, but it'd be nice to have a confirmation of the bug it attempts to fix. https://github.com/llvm/llvm-project/pull/139343 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-

[clang] [flang] [mlir] [flang] Add support for -mprefer-vector-width= (PR #141380)

2025-05-28 Thread Cameron McInally via cfe-commits
@@ -0,0 +1,9 @@ +; RUN: mlir-translate -import-llvm -split-input-file %s | FileCheck %s + +; CHECK-LABEL: llvm.func @prefer_vector_width() +; CHECK: prefer_vector_width = "128" mcinally wrote: It does continue where the last match ended, but no problem to update.

[clang] [libcxx] [Clang] Add __builtin_invoke and use it in libc++ (PR #116709)

2025-05-28 Thread Louis Dionne via cfe-commits
https://github.com/ldionne approved this pull request. I'm fine with the libc++ part of this patch. I like this new approach a lot more. I think it gives us most of the benefits without raising difficult questions. https://github.com/llvm/llvm-project/pull/116709 __

[clang] [llvm] [HLSL][SPIR-V] Handle SV_Postion builtin in PS (PR #141759)

2025-05-28 Thread Nathan Gauër via cfe-commits
https://github.com/Keenuts updated https://github.com/llvm/llvm-project/pull/141759 From 085154ddedf3b0789a3908231d04f997e9e66ac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nathan=20Gau=C3=ABr?= Date: Wed, 30 Apr 2025 11:06:55 +0200 Subject: [PATCH 1/8] [HLSL] Implement vk::ext_builtin_input attr

[clang] 67d907a - [Clang] Reset ArgPackSubstIndex before rewriting CTAD template parameters (#141741)

2025-05-28 Thread via cfe-commits
Author: Younan Zhang Date: 2025-05-28T23:33:43+08:00 New Revision: 67d907a72fab9c4f895b36f8d7f01a97728b94f6 URL: https://github.com/llvm/llvm-project/commit/67d907a72fab9c4f895b36f8d7f01a97728b94f6 DIFF: https://github.com/llvm/llvm-project/commit/67d907a72fab9c4f895b36f8d7f01a97728b94f6.diff

[clang] [Clang] Reset ArgPackSubstIndex before rewriting CTAD template parameters (PR #141741)

2025-05-28 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/141741 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Reset ArgPackSubstIndex before rewriting CTAD template parameters (PR #141741)

2025-05-28 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/141741 >From 4fdb0069e260e36d8cbd021536adc14f6b9ddef1 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Wed, 28 May 2025 18:37:38 +0800 Subject: [PATCH 1/2] [Clang] Reset ArgPackSubstIndex before rewriting CTAD templa

[clang] [flang] [mlir] [flang] Add support for -mprefer-vector-width= (PR #141380)

2025-05-28 Thread Cameron McInally via cfe-commits
https://github.com/mcinally updated https://github.com/llvm/llvm-project/pull/141380 >From 9f8619cb54a3a11e4c90af7f5156141ddc59e4d4 Mon Sep 17 00:00:00 2001 From: Cameron McInally Date: Sat, 24 May 2025 13:35:13 -0700 Subject: [PATCH 1/3] [flang] Add support for -mprefer-vector-width= This pat

[clang] [C23] Handle type compatibility of unnamed records (PR #141783)

2025-05-28 Thread Aaron Ballman via cfe-commits
@@ -1751,9 +1751,20 @@ static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context, // fulfill the preceding requirements. ... Otherwise, the structure, union, // or enumerated types are incompatible. - if (!NameIsStructurallyEquivalent(*D1, *D2)) { + //

[clang] [Modules] Don't fail when an unused textual header is missing. (PR #138227)

2025-05-28 Thread Cyndy Ishida via cfe-commits
cyndyishida wrote: Firstly, thank you for your responsiveness @ilya-biryukov, and for helping us understand how this bug fix impacts Google's build. For all individuals involved in this discussion, I would like to remind that our [code of conduct](https://llvm.org/docs/CodeOfConduct.html) doe

[clang-tools-extra] [clang-tidy] Added Conflicting Global Accesses checker (PR #130421)

2025-05-28 Thread Áron Hárnási via cfe-commits
https://github.com/ConcreteCactus updated https://github.com/llvm/llvm-project/pull/130421 From 983fb8e966170329743e5a68c2a6456050884b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ron=20H=C3=A1rn=C3=A1si?= Date: Fri, 22 Nov 2024 21:43:04 +0100 Subject: [PATCH] [clang-tidy] Added Conflicting

[clang] [compiler-rt] [lldb] [LLDB] [NFC] - Remove duplicate #include headers from the files of lldb dir & few other files (PR #141478)

2025-05-28 Thread Jonas Devlieghere via cfe-commits
https://github.com/JDevlieghere approved this pull request. https://github.com/llvm/llvm-project/pull/141478 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C23] Handle type compatibility of unnamed records (PR #141783)

2025-05-28 Thread Aaron Ballman via cfe-commits
@@ -359,3 +359,29 @@ struct alignment { // c17-error {{redefinition of 'alignment'}} \ c23-error {{type 'struct alignment' has a member with an attribute which currently causes the types to be treated as though they are incompatible}} int x; }; + +//

[clang] [llvm] [ARM, AArch64] Don't put BTI at asm goto branch targets (PR #141562)

2025-05-28 Thread Matt Arsenault via cfe-commits
@@ -121,14 +121,21 @@ bool IsValidCloning(const MachineFunction &MF, } if (PathBB->isMachineBlockAddressTaken()) { // Avoid cloning blocks which have their address taken since we can't -// rewire branches to those blocks as easily (e.g., branches wit

[clang] [C23] Handle type compatibility of unnamed records (PR #141783)

2025-05-28 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/141783 >From deeb52c330fc0c1fbdbfe77403c1320d76fa460d Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 28 May 2025 10:51:07 -0400 Subject: [PATCH 1/2] [C23] Handle type compatibility of unnamed records At

[clang] [C23] Handle type compatibility of unnamed records (PR #141783)

2025-05-28 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon approved this pull request. https://github.com/llvm/llvm-project/pull/141783 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C2y] Handle FP-suffixes on prefixed octals (#141230) (PR #141695)

2025-05-28 Thread Aaron Ballman via cfe-commits
@@ -1432,14 +1432,26 @@ void NumericLiteralParser::ParseNumberStartingWithZero(SourceLocation TokLoc) { Diags.Report(TokLoc, DiagId); ++s; DigitsBegin = s; -SawOctalPrefix = true; +radix = 8; AaronBallman wrote: Oh, you're right, I missed

[clang] [clang] Rename -Wdeprecated-switch-case to -Wdeprecated-declarations-switch-case (PR #141779)

2025-05-28 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/141779 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [KeyInstr][Clang] Ret atom (PR #134652)

2025-05-28 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams edited https://github.com/llvm/llvm-project/pull/134652 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Enable WPD without lto (PR #141777)

2025-05-28 Thread Hassnaa Hamdi via cfe-commits
https://github.com/hassnaaHamdi deleted https://github.com/llvm/llvm-project/pull/141777 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Enable WPD without lto (PR #141777)

2025-05-28 Thread Hassnaa Hamdi via cfe-commits
@@ -1342,26 +1353,28 @@ bool DevirtModule::trySingleImplDevirt( // If the only implementation has local linkage, we must promote to external // to make it visible to thin LTO objects. We can only get here during the // ThinLTO export phase. hassnaaHamdi w

[clang] [CIR] Allow use different Int types together in Vec Shift Op (PR #141111)

2025-05-28 Thread Amr Hesham via cfe-commits
@@ -1427,13 +1427,13 @@ OpFoldResult cir::SelectOp::fold(FoldAdaptor adaptor) { //===--===// LogicalResult cir::ShiftOp::verify() { mlir::Operation *op = getOperation(); - mlir::Type resType = getResult().g

[clang] b14799e - [KeyIntsr][Clang] Builtins atoms (#134651)

2025-05-28 Thread via cfe-commits
Author: Orlando Cazalet-Hyams Date: 2025-05-28T18:19:16+01:00 New Revision: b14799e9e0ed2cae7cbce45c41326b151fea URL: https://github.com/llvm/llvm-project/commit/b14799e9e0ed2cae7cbce45c41326b151fea DIFF: https://github.com/llvm/llvm-project/commit/b14799e9e0ed2cae7cbce45c41326b151f

[clang] [KeyIntsr][Clang] Builtins alloca auto-init atom (PR #134651)

2025-05-28 Thread Orlando Cazalet-Hyams via cfe-commits
https://github.com/OCHyams closed https://github.com/llvm/llvm-project/pull/134651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Enable WPD without lto (PR #141777)

2025-05-28 Thread Hassnaa Hamdi via cfe-commits
https://github.com/hassnaaHamdi edited https://github.com/llvm/llvm-project/pull/141777 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][FMV] Stop emitting implicit default version using target_clones. (PR #141808)

2025-05-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Alexandros Lamprineas (labrinea) Changes With the current behavior the following example yields a linker error: "multiple definition of `foo.default'" // Translation Unit 1 __attribute__((target_clones("dotprod, sve"))) int foo(vo

[clang] [Clang][FMV] Stop emitting implicit default version using target_clones. (PR #141808)

2025-05-28 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Alexandros Lamprineas (labrinea) Changes With the current behavior the following example yields a linker error: "multiple definition of `foo.default'" // Translation Unit 1 __attribute__((target_clones("dotprod, sve"))) int foo(v

[clang] [KeyIntsr][Clang] Builtins alloca auto-init atom (PR #134651)

2025-05-28 Thread Orlando Cazalet-Hyams via cfe-commits
OCHyams wrote: Reverted due to downstream failure, will fix tomorrow! https://github.com/llvm/llvm-project/pull/134651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][RootSignature] Add parsing of floats for StaticSampler (PR #140181)

2025-05-28 Thread Finn Plummer via cfe-commits
https://github.com/inbelic edited https://github.com/llvm/llvm-project/pull/140181 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Refactor error handling to use ExitOnError (PR #141699)

2025-05-28 Thread Paul Kirth via cfe-commits
ilovepi wrote: Other than some nits the patch is mostly ready to go. It does need a test though, which sadly we don't already have. Please add a lit test under clang-tools-extra/tests/clang-doc. https://github.com/llvm/llvm-project/pull/141699 ___ cf

[clang] [clang][modules][deps]Remove -F option from test for clang-scan-deps (PR #141614)

2025-05-28 Thread Cyndy Ishida via cfe-commits
cyndyishida wrote: @jamieschmeiser I apologize if this is obvious, but is it a requirement that clang options follow the same conventions as gcc? If so, where is that documented? https://github.com/llvm/llvm-project/pull/141614 ___ cfe-commits mailin

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-28 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/141369 >From 3a8bcd052d25d138b3a9a53bbcc69d48500b4b41 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 24 May 2025 14:18:06 +0200 Subject: [PATCH 1/7] [CIR] Upstream global initialization for ComplexType --

[clang-tools-extra] [clang-doc] Refactor error handling to use ExitOnError (PR #141699)

2025-05-28 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 edited https://github.com/llvm/llvm-project/pull/141699 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Update tests for global vars (PR #141854)

2025-05-28 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/141854 >From 462dc6afb219a4005e72d516e922c1c4ab0179d9 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Wed, 28 May 2025 13:49:25 -0700 Subject: [PATCH 1/2] [CIR] Update testds for global vars This change updates a

[clang] [Clang][attr] Add cfi_salt attribute (PR #141846)

2025-05-28 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Something along the lines of FunctionTypeArmAttributes seems fine. https://github.com/llvm/llvm-project/pull/141846 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-28 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/141369 >From 3a8bcd052d25d138b3a9a53bbcc69d48500b4b41 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 24 May 2025 14:18:06 +0200 Subject: [PATCH 1/6] [CIR] Upstream global initialization for ComplexType --

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-28 Thread Amr Hesham via cfe-commits
@@ -0,0 +1,11 @@ +// RUN: cir-opt %s -verify-diagnostics -split-input-file + +!s32i = !cir.int AmrDeveloper wrote: Nice, thats better, i think i will do this with Vector too in next PR's https://github.com/llvm/llvm-project/pull/141369 __

[clang] [CIR] Update tests for global vars (PR #141854)

2025-05-28 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. https://github.com/llvm/llvm-project/pull/141854 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Streamline creation of mlir::IntegerAttrs using mlir::Builder (PR #141830)

2025-05-28 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM pending comments from other reviewers https://github.com/llvm/llvm-project/pull/141830 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-28 Thread Bruno Cardoso Lopes via cfe-commits
@@ -0,0 +1,11 @@ +// RUN: cir-opt %s -verify-diagnostics -split-input-file + +!s32i = !cir.int bcardosolopes wrote: Seems like you forgot to remove this file https://github.com/llvm/llvm-project/pull/141369 ___ cfe-com

[clang] [CIR] Upstream global initialization for ComplexType (PR #141369)

2025-05-28 Thread Bruno Cardoso Lopes via cfe-commits
@@ -276,4 +276,46 @@ def ConstPtrAttr : CIR_Attr<"ConstPtr", "ptr", [TypedAttrInterface]> { }]; } +//===--===// +// ConstComplexAttr +//===---

[clang-tools-extra] [clang-doc] Refactor error handling to use ExitOnError (PR #141699)

2025-05-28 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/141699 >From b2dc4f8a50d86ecdc5fd27fedd7efde5c6882df5 Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Tue, 27 May 2025 21:32:41 -0400 Subject: [PATCH 1/2] [clang-doc] Refactor error handling to use ExitOnError

[clang] [CMake] Turn on LLVM_ENABLE_BACKTRACE for Apple stage1 compiler (PR #141872)

2025-05-28 Thread Jon Roelofs via cfe-commits
https://github.com/jroelofs approved this pull request. https://github.com/llvm/llvm-project/pull/141872 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Refactor error handling to use ExitOnError (PR #141699)

2025-05-28 Thread Paul Kirth via cfe-commits
@@ -373,20 +370,16 @@ Example usage for a project using a compile commands database: // Ensure the root output directory exists. if (std::error_code Err = llvm::sys::fs::create_directories(OutDirectory); Err != std::error_code()) { -llvm::errs() << "Failed to cre

[clang-tools-extra] [clang-doc] Refactor error handling to use ExitOnError (PR #141699)

2025-05-28 Thread Samarth Narang via cfe-commits
@@ -373,20 +370,16 @@ Example usage for a project using a compile commands database: // Ensure the root output directory exists. if (std::error_code Err = llvm::sys::fs::create_directories(OutDirectory); Err != std::error_code()) { -llvm::errs() << "Failed to cre

[clang-tools-extra] [clang-doc] Refactor error handling to use ExitOnError (PR #141699)

2025-05-28 Thread Samarth Narang via cfe-commits
@@ -0,0 +1,4 @@ +// RUN: not clang-doc %S/Inputs/basic-project/src/Circle.cpp -output=/root/docs 2>&1 | FileCheck %s snarang181 wrote: Sorry, I might be misunderstanding but won't `llvm::sys::fs::create_directories()` create a valid directory path? Giving the

<    1   2   3   4   5   >