[clang] [Sema] Add code completion for if constexpr and consteval (PR #124315)

2025-03-07 Thread Letu Ren via cfe-commits
https://github.com/FantasqueX updated https://github.com/llvm/llvm-project/pull/124315 >From f186c52e78c26db93cc37d858d088259cd3029a1 Mon Sep 17 00:00:00 2001 From: Letu Ren Date: Sat, 25 Jan 2025 01:23:52 +0800 Subject: [PATCH 01/10] [Sema] Add code completion for if constexpr C++17 supports

[clang] [llvm] [HLSL][RootSignature] Implement Parsing of Descriptor Tables (PR #122982)

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

[clang] [Clang] Implement P0963R3 "Structured binding declaration as a condition" (PR #130228)

2025-03-07 Thread Timm Baeder via cfe-commits
@@ -4285,6 +4290,8 @@ class DecompositionDecl final std::move(Bindings)); } + bool isDecisionVariable() const { return IsDecisionVariable; } tbaederr wrote: Can you add docs here explaining what this means? http

[libunwind] [libunwind] Remove unnecessary dependencies on fprintf and stdio.h for increased baremetal friendliness (PR #72040)

2025-03-07 Thread Michael Kenzel via cfe-commits
michael-kenzel wrote: @arichardson as promised, I have rebased the changes. I'm not sure about the test failures, it would seem to me that they are unlikely to be caused by anything I did? https://github.com/llvm/llvm-project/pull/72040 ___ cfe-commi

[clang] [Clang] Treat `ext_vector_type` as a regular type attribute (PR #130177)

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

[clang] [llvm] [Clang][llvm] Implement fp8 FMOP4A intrinsics (PR #130127)

2025-03-07 Thread via cfe-commits
@@ -3064,6 +3064,61 @@ let TargetPrefix = "aarch64" in { def int_aarch64_sme_usmopa_wide : SME_OuterProduct_Intrinsic; def int_aarch64_sme_usmops_wide : SME_OuterProduct_Intrinsic; + class SME_OuterProduct_QuarterTile_Single_Single + : DefaultAttrsIntrinsic<[], +

[clang] [C2y] Implement WG14 N3411 (PR #130180)

2025-03-07 Thread via cfe-commits
@@ -3192,23 +3192,22 @@ bool Lexer::LexEndOfFile(Token &Result, const char *CurPtr) { if (CurPtr != BufferStart && (CurPtr[-1] != '\n' && CurPtr[-1] != '\r')) { DiagnosticsEngine &Diags = PP->getDiagnostics(); SourceLocation EndLoc = getSourceLocation(BufferEnd); -

[clang] clang/HIP: Use regex for final path separator in hip-partial-link.hip (PR #130291)

2025-03-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matt Arsenault (arsenm) Changes Somehow this passed the precheck test on the windows bot, but is failing in precheck of unrelated PRs --- Full diff: https://github.com/llvm/llvm-project/pull/130291.diff 1 Files Affected: - (modified) cl

[clang] [Clang] Add __has_target_builtin macro (PR #126324)

2025-03-07 Thread Nick Sarnie via cfe-commits
sarnex wrote: So far RFC is going towards changing `__has_builtin` to respect the current target. If anyone has any comments please add them to the RFC [here](https://discourse.llvm.org/t/rfc-has-builtin-behavior-on-offloading-targets/84964). https://github.com/llvm/llvm-project/pull/126324 __

[clang] clang/HIP: Use regex for final path separator in hip-partial-link.hip (PR #130291)

2025-03-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Matt Arsenault (arsenm) Changes Somehow this passed the precheck test on the windows bot, but is failing in precheck of unrelated PRs --- Full diff: https://github.com/llvm/llvm-project/pull/130291.diff 1 Files Affected: - (modif

[clang] clang/HIP: Use regex for final path separator in hip-partial-link.hip (PR #130291)

2025-03-07 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/130291 Somehow this passed the precheck test on the windows bot, but is failing in precheck of unrelated PRs >From eb8e11fed67652c61c67f4ca83d17a4ce5b3047e Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 7 Mar

[clang] clang/HIP: Use regex for final path separator in hip-partial-link.hip (PR #130291)

2025-03-07 Thread Matt Arsenault via cfe-commits
arsenm wrote: * **#130291** https://app.graphite.dev/github/pr/llvm/llvm-project/130291?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/13029

[clang] clang/HIP: Use regex for final path separator in hip-partial-link.hip (PR #130291)

2025-03-07 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm ready_for_review https://github.com/llvm/llvm-project/pull/130291 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang/HIP: Use regex for final path separator in hip-partial-link.hip (PR #130291)

2025-03-07 Thread Joseph Huber via cfe-commits
@@ -62,11 +62,11 @@ // STATIC: Found undefined HIP fatbin symbol: __hip_fatbin_[[ID2:[0-9a-f]+]] // STATIC: Found undefined HIP gpubin handle symbol: __hip_gpubin_handle_[[ID1]] // STATIC: Found undefined HIP gpubin handle symbol: __hip_gpubin_handle_[[ID2]] -// STATIC: "{{.*

[clang] [HLSL] Buffer handle globals should not be constants (PR #130231)

2025-03-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Justin Bogner (bogner) Changes If these are constants their initializers will be removed by InstCombine. Change them to not be constants and initialize them with poison. --- Full diff: https://github.com/llvm/llvm-project/pull/130231.diff

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-03-07 Thread Ivana Ivanovska via cfe-commits
@@ -1561,56 +1821,70 @@ class UnsafeLibcFunctionCallGadget : public WarningGadget { } WarnedFunKind = OTHERS; public: - UnsafeLibcFunctionCallGadget(const MatchFinder::MatchResult &Result) + UnsafeLibcFunctionCallGadget(const MatchResult &Result) : WarningGadget(Ki

[clang] [Clang] [Sema] Allow non-local/non-variable declarations in for loop (PR #129737)

2025-03-07 Thread Shafik Yaghmour via cfe-commits
shafik wrote: > > Should this have updated: https://clang.llvm.org/c_status.html > > Not according to Aaron: [#129737 > (comment)](https://github.com/llvm/llvm-project/pull/129737#discussion_r1980260552) Oh wow, my bad, I missed that 😬 https://github.com/llvm/llvm-project/pull/129737

[clang] [Clang] Optimize -Wunsafe-buffer-usage. (PR #125492)

2025-03-07 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov approved this pull request. LGTM from my side, but please give some time for the owners to chime in. https://github.com/llvm/llvm-project/pull/125492 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists

[clang] [flang] [flang] Align `-x` language modes with `gfortran` (PR #130268)

2025-03-07 Thread Tarun Prabhu via cfe-commits
=?utf-8?q?Iñaki?= Amatria Barral Message-ID: In-Reply-To: https://github.com/tarunprabhu edited https://github.com/llvm/llvm-project/pull/130268 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [Clang] Treat `ext_vector_type` as a regular type attribute (PR #130177)

2025-03-07 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > It completely changes the type, it's much more aggressive than a type > attribute? sizeof is no longer the same `address_space` could be argued to be similarly aggressive, `_Atomic` as a qualifier specifier also has the same property of not requiring the size and alignme

[clang] 9fc3310 - [C2y] Implement WG14 N3411 (#130180)

2025-03-07 Thread via cfe-commits
Author: Aaron Ballman Date: 2025-03-07T08:34:22-05:00 New Revision: 9fc3310798be5afd265ff6ad7274c0d02487f5df URL: https://github.com/llvm/llvm-project/commit/9fc3310798be5afd265ff6ad7274c0d02487f5df DIFF: https://github.com/llvm/llvm-project/commit/9fc3310798be5afd265ff6ad7274c0d02487f5df.diff

[clang] [C2y] Implement WG14 N3411 (PR #130180)

2025-03-07 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > I'm happy to approve as-is, but would you be willing to ask WG14 if they > would consider encouraging backporting the feature? Absolutely! https://github.com/llvm/llvm-project/pull/130180 ___ cfe-commits mailing list cfe-commits

[clang] [llvm] [clang][DebugInfo] Add symbol for debugger with VTable information. (PR #130255)

2025-03-07 Thread Michael Buch via cfe-commits
@@ -2518,6 +2518,59 @@ StringRef CGDebugInfo::getVTableName(const CXXRecordDecl *RD) { return internString("_vptr$", RD->getNameAsString()); } +// Emit symbol for the debugger that points to the vtable address for +// the given class. The symbol is named as '_vtable$'. +//

[clang] 2c8b824 - [C2y] Claim conformance to WG14 N3478

2025-03-07 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2025-03-07T08:31:56-05:00 New Revision: 2c8b824ff562d4d0a6cd38310991425d03bc6f70 URL: https://github.com/llvm/llvm-project/commit/2c8b824ff562d4d0a6cd38310991425d03bc6f70 DIFF: https://github.com/llvm/llvm-project/commit/2c8b824ff562d4d0a6cd38310991425d03bc6f70.diff

[clang] [Clang] Treat `ext_vector_type` as a regular type attribute (PR #130177)

2025-03-07 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > I think vector types as a type attribute are reasonable, at least at first > blush. However, if we're talking about redesigning the feature to expose it > in a more natural way, we should consider what proposals are in front of the > C and C++ standards committees. This mostl

[clang] clang: Enable linker-wrapper test on windows (PR #130248)

2025-03-07 Thread Michael Kruse via cfe-commits
Meinersbur wrote: clang-offload-wrapper tries to write a file `linker-wrapper.c.tmp-on-amdgcn-amd-amdhsa-gfx90a:xnack+-0c971c.o` in the temp directory. `:` is not a valid character in filenames one Windows. The colon comes from the `Binary.getArch()` call here: https://github.com/llvm/llvm-pr

[clang] [flang] [flang] Add options -W[no-]unused-dummy-argument and -W[no-]unused-variable (PR #127214)

2025-03-07 Thread Jean-Didier PAILLEUX via cfe-commits
JDPailleux wrote: > Thanks for working on this @JDPailleux. > > This looks like a substantial change including to parts of clang. Is it > possible to split this into two. One PR for just the "infrastructure" and > another for the flang-specifc warnings. This would make it easier to focus > th

[clang] [llvm] [Clang][llvm] Implement fp8 FMOP4A intrinsics (PR #130127)

2025-03-07 Thread via cfe-commits
@@ -289,6 +289,105 @@ multiclass ZAFPOuterProd { defm SVMOPA : ZAFPOuterProd<"mopa">; defm SVMOPS : ZAFPOuterProd<"mops">; + +// SME2 - FMOP4A, FMOP4S, BFMOP4A, BFMOP4S + +multiclass MOP4 checks>

[clang] [Clang] [Sema] Allow non-local/non-variable declarations in for loop (PR #129737)

2025-03-07 Thread via cfe-commits
@@ -1,13 +1,21 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify=c11 -std=c11 -pedantic %s +// RUN: %clang_cc1 -fsyntax-only -verify=c23 -std=c23 -Wpre-c23-compat %s // Check C99 6.8.5p3 void b1 (void) { for (void (*f) (void);;); } -void

[libunwind] [libunwind][RISCV] Make asm statement volatile (PR #130286)

2025-03-07 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 308f933f75bcf92881c14e00e81d2d41a2893d7c c082d6c120b5eb090753413f14a571c9c8725640 --e

[clang] [llvm] Revert "[AArch64][SVE] Improve fixed-length addressing modes." (PR #130263)

2025-03-07 Thread Ricardo Jesus via cfe-commits
https://github.com/rj-jesus created https://github.com/llvm/llvm-project/pull/130263 Reverts llvm/llvm-project#129732. I'll look into what's causing the buildbot reported in https://github.com/llvm/llvm-project/pull/129732#issuecomment-2705062636 to fail offline. >From 5a71fab0067bae0f532a62

[libunwind] [libunwind][RISCV] Make asm statement volatile (PR #130286)

2025-03-07 Thread Gergely Futo via cfe-commits
https://github.com/futog updated https://github.com/llvm/llvm-project/pull/130286 >From ef22b36c6aa53566554b0f58bd2b90432f9a5f5a Mon Sep 17 00:00:00 2001 From: Gergely Futo Date: Thu, 10 Oct 2024 08:36:50 +0200 Subject: [PATCH] [libunwind][RISCV] Make asm statement volatile Compiling with `O3`

[clang] [clang-format] Remove special handling of C++ access specifiers in C (PR #129983)

2025-03-07 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/129983 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LinkerWrapper] Try to fix testing on Windows (PR #130285)

2025-03-07 Thread Michael Kruse via cfe-commits
@@ -599,9 +599,10 @@ Expected writeOffloadFile(const OffloadFile &File) { StringRef Prefix = sys::path::stem(Binary.getMemoryBufferRef().getBufferIdentifier()); - - auto TempFileOrErr = createOutputFile( - Prefix + "-" + Binary.getTriple() + "-" + Binary.getArch

[clang] [LinkerWrapper] Try to fix testing on Windows (PR #130285)

2025-03-07 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 edited https://github.com/llvm/llvm-project/pull/130285 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LinkerWrapper] Try to fix testing on Windows (PR #130285)

2025-03-07 Thread Matt Arsenault via cfe-commits
@@ -599,9 +599,10 @@ Expected writeOffloadFile(const OffloadFile &File) { StringRef Prefix = sys::path::stem(Binary.getMemoryBufferRef().getBufferIdentifier()); - - auto TempFileOrErr = createOutputFile( - Prefix + "-" + Binary.getTriple() + "-" + Binary.getArch

[clang] [LinkerWrapper] Try to fix testing on Windows (PR #130285)

2025-03-07 Thread Joseph Huber via cfe-commits
@@ -599,9 +599,10 @@ Expected writeOffloadFile(const OffloadFile &File) { StringRef Prefix = sys::path::stem(Binary.getMemoryBufferRef().getBufferIdentifier()); - - auto TempFileOrErr = createOutputFile( - Prefix + "-" + Binary.getTriple() + "-" + Binary.getArch

[clang] [LinkerWrapper] Try to fix testing on Windows (PR #130285)

2025-03-07 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/130285 >From d39b407a6ae2000f91a345c18cb710647b86c1c8 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Fri, 7 Mar 2025 07:54:50 -0600 Subject: [PATCH 1/2] [LinkerWrapper] Try to fix testing on Windows Summary: Thanks

[clang] [Clang] Treat `ext_vector_type` as a regular type attribute (PR #130177)

2025-03-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Joseph Huber (jhuber6) Changes Summary: This attribute is mostly borrowed from OpenCL, but is useful in general for accessing the LLVM vector types. Previously the only way to use it was through typedefs. This patch changes that to allow us

[clang] 22eab44 - [www] Update for Clang 20 release

2025-03-07 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2025-03-06T16:04:02-05:00 New Revision: 22eab44aaee11106eccdffa66fef160b4876c845 URL: https://github.com/llvm/llvm-project/commit/22eab44aaee11106eccdffa66fef160b4876c845 DIFF: https://github.com/llvm/llvm-project/commit/22eab44aaee11106eccdffa66fef160b4876c845.diff

[clang] 40ee5a0 - [C2y] Claim conformance to WG14 N3481

2025-03-07 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2025-03-07T09:37:15-05:00 New Revision: 40ee5a0bcc333f2df5427bfaba73f2dc83c0ae19 URL: https://github.com/llvm/llvm-project/commit/40ee5a0bcc333f2df5427bfaba73f2dc83c0ae19 DIFF: https://github.com/llvm/llvm-project/commit/40ee5a0bcc333f2df5427bfaba73f2dc83c0ae19.diff

[clang] [Clang] Treat `ext_vector_type` as a regular type attribute (PR #130177)

2025-03-07 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 updated https://github.com/llvm/llvm-project/pull/130177 >From 728e1bd9cccb56a0acaf5abb35fe64cacc5b4ae9 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Thu, 6 Mar 2025 15:08:25 -0600 Subject: [PATCH 1/8] [Clang] Treat `ext_vector_type` as a regular type attribute

[clang] [llvm] Add support for template as type parameter (PR #127654)

2025-03-07 Thread via cfe-commits
ykhatav wrote: > > For template classes with type parameters, the information of which member > > variables are of a "templated type" is lost. The debugger cannot > > differentiate between "templated" types and "hardcoded" types. This is > > because both types have the same debug information,

[clang] 1c1140c - [OpenACC] Enable 'device_type' for 'routine'

2025-03-07 Thread via cfe-commits
Author: erichkeane Date: 2025-03-07T06:49:29-08:00 New Revision: 1c1140c4cf7d4fde5de4b20c6b993bab9060d9fc URL: https://github.com/llvm/llvm-project/commit/1c1140c4cf7d4fde5de4b20c6b993bab9060d9fc DIFF: https://github.com/llvm/llvm-project/commit/1c1140c4cf7d4fde5de4b20c6b993bab9060d9fc.diff LO

[clang] d1bd1c7 - [C2y] Claim conformance to WG14 N3496

2025-03-07 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2025-03-07T09:51:33-05:00 New Revision: d1bd1c7e825d190fc47cd06956c381cc0f70fba8 URL: https://github.com/llvm/llvm-project/commit/d1bd1c7e825d190fc47cd06956c381cc0f70fba8 DIFF: https://github.com/llvm/llvm-project/commit/d1bd1c7e825d190fc47cd06956c381cc0f70fba8.diff

[clang] [flang] [flang] Add options -W[no-]unused-dummy-argument and -W[no-]unused-variable (PR #127214)

2025-03-07 Thread Jean-Didier PAILLEUX via cfe-commits
https://github.com/JDPailleux updated https://github.com/llvm/llvm-project/pull/127214 >From 86e34cf5a7b652b0ce0158b9687543691cba7ab7 Mon Sep 17 00:00:00 2001 From: Jean-Didier Pailleux Date: Fri, 7 Mar 2025 08:31:46 +0100 Subject: [PATCH] [flang] Add options -W[no-]unused-dummy-argument and -

[clang] [flang] [flang] Align `-x f95[-cpp-input]` language modes with `gfortran` (PR #127986)

2025-03-07 Thread Iñaki Amatria Barral via cfe-commits
https://github.com/inaki-amatria updated https://github.com/llvm/llvm-project/pull/127986 From 8d688399f124552f5407e21f3ece08ba6a84a570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Amatria=20Barral?= Date: Fri, 7 Mar 2025 08:45:05 +0100 Subject: [PATCH 1/2] [flang] Remove implicit assu

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisim (Simulation Hint) extension (PR #128833)

2025-03-07 Thread Sudharsan Veeravalli via cfe-commits
https://github.com/svs-quic updated https://github.com/llvm/llvm-project/pull/128833 >From 10f62d3697b3e2d773d828fc3e7a6767ff71a072 Mon Sep 17 00:00:00 2001 From: Sudharsan Veeravalli Date: Wed, 26 Feb 2025 12:13:32 +0530 Subject: [PATCH 1/2] [RISCV] Add Qualcomm uC Xqcisim (Simulation Hint] e

[clang] [llvm] [clang][DebugInfo] Add symbol for debugger with VTable information. (PR #130255)

2025-03-07 Thread Michael Buch via cfe-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/130255 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Avoid processing declarations in system headers (PR #128150)

2025-03-07 Thread Gábor Horváth via cfe-commits
Xazax-hun wrote: > I have not seen any failing tests for these checks. Those checks might be downstream. LLVM is usually OK breaking downstream users but we should still make some effort helping them out documenting the rationale and suggesting workarounds. https://github.com/llvm/llvm-proje

[clang-tools-extra] [clang-tidy] Avoid processing declarations in system headers (PR #128150)

2025-03-07 Thread Gábor Horváth via cfe-commits
Xazax-hun wrote: > I did try having a look at it but could not find a solution. Could you summarize what you tried and why it did not work? It is not just about fixing one check but potentially losing a capability. If we can no longer write certain kinds of checks in tidy that is a very big t

[clang] [llvm] AMDGPU: Move enqueued block handling into clang (PR #128519)

2025-03-07 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/128519 >From 1b5f2f2355a7c10d702c29ea3c043ba8be9b5028 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 23 Dec 2022 16:55:40 -0500 Subject: [PATCH] AMDGPU: Move enqueued block handling into clang The previous im

[clang-tools-extra] [clang-tidy] Avoid processing declarations in system headers (PR #128150)

2025-03-07 Thread Gábor Horváth via cfe-commits
Xazax-hun wrote: > It should be doable, still defaulting to not skip system headers, and let > clang-tidy skip them. A follow-up patch could change that default so all > tools behave in the same way. This does not sound controversial or hard. I am okay doing work that requires further consen

[clang] [C2y] Implement WG14 N3411 (PR #130180)

2025-03-07 Thread Aaron Ballman via cfe-commits
@@ -3192,23 +3192,22 @@ bool Lexer::LexEndOfFile(Token &Result, const char *CurPtr) { if (CurPtr != BufferStart && (CurPtr[-1] != '\n' && CurPtr[-1] != '\r')) { DiagnosticsEngine &Diags = PP->getDiagnostics(); SourceLocation EndLoc = getSourceLocation(BufferEnd); -

[clang] [Clang] [Sema] Allow non-local/non-variable declarations in for loop (PR #129737)

2025-03-07 Thread via cfe-commits
Sirraide wrote: > Should this have updated: https://clang.llvm.org/c_status.html Not according to Aaron: https://github.com/llvm/llvm-project/pull/129737#discussion_r1980260552 https://github.com/llvm/llvm-project/pull/129737 ___ cfe-commits mailin

[clang] [llvm] [Clang][C++23] Core language changes from P1467R9 extended floating-point types and standard names. (PR #78503)

2025-03-07 Thread Ilya Biryukov via cfe-commits
@@ -4446,6 +4455,73 @@ CompareStandardConversionSequences(Sema &S, SourceLocation Loc, ? ImplicitConversionSequence::Better : ImplicitConversionSequence::Worse; + // C++23 [over.ics.rank]p4b3: + // A conversion in either direction between float

[clang] [llvm] [Clang][LLVM] Implement single-single vectors MOP4{A/S} (PR #127797)

2025-03-07 Thread via cfe-commits
https://github.com/Lukacma approved this pull request. https://github.com/llvm/llvm-project/pull/127797 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [Sema] Allow non-local/non-variable declarations in for loop (PR #129737)

2025-03-07 Thread via cfe-commits
@@ -2269,10 +2269,11 @@ StmtResult Sema::ActOnForStmt(SourceLocation ForLoc, SourceLocation LParenLoc, for (auto *DI : DS->decls()) { if (VarDecl *VD = dyn_cast(DI)) { VarDeclSeen = true; - if (VD->isLocalVarDecl() && !VD->hasLocalStorage()) {

[clang] [llvm] [Clang][LLVM] Implement single-multi vectors MOP4{A/S} (PR #128854)

2025-03-07 Thread via cfe-commits
https://github.com/Lukacma approved this pull request. https://github.com/llvm/llvm-project/pull/128854 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OffloadBundler] Expose function to parse compressed bundle headers (PR #130284)

2025-03-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Juan Manuel Martinez Caamaño (jmmartinez) Changes In COMGR we hash the header of compressed bundles. For this we take the first bytes of the buffer (according to the maximum header size) and hash them. This is not future-proof if we ever

[clang-tools-extra] [clang-tidy] Avoid processing declarations in system headers (PR #128150)

2025-03-07 Thread Gábor Horváth via cfe-commits
Xazax-hun wrote: > It's good practice to keep commits small, focused on doing one single thing True. But doing this in another component will not make the patch larger. So this is not an argument against. Moreover, the scope is not bigger than this patch. It would not change the behavior of o

[clang] [OffloadBundler] Expose function to parse compressed bundle headers (PR #130284)

2025-03-07 Thread Juan Manuel Martinez Caamaño via cfe-commits
https://github.com/jmmartinez created https://github.com/llvm/llvm-project/pull/130284 In COMGR we hash the header of compressed bundles. For this we take the first bytes of the buffer (according to the maximum header size) and hash them. This is not future-proof if we ever introduce new versi

[clang] [Clang] Implement P0963R3 "Structured binding declaration as a condition" (PR #130228)

2025-03-07 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov commented: Looks good so far, thanks! https://github.com/llvm/llvm-project/pull/130228 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] [Sema] Allow non-local/non-variable declarations in for loop (PR #129737)

2025-03-07 Thread via cfe-commits
@@ -1,13 +1,21 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify=c11 -std=c11 -pedantic %s +// RUN: %clang_cc1 -fsyntax-only -verify=c23 -std=c23 -Wpre-c23-compat %s // Check C99 6.8.5p3 void b1 (void) { for (void (*f) (void);;); } -void

[clang] [clang] Remove isOSWindows() checks (PR #129909)

2025-03-07 Thread Martin Storsjö via cfe-commits
@@ -4769,31 +4769,32 @@ ExprResult Sema::CheckOSLogFormatStringArg(Expr *Arg) { /// Check that the user is calling the appropriate va_start builtin for the /// target and calling convention. static bool checkVAStartABI(Sema &S, unsigned BuiltinID, Expr *Fn) { - const llvm::Tri

[clang] [llvm] [Clang][LLVM] Implement multi-single vectors MOP4{A/S} (PR #129226)

2025-03-07 Thread via cfe-commits
https://github.com/Lukacma approved this pull request. https://github.com/llvm/llvm-project/pull/129226 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20] [Modules] Instantiate pending instantiations when GMF ends (PR #126842)

2025-03-07 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov approved this pull request. LGTM I can't follow up on this with a better suggestion right now, and I don't want to make the perfect the enemy of the good. https://github.com/llvm/llvm-project/pull/126842 ___ cfe-commits ma

[clang] 81168e2 - [clang][dataflow] Add test for crash repro and clean up const accessor handling (#129930)

2025-03-07 Thread via cfe-commits
Author: Jan Voung Date: 2025-03-07T08:16:46-05:00 New Revision: 81168e2dc1c2069178b1acd5e302be99d7fb0e45 URL: https://github.com/llvm/llvm-project/commit/81168e2dc1c2069178b1acd5e302be99d7fb0e45 DIFF: https://github.com/llvm/llvm-project/commit/81168e2dc1c2069178b1acd5e302be99d7fb0e45.diff LOG

[clang] [flang] [flang] Align `-x` language modes with `gfortran` (PR #130268)

2025-03-07 Thread Iñaki Amatria Barral via cfe-commits
https://github.com/inaki-amatria updated https://github.com/llvm/llvm-project/pull/130268 From 3753b14814c845ab695ffbe985f8b2fd5a478de2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Amatria=20Barral?= Date: Fri, 7 Mar 2025 08:45:05 +0100 Subject: [PATCH 1/2] [flang] Remove implicit assu

[clang] [flang] [flang] Align `-x` language modes with `gfortran` (PR #130268)

2025-03-07 Thread Iñaki Amatria Barral via cfe-commits
@@ -0,0 +1,12 @@ +! This test verifies that using `-x f95` does not cause the driver to assume +! this file is in fixed-form. + +program main + print *, "Hello, World!" +end + +! RUN: %flang -### -x f95 %s 2>&1 | FileCheck --check-prefix=PRINT-PHASES %s +! PRINT-PHASES-NOT: -ffix

[clang] [clang][dataflow] Add test for crash repro and clean up const accessor handling (PR #129930)

2025-03-07 Thread Jan Voung via cfe-commits
https://github.com/jvoung closed https://github.com/llvm/llvm-project/pull/129930 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [flang] Align `-x` language modes with `gfortran` (PR #130268)

2025-03-07 Thread Iñaki Amatria Barral via cfe-commits
@@ -0,0 +1,35 @@ +program main + print *, __FILE__, __LINE__ +end + +! This test verifies that `flang`'s `-x` options behave like `gfortran`'s. +! Specifically: +! - `-x f95` should process the file based on its extension unless overridden. +! - `-x f95-cpp-input` should behave l

[clang] [LinkerWrapper] Try to fix testing on Windows (PR #130285)

2025-03-07 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/130285 Summary: Thanks to @Meinersbur for finding this. The `:` character used in AMD's target-id's is invalid on windows. This patch replaces them with `_`. >From d39b407a6ae2000f91a345c18cb710647b86c1c8 Mon Sep 17 0

[clang] [LinkerWrapper] Try to fix testing on Windows (PR #130285)

2025-03-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Joseph Huber (jhuber6) Changes Summary: Thanks to @Meinersbur for finding this. The `:` character used in AMD's target-id's is invalid on windows. This patch replaces them with `_`. --- Full diff: https://github.com/llvm/llvm-project/pull

[libunwind] [libunwind][RISCV] Make asm statement volatile (PR #130286)

2025-03-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libunwind Author: Gergely Futo (futog) Changes Compiling with `O3`, the `early-machinelicm` pass hoisted the asm statement to a path that has been executed unconditionally during stack unwinding. On hardware without vector extension support, this resul

[libunwind] [libunwind][RISCV] Make asm statement volatile (PR #130286)

2025-03-07 Thread Gergely Futo via cfe-commits
https://github.com/futog created https://github.com/llvm/llvm-project/pull/130286 Compiling with `O3`, the `early-machinelicm` pass hoisted the asm statement to a path that has been executed unconditionally during stack unwinding. On hardware without vector extension support, this resulted in

[clang] 5b3f50e - [C2y] Claim nonconformance to WG14 N3418

2025-03-07 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2025-03-07T08:58:33-05:00 New Revision: 5b3f50ead1473ae7f8695e02f26635a7ea89a6aa URL: https://github.com/llvm/llvm-project/commit/5b3f50ead1473ae7f8695e02f26635a7ea89a6aa DIFF: https://github.com/llvm/llvm-project/commit/5b3f50ead1473ae7f8695e02f26635a7ea89a6aa.diff

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisim (Simulation Hint) extension (PR #128833)

2025-03-07 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff f7daa9d302a82f35c3b9ed4cede23ab808462b4f fcc75d7168040b41823768c585d2349a9ee88156 --e

[clang] [llvm] [Clang][LLVM] Implement multi-single vectors MOP4{A/S} (PR #129226)

2025-03-07 Thread Jonathan Thackray via cfe-commits
@@ -257,6 +266,17 @@ class SME2_Tile_Movaz_Pat(name # _PSEUDO) $tile, $base, $offset)>; +class SME2_ZA_Tile_TwoVec_Pat +: Pat<(intrinsic imm_ty:$tile, vt:$Zn, vt:$Zm), + (!cast(name # _PSEUDO) $tile, $Zn, $Zm)>; + +class SME2_ZA_Tile_Vec_Multi_Pat j

[clang] [llvm] [clang][DebugInfo] Add symbol for debugger with VTable information. (PR #130255)

2025-03-07 Thread Michael Buch via cfe-commits
https://github.com/Michael137 commented: Would be great to have a simpler of getting to the vtable info! I left some nits Don't see an issue with the the general approach, but i'll let others chime in https://github.com/llvm/llvm-project/pull/130255 _

[clang] [llvm] [clang][DebugInfo] Add symbol for debugger with VTable information. (PR #130255)

2025-03-07 Thread Michael Buch via cfe-commits
@@ -2518,6 +2518,59 @@ StringRef CGDebugInfo::getVTableName(const CXXRecordDecl *RD) { return internString("_vptr$", RD->getNameAsString()); } +// Emit symbol for the debugger that points to the vtable address for +// the given class. The symbol is named as '_vtable$'. +//

[clang] [llvm] [clang][DebugInfo] Add symbol for debugger with VTable information. (PR #130255)

2025-03-07 Thread Michael Buch via cfe-commits
https://github.com/Michael137 edited https://github.com/llvm/llvm-project/pull/130255 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcisim (Simulation Hint) extension (PR #128833)

2025-03-07 Thread Sudharsan Veeravalli via cfe-commits
https://github.com/svs-quic updated https://github.com/llvm/llvm-project/pull/128833 >From 10f62d3697b3e2d773d828fc3e7a6767ff71a072 Mon Sep 17 00:00:00 2001 From: Sudharsan Veeravalli Date: Wed, 26 Feb 2025 12:13:32 +0530 Subject: [PATCH 1/3] [RISCV] Add Qualcomm uC Xqcisim (Simulation Hint] e

[clang] [C2y] Implement WG14 N3411 (PR #130180)

2025-03-07 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/130180 >From 517b2b64e8dc67cf33b5e1aaef8d17c567b6b5d7 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Thu, 6 Mar 2025 16:43:38 -0500 Subject: [PATCH 1/2] [C2y] Implement WG14 N3411 This paper allows a source f

[clang] [Offload] Always consider `flto` on for AMDGPU (PR #129118)

2025-03-07 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > > but it turns on LTO by default right? > > This is very much how I read that patch too. Maybe the flag names and > comments are a bit misleading here. I think people are just confusing what `-flto` means when put on a link job. https://github.com/llvm/llvm-project/pull/12911

[clang] clang: Enable linker-wrapper test on windows (PR #130248)

2025-03-07 Thread Michael Kruse via cfe-commits
Meinersbur wrote: Pre-merge on Linux fails too, but different symptoms. Let me try on my machine. https://github.com/llvm/llvm-project/pull/130248 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [Clang] Treat `ext_vector_type` as a regular type attribute (PR #130177)

2025-03-07 Thread Joseph Huber via cfe-commits
jhuber6 wrote: @erichkeane Is this good to go now? CI's green and I reverted the attribute back to your initial approval. https://github.com/llvm/llvm-project/pull/130177 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/c

[clang] [LinkerWrapper] Try to fix testing on Windows (PR #130285)

2025-03-07 Thread Joseph Huber via cfe-commits
@@ -599,9 +599,10 @@ Expected writeOffloadFile(const OffloadFile &File) { StringRef Prefix = sys::path::stem(Binary.getMemoryBufferRef().getBufferIdentifier()); - - auto TempFileOrErr = createOutputFile( - Prefix + "-" + Binary.getTriple() + "-" + Binary.getArch

[clang] clang: Enable linker-wrapper test on windows (PR #130248)

2025-03-07 Thread Joseph Huber via cfe-commits
jhuber6 wrote: @Meinersbur Do you have a good guess why this fails on Windows? It's difficult to triage without a windows machine. https://github.com/llvm/llvm-project/pull/130248 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.l

[clang] [Clang] Implement P0963R3 "Structured binding declaration as a condition" (PR #130228)

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

[clang] [Clang] Implement P0963R3 "Structured binding declaration as a condition" (PR #130228)

2025-03-07 Thread Erich Keane via cfe-commits
@@ -5218,16 +5218,28 @@ static bool EvaluateVarDecl(EvalInfo &Info, const VarDecl *VD) { return true; } +static bool EvaluateDecompositionDeclInit(EvalInfo &Info, + const DecompositionDecl *DD); + static bool EvaluateDecl(EvalInfo &

[clang] [Clang] Implement P0963R3 "Structured binding declaration as a condition" (PR #130228)

2025-03-07 Thread Erich Keane via cfe-commits
@@ -5218,16 +5218,28 @@ static bool EvaluateVarDecl(EvalInfo &Info, const VarDecl *VD) { return true; } +static bool EvaluateDecompositionDeclInit(EvalInfo &Info, + const DecompositionDecl *DD); + static bool EvaluateDecl(EvalInfo &

[clang] [Clang] Implement P0963R3 "Structured binding declaration as a condition" (PR #130228)

2025-03-07 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: Only a small pair of nits/questions so far, but otherwise this is on the right track. https://github.com/llvm/llvm-project/pull/130228 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.

[clang] [flang] [flang] Align `-x` language modes with `gfortran` (PR #130268)

2025-03-07 Thread Tarun Prabhu via cfe-commits
=?utf-8?q?Iñaki?= Amatria Barral Message-ID: In-Reply-To: @@ -0,0 +1,35 @@ +program main + print *, __FILE__, __LINE__ +end + +! This test verifies that `flang`'s `-x` options behave like `gfortran`'s. +! Specifically: +! - `-x f95` should process the file based on its extensi

[clang] [Clang] Treat `ext_vector_type` as a regular type attribute (PR #130177)

2025-03-07 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. 2 test change requests, else LGTM. https://github.com/llvm/llvm-project/pull/130177 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [Clang] Treat `ext_vector_type` as a regular type attribute (PR #130177)

2025-03-07 Thread Erich Keane via cfe-commits
@@ -111,19 +111,15 @@ __device__ __bf16 test_call( __bf16 in) { // CHECK-NEXT:ret void // __device__ void test_vec_assign() { - typedef __attribute__((ext_vector_type(2))) __bf16 bf16_x2; - bf16_x2 vec2_a, vec2_b; + __bf16 [[clang::ext_vector_type(2)]] vec2_a, vec2_b; --

[clang] [Clang] Treat `ext_vector_type` as a regular type attribute (PR #130177)

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

[clang] [Clang] Treat `ext_vector_type` as a regular type attribute (PR #130177)

2025-03-07 Thread Erich Keane via cfe-commits
@@ -0,0 +1,13 @@ +// RUN: %clang_cc1 %s -verify -ast-dump | FileCheck %s + +// expected-no-diagnostics + +// CHECK: VarDecl {{.*}} x 'int __attribute__((ext_vector_type(4)))' erichkeane wrote: Oof, I hate the type printing here. Nothing to change for that, but i

[clang] [Clang] [Sema] Allow non-local/non-variable declarations in for loop (PR #129737)

2025-03-07 Thread Shafik Yaghmour via cfe-commits
@@ -1,13 +1,21 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify=c11 -std=c11 -pedantic %s +// RUN: %clang_cc1 -fsyntax-only -verify=c23 -std=c23 -Wpre-c23-compat %s // Check C99 6.8.5p3 void b1 (void) { for (void (*f) (void);;); } -void

[clang] [clang:frontend] Move helper functions to common location for SemaSPIRV (PR #125045)

2025-03-07 Thread Muhammad Bassiouni via cfe-commits
https://github.com/bassiounix closed https://github.com/llvm/llvm-project/pull/125045 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5   >