[clang-tools-extra] [clang-tidy] Fix broken HeaderFilterRegex when read from config file (PR #133582)

2025-04-03 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: @tstellar Any chance we can cherry-pick this to the 20.x branch? https://github.com/llvm/llvm-project/pull/133582 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 041e842 - [Clang][AMDGPU] Expose buffer load lds as a clang builtin (#132048)

2025-04-03 Thread via cfe-commits
Author: Juan Manuel Martinez Caamaño Date: 2025-04-03T09:22:38+02:00 New Revision: 041e84261a502a28401813bf55aa778ee0bbcdeb URL: https://github.com/llvm/llvm-project/commit/041e84261a502a28401813bf55aa778ee0bbcdeb DIFF: https://github.com/llvm/llvm-project/commit/041e84261a502a28401813bf55aa778

[clang] [flang] [llvm] [Clang][AMDGPU] Expose buffer load lds as a clang builtin (PR #132048)

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

[clang] [llvm] [ARM][Clang] Make `+nosimd` functional for AArch32 Targets (PR #130623)

2025-04-03 Thread David Green via cfe-commits
@@ -0,0 +1,31 @@ +// Ensures that when targeting an ARM target with an Asm file, clang +// collects the features from the FPU. This is critical in the +// activation of NEON for supported targets. The Cortex-R52 will be +// used and tested for VFP and NEON Support + +// RUN: %clan

[clang-tools-extra] [clang-tidy] Add check bugprone-misleading-setter-of-reference (PR #132242)

2025-04-03 Thread Balázs Kéri via cfe-commits
https://github.com/balazske updated https://github.com/llvm/llvm-project/pull/132242 From e3064b600ea726ab7b3dea054e9f11e1ce028297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?= Date: Wed, 19 Mar 2025 16:09:04 +0100 Subject: [PATCH 1/2] [clang-tidy] Add check bugprone-misle

[libclc] [libclc] Move fmin & fmax to CLC library (PR #134218)

2025-04-03 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck created https://github.com/llvm/llvm-project/pull/134218 This is an alternative to #128506 which doesn't attempt to change the codegen for fmin and fmax on their way to the CLC library. The amdgcn and r600 custom definitions of fmin/fmax are now converted to cust

[clang] [CodeGen] Use pimpl idiom for CVTables (NFC) (PR #134217)

2025-04-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Nikita Popov (nikic) Changes Avoid pulling in the CVTables.h header in CodeGenModules.h by putting the member behind a unique_ptr. This had less impact than I was hoping, with only a 0.15% reduction in build time for clang. Apparen

[clang] [CodeGen] Use pimpl idiom for CVTables (NFC) (PR #134217)

2025-04-03 Thread Nikita Popov via cfe-commits
https://github.com/nikic created https://github.com/llvm/llvm-project/pull/134217 Avoid pulling in the CVTables.h header in CodeGenModules.h by putting the member behind a unique_ptr. This had less impact than I was hoping, with only a 0.15% reduction in build time for clang. Apparently the e

[clang] [CodeGen] Use pimpl idiom for CVTables (NFC) (PR #134217)

2025-04-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nikita Popov (nikic) Changes Avoid pulling in the CVTables.h header in CodeGenModules.h by putting the member behind a unique_ptr. This had less impact than I was hoping, with only a 0.15% reduction in build time for clang. Apparently th

[clang] [CIR] Upstream support for break and continue statements (PR #134181)

2025-04-03 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko commented: LGTM https://github.com/llvm/llvm-project/pull/134181 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for break and continue statements (PR #134181)

2025-04-03 Thread Henrich Lauko via cfe-commits
@@ -569,6 +569,35 @@ def YieldOp : CIR_Op<"yield", [ReturnLike, Terminator, ]; } +//===--===// +// BreakOp +//===--===// + +def BreakOp : C

[clang] [Clang][ARM]Ensure both -mno-unaligned-access and -munaligned-access are passed to multilib selection logic (PR #134099)

2025-04-03 Thread Victor Campos via cfe-commits
https://github.com/vhscampos approved this pull request. LGTM. Please wait for @smithp35 's approval too. https://github.com/llvm/llvm-project/pull/134099 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

[libclc] [libclc]: clspv: add a dummy implememtation for mul_hi (PR #134094)

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

[clang] [modules] Handle friend function that was a definition but became only a declaration during AST deserialization (PR #132214)

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

[clang] [Clang][ARM]Ensure both -mno-unaligned-access and -munaligned-access are passed to multilib selection logic (PR #134099)

2025-04-03 Thread Simi Pallipurath via cfe-commits
https://github.com/simpal01 updated https://github.com/llvm/llvm-project/pull/134099 >From 7f6302053575732f633c69bbf55f2624da1e8bf4 Mon Sep 17 00:00:00 2001 From: Simi Pallipurath Date: Wed, 2 Apr 2025 12:35:16 +0100 Subject: [PATCH 1/3] Refine multilib selection to handle alignment based on a

[clang] [clang-format] Fix a bug in annotating braces (PR #134039)

2025-04-03 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/134039 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix dependent local class instantiation bugs (PR #134038)

2025-04-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Younan Zhang (zyn0217) Changes This patch fixes two long-standing bugs that prevent Clang from instantiating local class members inside a dependent context. These bugs were introduced in commits 21eb1af469c3 and 919df9d75a. 21eb1af469c3

[clang] [Clang][ARM]Ensure both -mno-unaligned-access and -munaligned-access are passed to multilib selection logic (PR #134099)

2025-04-03 Thread Simi Pallipurath via cfe-commits
@@ -239,12 +239,12 @@ static void getAArch64MultilibFlags(const Driver &D, Result.push_back(BranchProtectionArg->getAsString(Args)); } - if (Arg *AlignArg = Args.getLastArg( - options::OPT_mstrict_align, options::OPT_mno_strict_align, - options::OPT_mn

[clang] [Clang] Fix dependent local class instantiation bugs (PR #134038)

2025-04-03 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 ready_for_review https://github.com/llvm/llvm-project/pull/134038 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SYCL] Add AOT compilation support for Intel GPUs in clang-sycl-linker (PR #133194)

2025-04-03 Thread Justin Cai via cfe-commits
@@ -0,0 +1,131 @@ +//===--- SYCL.h -*- 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-tools-extra] [clang-tidy] Fix broken HeaderFilterRegex when read from config file (PR #133582)

2025-04-03 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp milestoned https://github.com/llvm/llvm-project/pull/133582 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix broken HeaderFilterRegex when read from config file (PR #133582)

2025-04-03 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: /cherry-pick 6333fa5160fbde4bd2cf6afe8856695c13ab621f https://github.com/llvm/llvm-project/pull/133582 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e1aaee7 - [modules] Handle friend function that was a definition but became only a declaration during AST deserialization (#132214)

2025-04-03 Thread via cfe-commits
Author: Dmitry Polukhin Date: 2025-04-03T08:27:13+01:00 New Revision: e1aaee7ea218f1d89646fa1f43bb4c94c27808b5 URL: https://github.com/llvm/llvm-project/commit/e1aaee7ea218f1d89646fa1f43bb4c94c27808b5 DIFF: https://github.com/llvm/llvm-project/commit/e1aaee7ea218f1d89646fa1f43bb4c94c27808b5.dif

[clang] [Clang][SYCL] Add AOT compilation support for Intel GPUs in clang-sycl-linker (PR #133194)

2025-04-03 Thread Justin Cai via cfe-commits
@@ -0,0 +1,131 @@ +//===--- SYCL.h -*- 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] [clang] Add `__bf16` Type Support Macros With Literal Suffix Support (PR #134214)

2025-04-03 Thread Muhammad Bassiouni via cfe-commits
https://github.com/bassiounix created https://github.com/llvm/llvm-project/pull/134214 closes #133660. I added the suffix support to this pr as the generated macros uses the `BF16` suffix. The only line I found in GCC which we don't seem to support as a macro is ```c #define __BFLT16_IS_IEC_

[clang-tools-extra] [clang-tidy] Fix broken HeaderFilterRegex when read from config file (PR #133582)

2025-04-03 Thread via cfe-commits
llvmbot wrote: /pull-request llvm/llvm-project#134215 https://github.com/llvm/llvm-project/pull/133582 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenCL] Add cl_ext_image_unsigned_10x6_12x4_14x2 extension (PR #134216)

2025-04-03 Thread Sven van Haastregt via cfe-commits
svenvh wrote: Extension specification: https://github.com/KhronosGroup/OpenCL-Docs/pull/1352 https://github.com/llvm/llvm-project/pull/134216 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [OpenCL] Add cl_ext_image_unsigned_10x6_12x4_14x2 extension (PR #134216)

2025-04-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Sven van Haastregt (svenvh) Changes Add the defines for the `cl_ext_image_unsigned_10x6_12x4_14x2` extension. --- Full diff: https://github.com/llvm/llvm-project/pull/134216.diff 2 Files Affected: - (modified) clang/lib/Headers/op

[clang] [Clang] Fix dependent local class instantiation bugs (PR #134038)

2025-04-03 Thread Younan Zhang via cfe-commits
zyn0217 wrote: I talked to @erichkeane and updated the approach to make it feel less like a workaround and independent of lambda instantiation. As noted, both cases worked prior to clang 15, which means they didn’t rely on deferred lambda body instantiation to compile correctly. Regarding the

[clang-tools-extra] 6333fa5 - [clang-tidy] Fix broken HeaderFilterRegex when read from config file (#133582)

2025-04-03 Thread via cfe-commits
Author: Carlos Galvez Date: 2025-04-03T09:28:34+02:00 New Revision: 6333fa5160fbde4bd2cf6afe8856695c13ab621f URL: https://github.com/llvm/llvm-project/commit/6333fa5160fbde4bd2cf6afe8856695c13ab621f DIFF: https://github.com/llvm/llvm-project/commit/6333fa5160fbde4bd2cf6afe8856695c13ab621f.diff

[clang] [modules] Handle friend function that was a definition but became only a declaration during AST deserialization (PR #132214)

2025-04-03 Thread Dmitry Polukhin via cfe-commits
https://github.com/dmpolukhin closed https://github.com/llvm/llvm-project/pull/132214 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add `__bf16` Type Support Macros With Literal Suffix Support (PR #134214)

2025-04-03 Thread Muhammad Bassiouni via cfe-commits
https://github.com/bassiounix updated https://github.com/llvm/llvm-project/pull/134214 >From 620bdbed2b372b97b66147684d4ded5b666c7786 Mon Sep 17 00:00:00 2001 From: bassiounix Date: Thu, 3 Apr 2025 10:08:59 +0200 Subject: [PATCH 1/3] add `bf16`/`BF16` suffix support --- clang/include/clang/Le

[clang] [clang] Add `__bf16` Type Support Macros With Literal Suffix Support (PR #134214)

2025-04-03 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/include/clang/Lex/LiteralSupport.h clang/lib

[clang-tools-extra] [clang-tidy] Add check bugprone-misleading-setter-of-reference (PR #132242)

2025-04-03 Thread Balázs Kéri via cfe-commits
https://github.com/balazske updated https://github.com/llvm/llvm-project/pull/132242 From e3064b600ea726ab7b3dea054e9f11e1ce028297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20K=C3=A9ri?= Date: Wed, 19 Mar 2025 16:09:04 +0100 Subject: [PATCH 1/3] [clang-tidy] Add check bugprone-misle

[clang] e3c0565 - Reapply "[cmake] Refactor clang unittest cmake" (#134195)

2025-04-03 Thread via cfe-commits
Author: Reid Kleckner Date: 2025-04-02T21:07:30-07:00 New Revision: e3c0565b74b1f5122ab4dbabc3e941924e116330 URL: https://github.com/llvm/llvm-project/commit/e3c0565b74b1f5122ab4dbabc3e941924e116330 DIFF: https://github.com/llvm/llvm-project/commit/e3c0565b74b1f5122ab4dbabc3e941924e116330.diff

[clang] [Clang][CodeGen] Do not use the GEP result to infer offset and result type (PR #134221)

2025-04-03 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw created https://github.com/llvm/llvm-project/pull/134221 If `CreateConstInBoundsGEP2_32` returns a constant null/gep, the cast to GetElementPtrInst will fail. This patch uses two static helpers `GEPOperator::accumulateConstantOffset/GetElementPtrInst::getIndexedType`

[clang] [clang][AST] Fix end location of DeclarationNameInfo on instantiated methods (PR #92654)

2025-04-03 Thread Younan Zhang via cfe-commits
zyn0217 wrote: @Abramo-Bagnara @steakhal I noticed the same issue and I have posted the fix in #134038 https://github.com/llvm/llvm-project/pull/92654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [Clang][CodeGen] Do not use the GEP result to infer offset and result type (PR #134221)

2025-04-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: Yingwei Zheng (dtcxzyw) Changes If `CreateConstInBoundsGEP2_32` returns a constant null/gep, the cast to GetElementPtrInst will fail. This patch uses two static helpers `GEPOperator::accumulateConstantOf

[libclc] [libclc]: clspv: add a dummy implememtation for mul_hi (PR #134094)

2025-04-03 Thread Romaric Jodin via cfe-commits
https://github.com/rjodinchr updated https://github.com/llvm/llvm-project/pull/134094 >From 46d4e40a3142b36811b85ac3d2ececf46d5b8e7c Mon Sep 17 00:00:00 2001 From: Romaric Jodin Date: Wed, 2 Apr 2025 17:12:17 +0200 Subject: [PATCH 1/2] [libclc]: clspv: add a dummy implememtation for mul_hi cls

[clang] [Clang] [NFC] Introduce a helper for emitting compatibility diagnostics (PR #132348)

2025-04-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-with-thin-lto-ubuntu` running on `as-worker-92` while building `clang` at step 7 "test-stage1-compiler". Full details are available at: https://lab.llvm.org/buildbot/#/builders/127/builds/2910 Here is the relevant pie

[libclc] [libclc] Move fmin & fmax to CLC library (PR #134218)

2025-04-03 Thread Fraser Cormack via cfe-commits
frasercrmck wrote: fmin/fmax are needed for minmag/maxmag/fract, and fract is needed for sin/cos/tan so these builtins are a bottleneck right now. https://github.com/llvm/llvm-project/pull/134218 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [OpenCL] Add cl_ext_image_unsigned_10x6_12x4_14x2 extension (PR #134216)

2025-04-03 Thread Kévin Petit via cfe-commits
https://github.com/kpet approved this pull request. LGTM, thanks! (The definitions match the specification, tests ran, CI failures look unrelated.) https://github.com/llvm/llvm-project/pull/134216 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[libclc] 7baa7ed - [libclc]: clspv: add a dummy implememtation for mul_hi (#134094)

2025-04-03 Thread via cfe-commits
Author: Romaric Jodin Date: 2025-04-03T10:18:39+01:00 New Revision: 7baa7edc00c5c92e2d17bae760db2e6df97dcec6 URL: https://github.com/llvm/llvm-project/commit/7baa7edc00c5c92e2d17bae760db2e6df97dcec6 DIFF: https://github.com/llvm/llvm-project/commit/7baa7edc00c5c92e2d17bae760db2e6df97dcec6.diff

[clang] [CLANG-CL] ignores wpadded (PR #130182)

2025-04-03 Thread Mikael Holmén via cfe-commits
mikaelholmen wrote: If I compile clang with clang (18.1.8) the new windows-Wpadded.cpp testcase fails for me like ``` error: 'expected-warning' diagnostics seen but not expected: File /repo/clang/test/SemaCXX/windows-Wpadded.cpp Line 20: padding struct 'Derived' with 2 bits to align 'c' 1 er

[clang] [llvm] [NVPTX] Add intrinsics for cvt .f6x2 and .ue8m0x2 variants (PR #134345)

2025-04-03 Thread Srinivasa Ravi via cfe-commits
https://github.com/Wolfram70 created https://github.com/llvm/llvm-project/pull/134345 This change adds NVVM intrinsics and clang builtins for the cvt instruction variants of types `.e2m3x2`, `.e3m2x2`, and `.ue8m0x2` introduced in PTX 8.6 for `sm_100a`, `sm_101a`, and `sm_120a`. Tests are add

[clang] [llvm] [ARM] Adding diagnostics for mcmodel=tiny when used in invalid targets (PR #125643)

2025-04-03 Thread via cfe-commits
ShashwathiNavada wrote: ping @cor3ntin https://github.com/llvm/llvm-project/pull/125643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [llvm] add tool to verify mustache library (PR #111487)

2025-04-03 Thread Nikita Popov via cfe-commits
nikic wrote: > Overall the patch is much better. Once it's moved to `utils` I think it will > be good. @nikic I seem to recall that we now prefer markdown over `.rst` > files. Is that correct? I tried to find documentation for the policy, but I > seem to be missing it in my grep/googling. I b

[clang-tools-extra] [llvm] [llvm] add tool to verify mustache library (PR #111487)

2025-04-03 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,12 @@ +llvm-mustachespec - LLVM tool to test Mustache Compliance Library += + +llvm-mustachespec test the mustache spec conformance of the LLVM nikic wrote: ```suggestion llvm-mustachespec

[clang-tools-extra] [llvm] [llvm] add tool to verify mustache library (PR #111487)

2025-04-03 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,104 @@ +//===- llvm-mustachespec.cpp - The LLVM Modular Optimizer +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.tx

[clang-tools-extra] [llvm] [llvm] add tool to verify mustache library (PR #111487)

2025-04-03 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,12 @@ +llvm-mustachespec - LLVM tool to test Mustache Compliance Library += + +llvm-mustachespec test the mustache spec conformance of the LLVM +mustache library. The spec can be found here https://github.c

[clang-tools-extra] [llvm] [llvm] add tool to verify mustache library (PR #111487)

2025-04-03 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,104 @@ +//===- llvm-mustachespec.cpp - The LLVM Modular Optimizer +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.tx

[clang-tools-extra] [llvm] [llvm] add tool to verify mustache library (PR #111487)

2025-04-03 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,104 @@ +//===- llvm-mustachespec.cpp - The LLVM Modular Optimizer +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.tx

[clang-tools-extra] [llvm] [llvm] add tool to verify mustache library (PR #111487)

2025-04-03 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,104 @@ +//===- llvm-mustachespec.cpp - The LLVM Modular Optimizer +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.tx

[clang-tools-extra] [llvm] [llvm] add tool to verify mustache library (PR #111487)

2025-04-03 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,104 @@ +//===- llvm-mustachespec.cpp - The LLVM Modular Optimizer +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.tx

[clang-tools-extra] [llvm] [llvm] add tool to verify mustache library (PR #111487)

2025-04-03 Thread Nikita Popov via cfe-commits
@@ -0,0 +1,104 @@ +//===- llvm-mustachespec.cpp - The LLVM Modular Optimizer +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.tx

[clang] [HLSL][RootSignature] Define and integrate `HLSLRootSignatureAttr` (PR #134124)

2025-04-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `clang` at step 5 "compile-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/10/builds/2775 Here is the relevant

[clang-tools-extra] [NFC] Fixes proposed by code sanitizer. (PR #134138)

2025-04-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Zahira Ammarguellat (zahiraam) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/134138.diff 3 Files Affected: - (modified) clang-tools-extra/clang-tidy/bugprone/NarrowingConversionsCheck.cpp (+1-1) - (modified) c

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

2025-04-03 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] [HLSL][RootSignature] Define and integrate `HLSLRootSignatureAttr` (PR #134124)

2025-04-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clangd-ubuntu-tsan` running on `clangd-ubuntu-clang` while building `clang` at step 5 "build-clangd-clangd-index-server-clangd-indexer". Full details are available at: https://lab.llvm.org/buildbot/#/builders/134/builds/16259

[clang] [CIR] Upstream support for promoted types with unary plus/minus (PR #133829)

2025-04-03 Thread Bruno Cardoso Lopes via cfe-commits
@@ -405,3 +405,45 @@ float fpPostInc2() { // OGCG: store float %[[A_INC]], ptr %[[A]], align 4 // OGCG: store float %[[A_LOAD]], ptr %[[B]], align 4 // OGCG: %[[B_TO_OUTPUT:.*]] = load float, ptr %[[B]], align 4 + +_Float16 fp16UPlus(_Float16 f) { + return +f; +} + +// C

[clang] [llvm] [NVPTX] Auto-Upgrade llvm.nvvm.atomic.load.{inc,dec}.32 (PR #134111)

2025-04-03 Thread Akshay Deodhar via cfe-commits
@@ -2070,8 +2070,8 @@ defm INT_PTX_ATOMIC_UMIN_32 : F_ATOMIC_2_AS]>; // atom_inc atom_dec akshayrdeodhar wrote: We don't have a PTX test to prove that the final lowering to PTX will be the same, but this looks good enough. https://github.com/llvm/llvm-proje

[clang] [llvm] [NVPTX] Auto-Upgrade llvm.nvvm.atomic.load.{inc,dec}.32 (PR #134111)

2025-04-03 Thread Akshay Deodhar via cfe-commits
https://github.com/akshayrdeodhar approved this pull request. LGTM! Comments are just questions. https://github.com/llvm/llvm-project/pull/134111 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang] [llvm] [NVPTX] Auto-Upgrade llvm.nvvm.atomic.load.{inc,dec}.32 (PR #134111)

2025-04-03 Thread Akshay Deodhar via cfe-commits
https://github.com/akshayrdeodhar edited https://github.com/llvm/llvm-project/pull/134111 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang] NFC: introduce UnsignedOrNone as a replacement for std::optional (PR #134142)

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

[clang] [Clang][CodeGen] Respect -fwrapv-pointer when emitting struct GEPs (PR #134269)

2025-04-03 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/134269 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Headers: prefer `corecrt_malloc.h` to `malloc.h` (PR #131668)

2025-04-03 Thread Saleem Abdulrasool via cfe-commits
compnerd wrote: I don't think that this fully fixes the issue as it doesn't completely break the cycle. https://github.com/llvm/llvm-project/pull/131668 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang-tools-extra] [clang-doc][NFC] refactor out file helpers (PR #134298)

2025-04-03 Thread via cfe-commits
https://github.com/PeterChou1 updated https://github.com/llvm/llvm-project/pull/134298 >From fa35468f673ace035036a1c15d2d6ab756c2581e Mon Sep 17 00:00:00 2001 From: PeterChou1 Date: Thu, 3 Apr 2025 15:59:34 -0400 Subject: [PATCH 1/2] factor out file helpers --- clang-tools-extra/clang-doc/CMa

[clang-tools-extra] [clang-doc][NFC] refactor out file helpers (PR #134298)

2025-04-03 Thread via cfe-commits
https://github.com/PeterChou1 created https://github.com/llvm/llvm-project/pull/134298 Split from https://github.com/llvm/llvm-project/pull/133161 refactor the code to extract file helpers used in HTML generators for use in other generators for clang-doc >From fa35468f673ace035036a1c15d2d6ab7

[clang-tools-extra] [clang-doc][NFC] refactor out file helpers (PR #134298)

2025-04-03 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/clang-doc/support/File.cpp clang

[clang] [clang][modules] Lazily load by name lookups in module maps (PR #132853)

2025-04-03 Thread Michael Spencer via cfe-commits
Bigcheese wrote: > This now makes much more sense after the renames from the prep-commit. There > are still some naming inconsistencies, though. For example > `ModuleMap::loadModuleMapFile()` both **parses** and loads a module map file, > but `ModuleMap::findOrLoadModule()` expects the module

[clang-tools-extra] [clang-doc][NFC] refactor out file helpers (PR #134298)

2025-04-03 Thread via cfe-commits
https://github.com/PeterChou1 updated https://github.com/llvm/llvm-project/pull/134298 >From fa35468f673ace035036a1c15d2d6ab756c2581e Mon Sep 17 00:00:00 2001 From: PeterChou1 Date: Thu, 3 Apr 2025 15:59:34 -0400 Subject: [PATCH 1/5] factor out file helpers --- clang-tools-extra/clang-doc/CMa

[clang] Revert "[HLSL][RootSignature] Define and integrate `HLSLRootSignatureAttr`" (PR #134273)

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

[clang] [HLSL][RootSignature] Define and integrate `HLSLRootSignatureAttr` (PR #134124)

2025-04-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `cross-project-tests-sie-ubuntu` running on `doug-worker-1a` while building `clang` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/181/builds/16869 Here is the relevan

[clang] [Clang][CodeGen] Respect -fwrapv-pointer when emitting struct GEPs (PR #134269)

2025-04-03 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: > most of them are safe What's the distinguishing factor here? Do you consider it "safe" to mark inbounds if the pointer is immediately dereferenced? Or does the pointer have to refer to a known successful allocation? Or something else? https://github.com/llvm/llvm-pro

[clang] 3f6ae3f - [flang] Added driver options for arrays repacking. (#134002)

2025-04-03 Thread via cfe-commits
Author: Slava Zakharin Date: 2025-04-03T10:43:28-07:00 New Revision: 3f6ae3f0a81ac32aee7633b7c240ce8eb25192ff URL: https://github.com/llvm/llvm-project/commit/3f6ae3f0a81ac32aee7633b7c240ce8eb25192ff DIFF: https://github.com/llvm/llvm-project/commit/3f6ae3f0a81ac32aee7633b7c240ce8eb25192ff.diff

[clang] [CIR] Upstream support for promoted types with unary plus/minus (PR #133829)

2025-04-03 Thread Bruno Cardoso Lopes via cfe-commits
@@ -405,3 +405,45 @@ float fpPostInc2() { // OGCG: store float %[[A_INC]], ptr %[[A]], align 4 // OGCG: store float %[[A_LOAD]], ptr %[[B]], align 4 // OGCG: %[[B_TO_OUTPUT:.*]] = load float, ptr %[[B]], align 4 + +_Float16 fp16UPlus(_Float16 f) { + return +f; +} + +// C

[clang] [-Wunsafe-buffer-usage] Fix false positives for string literals (PR #115554)

2025-04-03 Thread Malavika Samak via cfe-commits
malavikasamak wrote: I think we can close this PR, since we already merged this as part of https://github.com/llvm/llvm-project/pull/115552 https://github.com/llvm/llvm-project/pull/115554 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:

[clang] [flang] [flang] Added driver options for arrays repacking. (PR #134002)

2025-04-03 Thread Slava Zakharin via cfe-commits
https://github.com/vzakhari closed https://github.com/llvm/llvm-project/pull/134002 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream support for break and continue statements (PR #134181)

2025-04-03 Thread Bruno Cardoso Lopes via cfe-commits
@@ -265,3 +265,125 @@ void test_empty_while_true() { // OGCG: br label %[[WHILE_BODY:.*]] // OGCG: [[WHILE_BODY]]: // OGCG: ret void + +void unreachable_after_continue() { + for (;;) { +continue; +int x = 1; + } +} + +// CIR: cir.func @unreachable_after_continue +

[clang] [CIR] Upstream support for break and continue statements (PR #134181)

2025-04-03 Thread Erich Keane via cfe-commits
@@ -265,3 +265,125 @@ void test_empty_while_true() { // OGCG: br label %[[WHILE_BODY:.*]] // OGCG: [[WHILE_BODY]]: // OGCG: ret void + +void unreachable_after_continue() { + for (;;) { +continue; +int x = 1; + } +} + +// CIR: cir.func @unreachable_after_continue +

[clang] [llvm] [DirectX] Implement UseNativeLowPrecision shader flag analysis (PR #134288)

2025-04-03 Thread Deric C. via cfe-commits
https://github.com/Icohedron created https://github.com/llvm/llvm-project/pull/134288 Fixes #112267 >From c482c96c99ab76458904b3f94b1146ccfee0f55c Mon Sep 17 00:00:00 2001 From: Icohedron Date: Wed, 2 Apr 2025 21:16:16 + Subject: [PATCH 1/2] Add test for UseNativeLowPrecision shader flag

[clang] [llvm] [Clang][OpenMP] Support for dispatch construct (Sema & Codegen) support (PR #131838)

2025-04-03 Thread via cfe-commits
SunilKuravinakop wrote: > You can see 2 CpaturedStmt here - one for outer task region (outermost one) > and one for the actual target region (the innermost one). You need to do > something similar for dispatch I have done a commit where -ast-dump works now. CodeGen is still failing for `Emit

[clang-tools-extra] [NFC] Fixes proposed by code sanitizer. (PR #134138)

2025-04-03 Thread Zahira Ammarguellat via cfe-commits
@@ -260,7 +260,7 @@ static IntegerRange createFromType(const ASTContext &Context, llvm::APSInt LowerValue(PrecisionBits + 2, /*isUnsigned*/ false); LowerValue.setBit(PrecisionBits); LowerValue.setSignBit(); -return {LowerValue, UpperValue}; +return {std::mo

[clang] [flang] [Flang][Driver][AMDGPU] Fix -mcode-object-version (PR #134230)

2025-04-03 Thread Sergio Afonso via cfe-commits
https://github.com/skatrak updated https://github.com/llvm/llvm-project/pull/134230 >From 5a3bf580e8c22b9813c082d1249b9b99823241f1 Mon Sep 17 00:00:00 2001 From: Sergio Afonso Date: Wed, 2 Apr 2025 16:34:38 +0100 Subject: [PATCH] [Flang][OpenMP][Driver][AMDGPU] Fix -mcode-object-version This p

[clang] [Clang] Fix unnecessary extra return block emmited during function epilog after musttail call (PR #134282)

2025-04-03 Thread Eli Friedman via cfe-commits
@@ -1491,7 +1491,10 @@ void CodeGenFunction::EmitComplexExprIntoLValue(const Expr *E, LValue dest, "Invalid complex expression to emit"); ComplexExprEmitter Emitter(*this); ComplexPairTy Val = Emitter.Visit(const_cast(E)); - Emitter.EmitStoreOfComplex(Val, dest,

[clang] [llvm] [clang][IR] Overload @llvm.thread.pointer to support non-AS0 targets (PR #132489)

2025-04-03 Thread Jessica Clarke via cfe-commits
jrtc27 wrote: Ping https://github.com/llvm/llvm-project/pull/132489 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [NFC] Fixes proposed by code sanitizer. (PR #134138)

2025-04-03 Thread Zahira Ammarguellat via cfe-commits
@@ -260,7 +260,7 @@ static IntegerRange createFromType(const ASTContext &Context, llvm::APSInt LowerValue(PrecisionBits + 2, /*isUnsigned*/ false); LowerValue.setBit(PrecisionBits); LowerValue.setSignBit(); -return {LowerValue, UpperValue}; +return {std::mo

[clang] [llvm] [HLSL] Implement dot2add intrinsic (PR #131237)

2025-04-03 Thread Ashley Coleman via cfe-commits
https://github.com/V-FEXrt approved this pull request. https://github.com/llvm/llvm-project/pull/131237 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix unnecessary extra return block emmited during function epilog after musttail call (PR #134282)

2025-04-03 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic commented: There's a comment in CodeGenFunction::EmitReturnBlock that says: ``` // FIXME: We are at an unreachable point, there is no reason to emit the block // unless it has uses. However, we still need a place to put the debug // region.end for now. ```

[clang] [Clang][CodeGen] Respect -fwrapv-pointer when emitting struct GEPs (PR #134269)

2025-04-03 Thread Fangrui Song via cfe-commits
MaskRay wrote: Looks good to me, but please allow some time for other reviewers to weigh in. https://github.com/llvm/llvm-project/pull/134269 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [HLSL][RootSignature] Define and integrate `HLSLRootSignatureAttr` (PR #134124)

2025-04-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `amdgpu-offload-ubuntu-22-cmake-build-only` running on `rocm-docker-ubu-22` while building `clang` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/203/builds/6614 Here is the rel

[clang] [Clang][CodeGen] Respect -fwrapv-pointer when emitting struct GEPs (PR #134269)

2025-04-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yingwei Zheng (dtcxzyw) Changes This patch turns off inbounds/nuw flags for member accesses when `-fwrapv-pointer` is set. Note: There are many calls to `CGBuilderTy::CreateStructGEP`, and most of them are safe. So I think it is probably

[clang] [HLSL][RootSignature] Define and integrate `HLSLRootSignatureAttr` (PR #134124)

2025-04-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-x86_64-debian` running on `lldb-x86_64-debian` while building `clang` at step 4 "build". Full details are available at: https://lab.llvm.org/buildbot/#/builders/162/builds/19491 Here is the relevant piece of the build l

[clang] [clang] [ARM] Explicitly enable NEON for Windows/Darwin targets (PR #122095)

2025-04-03 Thread Adam Nemet via cfe-commits
@@ -659,13 +659,21 @@ llvm::ARM::FPUKind arm::getARMTargetFeatures(const Driver &D, CPUArgFPUKind != llvm::ARM::FK_INVALID ? CPUArgFPUKind : ArchArgFPUKind; (void)llvm::ARM::getFPUFeatures(FPUKind, Features); } else { +bool Generic = true; if (!ForAS) {

[clang] [Clang][CodeGen] Respect -fwrapv-pointer when emitting struct GEPs (PR #134269)

2025-04-03 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw created https://github.com/llvm/llvm-project/pull/134269 This patch turns off inbounds/nuw flags for member accesses when `-fwrapv-pointer` is set. Note: There are many calls to `CGBuilderTy::CreateStructGEP`, and most of them are safe. So I think it is probably over

[clang] [llvm] [mlir] [MLIR][OpenMP] Add codegen for teams reductions (PR #133310)

2025-04-03 Thread Jan Leyonberg via cfe-commits
@@ -4645,12 +4789,23 @@ initTargetDefaultAttrs(omp::TargetOp targetOp, Operation *capturedOp, (maxThreadsVal >= 0 && maxThreadsVal < combinedMaxThreadsVal)) combinedMaxThreadsVal = maxThreadsVal; + // Calculate reduction data size, limited to single reduction varia

[clang] 65fa57b - [HLSL][RootSignature] Define and integrate `HLSLRootSignatureAttr` (#134124)

2025-04-03 Thread via cfe-commits
Author: Finn Plummer Date: 2025-04-03T09:27:54-07:00 New Revision: 65fa57bdcc9d745dd8c222426e79618fb7cf1c91 URL: https://github.com/llvm/llvm-project/commit/65fa57bdcc9d745dd8c222426e79618fb7cf1c91 DIFF: https://github.com/llvm/llvm-project/commit/65fa57bdcc9d745dd8c222426e79618fb7cf1c91.diff

[clang] [clang] NFC: introduce UnsignedOrNone as a replacement for std::optional (PR #134142)

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

[clang] [HLSL][RootSignature] Define and integrate `HLSLRootSignatureAttr` (PR #134124)

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

[clang] [MS][clang] Fix crash on deletion of array of pointers (PR #134088)

2025-04-03 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/134088 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   >