[clang] [llvm] [HLSL] Do not print details in IR for target extension types (PR #115971)

2024-12-09 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 edited https://github.com/llvm/llvm-project/pull/115971 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Do not print details in IR for target extension types (PR #115971)

2024-12-09 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/115971 >From 7413ceb21a6e0ac9212ef6317763ee0eff559612 Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Tue, 12 Nov 2024 16:44:00 -0800 Subject: [PATCH 01/12] print struct body within target ext ty context --- ...

[clang] [llvm] [HLSL] Implement `WaveActiveAllTrue` Intrinsic (PR #117245)

2024-12-09 Thread Finn Plummer via cfe-commits
@@ -0,0 +1,21 @@ +; RUN: llc -verify-machineinstrs -O0 -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s +; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val %} + +; CHECK-DAG: %[[#bool:]] = OpTypeBool +; CHECK-DAG: %[[#uint:]]

[clang] [llvm] [WebAssembly] Add `-i128:128` to the `datalayout` string. (PR #119204)

2024-12-09 Thread via cfe-commits
@@ -524,9 +524,7 @@ define i64 @utest_f64i64(double %x) { ; CHECK-NEXT:local.get 0 ; CHECK-NEXT:call __fixunsdfti ; CHECK-NEXT:local.get 1 -; CHECK-NEXT:i32.const 8 -; CHECK-NEXT:i32.add -; CHECK-NEXT:i64.load 0 +; CHECK-NEXT:i64.load 8 -

[clang] [llvm] [HLSL] Do not print details in IR for target extension types (PR #115971)

2024-12-09 Thread Justin Bogner via cfe-commits
https://github.com/bogner approved this pull request. https://github.com/llvm/llvm-project/pull/115971 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Bug/templated struct debug reference this (PR #119041)

2024-12-09 Thread via cfe-commits
https://github.com/joaosaffran edited https://github.com/llvm/llvm-project/pull/119041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Implement `Append` and `Consume` methods on `Append`/`ConsumeStructuredBuffer` (PR #118536)

2024-12-09 Thread Justin Bogner via cfe-commits
https://github.com/bogner approved this pull request. https://github.com/llvm/llvm-project/pull/118536 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][SPIRV][DXIL] Implement `WaveActiveSum` intrinsic (PR #118580)

2024-12-09 Thread Finn Plummer via cfe-commits
https://github.com/inbelic commented: We also decided to use a different naming convention (`reduce` instead of `active`) for the intrinsics since my pr, following [here](https://github.com/llvm/wg-hlsl/pull/99) https://github.com/llvm/llvm-project/pull/118580 ___

[clang] [llvm] [HLSL][SPIRV][DXIL] Implement `WaveActiveSum` intrinsic (PR #118580)

2024-12-09 Thread Finn Plummer via cfe-commits
https://github.com/inbelic edited https://github.com/llvm/llvm-project/pull/118580 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL][SPIRV][DXIL] Implement `WaveActiveSum` intrinsic (PR #118580)

2024-12-09 Thread Finn Plummer via cfe-commits
@@ -1843,6 +1843,23 @@ static bool CheckAnyScalarOrVector(Sema *S, CallExpr *TheCall, return false; } +static bool CheckNotBoolType(Sema *S, CallExpr *TheCall, unsigned ArgIndex) { inbelic wrote: Just forwarding this review comment here: https://github.co

[clang] [clang][docs] fix rendering of `$`-prefixed options (PR #119249)

2024-12-09 Thread Paul Osmialowski via cfe-commits
https://github.com/pawosm-arm approved this pull request. Gosh, sorry for the confusion it caused. LGTM. https://github.com/llvm/llvm-project/pull/119249 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[clang] [llvm] [DebugInfo] Place local ODR-uniqued types in decl DISubprograms (PR #119001)

2024-12-09 Thread David Blaikie via cfe-commits
dwblaikie wrote: No idea if this sufficiently overlaps with, or is orthogonal to the following, but: Currently we don't scope function-local types into the appropriate scope inside a function. It seems like associating types with their declaration may make this harder to address - how would w

[clang] Switch builtin strings to use string tables (PR #118734)

2024-12-09 Thread via cfe-commits
dyung wrote: > > I've pulled out the entire tools\clang\lib\Basic directory from a failing > > build, what would you like me to do with it? > > Can you put it in a zip somewhere? It would be interesting to check if > there's some major difference compared to using a different MSVC version. I'

[clang] [HLSL] Fix debug info generation for RWBuffer types (PR #119041)

2024-12-09 Thread via cfe-commits
https://github.com/joaosaffran edited https://github.com/llvm/llvm-project/pull/119041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [HLSL] Do not print details in IR for target extension types (PR #115971)

2024-12-09 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/115971 >From 7413ceb21a6e0ac9212ef6317763ee0eff559612 Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Tue, 12 Nov 2024 16:44:00 -0800 Subject: [PATCH 01/13] print struct body within target ext ty context --- ...

[clang] [HLSL] Fix debug info generation for RWBuffer types (PR #119041)

2024-12-09 Thread via cfe-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/119041 >From f6a7af10669d71251c2235bef5b2625d88fa1d90 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Fri, 6 Dec 2024 01:27:24 + Subject: [PATCH 1/5] Apply DXC fix and add tests --- clang/lib/CodeGen/CGDebu

[clang] [HLSL] Fix debug info generation for RWBuffer types (PR #119041)

2024-12-09 Thread via cfe-commits
https://github.com/joaosaffran ready_for_review https://github.com/llvm/llvm-project/pull/119041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Fix debug info generation for RWBuffer types (PR #119041)

2024-12-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-debuginfo @llvm/pr-subscribers-clang-codegen Author: None (joaosaffran) Changes This PR fix the debug infor generation for RWBuffer types. - This implements the [same fix as DXC](https://github.com/microsoft/DirectXShaderCompiler/pull/6296). - Adds the

[clang-tools-extra] [clangd] Consider expression statements in ExtractVariable tweak (PR #112525)

2024-12-09 Thread Christian Kandeler via cfe-commits
ckandeler wrote: > In the expression-statement case, the expression isn't moving to a new > location, and the variable name is only mentioned in > one place. In essence, the refactoring amounts to prepending `auto > placeholder = ` to the expression. Given that you're > going to be (very like

[clang] [clang] Fix non-deterministic infinite recursion... (PR #118288)

2024-12-09 Thread Erich Keane via cfe-commits
Alejandro =?utf-8?q?Álvarez_Ayllón?Message-ID: In-Reply-To: https://github.com/erichkeane approved this pull request. This seems like a reasonable solution for this, though I'd very much like to see the compile-time perf results for this before committing. @nikic , is this something we can d

[clang-tools-extra] [clang-tidy] Add C++ member function support to custom bugprone-unsafe-functions matches (PR #117165)

2024-12-09 Thread via cfe-commits
https://github.com/Discookie edited https://github.com/llvm/llvm-project/pull/117165 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add C++ member function support to custom bugprone-unsafe-functions matches (PR #117165)

2024-12-09 Thread via cfe-commits
@@ -43,7 +43,10 @@ class UnsafeFunctionsCheck : public ClangTidyCheck { private: const std::vector CustomFunctions; - // If true, the default set of functions are reported. + /// If true, the fully qualified name of custom functions will be shown in a + /// note tag. + c

[clang] [Clang] Fix wrong call location of `DefaultArgExpr`. (PR #119212)

2024-12-09 Thread via cfe-commits
https://github.com/16bit-ykiko updated https://github.com/llvm/llvm-project/pull/119212 >From 64dcfdfd0a87d6ca5bfcfe5f5a8e5204c24a26d2 Mon Sep 17 00:00:00 2001 From: ykiko Date: Mon, 9 Dec 2024 21:56:58 +0800 Subject: [PATCH 1/2] Fix call location of `DefaultArgExpr`. --- clang/lib/Sema/SemaE

[clang] [Clang] Fix wrong call location of `DefaultArgExpr`. (PR #119212)

2024-12-09 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/119212 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix wrong call location of `DefaultArgExpr`. (PR #119212)

2024-12-09 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM modulo nit https://github.com/llvm/llvm-project/pull/119212 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Implements FP8 SVE intrinsics for dot-product (PR #118125)

2024-12-09 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov edited https://github.com/llvm/llvm-project/pull/118125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d17e51f - [clang][bytecode] Handle __builtin_strncmp (#119208)

2024-12-09 Thread via cfe-commits
Author: Timm Baeder Date: 2024-12-09T16:17:39+01:00 New Revision: d17e51f306cb3522af7587bf1f3a2f4956ab3a19 URL: https://github.com/llvm/llvm-project/commit/d17e51f306cb3522af7587bf1f3a2f4956ab3a19 DIFF: https://github.com/llvm/llvm-project/commit/d17e51f306cb3522af7587bf1f3a2f4956ab3a19.diff L

[clang] [Clang] Fix wrong call location of `DefaultArgExpr`. (PR #119212)

2024-12-09 Thread via cfe-commits
https://github.com/16bit-ykiko updated https://github.com/llvm/llvm-project/pull/119212 >From 64dcfdfd0a87d6ca5bfcfe5f5a8e5204c24a26d2 Mon Sep 17 00:00:00 2001 From: ykiko Date: Mon, 9 Dec 2024 21:56:58 +0800 Subject: [PATCH 1/3] Fix call location of `DefaultArgExpr`. --- clang/lib/Sema/SemaE

[clang] [clang][bytecode] Handle __builtin_strncmp (PR #119208)

2024-12-09 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/119208 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add processor aliases back to -print-supported-cpus and -mcpu=help (PR #118581)

2024-12-09 Thread Jon Roelofs via cfe-commits
https://github.com/jroelofs updated https://github.com/llvm/llvm-project/pull/118581 >From 46775c380244e47ddd9a3188651f37c3a3b33d23 Mon Sep 17 00:00:00 2001 From: Jon Roelofs Date: Tue, 3 Dec 2024 18:04:49 -0800 Subject: [PATCH 1/6] Add processor aliases back to -print-supported-cpus and -mcpu

[clang] [clang-tools-extra] [Clang] Fix wrong call location of `DefaultArgExpr`. (PR #119212)

2024-12-09 Thread via cfe-commits
https://github.com/16bit-ykiko updated https://github.com/llvm/llvm-project/pull/119212 >From 64dcfdfd0a87d6ca5bfcfe5f5a8e5204c24a26d2 Mon Sep 17 00:00:00 2001 From: ykiko Date: Mon, 9 Dec 2024 21:56:58 +0800 Subject: [PATCH 1/4] Fix call location of `DefaultArgExpr`. --- clang/lib/Sema/SemaE

[clang] [clang][bytecode] Reject memcpy sizes with element size remainder (PR #119209)

2024-12-09 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/119209 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6168739 - [clang][bytecode] Reject memcpy sizes with element size remainder (#119209)

2024-12-09 Thread via cfe-commits
Author: Timm Baeder Date: 2024-12-09T16:57:49+01:00 New Revision: 6168739f00616f34354e0b34852398aeced98f53 URL: https://github.com/llvm/llvm-project/commit/6168739f00616f34354e0b34852398aeced98f53 DIFF: https://github.com/llvm/llvm-project/commit/6168739f00616f34354e0b34852398aeced98f53.diff L

[clang] [llvm] [Loads] Check context instruction for context-sensitive derefability (PR #109277)

2024-12-09 Thread Danila Malyutin via cfe-commits
danilaml wrote: @nikic also, another situation the current impl doesn't seem to account for is IR like ```llvm bb1: %p1 = load dereferenceable(N) ... bb2: %p2 = load dereferenceable(M) ... common: %p = phi ptr [%p1, %bb1], [%p2, %bb2] %res = load i32 %p ; <-- dereferenceable(min(N,M)) at

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2024-12-09 Thread Brandon Wu via cfe-commits
@@ -32,3 +36,39 @@ vint32m1_t test_no_vector_cc_attr(vint32m1_t input, int32_t *base, size_t vl) { __riscv_vse32_v_i32m1(base, val, vl); return ret; } + +// CHECK-LLVM: define dso_local void @test_vls_no_cc(i128 noundef %arg.coerce) +// CHECK-LLVM-ABI-VLEN: define dso_loca

[clang] b6c22a4 - Add processor aliases back to -print-supported-cpus and -mcpu=help (#118581)

2024-12-09 Thread via cfe-commits
Author: Jon Roelofs Date: 2024-12-09T09:18:31-08:00 New Revision: b6c22a4e58f9dd38644368dd5d5de237703a360d URL: https://github.com/llvm/llvm-project/commit/b6c22a4e58f9dd38644368dd5d5de237703a360d DIFF: https://github.com/llvm/llvm-project/commit/b6c22a4e58f9dd38644368dd5d5de237703a360d.diff L

[clang] [llvm] Reland - [Driver][SYCL] Add initial SYCL offload compilation support … (PR #117268)

2024-12-09 Thread Tom Honermann via cfe-commits
@@ -0,0 +1,179 @@ +//===--- SYCL.cpp - SYCL Tool and ToolChain Implementations -*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [llvm] Reland - [Driver][SYCL] Add initial SYCL offload compilation support … (PR #117268)

2024-12-09 Thread Tom Honermann via cfe-commits
@@ -6591,6 +6681,18 @@ const ToolChain &Driver::getOffloadingDeviceToolChain( HostTC, Args); break; } +case Action::OFK_SYCL: + switch (Target.getArch()) { + case llvm::Triple::spir: + case

[clang] [llvm] Reland - [Driver][SYCL] Add initial SYCL offload compilation support … (PR #117268)

2024-12-09 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann requested changes to this pull request. https://github.com/llvm/llvm-project/pull/117268 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [libcxxabi] [Fuchsia][cmake] Allow using FatLTO when building runtimes (PR #112277)

2024-12-09 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/112277 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] [libcxxabi] [Fuchsia][cmake] Allow using FatLTO when building runtimes (PR #112277)

2024-12-09 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/112277 >From 1dafa521d5a1e10e3f79f63a661b2e14acff5a4a Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Mon, 14 Oct 2024 15:06:38 -0700 Subject: [PATCH 1/5] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UTF-

[clang] [llvm] Add processor aliases back to -print-supported-cpus and -mcpu=help (PR #118581)

2024-12-09 Thread Jon Roelofs via cfe-commits
https://github.com/jroelofs closed https://github.com/llvm/llvm-project/pull/118581 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [PowerPC] Update data layout aligment of i128 to 16 (PR #118004)

2024-12-09 Thread via cfe-commits
@@ -473,7 +473,7 @@ class LLVM_LIBRARY_VISIBILITY PS3PPUTargetInfo : public OSTargetInfo { this->IntMaxType = TargetInfo::SignedLongLong; this->Int64Type = TargetInfo::SignedLongLong; this->SizeType = TargetInfo::UnsignedInt; -this->resetDataLayout("E-m:e-p:32:

[clang] [Clang] Enable -fpointer-tbaa by default. (PR #117244)

2024-12-09 Thread via cfe-commits
bgra8 wrote: No reproducer yet. The dependency to `x264` from the tests is several levels deep ... https://github.com/llvm/llvm-project/pull/117244 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] [clang][Driver] Support simplified triple versions for config files (PR #111387)

2024-12-09 Thread Steven Wu via cfe-commits
@@ -226,3 +226,26 @@ // // RUN: HOME=%S/Inputs/config %clang -### --config-user-dir=~ -v 2>&1 | FileCheck %s --check-prefix=CHECK-TILDE // CHECK-TILDE: User configuration file directory: {{.*}}/Inputs/config + +//--- Fallback to stripping OS versions +// +// RUN: touch %t/test

[clang] [Clang] Enable -fpointer-tbaa by default. (PR #117244)

2024-12-09 Thread Florian Hahn via cfe-commits
fhahn wrote: > @fhahn we have identified a bunch of tests at google that fail somewhere in > the open source library https://code.videolan.org/videolan/x264. The `x264` > is built with `-fstrict-aliasing`. All tests pass when removing > `-fstrict-aliasing` or disabling Pointer-TBAA (`-fno-poin

[clang] [Clang] Fix wrong call location of `DefaultArgExpr`. (PR #119212)

2024-12-09 Thread via cfe-commits
https://github.com/16bit-ykiko updated https://github.com/llvm/llvm-project/pull/119212 >From 64dcfdfd0a87d6ca5bfcfe5f5a8e5204c24a26d2 Mon Sep 17 00:00:00 2001 From: ykiko Date: Mon, 9 Dec 2024 21:56:58 +0800 Subject: [PATCH 1/3] Fix call location of `DefaultArgExpr`. --- clang/lib/Sema/SemaE

[clang] [Clang] Fix wrong call location of `DefaultArgExpr`. (PR #119212)

2024-12-09 Thread via cfe-commits
@@ -1012,3 +1012,21 @@ int h = Var; } + +namespace GH119129 { +struct X{ + constexpr int foo(std::source_location loc = std::source_location::current()) { +return loc.line(); + } +}; +static_assert(X{}.foo() == __LINE__); +static_assert(X{}. +foo() ==__

[clang] [llvm] [AArch64] Implements FP8 SVE intrinsics for dot-product (PR #118125)

2024-12-09 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov updated https://github.com/llvm/llvm-project/pull/118125 >From cdd86588c639f818909964ab49b9972da6869cb3 Mon Sep 17 00:00:00 2001 From: Momchil Velikov Date: Thu, 21 Nov 2024 11:21:29 + Subject: [PATCH 1/3] [AArch64] Implement FP8 SVE intrinsics for widenin

[clang] [llvm] [AArch64] Implement FP8 SVE intrinsics for widening conversions (PR #118123)

2024-12-09 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov updated https://github.com/llvm/llvm-project/pull/118123 >From cdd86588c639f818909964ab49b9972da6869cb3 Mon Sep 17 00:00:00 2001 From: Momchil Velikov Date: Thu, 21 Nov 2024 11:21:29 + Subject: [PATCH] [AArch64] Implement FP8 SVE intrinsics for widening c

[clang] [llvm] [AArch64] Implement FP8 SVE Intrinsics for narrowing conversions (PR #118124)

2024-12-09 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov updated https://github.com/llvm/llvm-project/pull/118124 >From cdd86588c639f818909964ab49b9972da6869cb3 Mon Sep 17 00:00:00 2001 From: Momchil Velikov Date: Thu, 21 Nov 2024 11:21:29 + Subject: [PATCH 1/2] [AArch64] Implement FP8 SVE intrinsics for widenin

[clang] [clang-format] extend clang-format directive with options to prevent formatting for one line (PR #118566)

2024-12-09 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/118566 >From 75da343b0bd6e3b0f3219b349f6be4c882947820 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Wed, 4 Dec 2024 02:24:12 +0200 Subject: [PATCH 1/4] [clang-format] extend clang-format directive with options t

[clang] [clang] Fix non-deterministic infinite recursion... (PR #118288)

2024-12-09 Thread Nikita Popov via cfe-commits
Alejandro =?utf-8?q?Álvarez_Ayllón?Message-ID: In-Reply-To: nikic wrote: @erichkeane I'm not seeing any significant compile-time impact: https://llvm-compile-time-tracker.com/compare.php?from=e0ea9fd6dc36f585e364d4e569095ebe063e2573&to=7fb8c423fddd1a81287b54f48da4de1c81566fc1&stat=instructions

[clang] [llvm] [AArch64] Implements FP8 SVE intrinsics for dot-product (PR #118125)

2024-12-09 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov updated https://github.com/llvm/llvm-project/pull/118125 >From cdd86588c639f818909964ab49b9972da6869cb3 Mon Sep 17 00:00:00 2001 From: Momchil Velikov Date: Thu, 21 Nov 2024 11:21:29 + Subject: [PATCH 1/4] [AArch64] Implement FP8 SVE intrinsics for widenin

[clang] [llvm] [AArch64] Implements FP8 SVE intrinsics for dot-product (PR #118125)

2024-12-09 Thread Momchil Velikov via cfe-commits
@@ -105,6 +105,7 @@ include "arm_immcheck_incl.td" // N: svfloat64_t // $: svbfloat16_t // ~: svmfloat8_t +// !: mfloat8_t (splat to svmfloat8_t) momchil-velikov wrote: Done https://github.com/llvm/llvm-project/pull/118125

[clang] [llvm] [AArch64] Implements FP8 SVE intrinsics for dot-product (PR #118125)

2024-12-09 Thread Momchil Velikov via cfe-commits
@@ -10877,24 +10923,37 @@ class sve_fp8_dot_indexed opc, ZPRRegOp dst_ty, Operand iop_ty, string m let DestructiveInstType = DestructiveOther; let hasSideEffects = 0; let mayRaiseFPException = 1; + + let mayLoad = 1; + let mayStore = 0; } // FP8 Widening Dot-Produ

[clang] [llvm] [AArch64] Implements FP8 SVE intrinsics for dot-product (PR #118125)

2024-12-09 Thread Momchil Velikov via cfe-commits
@@ -2447,3 +2447,39 @@ let SVETargetGuard = "sve2,faminmax", SMETargetGuard = "sme2,faminmax" in { defm SVAMIN : SInstZPZZ<"svamin", "hfd", "aarch64_sve_famin", "aarch64_sve_famin_u">; defm SVAMAX : SInstZPZZ<"svamax", "hfd", "aarch64_sve_famax", "aarch64_sve_famax_u">;

[clang] 1094641 - [Clang] allow usage of placement new operator in [[msvc::constexpr]] context outside of the std namespace (#119153)

2024-12-09 Thread via cfe-commits
Author: Oleksandr T. Date: 2024-12-09T18:47:38+02:00 New Revision: 1094641bc029b7ca6ac9f18c5ff5b028037e1a6f URL: https://github.com/llvm/llvm-project/commit/1094641bc029b7ca6ac9f18c5ff5b028037e1a6f DIFF: https://github.com/llvm/llvm-project/commit/1094641bc029b7ca6ac9f18c5ff5b028037e1a6f.diff

[clang] [Clang] allow usage of placement new operator in [[msvc::constexpr]] context outside of the std namespace (PR #119153)

2024-12-09 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk closed https://github.com/llvm/llvm-project/pull/119153 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64][FMV] Add missing feature dependencies and detect at runtime. (PR #119231)

2024-12-09 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea created https://github.com/llvm/llvm-project/pull/119231 i8mm -> simd fp16fml -> simd frintts -> fp bf16 -> simd sme -> fp16 Approved in ACLE as https://github.com/ARM-software/acle/pull/368 >From f6f2fd6aac09a0f2c14545e1fbda9aec7eb2ed46 Mon Sep 17 00:00:00 2001 Fro

[clang] [llvm] [AArch64][FMV] Add missing feature dependencies and detect at runtime. (PR #119231)

2024-12-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-aarch64 Author: Alexandros Lamprineas (labrinea) Changes i8mm -> simd fp16fml -> simd frintts -> fp bf16 -> simd sme -> fp16 Approved in ACLE as https://github.com/ARM-software/acle/pull/368 --- Patch is 63.25 KiB, t

[clang] [llvm] [AArch64][FMV] Add missing feature dependencies and detect at runtime. (PR #119231)

2024-12-09 Thread Alexandros Lamprineas via cfe-commits
labrinea wrote: @sdesmalen-arm the dependencies were agreed internally with @paulwalker-arm. Let us know if you have any reservations. https://github.com/llvm/llvm-project/pull/119231 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lis

[clang] [nfc][clang-offload-bundler] Don't leak on exit(1) (PR #119178)

2024-12-09 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/119178 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d5fe633 - [nfc][clang-offload-bundler] Don't leak on exit(1) (#119178)

2024-12-09 Thread via cfe-commits
Author: Vitaly Buka Date: 2024-12-09T08:53:55-08:00 New Revision: d5fe6332c9f25590b9878ad31d6461ea581e0fa5 URL: https://github.com/llvm/llvm-project/commit/d5fe6332c9f25590b9878ad31d6461ea581e0fa5 DIFF: https://github.com/llvm/llvm-project/commit/d5fe6332c9f25590b9878ad31d6461ea581e0fa5.diff L

[clang] [Clang] Enable -fpointer-tbaa by default. (PR #117244)

2024-12-09 Thread via cfe-commits
bgra8 wrote: @fhahn we have identified a bunch of tests at google that fail somewhere in the open source library https://code.videolan.org/videolan/x264. The `x264` is built with `-fstrict-aliasing`. All tests pass when removing `-fstrict-aliasing` or disabling Pointer-TBAA (`-fno-pointer-tbaa

[clang] [llvm] [ConstantFolding] Infer getelementptr nuw flag (PR #119214)

2024-12-09 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/119214 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix wrong call location of `DefaultArgExpr`. (PR #119212)

2024-12-09 Thread via cfe-commits
@@ -1012,3 +1012,21 @@ int h = Var; } + +namespace GH119129 { +struct X{ + constexpr int foo(std::source_location loc = std::source_location::current()) { +return loc.line(); + } +}; +static_assert(X{}.foo() == __LINE__); +static_assert(X{}. +foo() ==__

[clang] Switch builtin strings to use string tables (PR #118734)

2024-12-09 Thread via cfe-commits
dyung wrote: > > Not sure what to do debug this... @zmodem maybe has some idea? > > Sorry, I don't have a lot to add. Things look good on my end so far (local > builds and https://lab.llvm.org/buildbot/#/builders/63 + > https://lab.llvm.org/buildbot/#/builders/107). > > Besides the particular

[clang] [clang] Fix non-deterministic infinite recursion... (PR #118288)

2024-12-09 Thread Erich Keane via cfe-commits
Alejandro =?utf-8?q?Álvarez_Ayllón?Message-ID: In-Reply-To: erichkeane wrote: > @erichkeane I'm not seeing any significant compile-time impact: > https://llvm-compile-time-tracker.com/compare.php?from=e0ea9fd6dc36f585e364d4e569095ebe063e2573&to=7fb8c423fddd1a81287b54f48da4de1c81566fc1&stat=ins

[clang] [clang] Document the return value of __builtin_COLUMN (PR #118360)

2024-12-09 Thread via cfe-commits
GeorgeKA wrote: Any thoughts about this @frederick-vs-ja ? > @frederick-vs-ja, were you looking for specific wording for > source_location()::current().column(), or does this cover it? https://github.com/llvm/llvm-project/pull/118360 ___ cfe-commit

[clang] [llvm] [ConstantFolding] Infer getelementptr nuw flag (PR #119214)

2024-12-09 Thread Nikita Popov via cfe-commits
https://github.com/nikic closed https://github.com/llvm/llvm-project/pull/119214 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64] Implement FP8 SVE intrinsics for fused multiply-add (PR #118126)

2024-12-09 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov edited https://github.com/llvm/llvm-project/pull/118126 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [InstCombine] Infer nuw for gep inbounds from base of object (PR #119225)

2024-12-09 Thread Nikita Popov via cfe-commits
https://github.com/nikic created https://github.com/llvm/llvm-project/pull/119225 When we have a gep inbounds from the base of an object (e.g. alloca or global), we know that the index cannot be negative, as this would go out of bounds. As such, we can infer nuw as well. The implementation is

[clang] [clang] Fix a dangling reference in clang/utils/TableGen/ClangDiagnosticsEmitter.cpp (PR #119197)

2024-12-09 Thread Haojian Wu via cfe-commits
@@ -1908,7 +1908,7 @@ void clang::EmitClangDiagDocs(const RecordKeeper &Records, raw_ostream &OS) { for (const Record *G : DiagGroups) { bool IsRemarkGroup = isRemarkGroup(G, DiagsInGroup); auto &GroupInfo = -DiagsInGroup[std::string(G->getValueAsString("Grou

[clang] [llvm] [InstCombine] Infer nuw for gep inbounds from base of object (PR #119225)

2024-12-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Nikita Popov (nikic) Changes When we have a gep inbounds from the base of an object (e.g. alloca or global), we know that the index cannot be negative, as this would go out of bounds. As such, we can infer nuw as well. The imple

[clang] [llvm] [InstCombine] Infer nuw for gep inbounds from base of object (PR #119225)

2024-12-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: Nikita Popov (nikic) Changes When we have a gep inbounds from the base of an object (e.g. alloca or global), we know that the index cannot be negative, as this would go out of bounds. As such, we can infer nuw as well. The impl

[clang] [clang] Fix a dangling reference in clang/utils/TableGen/ClangDiagnosticsEmitter.cpp (PR #119197)

2024-12-09 Thread Rahul Joshi via cfe-commits
@@ -1908,7 +1908,7 @@ void clang::EmitClangDiagDocs(const RecordKeeper &Records, raw_ostream &OS) { for (const Record *G : DiagGroups) { bool IsRemarkGroup = isRemarkGroup(G, DiagsInGroup); auto &GroupInfo = -DiagsInGroup[std::string(G->getValueAsString("Grou

[clang] [docs] Add a more detailed description in CXString.h. (PR #119090)

2024-12-09 Thread via cfe-commits
@@ -46,6 +46,9 @@ typedef struct { /** * Retrieve the character data associated with the given string. + * + * The caller shouldn't free the returned string data, and the returned string + * data shouldn't be accessed after the \c CXString disposed. iseki0 wr

[clang] [Clang] [Draft] Implement P0588R1 capture rules (PR #105953)

2024-12-09 Thread via cfe-commits
cor3ntin wrote: @EricWF can you give that a look and see if it would help with your current work? https://github.com/llvm/llvm-project/pull/105953 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang-tools-extra] [clang-tidy] Create a check for signed and unsigned integers comparison (PR #113144)

2024-12-09 Thread via cfe-commits
@@ -0,0 +1,47 @@ +//===--- UseIntegerSignComparisonCheck.h - clang-tidy ---*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [llvm] [RISCV] Add stack clash protection (PR #117612)

2024-12-09 Thread Sam Elliott via cfe-commits
https://github.com/lenary approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/117612 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 73adf26 - [clangd] Handle DeducedTemplateSpecializationType in HeuristicResolver (#119107)

2024-12-09 Thread via cfe-commits
Author: Nathan Ridge Date: 2024-12-09T12:59:01-05:00 New Revision: 73adf26d504ba945251b87d78267e2bbfd34928f URL: https://github.com/llvm/llvm-project/commit/73adf26d504ba945251b87d78267e2bbfd34928f DIFF: https://github.com/llvm/llvm-project/commit/73adf26d504ba945251b87d78267e2bbfd34928f.diff

[clang] [clang-cl][flang][dxc] Fix opts exposed to clang-cl/dxc by mistake (PR #118640)

2024-12-09 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,53 @@ +// RUN: %clang_cl \ +// RUN: --config \ +// RUN: -fdiagnostics-color=auto \ +// RUN: -fno-record-command-line \ +// RUN: -frecord-command-line \ +// RUN: -nodefaultlibs \ +// RUN: -nostdlib

[clang-tools-extra] [clangd] Handle DeducedTemplateSpecializationType in HeuristicResolver (PR #119107)

2024-12-09 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/119107 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Switch builtin strings to use string tables (PR #118734)

2024-12-09 Thread via cfe-commits
zmodem wrote: > I've pulled out the entire tools\clang\lib\Basic directory from a failing > build, what would you like me to do with it? Can you put it in a zip somewhere? It would be interesting to check if there's some major difference compared to using a different MSVC version. https://git

[clang] [X86][AVX10.2] Add comments for the avx10_2copyintrin file (PR #119238)

2024-12-09 Thread Mikołaj Piróg via cfe-commits
https://github.com/mikolaj-pirog created https://github.com/llvm/llvm-project/pull/119238 As in title From 14ac4e104dd3adeb3c1d59d7c5ce3b0006391ffb Mon Sep 17 00:00:00 2001 From: "Pirog, Mikolaj Maciej" Date: Mon, 9 Dec 2024 18:59:38 +0100 Subject: [PATCH] Add comments --- clang/lib/Headers/

[clang] [APINotes] Add SWIFT_RETURNS_(UN)RETAINED support (PR #118938)

2024-12-09 Thread via cfe-commits
https://github.com/fahadnayyar updated https://github.com/llvm/llvm-project/pull/118938 >From 781bb2a49fed8fa38059cfd23563b02c82f83eb0 Mon Sep 17 00:00:00 2001 From: Fahad Nayyar Date: Thu, 5 Dec 2024 18:25:49 -0800 Subject: [PATCH] [APINotes] Add SWIFT_RETURNS_(UN)RETAINED support to APINotes

[clang] [X86][AVX10.2] Add comments for the avx10_2copyintrin.h file (PR #119238)

2024-12-09 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2024-12-09 Thread Brandon Wu via cfe-commits
4vtomat wrote: > Is there discussion somewhere of why you need a command-line flag? > ABI-modifying flags tend to be dangerous to work with. It's hard to ensure > that all code is compiled with the same flags, and if the user messes up, the > compiler silently generates broken code. Yeah, it'

[clang] [X86][AVX10.2] Add comments for the avx10_2copyintrin.h file (PR #119238)

2024-12-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Mikołaj Piróg (mikolaj-pirog) Changes As in title --- Full diff: https://github.com/llvm/llvm-project/pull/119238.diff 1 Files Affected: - (modified) clang/lib/Headers/avx10_2copyintrin.h (+34) ``diff diff --git a/clang

[clang] FunctionDecl::getFunctionTypeLoc: ignore function type attributes (PR #118420)

2024-12-09 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/118420 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2024-12-09 Thread Brandon Wu via cfe-commits
@@ -8031,6 +8034,28 @@ static bool handleFunctionTypeAttr(TypeProcessingState &state, ParsedAttr &attr, CallingConv CCOld = fn->getCallConv(); Attr *CCAttr = getCCTypeAttr(S.Context, attr); + if (attr.getKind() == ParsedAttr::AT_RISCVVLSCC) { +// If the riscv_abi_vle

[clang] 57545db - [Fuchsia][cmake] Allow using FatLTO when building runtimes (#112277)

2024-12-09 Thread via cfe-commits
Author: Paul Kirth Date: 2024-12-09T09:26:17-08:00 New Revision: 57545dbbdbafc51d63873800a45cfd48a283d981 URL: https://github.com/llvm/llvm-project/commit/57545dbbdbafc51d63873800a45cfd48a283d981 DIFF: https://github.com/llvm/llvm-project/commit/57545dbbdbafc51d63873800a45cfd48a283d981.diff LO

[clang] [llvm] [RISCV][VLS] Support RISCV VLS calling convention (PR #100346)

2024-12-09 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat updated https://github.com/llvm/llvm-project/pull/100346 >From 1c8201daa6925cac510ff8751ffd79a6b95f2315 Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Sun, 21 Jul 2024 09:49:11 -0700 Subject: [PATCH 1/4] [RISCV][VLS] Support RISCV VLS calling convention This patch a

[clang] [clang-tools-extra] [lld] [lldb] [llvm] Rework the `Option` library to reduce dynamic relocations (PR #119198)

2024-12-09 Thread Reid Kleckner via cfe-commits
@@ -53,10 +53,8 @@ class OptTable { public: /// Entry for a single option instance in the option data table. struct Info { -/// A null terminated array of prefix strings to apply to name while -/// matching. -ArrayRef Prefixes; -StringLiteral PrefixedName; +

[clang] [clang-tools-extra] [lld] [lldb] [llvm] Rework the `Option` library to reduce dynamic relocations (PR #119198)

2024-12-09 Thread Reid Kleckner via cfe-commits
@@ -80,15 +78,56 @@ class OptTable { const char *AliasArgs; const char *Values; -StringRef getName() const { - unsigned PrefixLength = Prefixes.empty() ? 0 : Prefixes[0].size(); - return PrefixedName.drop_front(PrefixLength); +bool hasNoPrefix() const

[clang] [clang-tools-extra] [lld] [lldb] [llvm] Rework the `Option` library to reduce dynamic relocations (PR #119198)

2024-12-09 Thread Reid Kleckner via cfe-commits
@@ -845,13 +845,14 @@ MemoryBufferRef LinkerDriver::convertResToCOFF(ArrayRef mbs, // Create OptTable +#define OPTTABLE_STR_TABLE_CODE rnk wrote: Is it feasible to split out all the tool driver updates, like refactor all these PREFIX definitions into the t

[clang] [clang-tools-extra] [lld] [lldb] [llvm] Rework the `Option` library to reduce dynamic relocations (PR #119198)

2024-12-09 Thread Reid Kleckner via cfe-commits
@@ -53,10 +53,8 @@ class OptTable { public: /// Entry for a single option instance in the option data table. struct Info { -/// A null terminated array of prefix strings to apply to name while -/// matching. -ArrayRef Prefixes; -StringLiteral PrefixedName; +

[clang] [llvm] [SystemZ][z/OS] Update autoconversion functions to improve support for UTF-8 (PR #98652)

2024-12-09 Thread Abhina Sree via cfe-commits
@@ -70,6 +70,13 @@ class FileEntryRef { const FileEntry &getFileEntry() const { return *getBaseMapEntry().second->V.get(); } + + // This is a non const version of getFileEntry() which is used if the buffer + // size needs to be increased due to potential z/OS EBCDIC -

[clang] [llvm] [HLSL] Do not print details in IR for target extension types (PR #115971)

2024-12-09 Thread Helena Kotas via cfe-commits
hekota wrote: LGTM! https://github.com/llvm/llvm-project/pull/115971 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5   >