[clang-tools-extra] [clang-tidy] Fix `cert-err33-c` to ignore functions with same prefixes as target (PR #135160)

2025-04-11 Thread Björn Svensson via cfe-commits
bjosv wrote: > I think we should provide an entry in `ReleaseNotes.rst` since the change > alters behavior of the check (fixes false-positives). Missed that, thanks. Done. https://github.com/llvm/llvm-project/pull/135160 ___ cfe-commits mailing list

[clang-tools-extra] [clang-tidy] Fix `cert-err33-c` to ignore functions with same prefixes as target (PR #135160)

2025-04-11 Thread Carlos Galvez via cfe-commits
=?utf-8?q?Bj=C3=B6rn?= Svensson , =?utf-8?q?Bj=C3=B6rn?= Svensson Message-ID: In-Reply-To: @@ -50,183 +50,183 @@ namespace { // with NULL argument and in this case the check is not applicable: // `mblen, mbrlen, mbrtowc, mbtowc, wctomb, wctomb_s`. // FIXME: The check can be

[clang-tools-extra] [clang-tidy] Fix `cert-err33-c` to ignore functions with same prefixes as target (PR #135160)

2025-04-11 Thread Carlos Galvez via cfe-commits
=?utf-8?q?Björn?= Svensson , =?utf-8?q?Björn?= Svensson Message-ID: In-Reply-To: https://github.com/carlosgalvezp closed https://github.com/llvm/llvm-project/pull/135160 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/c

[clang-tools-extra] 0276915 - [clang-tidy] Fix `cert-err33-c` to ignore functions with same prefixes as target (#135160)

2025-04-11 Thread via cfe-commits
Author: Björn Svensson Date: 2025-04-11T10:08:29+02:00 New Revision: 0276915a6c888906b2140a3d97e5ce32057a3ca5 URL: https://github.com/llvm/llvm-project/commit/0276915a6c888906b2140a3d97e5ce32057a3ca5 DIFF: https://github.com/llvm/llvm-project/commit/0276915a6c888906b2140a3d97e5ce32057a3ca5.diff

[clang] [Clang][Sema] Fix -Whigher-precision-for-complex-division (PR #131477)

2025-04-11 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis updated https://github.com/llvm/llvm-project/pull/131477 From d3da72bf61ae8268a25e5331acefe895c783905a Mon Sep 17 00:00:00 2001 From: Gergely Meszaros Date: Sat, 15 Mar 2025 22:37:07 +0100 Subject: [PATCH] [Clang][Sema] Fix -Whigher-precision-for-complex-division -

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] An assortment of small enhancements (PR #135329)

2025-04-11 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 HEAD~1 HEAD --extensions cpp,h -- clang/lib/StaticAnalyzer/Checkers/WebKit/RetainPtrC

[clang] [Serialization] Fix lazy template loading (PR #133057)

2025-04-11 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: > > Here's a new reproducer, this time verifying that a semi-fresh > > tip-of-the-tree doesn't trigger the same error: > > https://pastebin.com/7tYfjazz. Apologies for the delay. > > Thanks. I gave it a try, but I don't see any `use of overloaded operator '=' > is ambiguous`

[clang] [clang][ReleaseNotes] Fix code block not rendering (PR #135330)

2025-04-11 Thread Mészáros Gergely via cfe-commits
Maetveis wrote: Before (https://clang.llvm.org/docs/ReleaseNotes.html#improvements-to-clang-s-diagnostics): ![image](https://github.com/user-attachments/assets/1f6c4d56-6d2b-41c8-985c-f5ec30461987) With this PR: ![image](https://github.com/user-attachments/assets/19a017e3-44fb-4179-accd-f2a3c

[clang] [clang][ReleaseNotes] Fix code block not rendering (PR #135330)

2025-04-11 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis ready_for_review https://github.com/llvm/llvm-project/pull/135330 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ReleaseNotes] Fix code block not rendering (PR #135330)

2025-04-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mészáros Gergely (Maetveis) Changes Bullet lists require a blank line between paragraphs therefore the `.. code-block::` directive only renders correctly if preceded by a blank line. --- Full diff: https://github.com/llvm/llvm-project/pul

[clang] [alpha.webkit.RetainPtrCtorAdoptChecker] An assortment of small enhancements (PR #135329)

2025-04-11 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa updated https://github.com/llvm/llvm-project/pull/135329 >From ffeb0f6f3252579fe77460ba05b57f7b68189bab Mon Sep 17 00:00:00 2001 From: Ryosuke Niwa Date: Fri, 11 Apr 2025 01:15:55 -0700 Subject: [PATCH 1/2] [alpha.webkit.RetainPtrCtorAdoptChecker] An assortment of smal

[clang] [clang][ReleaseNotes] Fix code block not rendering (PR #135330)

2025-04-11 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis created https://github.com/llvm/llvm-project/pull/135330 Bullet lists require a blank line between paragraphs therefore the `.. code-block::` directive only renders correctly if preceded by a blank line. From d5f1688b4675442804ae6c8610b8d2e9b60e33db Mon Sep 17 00:00

[clang] [Clang][Sema]:Fix musttail attribute on a function with not_tail_called attribute has no warning/error (PR #134465)

2025-04-11 Thread via cfe-commits
@@ -0,0 +1,16 @@ +// RUN: %clang_cc1 -verify -fsyntax-only %s + +int __attribute__((not_tail_called)) foo1(int a) { +return a + 1; +} + + +int foo2(int a) { +[[clang::musttail]] +return foo1(a); // expected-error{{cannot perform a tail call to function'musttail' b

[clang] [clang][bytecode] Misc TypeidPointer fixes (PR #135322)

2025-04-11 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-android` running on `sanitizer-buildbot-android` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/186/builds/8116 Here is the releva

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-11 Thread Jonathan Thackray via cfe-commits
@@ -0,0 +1,112 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py + +// REQUIRES: aarch64-registered-target +// RUN: %clang_cc1 -triple aarch64 -target-feature +bf16 -target-feature +sme-tmop -target-feature +sme-f16f16 -target-feature +sme-b16b16

[clang] [clang][CodeGen] Fix metadata when vectorization is disabled by pragma (PR #135163)

2025-04-11 Thread Ryotaro Kasuga via cfe-commits
https://github.com/kasuga-fj updated https://github.com/llvm/llvm-project/pull/135163 >From 79186af3df57357d40ec3b3e4eaf9da978b31ef6 Mon Sep 17 00:00:00 2001 From: Ryotaro Kasuga Date: Fri, 4 Apr 2025 12:32:57 + Subject: [PATCH 1/4] [clang][CodeGen] Fix metadata when vectorization is disab

[clang] [clang][CodeGen] Fix metadata when vectorization is disabled by pragma (PR #135163)

2025-04-11 Thread Ryotaro Kasuga via cfe-commits
@@ -194,7 +194,7 @@ void for_test_scalable(int *List, int Length) { } } -// Verify for loop is performing scalable vectorization +// Verify for loop is NOT performing vectorization because the width is 1 kasuga-fj wrote: Fixed both code and docs. Thanks. h

[clang] [clang][CodeGen] Fix metadata when vectorization is disabled by pragma (PR #135163)

2025-04-11 Thread Ryotaro Kasuga via cfe-commits
https://github.com/kasuga-fj edited https://github.com/llvm/llvm-project/pull/135163 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-11 Thread Jonathan Thackray via cfe-commits
@@ -907,6 +907,48 @@ let SMETargetGuard = "sme-f16f16" in { } + +// SME2 - TMOP, SUTMOP, USTMOP + +multiclass USTMOP checks> { + def _ : SInst<"svtmopa_lane_" # za # "[_{d}_{3}]", +

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-11 Thread Jonathan Thackray via cfe-commits
@@ -0,0 +1,112 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py + +// REQUIRES: aarch64-registered-target +// RUN: %clang_cc1 -triple aarch64 -target-feature +bf16 -target-feature +sme-tmop -target-feature +sme-f16f16 -target-feature +sme-b16b16

[clang] 9eeafc6 - Implement `-dump-minimization-hints` flag. (#133910)

2025-04-11 Thread via cfe-commits
Author: Viktoriia Bakalova Date: 2025-04-11T12:48:18+02:00 New Revision: 9eeafc63d2f06f7aa216ddcf2370b20fbb1d9015 URL: https://github.com/llvm/llvm-project/commit/9eeafc63d2f06f7aa216ddcf2370b20fbb1d9015 DIFF: https://github.com/llvm/llvm-project/commit/9eeafc63d2f06f7aa216ddcf2370b20fbb1d9015.

[clang] Implement `-dump-minimization-hints` flag. (PR #133910)

2025-04-11 Thread Viktoriia Bakalova via cfe-commits
https://github.com/VitaNuo closed https://github.com/llvm/llvm-project/pull/133910 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [DLCov 2/5] Implement DebugLoc coverage tracking (PR #107279)

2025-04-11 Thread J. Ryan Stinnett via cfe-commits
https://github.com/jryans approved this pull request. New docs look good, thanks for working on this! Yes, the value is quite clear indeed. :smile: https://github.com/llvm/llvm-project/pull/107279 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [llvm] [DLCov 3/5] Implement DebugLoc origin-tracking (PR #107369)

2025-04-11 Thread J. Ryan Stinnett via cfe-commits
jryans wrote: IIRC, there are still some open review threads in this PR, mainly related to reducing duplication in the symbolication bits. https://github.com/llvm/llvm-project/pull/107369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-11 Thread Jonathan Thackray via cfe-commits
@@ -0,0 +1,176 @@ +// RUN: %clang_cc1 -triple aarch64 -target-feature +sme -target-feature +sme2 -target-feature +bf16 -target-feature +sme-f16f16 -target-feature +sme-b16b16 -verify -emit-llvm -o - %s + +// REQUIRES: aarch64-registered-target + +#include + +void test_features(

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-11 Thread Jonathan Thackray via cfe-commits
@@ -3593,6 +3578,25 @@ class sme_tmopa_32b opc, RegisterOperand zn_ty, RegisterOperand zm_ty, s let Constraints = "$ZAda = $_ZAda"; } +multiclass sme_tmopa_16b opc, RegisterOperand zn_ty, RegisterOperand zm_ty, ValueType vt, string mnemonic, string intrinsic> { + def NAME

[clang] [llvm] [clang][NVPTX] Add builtins and intrinsics for conversions of new FP types (PR #134345)

2025-04-11 Thread Srinivasa Ravi via cfe-commits
https://github.com/Wolfram70 edited https://github.com/llvm/llvm-project/pull/134345 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-11 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray updated https://github.com/llvm/llvm-project/pull/135145 >From c0bff6fe1d1630ba93361ac29bca798810a64178 Mon Sep 17 00:00:00 2001 From: Jonathan Thackray Date: Mon, 3 Mar 2025 16:16:46 + Subject: [PATCH 1/3] [AArch64][clang][llvm] Add structured sparsity outer p

[clang] [llvm] [DLCov 3/5] Implement DebugLoc origin-tracking (PR #107369)

2025-04-11 Thread Stephen Tozer via cfe-commits
SLTozer wrote: > IIRC, there are still some open review threads in this PR, mainly related to > reducing duplication in the symbolication bits. Yes, this part won't land quite yet; as I'm kicking these reviews back into action, I'll be pushing up some other reviews to come before this one in t

[clang] [C99] Remove the tgmath.h header (PR #135236)

2025-04-11 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: What I am taking away from this conversation is: 1) We need to keep tgmath.h, so this PR can be closed. 2) We should consider implementing `__builtin_tgmath`, 3) We should consider bumping the `__GNUC__` version we report. I think all of those are sensible, though (2) seems

[clang] [C99] Remove the tgmath.h header (PR #135236)

2025-04-11 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/135236 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PAC] Add support for __ptrauth type qualifier (PR #100830)

2025-04-11 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,142 @@ +// RUN: %clang_cc1 -triple arm64-apple-ios -std=c++11 -fptrauth-calls -fptrauth-intrinsics -verify -fsyntax-only %s +// RUN: %clang_cc1 -triple aarch64-linux-gnu -std=c++11 -fptrauth-calls -fptrauth-intrinsics -verify -fsyntax-only %s + +#define AQ __ptrauth

[clang] [PAC] Add support for __ptrauth type qualifier (PR #100830)

2025-04-11 Thread Aaron Ballman via cfe-commits
@@ -2850,6 +2850,26 @@ void CXXNameMangler::mangleQualifiers(Qualifiers Quals, const DependentAddressSp if (Quals.hasUnaligned()) mangleVendorQualifier("__unaligned"); + // __ptrauth. Note that this is parameterized. + if (PointerAuthQualifier PtrAuth = Quals.getPoin

[clang] c58777c - [clang][ReleaseNotes] Fix code block not rendering (#135330)

2025-04-11 Thread via cfe-commits
Author: Mészáros Gergely Date: 2025-04-11T13:53:33+02:00 New Revision: c58777c2ad3464cfddc62e1da13dae443e868f3e URL: https://github.com/llvm/llvm-project/commit/c58777c2ad3464cfddc62e1da13dae443e868f3e DIFF: https://github.com/llvm/llvm-project/commit/c58777c2ad3464cfddc62e1da13dae443e868f3e.di

[clang] [clang][ReleaseNotes] Fix code block not rendering (PR #135330)

2025-04-11 Thread Mészáros Gergely via cfe-commits
https://github.com/Maetveis closed https://github.com/llvm/llvm-project/pull/135330 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen][X86] don't coerce int128 into `{i64,i64}` for SysV-like ABIs (PR #135230)

2025-04-11 Thread Jeremy Morse via cfe-commits
jmorse wrote: There's precedent for splitting the debug-info into fragments early, we do something similar for C++ structured-bindings in SROA and a very similar process happens when the i128 argument is split up in instruction-selection. Split-up locations become brittle to optimisations thou

[clang] [clang-tools-extra] Revert "[clang] Improved canonicalization for template specialization types" (PR #135354)

2025-04-11 Thread Dmitry Vasilyev via cfe-commits
https://github.com/slydiman created https://github.com/llvm/llvm-project/pull/135354 Reverts llvm/llvm-project#135119 because of the assert in ASTContext.cpp, line 5619. See #135352 for details. >From 2c7b3620502462008c3150df0522b441fb9527b3 Mon Sep 17 00:00:00 2001 From: Dmitry Vasilyev Da

[clang] [clang-tools-extra] Revert "[clang] Improved canonicalization for template specialization types" (PR #135354)

2025-04-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Dmitry Vasilyev (slydiman) Changes Reverts llvm/llvm-project#135119 because of the assert in ASTContext.cpp, line 5619. See #135352 for details. --- Patch is 89.49 KiB, truncated to 20.00 KiB below, full version: https://github.com/l

[clang] [Serialization] Fix lazy template loading (PR #133057)

2025-04-11 Thread Maksim Ivanov via cfe-commits
emaxx-google wrote: > > Here's a new reproducer, this time verifying that a semi-fresh > > tip-of-the-tree doesn't trigger the same error: > > https://pastebin.com/7tYfjazz. Apologies for the delay. > > Thanks. I gave it a try, but I don't see any `use of overloaded operator '=' > is ambiguou

[clang] [clang-tools-extra] Revert "[clang] Improved canonicalization for template specialization types" (PR #135354)

2025-04-11 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 HEAD~1 HEAD --extensions cpp,h -- clang-tools-extra/clangd/AST.cpp clang/include/clan

[clang] [clang][CodeGen] Add range metadata for atomic load of boolean type. #131476 (PR #133546)

2025-04-11 Thread Jan Górski via cfe-commits
https://github.com/janagor updated https://github.com/llvm/llvm-project/pull/133546 From 4581169d6fbe72357bb83b95fe36c8cc606efa1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20G=C3=B3rski?= Date: Fri, 28 Mar 2025 23:36:18 +0100 Subject: [PATCH 1/9] [clang][CodeGen] Added llvm ir pre-commit tes

[clang] [Serialization] Fix lazy template loading (PR #133057)

2025-04-11 Thread Jonas Hahnfeld via cfe-commits
hahnjo wrote: > The simplified script: https://pastebin.com/udVTaPYV Aaaah, the important line is `EXTRA_CFLAGS='-Xclang -fallow-pcm-with-compiler-errors -ferror-limit=0'`. With that I indeed get the following diff between logs from `main` and a rebased version of this branch: ```diff --- main

[clang] [Clang] add option --offload-jobs=N (PR #135229)

2025-04-11 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. LG with one nit. https://github.com/llvm/llvm-project/pull/135229 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] add option --offload-jobs=N (PR #135229)

2025-04-11 Thread Joseph Huber via cfe-commits
@@ -1234,6 +1234,10 @@ def offload_compression_level_EQ : Joined<["--"], "offload-compression-level=">, Flags<[HelpHidden]>, HelpText<"Compression level for offload device binaries (HIP only)">; +def offload_jobs_EQ : Joined<["--"], "offload-jobs=">, + HelpText<"Specify

[clang] [Clang] add option --offload-jobs=N (PR #135229)

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

[clang] [Serialization] Fix lazy template loading (PR #133057)

2025-04-11 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: > > > Here's a new reproducer, this time verifying that a semi-fresh > > > tip-of-the-tree doesn't trigger the same error: > > > https://pastebin.com/7tYfjazz. Apologies for the delay. > > > > > > Thanks. I gave it a try, but I don't see any `use of overloaded operator > >

[clang] [Clang][Sema]:Fix musttail attribute on a function with not_tail_called attribute has no warning/error (PR #134465)

2025-04-11 Thread Aaron Ballman via cfe-commits
@@ -3161,7 +3161,7 @@ def err_musttail_member_mismatch : Error< def note_musttail_callee_defined_here : Note<"%0 declared here">; def note_tail_call_required : Note<"tail call required by %0 attribute here">; def err_musttail_mismatch : Error< - "cannot perform a tail call to

[clang] [clang] ItaniumMangle: fix mangling for unresolved types (PR #135312)

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

[clang] [AMDGPU][Clang] Add builtins for gfx12 ray tracing intrinsics (PR #135224)

2025-04-11 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu approved this pull request. https://github.com/llvm/llvm-project/pull/135224 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Teach Barmetal toolchain about GCC installation (PR #121829)

2025-04-11 Thread Peter Smith via cfe-commits
@@ -110,20 +110,81 @@ static std::string computeBaseSysRoot(const Driver &D, bool IncludeTriple) { return std::string(SysRootDir); } +static bool hasGCCToolChainAlongSideClang(const Driver &D) { + SmallString<128> GCCDir; + llvm::sys::path::append(GCCDir, D.Dir, "..", D.g

[clang] [Driver] Teach Barmetal toolchain about GCC installation (PR #121829)

2025-04-11 Thread Peter Smith via cfe-commits
https://github.com/smithp35 commented: I'm looking at this patch in isolation, so its possible that the comments here are addressed elasewhere. It looks like useful functionality to add to the bare metal driver. It also looks like there is some scope for some documentation, for users and for

[clang] [Driver] Teach Barmetal toolchain about GCC installation (PR #121829)

2025-04-11 Thread Peter Smith via cfe-commits
https://github.com/smithp35 edited https://github.com/llvm/llvm-project/pull/121829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Allow simpler visibility annotations when targeting win32 and mingw (PR #133699)

2025-04-11 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 ready_for_review https://github.com/llvm/llvm-project/pull/133699 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AMDGPU][Clang] Add builtins for gfx12 ray tracing intrinsics (PR #135224)

2025-04-11 Thread Shilei Tian via cfe-commits
https://github.com/shiltian closed https://github.com/llvm/llvm-project/pull/135224 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] Fix signal frame unwinding (PR #135367)

2025-04-11 Thread Trung Nguyen via cfe-commits
https://github.com/trungnt2910 created https://github.com/llvm/llvm-project/pull/135367 The current unwinding implementation on Haiku is messy and broken. 1. It searches weird paths for private headers, which is breaking builds in consuming projects, such as dotnet/runtime. 2. It does not even

[libunwind] Fix signal frame unwinding (PR #135367)

2025-04-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-libunwind Author: Trung Nguyen (trungnt2910) Changes The current unwinding implementation on Haiku is messy and broken. 1. It searches weird paths for private headers, which is breaking builds in consuming projects, such as dotnet/runtime. 2. It does no

[libunwind] Fix signal frame unwinding (PR #135367)

2025-04-11 Thread via cfe-commits
github-actions[bot] wrote: ⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo. Please turn off [Keep my email addresses private](https://github.com/settings/emails) setting in your account. See [LLVM Discourse](https://discourse.llvm.org/t/hidden-email

[clang] [Clang] Allow simpler visibility annotations when targeting win32 and mingw (PR #133699)

2025-04-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nikolas Klauser (philnik777) Changes MinGW and Win32 disagree on where the `__declspec(dllexport)` should be placed. However, there doesn't fundamentally seem to be a problem with putting the annotation in both places. This patch adds a n

[clang] 9e90e10 - [AMDGPU][Clang] Add builtins for gfx12 ray tracing intrinsics (#135224)

2025-04-11 Thread via cfe-commits
Author: Shilei Tian Date: 2025-04-11T09:33:32-04:00 New Revision: 9e90e10e76eeb796d2d9e8609b98b90d760e1eb0 URL: https://github.com/llvm/llvm-project/commit/9e90e10e76eeb796d2d9e8609b98b90d760e1eb0 DIFF: https://github.com/llvm/llvm-project/commit/9e90e10e76eeb796d2d9e8609b98b90d760e1eb0.diff L

[libunwind] Fix signal frame unwinding (PR #135367)

2025-04-11 Thread Trung Nguyen via cfe-commits
https://github.com/trungnt2910 updated https://github.com/llvm/llvm-project/pull/135367 >From d213e68a98b5c92656122aa13bf853b77e6c0b7a Mon Sep 17 00:00:00 2001 From: Trung Nguyen <57174311+trungnt2...@users.noreply.github.com> Date: Fri, 11 Apr 2025 23:11:04 +1000 Subject: [PATCH] Fix signal fra

[clang] [Clang] Allow simpler visibility annotations when targeting win32 and mingw (PR #133699)

2025-04-11 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: I can't really comment much on the implementation here, I would mostly leave that up to people more familiar with those bits in Clang. A little nitpickery wrt the text; it'd be clearer if it'd talk about "MSVC and mingw". Both MSVC mode and mingw mode are equally much "win32" o

[libunwind] Fix signal frame unwinding (PR #135367)

2025-04-11 Thread Trung Nguyen via cfe-commits
https://github.com/trungnt2910 updated https://github.com/llvm/llvm-project/pull/135367 >From dd2b01926ad901836465c1aaf1bf142688cbb768 Mon Sep 17 00:00:00 2001 From: Trung Nguyen Date: Fri, 11 Apr 2025 23:49:36 +1000 Subject: [PATCH] Fix signal frame unwinding The current unwinding implementat

[libunwind] Fix signal frame unwinding (PR #135367)

2025-04-11 Thread Trung Nguyen via cfe-commits
https://github.com/trungnt2910 updated https://github.com/llvm/llvm-project/pull/135367 >From 06e16ff58a908d6fd47a264f95f4b53eb6ad51a5 Mon Sep 17 00:00:00 2001 From: Trung Nguyen Date: Fri, 11 Apr 2025 23:50:16 +1000 Subject: [PATCH] Fix signal frame unwinding The current unwinding implementat

[libunwind] Fix signal frame unwinding (PR #135367)

2025-04-11 Thread Trung Nguyen via cfe-commits
https://github.com/trungnt2910 updated https://github.com/llvm/llvm-project/pull/135367 >From 116b60a6740831b1376377e33762faf53305f6c2 Mon Sep 17 00:00:00 2001 From: Trung Nguyen Date: Fri, 11 Apr 2025 23:53:14 +1000 Subject: [PATCH] Fix signal frame unwinding The current unwinding implementat

[clang] [Driver] Teach Barmetal toolchain about GCC installation (PR #121829)

2025-04-11 Thread Peter Smith via cfe-commits
@@ -110,20 +110,81 @@ static std::string computeBaseSysRoot(const Driver &D, bool IncludeTriple) { return std::string(SysRootDir); } +static bool hasGCCToolChainAlongSideClang(const Driver &D) { smithp35 wrote: IIUC this is when we have something like clan

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-11 Thread via cfe-commits
@@ -907,6 +907,48 @@ let SMETargetGuard = "sme-f16f16" in { } + +// SME2 - TMOP, SUTMOP, USTMOP + +multiclass USTMOP checks> { + def _ : SInst<"svtmopa_lane_" # za # "[_{d}_{3}]", +

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-11 Thread via cfe-commits
@@ -907,6 +907,48 @@ let SMETargetGuard = "sme-f16f16" in { } + +// SME2 - TMOP, SUTMOP, USTMOP + +multiclass USTMOP checks> { + def _ : SInst<"svtmopa_lane_" # za # "[_{d}_{3}]", +

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-11 Thread via cfe-commits
@@ -907,6 +907,48 @@ let SMETargetGuard = "sme-f16f16" in { } + +// SME2 - TMOP, SUTMOP, USTMOP + +multiclass USTMOP checks> { + def _ : SInst<"svtmopa_lane_" # za # "[_{d}_{3}]", +

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-11 Thread via cfe-commits
@@ -0,0 +1,133 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py + +// REQUIRES: aarch64-registered-target +// RUN: %clang_cc1 -triple aarch64 -target-feature +bf16 -target-feature +sme-tmop -target-feature +sme-f16f16 -target-feature +sme-b16b16

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-11 Thread via cfe-commits
@@ -0,0 +1,191 @@ +// RUN: %clang_cc1 -triple aarch64 -target-feature +sme -target-feature +sme2 -target-feature +bf16 -target-feature +sme-f16f16 -target-feature +sme-b16b16 -verify -emit-llvm -o - %s Lukacma wrote: What is the purpose adding all these target-

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-11 Thread via cfe-commits
@@ -3107,6 +3107,23 @@ let TargetPrefix = "aarch64" in { } } + class SME_OuterProduct_TMOP_Intrinsic + : DefaultAttrsIntrinsic<[], + [llvm_i32_ty, + llvm_anyvector_ty, + LLVMMatchType<0>, + LLVMMatchType<0>, + llvm_nxv16i8

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-11 Thread via cfe-commits
@@ -281,6 +289,12 @@ class SME2_ZA_Tile_Vec_Multi_Single_Pat : Pat<(intrinsic imm_ty:$tile, vt:$Zn1, vt:$Zn2, vt:$Zm1, vt:$Zm2), (!cast(name # _PSEUDO) $tile, (REG_SEQUENCE ZPR2Mul2, vt:$Zn1, zsub0, vt:$Zn2, zsub1), (REG_SEQUENCE ZPR2Mul2, vt:$Zm1, zsub0, vt:$Zm2

[clang] [clang-tools-extra] Revert "[clang] Improved canonicalization for template specialization types" (PR #135354)

2025-04-11 Thread Dmitry Vasilyev via cfe-commits
https://github.com/slydiman closed https://github.com/llvm/llvm-project/pull/135354 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] cbba960 - Revert "[clang] Improved canonicalization for template specialization types" (#135354)

2025-04-11 Thread via cfe-commits
Author: Dmitry Vasilyev Date: 2025-04-11T17:55:11+04:00 New Revision: cbba9600ae4faeb06619ed8b52c22d8a38708230 URL: https://github.com/llvm/llvm-project/commit/cbba9600ae4faeb06619ed8b52c22d8a38708230 DIFF: https://github.com/llvm/llvm-project/commit/cbba9600ae4faeb06619ed8b52c22d8a38708230.dif

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-11 Thread via cfe-commits
@@ -281,6 +289,12 @@ class SME2_ZA_Tile_Vec_Multi_Single_Pat : Pat<(intrinsic imm_ty:$tile, vt:$Zn1, vt:$Zn2, vt:$Zm1, vt:$Zm2), (!cast(name # _PSEUDO) $tile, (REG_SEQUENCE ZPR2Mul2, vt:$Zn1, zsub0, vt:$Zn2, zsub1), (REG_SEQUENCE ZPR2Mul2, vt:$Zm1, zsub0, vt:$Zm2

[clang] [Clang][AMDGPU] Accept builtins in lambda declarations (PR #135027)

2025-04-11 Thread Juan Manuel Martinez Caamaño via cfe-commits
https://github.com/jmmartinez updated https://github.com/llvm/llvm-project/pull/135027 From a22e56d063e91df667d89ed5238bd886ce10bd0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Martinez=20Caama=C3=B1o?= Date: Wed, 9 Apr 2025 15:11:19 +0200 Subject: [PATCH] [Clang][AMDGPU] Accept bu

[clang] [C23] Fix failed assertions with invalid #embed parameters (PR #135368)

2025-04-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Aaron Ballman (AaronBallman) Changes If the invalid parameter was not the last parameter given, we would fail to skip to the end of the directive and trip a failed assertion. Fixes #126940 --- Full diff: https://github.com/llvm/llvm-proj

[clang] [Clang][AMDGPU] Accept builtins in lambda declarations (PR #135027)

2025-04-11 Thread Juan Manuel Martinez Caamaño via cfe-commits
jmmartinez wrote: > IIRC there were bugs when you try to use lambda in conjunction with the > target attribute. Can you add a test where you try to use a builtin that > depends on a subtarget feature, in a function marked with the target > attribute (and not available in the main compile targe

[clang] [flang] [Flang][OpenMP][ROCM] Enable rocm-device-lib-path for flang (PR #135307)

2025-04-11 Thread via cfe-commits
https://github.com/agozillon closed https://github.com/llvm/llvm-project/pull/135307 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 39f1190 - [Flang][OpenMP][ROCM] Enable rocm-device-lib-path for flang (#135307)

2025-04-11 Thread via cfe-commits
Author: agozillon Date: 2025-04-11T15:57:30+02:00 New Revision: 39f119086f115e2af79ebb187a647ea2efad2d5c URL: https://github.com/llvm/llvm-project/commit/39f119086f115e2af79ebb187a647ea2efad2d5c DIFF: https://github.com/llvm/llvm-project/commit/39f119086f115e2af79ebb187a647ea2efad2d5c.diff LOG

[clang] [clang] Reject character devices in #embed for now (PR #135370)

2025-04-11 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon created https://github.com/llvm/llvm-project/pull/135370 See https://github.com/llvm/llvm-project/issues/126629 . Right not they are not supported properly and support requires modifying several layers of LLVM. For now simply reject them while proper support is bei

[clang] [clang] Reject character devices in #embed for now (PR #135370)

2025-04-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mariya Podchishchaeva (Fznamznon) Changes See https://github.com/llvm/llvm-project/issues/126629 . Right not they are not supported properly and support requires modifying several layers of LLVM. For now simply reject them while proper su

[clang] [llvm] [AArch64][clang][llvm] Add structured sparsity outer product (TMOP) intrinsics (PR #135145)

2025-04-11 Thread via cfe-commits
@@ -0,0 +1,191 @@ +// RUN: %clang_cc1 -triple aarch64 -target-feature +sme -target-feature +sme2 -target-feature +bf16 -target-feature +sme-f16f16 -target-feature +sme-b16b16 -verify -emit-llvm -o - %s + +// REQUIRES: aarch64-registered-target + +#include + +void test_features(

[clang] [C23] Fix failed assertions with invalid #embed parameters (PR #135368)

2025-04-11 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/135368 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream binary assignments and comma (PR #135115)

2025-04-11 Thread Morris Hafner via cfe-commits
https://github.com/mmha updated https://github.com/llvm/llvm-project/pull/135115 >From bcaeadf7fff01d2d92b0d234b40f8d5884974e4c Mon Sep 17 00:00:00 2001 From: Morris Hafner Date: Thu, 10 Apr 2025 03:53:43 +0200 Subject: [PATCH 1/3] [CIR] Upstream binary assignments and comma This patch adds `Vi

[clang] [CIR] Upstream binary assignments and comma (PR #135115)

2025-04-11 Thread Morris Hafner via cfe-commits
@@ -807,6 +808,65 @@ class ScalarExprEmitter : public StmtVisitor { VISITCOMP(EQ) VISITCOMP(NE) #undef VISITCOMP + + mlir::Value VisitBinAssign(const BinaryOperator *e) { +const bool ignore = std::exchange(ignoreResultAssign, false); + +mlir::Value rhs; +LValu

[clang] [Clang][Sema]:Fix musttail attribute on a function with not_tail_called attribute has no warning/error (PR #134465)

2025-04-11 Thread via cfe-commits
https://github.com/MillePlateaux updated https://github.com/llvm/llvm-project/pull/134465 >From 596679a60bcae58ac1c9e1b3066b21399a58f24b Mon Sep 17 00:00:00 2001 From: MillePlateaux Date: Fri, 4 Apr 2025 16:26:25 -0700 Subject: [PATCH 1/6] [llvm][Stmt]:git clang format --- clang/lib/Sema/Sema

[clang] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-11 Thread Erich Keane via cfe-commits
erichkeane wrote: @razvanlupusoru @clementval @jefflarkin : This is the place I discussed/promised. Note I used 'flang' for a stand-in as "after using the Acc.td file in clang", so some of those might not be perfectly accurate. BUT are ones that need discussion in some way. We can discuss t

[clang] [clang][ast]: Add DynamicAllocLValue and TypeInfoLValue support to APValue::dump(). (PR #135178)

2025-04-11 Thread via cfe-commits
YLChenZ wrote: > I don't think we can test `DynamicAllocLValue` like this, since we can't save > it in the `APValue` for an initialized global. You'll have to add a call to > `dump()` e.g. like: > > ```diff > diff --git i/clang/lib/AST/ExprConstant.cpp w/clang/lib/AST/ExprConstant.cpp > index

[clang] [NFC][Clang] Don't check hardcode op num (PR #135375)

2025-04-11 Thread Jinsong Ji via cfe-commits
https://github.com/jsji created https://github.com/llvm/llvm-project/pull/135375 The num will change for any downstream customization. >From 5f3c9d4df3aa06cd34593c4f3187b6d9f389a8f3 Mon Sep 17 00:00:00 2001 From: Jinsong Ji Date: Fri, 11 Apr 2025 07:20:20 -0700 Subject: [PATCH] [NFC][Clang] Do

[clang] [llvm] [AMDGPU] Incoherence between TargetParser and AMDGPU.td (PR #135376)

2025-04-11 Thread Juan Manuel Martinez Caamaño via cfe-commits
https://github.com/jmmartinez created https://github.com/llvm/llvm-project/pull/135376 The vmem-to-lds-loads-insts feature is only available on gfx9/10. While target-parser was also enabling it for gfx6,7,8. From 90c95af57317103f399ee4059a4e4ec01ddc98de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q

[clang] [llvm] [AMDGPU] vmem-to-lds-load-insts incoherence between TargetParser and AMDGPU.td (PR #135376)

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

[clang] [llvm] [AMDGPU] vmem-to-lds-load-insts incoherence between TargetParser and AMDGPU.td (PR #135376)

2025-04-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Juan Manuel Martinez Caamaño (jmmartinez) Changes The vmem-to-lds-loads-insts feature is only available on gfx9/10. While target-parser was also enabling it for gfx6,7,8. --- Full diff: https://github.com/llvm/llvm-project/pull/135376.dif

[clang] [llvm] [AMDGPU] vmem-to-lds-load-insts incoherence between TargetParser and AMDGPU.td (PR #135376)

2025-04-11 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/135376 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Don't check hardcode op num (PR #135375)

2025-04-11 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Jinsong Ji (jsji) Changes The num will change for any downstream customization. --- Full diff: https://github.com/llvm/llvm-project/pull/135375.diff 1 Files Affected: - (modified) clang/test/Modules/no-external-type-id.cppm (+1

[clang] [clang] Reject character devices in #embed for now (PR #135370)

2025-04-11 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > I'm not sure what to say in the release note. Sorry folks, we never really > supported these but now we reject to be safe? I would say something like "the '#embed' directive now diagnoses use of a non-character file (device file) such as `/dev/urandom` as an error. This

[clang] [llvm] [AMDGPU] vmem-to-lds-load-insts incoherence between TargetParser and AMDGPU.td (PR #135376)

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

[clang] [clang] ItaniumMangle: fix mangling for unresolved types (PR #135312)

2025-04-11 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/135312 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7113aec - [clang] ItaniumMangle: fix mangling for unresolved types (#135312)

2025-04-11 Thread via cfe-commits
Author: Matheus Izvekov Date: 2025-04-11T11:31:26-03:00 New Revision: 7113aece4eaa634cdcea5c4057da171c17229b40 URL: https://github.com/llvm/llvm-project/commit/7113aece4eaa634cdcea5c4057da171c17229b40 DIFF: https://github.com/llvm/llvm-project/commit/7113aece4eaa634cdcea5c4057da171c17229b40.dif

[clang] [clang] Reject character devices in #embed for now (PR #135370)

2025-04-11 Thread Mariya Podchishchaeva via cfe-commits
Fznamznon wrote: > on Windows we could use something like COM1 on Windows. How would that look like? https://github.com/llvm/llvm-project/pull/135370 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

  1   2   3   4   5   >