[clang] [flang] [llvm] [AMDGPU] Use a target feature to enable __builtin_amdgcn_global_load_lds on gfx9/10 (PR #133055)

2025-03-27 Thread Juan Manuel Martinez Caamaño via cfe-commits
https://github.com/jmmartinez updated https://github.com/llvm/llvm-project/pull/133055 From bf3f06cc99a1ac2460ffea741c0fe495f0778e70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Manuel=20Martinez=20Caama=C3=B1o?= Date: Thu, 20 Mar 2025 13:23:25 +0100 Subject: [PATCH 1/3] [AMDGPU] Add "lds-bu

[clang] [C23] Implement WG14 N3037 (PR #132939)

2025-03-27 Thread Aaron Ballman via cfe-commits
@@ -450,6 +453,116 @@ class StmtComparer { }; } // namespace +static bool IsStructurallyEquivalent(StructuralEquivalenceContext &Context, + const Attr *Attr1, const Attr *Attr2) { + // Two attributes are structurally equivalent if they are

[clang] [Docs] Document freestanding requirements (PR #132232)

2025-03-27 Thread Vlad Serebrennikov via cfe-commits
@@ -1073,6 +1073,35 @@ inputs. Here is some example of ``$``-prefixed options: Language and Target-Independent Features +Freestanding Builds +--- +Passing the ``-ffreestanding`` flag causes Clang to build for a freestand

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-03-27 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman updated https://github.com/llvm/llvm-project/pull/133125 >From 75ef42d644da9136fb07014ade18b6be137426a1 Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 26 Mar 2025 12:54:29 -0400 Subject: [PATCH 01/10] [C2y] Implement WG14 N3369 and N3469 (_Countof) C2y

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-03-27 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,117 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c2y -pedantic -Wall -Wno-comment -verify %s +// RUN: %clang_cc1 -fsyntax-only -std=c2y -pedantic -Wall -Wno-comment -fexperimental-new-constant-interpreter -verify %s + +/* WG14 N3369: Clang 21 + * _Lengthof operator + * +

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-03-27 Thread Aaron Ballman via cfe-commits
@@ -0,0 +1,117 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c2y -pedantic -Wall -Wno-comment -verify %s +// RUN: %clang_cc1 -fsyntax-only -std=c2y -pedantic -Wall -Wno-comment -fexperimental-new-constant-interpreter -verify %s + +/* WG14 N3369: Clang 21 + * _Lengthof operator + * +

[clang] [Clang] Improve subsumption. (PR #132849)

2025-03-27 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/132849 >From b5b5275093f6942238536834c6508551f7ceffd8 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Sun, 16 Mar 2025 23:34:19 +0100 Subject: [PATCH 01/12] [Clang] Improve subsumption. The main goal of this patc

[clang] Fix complex long double division with -mno-x87. (PR #133152)

2025-03-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Zahira Ammarguellat (zahiraam) Changes The combination of `-fcomplex-arithmetic=promoted` and `mno-x87` for `double` complex division is leading to a crash. See https://godbolt.org/z/189G957oY This patch fixes that. --- Full diff: https:/

[clang] [C23] Implement WG14 N3037 (PR #132939)

2025-03-27 Thread Martin Uecker via cfe-commits
uecker wrote: Another comment about attributes: Attributes should not generally affect type compatibility (in general, but also relevant for this feature) for two reasons: 1. Standard attributes are ignorable, and this would then break. 2. Compatibility affects aliasing, one one certainly does

[clang] [Docs] Document freestanding requirements (PR #132232)

2025-03-27 Thread Joseph Huber via cfe-commits
@@ -1073,6 +1073,35 @@ inputs. Here is some example of ``$``-prefixed options: Language and Target-Independent Features +Freestanding Builds +--- +Passing the ``-ffreestanding`` flag causes Clang to build for a freestand

[clang] [Clang] Improve subsumption. (PR #132849)

2025-03-27 Thread Aaron Ballman via cfe-commits
@@ -170,102 +132,112 @@ struct alignas(ConstraintAlignment) FoldExpandedConstraint { const Expr *Pattern) : Kind(K), Constraint(std::move(C)), Pattern(Pattern) {}; - template - bool subsumes(const FoldExpandedConstraint &Other, -

[clang] [HIP] use offload wrapper for non-device-only non-rdc (PR #132869)

2025-03-27 Thread Yaxun Liu via cfe-commits
@@ -9348,11 +9348,22 @@ void LinkerWrapper::ConstructJob(Compilation &C, const JobAction &JA, // Add the linker arguments to be forwarded by the wrapper. CmdArgs.push_back(Args.MakeArgString(Twine("--linker-path=") + LinkCommand->getE

[clang] [HIP] use offload wrapper for non-device-only non-rdc (PR #132869)

2025-03-27 Thread Joseph Huber via cfe-commits
@@ -9348,11 +9348,22 @@ void LinkerWrapper::ConstructJob(Compilation &C, const JobAction &JA, // Add the linker arguments to be forwarded by the wrapper. CmdArgs.push_back(Args.MakeArgString(Twine("--linker-path=") + LinkCommand->getE

[clang] [llvm] Enable unnecessary-virtual-specifier by default (PR #133265)

2025-03-27 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/133265 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add guard to for loop test clang/test/Sema/for.c (PR #133169)

2025-03-27 Thread via cfe-commits
https://github.com/Sirraide approved this pull request. Ah, I didn’t think of that. Thanks! https://github.com/llvm/llvm-project/pull/133169 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [HIP] use offload wrapper for non-device-only non-rdc (PR #132869)

2025-03-27 Thread Yaxun Liu via cfe-commits
@@ -4502,6 +4506,16 @@ void Driver::BuildActions(Compilation &C, DerivedArgList &Args, InputArg)) break; + // For HIP non-rdc non-device-only compilation, create a linker wrapper yxs

[clang] [flang] [libcxx] [llvm] [llvm-reduce]: print short form, actionable names in the log (PR #132813)

2025-03-27 Thread Mark de Wever via cfe-commits
@@ -39,8 +39,8 @@ void test() { (void)std::forward_like(i); // expected-error {{no matching function for call to 'forward_like'}} (void)std::forward_like(i); // expected-error {{no matching function for call to 'forward_like'}} - using fpr = void()&; - using fprr = v

[libcxx] [libcxxabi] [libunwind] [llvm] [libc++] Enable -Wmissing-prototypes (PR #116261)

2025-03-27 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 updated https://github.com/llvm/llvm-project/pull/116261 >From 3f3478d6708cbea9a68cac31d51e062bbe126ef8 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Thu, 14 Nov 2024 18:30:39 +0100 Subject: [PATCH] [libc++] Enable -Wmissing-prototypes --- libcxx/include/f

[clang] 4480f26 - Fix failing test case for _Countof

2025-03-27 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2025-03-27T14:07:57-04:00 New Revision: 4480f26e939304f5aa659b72fe16746dfe96601e URL: https://github.com/llvm/llvm-project/commit/4480f26e939304f5aa659b72fe16746dfe96601e DIFF: https://github.com/llvm/llvm-project/commit/4480f26e939304f5aa659b72fe16746dfe96601e.diff

[clang] [CIR] Upstream global initialization for ArrayType (PR #131657)

2025-03-27 Thread Andy Kaylor via cfe-commits
@@ -228,6 +257,42 @@ mlir::Value CIRAttrToValue::visitCirAttr(cir::FPAttr fltAttr) { loc, converter->convertType(fltAttr.getType()), fltAttr.getValue()); } +// ConstArrayAttr visitor +mlir::Value CIRAttrToValue::visitCirAttr(cir::ConstArrayAttr attr) { + mlir::Type llv

[clang] [llvm] Enable unnecessary-virtual-specifier by default (PR #133265)

2025-03-27 Thread via cfe-commits
https://github.com/Sirraide commented: Looks like you’ll have to update some tests because CI is failing (also, I’d be very surprised if we didn’t have tests for this). Also, this still needs a release note. Maybe a fix for the virtual anchor pattern would be to somehow not emit the warning f

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-03-27 Thread Alejandro Colomar via cfe-commits
alejandro-colomar wrote: > > Thanks @AaronBallman !! I am still working on my patch, so just for > > learning about Clang internals, I'll try to finish mine, and compare it to > > yours. :-) > > Sorry for stealing this one out from under you! No problem. :-) > It turns out it was a bit more

[clang] [llvm] Enable unnecessary-virtual-specifier by default (PR #133265)

2025-03-27 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/133265 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [NFC][clang-tidy] Add type annotations to check_clang_tidy (PR #133140)

2025-03-27 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank updated https://github.com/llvm/llvm-project/pull/133140 >From 48bb3c79069c9bad5ee01865058a155368586b2e Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Thu, 27 Mar 2025 13:28:56 -0400 Subject: [PATCH] [NFC][clang-tidy] Add type annotations to check_clang_tidy

[clang] [llvm] [MIPS] Define SubTargetFeature for i6500 cpu (PR #132907)

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

[clang] [HIP] use offload wrapper for non-device-only non-rdc (PR #132869)

2025-03-27 Thread Yaxun Liu via cfe-commits
@@ -4945,12 +4959,15 @@ Action *Driver::BuildOffloadingActions(Compilation &C, } } -// Compiling HIP in non-RDC mode requires linking each action individually. +// Compiling HIP in device-only non-RDC mode requires linking each action +// individually.

[clang] [HLSL] Include SPIRV in LLVM_TARGETS_TO_BUILD in the HLSL cmake cache (PR #133287)

2025-03-27 Thread Justin Bogner via cfe-commits
@@ -1,13 +1,10 @@ # Including the native target is important because some of LLVM's tests fail if # you don't. -set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "") +set(LLVM_TARGETS_TO_BUILD "Native;SPIRV" CACHE STRING "") -# Include the DirectX target for DXIL code generation,

[clang] Add guard to for loop test clang/test/Sema/for.c (PR #133169)

2025-03-27 Thread Sean Perry via cfe-commits
https://github.com/perry-ca closed https://github.com/llvm/llvm-project/pull/133169 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fb993cd - Add guard to for loop test clang/test/Sema/for.c (#133169)

2025-03-27 Thread via cfe-commits
Author: Ariel-Burton Date: 2025-03-27T14:26:06-04:00 New Revision: fb993cd2290c0cf71a5192f350adf12424b55890 URL: https://github.com/llvm/llvm-project/commit/fb993cd2290c0cf71a5192f350adf12424b55890 DIFF: https://github.com/llvm/llvm-project/commit/fb993cd2290c0cf71a5192f350adf12424b55890.diff

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

2025-03-27 Thread Deepak Eachempati via cfe-commits
dreachem wrote: @alexey-bataev For something like this: ```c++ void f() { #pragma omp dispatch nowait depend(inout:x) g(); } ``` The AST dump for that function is as follows, with @SunilKuravinakop's patch: ``` `-FunctionDecl 0xed2dac8 line:7:6 f 'void ()' `-CompoundStmt 0xed2df28

[clang] [CLANG] Enable alignas after GNU attributes (PR #133107)

2025-03-27 Thread via cfe-commits
Sirraide wrote: CC @erichkeane in case there’s a specific reason I’m not aware of as to why we currently don’t allow this. https://github.com/llvm/llvm-project/pull/133107 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[clang] [Clang] Add 'Joseph Huber' as offloading driver maintainer (PR #133296)

2025-03-27 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/133296 Summary: I am probably the person most familiar with the offloading pipeline in clang at this point. >From 362fd1e9eb26871e956b29e2313a7495e8543bc9 Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Thu, 27 Mar

[clang] [Clang] Add 'Joseph Huber' as offloading driver maintainer (PR #133296)

2025-03-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Joseph Huber (jhuber6) Changes Summary: I am probably the person most familiar with the offloading pipeline in clang at this point. --- Full diff: https://github.com/llvm/llvm-project/pull/133296.diff 1 Files Affected: - (modified) cla

[clang] [CLANG] Enable alignas after GNU attributes (PR #133107)

2025-03-27 Thread via cfe-commits
https://github.com/Sirraide commented: At a glance this *does* seem like the right place to do this, but this is still missing a release note. It seems like GCC allows e.g. `__attribute__(()) alignas(16) int x` in any case, so I don’t see why we shouldn’t allow this too. Can you also add some

[clang] Optimize Module Dependency Handling for Efficient Memory Usage (PR #132638)

2025-03-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ayush Pareek (ayushpareek2003) Changes -Optimized addModuleFiles functions for both CompilerInvocation and CowCompilerInvocation to reduce redundant function calls and improve efficiency -Introduced memory preallocation using reserve() wh

[clang] [AMDGPU][True16][Driver] support true16 feature option in clang driver (PR #133298)

2025-03-27 Thread Brox Chen via cfe-commits
https://github.com/broxigarchen edited https://github.com/llvm/llvm-project/pull/133298 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AMDGPU][True16][Driver] support true16 feature option in clang driver (PR #133298)

2025-03-27 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 85c54a519fa6856b3e9a462445633ed4535eafa4 cdb9b19d31816b1f5efe690e79ad6bacc4c7f882 --e

[clang] [AMDGPU][True16][Driver] support true16 feature option in clang driver (PR #133298)

2025-03-27 Thread Brox Chen via cfe-commits
https://github.com/broxigarchen updated https://github.com/llvm/llvm-project/pull/133298 >From a73229b233ab37e984932b99224b5aaf64b26747 Mon Sep 17 00:00:00 2001 From: guochen2 Date: Thu, 27 Mar 2025 14:41:40 -0400 Subject: [PATCH] add true16 feature in clang driver --- clang/include/clang/Dri

[clang] [Clang] Handle `-flto-partitions` generically and forward it properly (PR #133283)

2025-03-27 Thread Joseph Huber via cfe-commits
@@ -3043,6 +3041,8 @@ defm fat_lto_objects : BoolFOption<"fat-lto-objects", PosFlag, NegFlag, BothFlags<[], [ClangOption, CC1Option], " fat LTO object support">>; +def flto_partitions_EQ : Joined<["-"], "flto-partitions=">, Group, jhuber6 wrote: To my kn

[clang] [AMDGPU][True16][Driver] support true16 feature option in clang driver (PR #133298)

2025-03-27 Thread Brox Chen via cfe-commits
https://github.com/broxigarchen updated https://github.com/llvm/llvm-project/pull/133298 >From a94164ac07df115a7169ff98bd77dbf15174f2ba Mon Sep 17 00:00:00 2001 From: guochen2 Date: Thu, 27 Mar 2025 14:41:40 -0400 Subject: [PATCH] add true16 feature in clang driver --- clang/include/clang/Dri

[clang] [AMDGPU][True16][Driver] support true16 feature option in clang driver (PR #133298)

2025-03-27 Thread Brox Chen via cfe-commits
https://github.com/broxigarchen updated https://github.com/llvm/llvm-project/pull/133298 >From 4285b82cd89ad6c036c27bc392fb59474d15db0b Mon Sep 17 00:00:00 2001 From: guochen2 Date: Thu, 27 Mar 2025 14:41:40 -0400 Subject: [PATCH] add true16 feature in clang driver --- clang/include/clang/Dri

[clang] [llvm] [IRBuilder] Add new overload for CreateIntrinsic (PR #131942)

2025-03-27 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/131942 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] clangd: Add a build option to disable building dexp (PR #133124)

2025-03-27 Thread Yoann Congal via cfe-commits
@@ -15,6 +15,7 @@ config.llvm_shlib_dir = "@SHLIBDIR@" config.clangd_source_dir = "@CMAKE_CURRENT_SOURCE_DIR@/.." config.clangd_binary_dir = "@CMAKE_CURRENT_BINARY_DIR@/.." config.clangd_build_xpc = @CLANGD_BUILD_XPC@ +config.clangd_build_dexp = @CLANGD_BUILD_DEXP@

[clang] [CIR] Upstream zero init for global variables (PR #133100)

2025-03-27 Thread Amr Hesham via cfe-commits
@@ -67,6 +67,40 @@ class CIRBaseBuilderTy : public mlir::OpBuilder { return create(loc, attr.getType(), attr); } + mlir::TypedAttr getConstNullPtrAttr(mlir::Type t) { +assert(mlir::isa(t) && "expected cir.ptr"); +return getConstPtrAttr(t, 0); + } + + mlir::Typ

[libclc] [libclc] Move fmod, remainder & remquo to the CLC library (PR #132054)

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

[libclc] d32e71d - [libclc] Move fmod, remainder & remquo to the CLC library (#132054)

2025-03-27 Thread via cfe-commits
Author: Fraser Cormack Date: 2025-03-27T14:53:19Z New Revision: d32e71d7c732c37fd28241b85f501d7a192aa22c URL: https://github.com/llvm/llvm-project/commit/d32e71d7c732c37fd28241b85f501d7a192aa22c DIFF: https://github.com/llvm/llvm-project/commit/d32e71d7c732c37fd28241b85f501d7a192aa22c.diff LOG

[clang] [MS][clang] Add support for vector deleting destructors (PR #126240)

2025-03-27 Thread Hans Wennborg via cfe-commits
zmodem wrote: A few notes from looking today. Reduced main a bit further: ``` int main(int argc, const char** argv) { volatile auto p = &FilteredBreakIteratorBuilder::createEmptyInstance; icu::UnicodeString* St = new icu::UnicodeString("abacabadabacab", 15); delete St; printf("OKAY\n");

[clang-tools-extra] clangd: Add a build option to disable building dexp (PR #133124)

2025-03-27 Thread Khem Raj via cfe-commits
https://github.com/kraj approved this pull request. looks good to me. https://github.com/llvm/llvm-project/pull/133124 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream CmpOp (PR #133159)

2025-03-27 Thread Morris Hafner via cfe-commits
https://github.com/mmha updated https://github.com/llvm/llvm-project/pull/133159 >From 6db5880fa7cdf6363d7e0025f811f42ec273df52 Mon Sep 17 00:00:00 2001 From: Morris Hafner Date: Wed, 26 Mar 2025 20:50:57 + Subject: [PATCH 1/3] [CIR] Upstream CmpOp This patch adds support for comparison ope

[clang] [CIR] Upstream CmpOp (PR #133159)

2025-03-27 Thread Morris Hafner via cfe-commits
@@ -514,9 +515,17 @@ mlir::LogicalResult CIRToLLVMCastOpLowering::matchAndRewrite( assert(!MissingFeatures::cxxABI()); assert(!MissingFeatures::dataMemberType()); break; - case cir::CastKind::ptr_to_bool: -assert(!cir::MissingFeatures::opCmp()); + case cir::C

[clang] [compiler-rt] [llvm] [SystemZ] Add support for half (fp16) (PR #109164)

2025-03-27 Thread Jonas Paulsson via cfe-commits
@@ -548,11 +543,28 @@ SystemZTargetLowering::SystemZTargetLowering(const TargetMachine &TM, } // Handle floating-point types. + if (!useSoftFloat()) { +// Promote all f16 operations to float, with some exceptions below. +for (unsigned Opc = 0; Opc < ISD::BUILTIN_

[clang] [llvm] [ADT] Remove old range constructors of SmallSet and StringSet (PR #133205)

2025-03-27 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar approved this pull request. https://github.com/llvm/llvm-project/pull/133205 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFC][HLSL] Move emitter out of AMDGPU.cpp (PR #133251)

2025-03-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Farzon Lotfi (farzonl) Changes - Create a home for LangBuiltins - Move all HLSL code out of AMDGPU.cpp to CGHLSLBuiltins.cpp --- Patch is 63.61 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/133

[clang] 7cc17fb - [ADT] Remove old range constructors of SmallSet and StringSet (#133205)

2025-03-27 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-03-27T07:52:13-07:00 New Revision: 7cc17fb08597bc08ca37c90ed17981d884940e33 URL: https://github.com/llvm/llvm-project/commit/7cc17fb08597bc08ca37c90ed17981d884940e33 DIFF: https://github.com/llvm/llvm-project/commit/7cc17fb08597bc08ca37c90ed17981d884940e33.diff L

[clang] [llvm] [ADT] Remove old range constructors of SmallSet and StringSet (PR #133205)

2025-03-27 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/133205 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AMDGPU] Remove detection of hip runtime for Spack (PR #133263)

2025-03-27 Thread Harmen Stoppels via cfe-commits
https://github.com/haampie edited https://github.com/llvm/llvm-project/pull/133263 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [NFC][HLSL] Move emitter out of AMDGPU.cpp (PR #133251)

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

[clang] [Docs] Document freestanding requirements (PR #132232)

2025-03-27 Thread Vlad Serebrennikov via cfe-commits
@@ -1073,6 +1073,35 @@ inputs. Here is some example of ``$``-prefixed options: Language and Target-Independent Features +Freestanding Builds +--- +Passing the ``-ffreestanding`` flag causes Clang to build for a freestand

[clang] [llvm] Enable unnecessary-virtual-specifier by default (PR #133265)

2025-03-27 Thread Devon Loehr via cfe-commits
DKLoehr wrote: @zmodem Do you mind taking a look? https://github.com/llvm/llvm-project/pull/133265 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 6c56a84 - [clang][CodeGen] Generate follow-up metadata for loops in correct format (#131985)

2025-03-27 Thread via cfe-commits
Author: Ryotaro Kasuga Date: 2025-03-27T20:29:37+09:00 New Revision: 6c56a842b73cf2046b9ab8cf077890e11b758373 URL: https://github.com/llvm/llvm-project/commit/6c56a842b73cf2046b9ab8cf077890e11b758373 DIFF: https://github.com/llvm/llvm-project/commit/6c56a842b73cf2046b9ab8cf077890e11b758373.diff

[clang] [AMDGPU] Remove detection of hip runtime for Spack (PR #133263)

2025-03-27 Thread Harmen Stoppels via cfe-commits
https://github.com/haampie edited https://github.com/llvm/llvm-project/pull/133263 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Improve subsumption. (PR #132849)

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

[clang] [Clang] Improve subsumption. (PR #132849)

2025-03-27 Thread Aaron Ballman via cfe-commits
@@ -2001,3 +1932,258 @@ NormalizedConstraint::getFoldExpandedConstraint() const { "getFoldExpandedConstraint called on non-fold-expanded constraint."); return cast(Constraint); } + +// +// +// Subsumption ---

[clang] [Docs] Document freestanding requirements (PR #132232)

2025-03-27 Thread Aaron Ballman via cfe-commits
@@ -1073,6 +1073,35 @@ inputs. Here is some example of ``$``-prefixed options: Language and Target-Independent Features +Freestanding Builds +--- +Passing the ``-ffreestanding`` flag causes Clang to build for a freestand

[clang-tools-extra] [NFC][clang-tidy] Add type annotations to check_clang_tidy (PR #133140)

2025-03-27 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank updated https://github.com/llvm/llvm-project/pull/133140 >From 48bb3c79069c9bad5ee01865058a155368586b2e Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Thu, 27 Mar 2025 13:28:56 -0400 Subject: [PATCH] [NFC][clang-tidy] Add type annotations to check_clang_tidy

[clang-tools-extra] [clang-doc] Add regression test for test comments in macros (PR #132510)

2025-03-27 Thread via cfe-commits
https://github.com/ZhongUncle converted_to_draft https://github.com/llvm/llvm-project/pull/132510 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [NFC][clang-tidy] Add type annotations to check_clang_tidy (PR #133140)

2025-03-27 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r 545ea0dd378912d588550a79728cc98cd4dbaa24...48bb3c79069c9bad5ee01865058a155368586b2e clang

[clang] f15924d - Fix MSVC "not all control paths return a value" warning. NFC.

2025-03-27 Thread Simon Pilgrim via cfe-commits
Author: Simon Pilgrim Date: 2025-03-27T08:55:47Z New Revision: f15924d1d1310527d7d78e8c66655e6b94bc241b URL: https://github.com/llvm/llvm-project/commit/f15924d1d1310527d7d78e8c66655e6b94bc241b DIFF: https://github.com/llvm/llvm-project/commit/f15924d1d1310527d7d78e8c66655e6b94bc241b.diff LOG:

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

2025-03-27 Thread Sumit Agarwal via cfe-commits
https://github.com/sumitsays updated https://github.com/llvm/llvm-project/pull/131237 >From 6d5c4053c90975d64e378e52779dab9c3ffb64cd Mon Sep 17 00:00:00 2001 From: Sumit Agarwal Date: Thu, 13 Mar 2025 16:02:32 -0700 Subject: [PATCH 01/12] dot2add working for dxil without sema check --- clang/

[clang] 85c54a5 - [Docs] Document freestanding requirements (#132232)

2025-03-27 Thread via cfe-commits
Author: Aaron Ballman Date: 2025-03-27T13:17:05-04:00 New Revision: 85c54a519fa6856b3e9a462445633ed4535eafa4 URL: https://github.com/llvm/llvm-project/commit/85c54a519fa6856b3e9a462445633ed4535eafa4 DIFF: https://github.com/llvm/llvm-project/commit/85c54a519fa6856b3e9a462445633ed4535eafa4.diff

[clang] [Docs] Document freestanding requirements (PR #132232)

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

[clang] [Clang] Improve subsumption. (PR #132849)

2025-03-27 Thread Aaron Ballman via cfe-commits
@@ -2001,3 +1932,258 @@ NormalizedConstraint::getFoldExpandedConstraint() const { "getFoldExpandedConstraint called on non-fold-expanded constraint."); return cast(Constraint); } + +// +// +// Subsumption ---

[clang] 00c43ae - [C2y] Implement WG14 N3369 and N3469 (_Countof) (#133125)

2025-03-27 Thread via cfe-commits
Author: Aaron Ballman Date: 2025-03-27T13:23:16-04:00 New Revision: 00c43ae23524d72707701620da89ad248393a8e4 URL: https://github.com/llvm/llvm-project/commit/00c43ae23524d72707701620da89ad248393a8e4 DIFF: https://github.com/llvm/llvm-project/commit/00c43ae23524d72707701620da89ad248393a8e4.diff

[clang] [clang][DependencyScanning] Track dependencies from prebuilt modules to determine IsInStableDir (PR #132237)

2025-03-27 Thread Jan Svoboda via cfe-commits
@@ -5834,13 +5847,27 @@ bool ASTReader::readASTFileControlBlock( break; case INPUT_FILE: bool Overridden = static_cast(Record[3]); - const size_t FilenameAsRequestedLength = Record[7] + 1; - auto ResolvedFilenameAsRequested = Resolv

[clang] [Clang] Improve subsumption. (PR #132849)

2025-03-27 Thread via cfe-commits
@@ -2001,3 +1932,258 @@ NormalizedConstraint::getFoldExpandedConstraint() const { "getFoldExpandedConstraint called on non-fold-expanded constraint."); return cast(Constraint); } + +// +// +// Subsumption ---

[clang] ae54f47 - [Clang] Improve subsumption. (#132849)

2025-03-27 Thread via cfe-commits
Author: cor3ntin Date: 2025-03-27T18:23:58+01:00 New Revision: ae54f476f7d856682976f08622ee70880318a1b1 URL: https://github.com/llvm/llvm-project/commit/ae54f476f7d856682976f08622ee70880318a1b1 DIFF: https://github.com/llvm/llvm-project/commit/ae54f476f7d856682976f08622ee70880318a1b1.diff LOG:

[clang] [Clang] Improve subsumption. (PR #132849)

2025-03-27 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/132849 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Handle `-flto-partitions` generically and forward it properly (PR #133283)

2025-03-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Joseph Huber (jhuber6) Changes Summary: The https://github.com/llvm/llvm-project/pull/128509 patch introduced `--flto-partitions`. This was marked as a HIP only argument, and was also spelled and handled incorrectly for an `-f` optio

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

2025-03-27 Thread Theo de Magalhaes via cfe-commits
=?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes Message-ID: In-Reply-To: https://github.com/therealcoochieman updated https://github.com/llvm/llvm-proje

[clang] [Clang] Handle `-flto-partitions` generically and forward it properly (PR #133283)

2025-03-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Joseph Huber (jhuber6) Changes Summary: The https://github.com/llvm/llvm-project/pull/128509 patch introduced `--flto-partitions`. This was marked as a HIP only argument, and was also spelled and handled incorrectly for an `-f` option. This

[clang-tools-extra] [NFC][clang-tidy] Add type annotations to check_clang_tidy (PR #133140)

2025-03-27 Thread Nicolas van Kempen via cfe-commits
@@ -48,15 +48,16 @@ import re import subprocess import sys +from typing import List, Tuple nicovank wrote: `list` and `tuple` are Python 3.9: https://peps.python.org/pep-0585/ LLVM minimum Python version is 3.8 for now: https://github.com/llvm/llvm-project/bl

[clang-tools-extra] [NFC][clang-tidy] Add type annotations to check_clang_tidy (PR #133140)

2025-03-27 Thread Nicolas van Kempen via cfe-commits
@@ -71,12 +72,12 @@ def try_run(args, raise_error=True): # This class represents the appearance of a message prefix in a file. class MessagePrefix: -def __init__(self, label): +def __init__(self, label: str): nicovank wrote: Good catch, thank you, I a

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-03-27 Thread Alejandro Colomar via cfe-commits
@@ -0,0 +1,117 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c2y -pedantic -Wall -Wno-comment -verify %s +// RUN: %clang_cc1 -fsyntax-only -std=c2y -pedantic -Wall -Wno-comment -fexperimental-new-constant-interpreter -verify %s + +/* WG14 N3369: Clang 21 + * _Lengthof operator + * +

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-03-27 Thread Alejandro Colomar via cfe-commits
https://github.com/alejandro-colomar edited https://github.com/llvm/llvm-project/pull/133125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-03-27 Thread Alejandro Colomar via cfe-commits
https://github.com/alejandro-colomar edited https://github.com/llvm/llvm-project/pull/133125 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Improve subsumption. (PR #132849)

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

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

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

[clang-tools-extra] [NFC][clang-tidy] Add type annotations to check_clang_tidy (PR #133140)

2025-03-27 Thread Nicolas van Kempen via cfe-commits
@@ -71,12 +72,13 @@ def try_run(args, raise_error=True): # This class represents the appearance of a message prefix in a file. class MessagePrefix: -def __init__(self, label): + nicovank wrote: Note that this space is "on purpose", the formatter wants it

[clang-tools-extra] [NFC][clang-tidy] Add type annotations to check_clang_tidy (PR #133140)

2025-03-27 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank updated https://github.com/llvm/llvm-project/pull/133140 >From 6d0068c97341a93ee116878599c13e429082b0a8 Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Thu, 27 Mar 2025 13:35:05 -0400 Subject: [PATCH] [NFC][clang-tidy] Add type annotations to check_clang_tidy

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

2025-03-27 Thread Theo de Magalhaes via cfe-commits
=?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes , =?utf-8?q?Théo?= De Magalhaes Message-ID: In-Reply-To: @@ -0,0 +1,12 @@ +// RUN: %clang_cl -Wpadded -Wno-msvc-not-foun

[clang-tools-extra] [NFC][clang-tidy] Add type annotations to check_clang_tidy (PR #133140)

2025-03-27 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank edited https://github.com/llvm/llvm-project/pull/133140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C2y] Implement WG14 N3369 and N3469 (_Countof) (PR #133125)

2025-03-27 Thread Alejandro Colomar via cfe-commits
alejandro-colomar wrote: Thanks @AaronBallman !! I am still working on my patch, so just for learning about Clang internals, I'll try to finish mine, and compare it to yours. :-) Sorry for being so slow! Cheers, Alex https://github.com/llvm/llvm-project/pull/133125 _

[clang] [llvm] [RISCV] SiFive CLIC Support (PR #132481)

2025-03-27 Thread Sam Elliott via cfe-commits
@@ -486,6 +486,24 @@ def : SysReg<"mctrctl", 0x34e>; // Vendor CSRs //===--- +// XSfmclic +let FeaturesRequired = [{ {RISCV::FeatureVendorXSfmclic} }] in { +def : SysReg<"mtvt", 0x307>; +def : SysReg<"mnxti", 0x345>; +def : SysReg<"m

[clang] [llvm] [HLSL] Implement the `smoothstep` intrinsic (PR #132288)

2025-03-27 Thread Kaitlin Peng via cfe-commits
@@ -0,0 +1,60 @@ +; RUN: llc -O0 -verify-machineinstrs -mtriple=spirv-unknown-unknown %s -o - | FileCheck %s +; RUN: %if spirv-tools %{ llc -O0 -mtriple=spirv-unknown-unknown %s -o - -filetype=obj | spirv-val %} kmpeng wrote: @s-perron Changing the target envir

[clang] [Clang] Handle `-flto-partitions` generically and forward it properly (PR #133283)

2025-03-27 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 created https://github.com/llvm/llvm-project/pull/133283 Summary: The https://github.com/llvm/llvm-project/pull/128509 patch introduced `--flto-partitions`. This was marked as a HIP only argument, and was also spelled and handled incorrectly for an `-f` option. This pa

[clang-tools-extra] [NFC][clang-tidy] Add type annotations to check_clang_tidy (PR #133140)

2025-03-27 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank updated https://github.com/llvm/llvm-project/pull/133140 >From 6d0068c97341a93ee116878599c13e429082b0a8 Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Thu, 27 Mar 2025 13:35:05 -0400 Subject: [PATCH] [NFC][clang-tidy] Add type annotations to check_clang_tidy

[clang] [llvm] [HLSL] Implement the `smoothstep` intrinsic (PR #132288)

2025-03-27 Thread Kaitlin Peng via cfe-commits
https://github.com/kmpeng edited https://github.com/llvm/llvm-project/pull/132288 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Include SPIRV in LLVM_TARGETS_TO_BUILD in the HLSL cmake cache (PR #133287)

2025-03-27 Thread Justin Bogner via cfe-commits
https://github.com/bogner created https://github.com/llvm/llvm-project/pull/133287 Since SPIRV is no longer an experimental target this wasn't actually enabling it any more. >From 5c4b19d99275440eef8a360f5d8f1affd7869e0e Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Thu, 27 Mar 2025 10:1

[clang] d0aa1f9 - [Clang] Make `--lto-partitions` only default for HIP (#133164)

2025-03-27 Thread via cfe-commits
Author: Joseph Huber Date: 2025-03-27T07:34:57-05:00 New Revision: d0aa1f9c43a4a5709e060aea6c844bdcc70bcd0e URL: https://github.com/llvm/llvm-project/commit/d0aa1f9c43a4a5709e060aea6c844bdcc70bcd0e DIFF: https://github.com/llvm/llvm-project/commit/d0aa1f9c43a4a5709e060aea6c844bdcc70bcd0e.diff

[clang] [llvm] [RISCV] SiFive CLIC Support (PR #132481)

2025-03-27 Thread Alex Bradbury via cfe-commits
@@ -486,6 +486,24 @@ def : SysReg<"mctrctl", 0x34e>; // Vendor CSRs //===--- +// XSfmclic +let FeaturesRequired = [{ {RISCV::FeatureVendorXSfmclic} }] in { +def : SysReg<"mtvt", 0x307>; +def : SysReg<"mnxti", 0x345>; +def : SysReg<"m

<    1   2   3   4   5   >