[clang] [Sema] Provide `-fno-/-fvisibility-global-new-delete` option (PR #75364)

2023-12-18 Thread Paul T Robinson via cfe-commits
pogo59 wrote: >From a UI perspective, "add a visibility attribute" doesn't seem all that >descriptive. What visibility does it add? Therefore, I suggest >`-fvisibility-global-new-delete[=]` so the user can ask for what >they want, and `-fvisibility-global-new-delete-hidden` equals >`-fvisibil

[compiler-rt] [clang-tools-extra] [libcxx] [libc] [clang] [llvm] [flang] [AMDGPU] Fix lack of LDS DMA check in the AA handling (PR #75249)

2023-12-18 Thread via cfe-commits
https://github.com/searlmc1 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/75249 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Darwin] Remove legacy framework search path logic in the frontend (PR #75841)

2023-12-18 Thread Louis Dionne via cfe-commits
@@ -758,9 +758,14 @@ void darwin::Linker::ConstructJob(Compilation &C, const JobAction &JA, } } - // Add non-standard, platform-specific search paths, e.g., for DriverKit: - // -L/System/DriverKit/usr/lib - // -F/System/DriverKit/System/Library/Framework + // Add

[clang] [clang][Darwin] Remove legacy framework search path logic in the frontend (PR #75841)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Louis Dionne (ldionne) Changes This removes a long standing piece of technical debt. Most other platforms have moved all their header search path logic to the driver, but Darwin still had some logic for setting framework search paths pres

[compiler-rt] [clang-tools-extra] [libcxx] [lldb] [clang] [libc] [llvm] [libcxxabi] [lld] [flang] [HLSL][DirectX] Move handling of resource element types into the frontend (PR #75674)

2023-12-18 Thread Justin Bogner via cfe-commits
https://github.com/bogner closed https://github.com/llvm/llvm-project/pull/75674 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4f54d71 - [HLSL][DirectX] Move handling of resource element types into the frontend

2023-12-18 Thread via cfe-commits
Author: Justin Bogner Date: 2023-12-18T11:43:52-07:00 New Revision: 4f54d71501815877898aaa6d764b8468d0708ed6 URL: https://github.com/llvm/llvm-project/commit/4f54d71501815877898aaa6d764b8468d0708ed6 DIFF: https://github.com/llvm/llvm-project/commit/4f54d71501815877898aaa6d764b8468d0708ed6.diff

[clang] [clang][Darwin] Remove legacy framework search path logic in the frontend (PR #75841)

2023-12-18 Thread Louis Dionne via cfe-commits
https://github.com/ldionne created https://github.com/llvm/llvm-project/pull/75841 This removes a long standing piece of technical debt. Most other platforms have moved all their header search path logic to the driver, but Darwin still had some logic for setting framework search paths present

[clang] [-Wunsafe-buffer-usage] Add a subgroup `-Wunsafe-buffer-usage-in-container` (PR #75665)

2023-12-18 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 closed https://github.com/llvm/llvm-project/pull/75665 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4123b95 - [-Wunsafe-buffer-usage] Add a subgroup `-Wunsafe-buffer-usage-in-container` (#75665)

2023-12-18 Thread via cfe-commits
Author: Ziqing Luo Date: 2023-12-18T10:39:15-08:00 New Revision: 4123b95949727cb171bfcac6fcec89ea8cb76ef2 URL: https://github.com/llvm/llvm-project/commit/4123b95949727cb171bfcac6fcec89ea8cb76ef2 DIFF: https://github.com/llvm/llvm-project/commit/4123b95949727cb171bfcac6fcec89ea8cb76ef2.diff LO

[llvm] [clang] [AArch64] Update target feature requirements of SVE bfloat instructions (PR #75596)

2023-12-18 Thread Momchil Velikov via cfe-commits
@@ -2066,7 +2066,7 @@ let TargetGuard = "sve2p1|sme2" in { def SVPFALSE_COUNT_ALIAS : SInst<"svpfalse_c", "}v", "", MergeNone, "", [IsOverloadNone, IsStreamingCompatible]>; } -let TargetGuard = "sve2p1,b16b16" in { +let TargetGuard = "(sve2|sme2),b16b16" in { --

[clang] [llvm] [AArch64] Update target feature requirements of SVE bfloat instructions (PR #75596)

2023-12-18 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov updated https://github.com/llvm/llvm-project/pull/75596 >From fc5c82e61efef3f1cd2f6606b12c358637a687f5 Mon Sep 17 00:00:00 2001 From: Momchil Velikov Date: Fri, 15 Dec 2023 12:18:53 + Subject: [PATCH 1/2] [AArch64] Update target feature requirements of SVE

[clang] [clang-tools-extra] [llvm] [mlir] [mlir][TilingInterface] Early return cloned ops if tile sizes are zeros. (PR #75410)

2023-12-18 Thread Han-Chung Wang via cfe-commits
https://github.com/hanhanW updated https://github.com/llvm/llvm-project/pull/75410 >From c07f7e1c5c6f8bbc7189e96096004d39a0a1aa3f Mon Sep 17 00:00:00 2001 From: hanhanW Date: Wed, 13 Dec 2023 15:59:48 -0800 Subject: [PATCH 1/3] [mlir][TilingInterface] Early return cloned ops if tile sizes are

[clang] [clang-tools-extra] [llvm] [mlir] [MLIR][Linalg] Support dynamic sizes in `lower_unpack` (PR #75494)

2023-12-18 Thread lorenzo chelini via cfe-commits
https://github.com/chelini closed https://github.com/llvm/llvm-project/pull/75494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix CTAD not work for C++ explicit type conversion (functional annotation). (PR #75779)

2023-12-18 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/75779 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [llvm] [mlir] [mlir][TilingInterface] Early return cloned ops if tile sizes are zeros. (PR #75410)

2023-12-18 Thread Han-Chung Wang via cfe-commits
@@ -362,14 +362,20 @@ mlir::scf::tileUsingSCFForOp(RewriterBase &rewriter, TilingInterface op, auto clonedOp = cast( cloneOpAndUpdateDestinationArgs(rewriter, op, clonedOpDestination)); - // 5b. Tile the cloned operation. + // 5b. Early return cloned op if tiling is

[clang] [clang] Fix CTAD not work for C++ explicit type conversion (functional annotation). (PR #75779)

2023-12-18 Thread Shafik Yaghmour via cfe-commits
shafik wrote: > > Why remove the support for ParenListExpr entirely? Could you not fallback > > on looking at the init list expression only when ParenListExpr is null? > > We could keep `ParenListExpr`, but I'm not sure the benefit (IMO, removing it > seems like an API improvement, and make co

[clang] [Clang][AArch64] Add missing SME functions to header file. (PR #75791)

2023-12-18 Thread Paul Walker via cfe-commits
@@ -10570,6 +10570,26 @@ Value *CodeGenFunction::EmitAArch64BuiltinExpr(unsigned BuiltinID, return Builder.CreateCall(F, llvm::ConstantInt::get(Int32Ty, HintID)); } + if (BuiltinID == clang::AArch64::BI__builtin_arm_get_sme_state) { +// Create call to __arm_sme_sta

[clang] [Clang][AArch64] Add missing SME functions to header file. (PR #75791)

2023-12-18 Thread Paul Walker via cfe-commits
@@ -1600,6 +1600,25 @@ void SVEEmitter::createSMEHeader(raw_ostream &OS) { OS << "extern \"C\" {\n"; OS << "#endif\n\n"; + OS << "void __arm_za_disable(void) __arm_streaming_compatible;\n\n"; + + OS << "__ai bool __arm_has_sme(void) __arm_streaming_compatible {\n"; + OS

[libcxx] [flang] [llvm] [lldb] [libcxxabi] [clang] [clang-tools-extra] [lld] [compiler-rt] [libc] [HLSL][DirectX] Move handling of resource element types into the frontend (PR #75674)

2023-12-18 Thread Justin Bogner via cfe-commits
https://github.com/bogner updated https://github.com/llvm/llvm-project/pull/75674 >From 9d6e00bd972a563daefd67b544614e2bb609cc42 Mon Sep 17 00:00:00 2001 From: Justin Bogner Date: Fri, 15 Dec 2023 16:29:09 -0800 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?= =?UTF

[clang] [lldb] [llvm] [clang] Split out DebugOptions.def into its own top-level options group. (PR #75530)

2023-12-18 Thread Juergen Ributzka via cfe-commits
@@ -224,19 +233,20 @@ class CompilerInvocation : public CompilerInvocationBase { /// @{ // Note: These need to be pulled in manually. Otherwise, they get hidden by // the mutable getters with the same names. - using CompilerInvocationBase::getLangOpts; - using CompilerI

[clang] [lld] [llvm] [LTO] Improve diagnostics handling when parsing module-level inline assembly (PR #75726)

2023-12-18 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay closed https://github.com/llvm/llvm-project/pull/75726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix CTAD not work for C++ explicit type conversion (functional annotation). (PR #75779)

2023-12-18 Thread Shafik Yaghmour via cfe-commits
shafik wrote: Can you please update your summary to explain the problem and how the fix addresses the problem. This is usually what goes into the git log and we want those to be as descriptive as possible but also it help code reviewers to understand what they are reviewing quicker. https://

[clang] 96aca7c - [LTO] Improve diagnostics handling when parsing module-level inline assembly (#75726)

2023-12-18 Thread via cfe-commits
Author: Fangrui Song Date: 2023-12-18T09:46:58-08:00 New Revision: 96aca7c51701f9b3c5dd8567fcddf29492008e6d URL: https://github.com/llvm/llvm-project/commit/96aca7c51701f9b3c5dd8567fcddf29492008e6d DIFF: https://github.com/llvm/llvm-project/commit/96aca7c51701f9b3c5dd8567fcddf29492008e6d.diff

[clang] [lldb] [llvm] [clang] Split out DebugOptions.def into its own top-level options group. (PR #75530)

2023-12-18 Thread Juergen Ributzka via cfe-commits
ributzka wrote: > This looks pretty nice, I left just a couple of notes. You might want to take > a look at the CI failures. Thanks Jan, I will take a look. At first glance I need to build and fix `flang` too. https://github.com/llvm/llvm-project/pull/75530 ___

[clang] [llvm] [HLSL][DirectX] Move handling of resource element types into the frontend (PR #75674)

2023-12-18 Thread Justin Bogner via cfe-commits
@@ -216,15 +214,62 @@ void CGHLSLRuntime::addBufferResourceAnnotation(llvm::GlobalVariable *GV, assert(false && "Unsupported buffer type!"); return; } - assert(ResourceMD != nullptr && "ResourceMD must have been set by the switch above."); llvm::hls

[clang] [clang-tools-extra] [llvm] [mlir] [MLIR][Linalg] Support dynamic sizes in `lower_unpack` (PR #75494)

2023-12-18 Thread via cfe-commits
https://github.com/srcarroll updated https://github.com/llvm/llvm-project/pull/75494 >From 3879e633f4e4ba36ca24e6a870942b695ac935e0 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 13 Dec 2023 15:25:31 -0600 Subject: [PATCH 1/8] [MLIR][Linalg] Support dynamic sizes in `lower_unpack` --- .../Dial

[clang] [llvm] [HLSL][DirectX] Move handling of resource element types into the frontend (PR #75674)

2023-12-18 Thread Justin Bogner via cfe-commits
@@ -253,35 +246,6 @@ void UAVResource::print(raw_ostream &OS) const { ResourceBase::print(OS, "U", "u"); } -// FIXME: Capture this in HLSL source. I would go do this right now, but I want -// to get this in first so that I can make sure to capture all the extra -// informati

[clang] [clang-tools-extra] [llvm] [mlir] [MLIR][Linalg] Support dynamic sizes in `lower_unpack` (PR #75494)

2023-12-18 Thread lorenzo chelini via cfe-commits
@@ -464,6 +464,129 @@ module attributes {transform.with_named_sequence} { // - +// Check that we can lower unpack with dynamic dimensions in the input and destination. +// CHECK-LABEL: func.func @unpack_with_dynamic_input_dest( +// CHECK-SAME: %[[ARG0:.*]]: tensor, %[[AR

[mlir] [clang-tools-extra] [clang] [llvm] [MLIR][Linalg] Support dynamic sizes in `lower_unpack` (PR #75494)

2023-12-18 Thread lorenzo chelini via cfe-commits
https://github.com/chelini approved this pull request. Thanks, it looks good to me. https://github.com/llvm/llvm-project/pull/75494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[mlir] [llvm] [clang-tools-extra] [clang] [MLIR][Linalg] Support dynamic sizes in `lower_unpack` (PR #75494)

2023-12-18 Thread lorenzo chelini via cfe-commits
https://github.com/chelini edited https://github.com/llvm/llvm-project/pull/75494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang-tools-extra] [mlir] [MLIR][Linalg] Support dynamic sizes in `lower_unpack` (PR #75494)

2023-12-18 Thread lorenzo chelini via cfe-commits
@@ -434,8 +428,14 @@ FailureOr linalg::lowerUnPack(RewriterBase &rewriter, RankedTensorType::Builder(packedTensorType).setShape(stripMinedShape); RankedTensorType collapsedType = tensor::CollapseShapeOp::inferCollapsedType( stripMinedTensorType, packingMetadata.r

[llvm] [clang] [clang-tools-extra] [mlir] [mlir][TilingInterface] Early return cloned ops if tile sizes are zeros. (PR #75410)

2023-12-18 Thread Han-Chung Wang via cfe-commits
@@ -362,14 +362,20 @@ mlir::scf::tileUsingSCFForOp(RewriterBase &rewriter, TilingInterface op, auto clonedOp = cast( cloneOpAndUpdateDestinationArgs(rewriter, op, clonedOpDestination)); - // 5b. Tile the cloned operation. + // 5b. Early return cloned op if tiling is

[llvm] [clang] [clang-tools-extra] [mlir] [mlir][TilingInterface] Early return cloned ops if tile sizes are zeros. (PR #75410)

2023-12-18 Thread Han-Chung Wang via cfe-commits
@@ -362,14 +362,20 @@ mlir::scf::tileUsingSCFForOp(RewriterBase &rewriter, TilingInterface op, auto clonedOp = cast( cloneOpAndUpdateDestinationArgs(rewriter, op, clonedOpDestination)); - // 5b. Tile the cloned operation. + // 5b. Early return cloned op if tiling is

[clang] [LinkerWrapper] Forward more arguments to the CPU offloading linker (PR #75757)

2023-12-18 Thread Ye Luo via cfe-commits
https://github.com/ye-luo approved this pull request. https://github.com/llvm/llvm-project/pull/75757 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LinkerWrapper] Forward more arguments to the CPU offloading linker (PR #75757)

2023-12-18 Thread Ye Luo via cfe-commits
https://github.com/ye-luo closed https://github.com/llvm/llvm-project/pull/75757 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8e2cc19 - [LinkerWrapper] Forward more arguments to the CPU offloading linker (#75757)

2023-12-18 Thread via cfe-commits
Author: Joseph Huber Date: 2023-12-18T11:16:49-06:00 New Revision: 8e2cc19e2e60d348859c0967a2707bcc8cb9936a URL: https://github.com/llvm/llvm-project/commit/8e2cc19e2e60d348859c0967a2707bcc8cb9936a DIFF: https://github.com/llvm/llvm-project/commit/8e2cc19e2e60d348859c0967a2707bcc8cb9936a.diff

[compiler-rt] [clang] [llvm] [clang-tools-extra] [PGO][GlobalValue][LTO]In GlobalValues::getGlobalIdentifier, use semicolon as delimiter for local-linkage varibles. (PR #74008)

2023-12-18 Thread Mingming Liu via cfe-commits
https://github.com/minglotus-6 closed https://github.com/llvm/llvm-project/pull/74008 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [clang-tools-extra] [MLIR][Linalg] Support dynamic sizes in `lower_unpack` (PR #75494)

2023-12-18 Thread via cfe-commits
https://github.com/srcarroll updated https://github.com/llvm/llvm-project/pull/75494 >From 3879e633f4e4ba36ca24e6a870942b695ac935e0 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 13 Dec 2023 15:25:31 -0600 Subject: [PATCH 1/7] [MLIR][Linalg] Support dynamic sizes in `lower_unpack` --- .../Dial

[clang] Add tests for driver to propagate module map flags even without -fmod… (PR #75827)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Walter Lee (googlewalt) Changes …ules We use this to verify properties of our build graph, even when modules are off. Xcode 14.3.1 seems to have dropped these flags so we are creating a unit test to reproduce the issue. --- Full

[clang] Add tests for driver to propagate module map flags even without -fmod… (PR #75827)

2023-12-18 Thread Walter Lee via cfe-commits
https://github.com/googlewalt created https://github.com/llvm/llvm-project/pull/75827 …ules We use this to verify properties of our build graph, even when modules are off. Xcode 14.3.1 seems to have dropped these flags so we are creating a unit test to reproduce the issue. >From 0e83c457b51

[clang] [AArch64][SME2] Enable bfm builtins for sme2 (PR #71927)

2023-12-18 Thread Sam Tebbs via cfe-commits
https://github.com/SamTebbs33 closed https://github.com/llvm/llvm-project/pull/71927 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fade675 - [AArch64][SME2] Enable bfm builtins for sme2 (#71927)

2023-12-18 Thread via cfe-commits
Author: Sam Tebbs Date: 2023-12-18T16:51:10Z New Revision: fade67565e1a3d7447335f9b5dfbf85dccb5773b URL: https://github.com/llvm/llvm-project/commit/fade67565e1a3d7447335f9b5dfbf85dccb5773b DIFF: https://github.com/llvm/llvm-project/commit/fade67565e1a3d7447335f9b5dfbf85dccb5773b.diff LOG: [AA

[clang] [Clang][SVE2.1] Update names of the `svwhileXX` builtins with predicate-as-counter (PR #75200)

2023-12-18 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov closed https://github.com/llvm/llvm-project/pull/75200 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 35a77fc - [Clang][SVE2.1] Update names of the `svwhileXX` builtins with predicate-as-counter (#75200)

2023-12-18 Thread via cfe-commits
Author: Momchil Velikov Date: 2023-12-18T16:49:59Z New Revision: 35a77fc13ce62f4bc21b65c130801cb5f42fb228 URL: https://github.com/llvm/llvm-project/commit/35a77fc13ce62f4bc21b65c130801cb5f42fb228 DIFF: https://github.com/llvm/llvm-project/commit/35a77fc13ce62f4bc21b65c130801cb5f42fb228.diff LO

[clang] [Clang][SVE2.1] Update names of the `svwhileXX` builtins with predicate-as-counter (PR #75200)

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

[clang] [Clang][SVE2.1] Update names of the `svwhileXX` builtins with predicate-as-counter (PR #75200)

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

[clang] [Clang][SVE2.1] Update names of the `svwhileXX` builtins with predicate-as-counter (PR #75200)

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

[llvm] [clang] [PGO][nfc] Add `-fdiagnostics-show-profile-count` option to show real loop count from instr-profile (PR #75021)

2023-12-18 Thread Jan Svoboda via cfe-commits
@@ -2091,6 +2091,12 @@ bool CompilerInvocation::ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, bool UsingProfile = UsingSampleProfile || !Opts.ProfileInstrumentUsePath.empty(); + if (Args.hasArg(options::OPT_fdiagnostics_show_profile_count) &&

[clang] [AArch64][SME2] Enable bfm builtins for sme2 (PR #71927)

2023-12-18 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm approved this pull request. https://github.com/llvm/llvm-project/pull/71927 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang-tools-extra] [clang] [Clang][SME2] Add multi-vector zip & unzip builtins (PR #74841)

2023-12-18 Thread Kerry McLaughlin via cfe-commits
https://github.com/kmclaughlin-arm closed https://github.com/llvm/llvm-project/pull/74841 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Provide `-fno-/-fvisibility-global-new-delete` option (PR #75364)

2023-12-18 Thread via cfe-commits
bd1976bris wrote: Noting previous discussions w.r.t. -fvisibility-global-new-delete-hidden on https://reviews.llvm.org/D133266. I have added reviewers from that phab review in case they are interested in this. https://github.com/llvm/llvm-project/pull/75364

[libunwind] [libunwind] Use -nostdlib++ when linking libunwind (PR #75646)

2023-12-18 Thread Louis Dionne via cfe-commits
https://github.com/ldionne updated https://github.com/llvm/llvm-project/pull/75646 >From c5ff17c24afba4b44e45894452c733fef0183fb0 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Fri, 15 Dec 2023 14:14:44 -0500 Subject: [PATCH 1/2] [libunwind] Use -nostdlib++ when linking libunwind We shouldn

[compiler-rt] [libcxx] [flang] [clang] [lld] [lldb] [mlir] [llvm] [builtins] Refactor cpu_model support to reduce #if nesting. NFCI (PR #75635)

2023-12-18 Thread Jon Roelofs via cfe-commits
https://github.com/jroelofs updated https://github.com/llvm/llvm-project/pull/75635 >From 336d1629f38a8681038f026c599a256761b522dc Mon Sep 17 00:00:00 2001 From: Jon Roelofs Date: Fri, 15 Dec 2023 11:13:30 -0700 Subject: [PATCH 1/4] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UTF

[compiler-rt] [lldb] [llvm] [mlir] [lld] [flang] [clang] [libcxx] [builtins] Refactor cpu_model support to reduce #if nesting. NFCI (PR #75635)

2023-12-18 Thread Jon Roelofs via cfe-commits
https://github.com/jroelofs updated https://github.com/llvm/llvm-project/pull/75635 >From 336d1629f38a8681038f026c599a256761b522dc Mon Sep 17 00:00:00 2001 From: Jon Roelofs Date: Fri, 15 Dec 2023 11:13:30 -0700 Subject: [PATCH 1/3] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UTF

[clang-tools-extra] [clang] [mlir] [llvm] [MLIR][Linalg] Support dynamic sizes in `lower_unpack` (PR #75494)

2023-12-18 Thread via cfe-commits
@@ -434,8 +429,21 @@ FailureOr linalg::lowerUnPack(RewriterBase &rewriter, RankedTensorType::Builder(packedTensorType).setShape(stripMinedShape); RankedTensorType collapsedType = tensor::CollapseShapeOp::inferCollapsedType( stripMinedTensorType, packingMetadata.r

[clang] [AArch64][SME2] Enable bfm builtins for sme2 (PR #71927)

2023-12-18 Thread Sam Tebbs via cfe-commits
https://github.com/SamTebbs33 updated https://github.com/llvm/llvm-project/pull/71927 >From 93a02d9af1d7e4f1e23c252d72b20d292927a79f Mon Sep 17 00:00:00 2001 From: Samuel Tebbs Date: Thu, 9 Nov 2023 17:39:26 + Subject: [PATCH 1/7] [AArch64][SME2] Enable bfm builtings for sme2 This patch en

[clang] [Clang][AArch64] Add missing SME functions to header file. (PR #75791)

2023-12-18 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm updated https://github.com/llvm/llvm-project/pull/75791 >From 8b30f772982d7d608541526b1fa42de2b5eb7e1e Mon Sep 17 00:00:00 2001 From: Sander de Smalen Date: Mon, 18 Dec 2023 12:55:30 + Subject: [PATCH 1/2] [Clang][AArch64] Add missing SME functions to header

[compiler-rt] [libcxx] [flang] [clang] [lld] [lldb] [mlir] [llvm] [builtins] Refactor cpu_model support to reduce #if nesting. NFCI (PR #75635)

2023-12-18 Thread Jon Roelofs via cfe-commits
https://github.com/jroelofs updated https://github.com/llvm/llvm-project/pull/75635 >From 336d1629f38a8681038f026c599a256761b522dc Mon Sep 17 00:00:00 2001 From: Jon Roelofs Date: Fri, 15 Dec 2023 11:13:30 -0700 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UTF

[clang] [llvm] [Sema] Implement support for -Wformat-signedness (PR #74440)

2023-12-18 Thread Karl-Johan Karlsson via cfe-commits
@@ -11881,6 +11896,8 @@ CheckPrintfHandler::checkFormatExpr(const analyze_printf::PrintfSpecifier &FS, ICE->getType() == S.Context.UnsignedIntTy) { // All further checking is done on the subexpression ImplicitMatch = AT.matchesType(S.Context, ExprTy);

[clang] [AArch64][SME2] Enable bfm builtins for sme2 (PR #71927)

2023-12-18 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm edited https://github.com/llvm/llvm-project/pull/71927 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64][SME2] Enable bfm builtins for sme2 (PR #71927)

2023-12-18 Thread Sander de Smalen via cfe-commits
@@ -2,13 +2,24 @@ // REQUIRES: aarch64-registered-target // RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64-none-linux-gnu -target-feature +sve2p1 -S -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -p mem2reg,instcombine,tailcallelim | FileCheck %s +/

[clang] [AArch64][SME2] Enable bfm builtins for sme2 (PR #71927)

2023-12-18 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm approved this pull request. LGTM with comment addressed. https://github.com/llvm/llvm-project/pull/71927 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [Clang][SME] Warn when a function doesn't have ZA state (PR #75805)

2023-12-18 Thread Sam Tebbs via cfe-commits
https://github.com/SamTebbs33 closed https://github.com/llvm/llvm-project/pull/75805 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SME2] Enable multi-vector loads & stores for SME2 (PR #75821)

2023-12-18 Thread Sam Tebbs via cfe-commits
SamTebbs33 wrote: Should these builtins be `IsStreamingCompatible` until we add `IsStreamingOrSVE2p1`? https://github.com/llvm/llvm-project/pull/75821 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [Clang][SME] Warn when a function doesn't have ZA state (PR #75805)

2023-12-18 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm approved this pull request. https://github.com/llvm/llvm-project/pull/75805 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64][SME2] Enable bfm builtins for sme2 (PR #71927)

2023-12-18 Thread Sam Tebbs via cfe-commits
https://github.com/SamTebbs33 updated https://github.com/llvm/llvm-project/pull/71927 >From 93a02d9af1d7e4f1e23c252d72b20d292927a79f Mon Sep 17 00:00:00 2001 From: Samuel Tebbs Date: Thu, 9 Nov 2023 17:39:26 + Subject: [PATCH 1/6] [AArch64][SME2] Enable bfm builtings for sme2 This patch en

[clang] [Clang][SME2] Enable multi-vector loads & stores for SME2 (PR #75821)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: Kerry McLaughlin (kmclaughlin-arm) Changes This patch enables the following builtins for SME2: - svld1, svld1_vnum - svldnt1, svldnt1_vnum - svst1, svst1_vnum - svstnt1, svstnt1_vnum --- Full diff: ht

[clang] [Clang][SME2] Enable multi-vector loads & stores for SME2 (PR #75821)

2023-12-18 Thread Kerry McLaughlin via cfe-commits
https://github.com/kmclaughlin-arm created https://github.com/llvm/llvm-project/pull/75821 This patch enables the following builtins for SME2: - svld1, svld1_vnum - svldnt1, svldnt1_vnum - svst1, svst1_vnum - svstnt1, svstnt1_vnum >From 1b2022f34ad3b038f714d8d0559f4e129d5e731a Mon Sep 17 00

[clang] [llvm] [HLSL][DirectX] Move handling of resource element types into the frontend (PR #75674)

2023-12-18 Thread Xiang Li via cfe-commits
https://github.com/python3kgae approved this pull request. https://github.com/llvm/llvm-project/pull/75674 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [Clang][SVE2.1] Add floating-point variants of `svrevd_XX` (PR #75117)

2023-12-18 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov closed https://github.com/llvm/llvm-project/pull/75117 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fd527de - [Clang][SVE2.1] Add floating-point variants of `svrevd_XX` (#75117)

2023-12-18 Thread via cfe-commits
Author: Momchil Velikov Date: 2023-12-18T15:52:28Z New Revision: fd527def7edef8f8754b9e7812ed77f486bb144f URL: https://github.com/llvm/llvm-project/commit/fd527def7edef8f8754b9e7812ed77f486bb144f DIFF: https://github.com/llvm/llvm-project/commit/fd527def7edef8f8754b9e7812ed77f486bb144f.diff LO

[clang] [Clang][SVE2.1] Make a part of the name optional for `svwhileXX` builtins with predicate-as-counter (PR #75200)

2023-12-18 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov updated https://github.com/llvm/llvm-project/pull/75200 >From d97312680eff280210f588ef22416f845d31d2ef Mon Sep 17 00:00:00 2001 From: Momchil Velikov Date: Tue, 12 Dec 2023 15:08:33 + Subject: [PATCH 1/4] [Clang][SVE2.1] Make the part of the name optional

[lld] [llvm] [clang] [LTO] Improve diagnostics handling when parsing module-level inline assembly (PR #75726)

2023-12-18 Thread Teresa Johnson via cfe-commits
https://github.com/teresajohnson approved this pull request. https://github.com/llvm/llvm-project/pull/75726 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [clang] [flang][driver] Remove Fortain_main static library from linking stages (PR #75816)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Michael Klemm (mjklemm) Changes At present, when building static or shared libraries, Flang adds `-lFortran_main.a` (or `/WHOLEARCHIVE:Fortran.*.lib` pon Windows) to the link line. This leads to the prob

[flang] [clang] [flang][driver] Remove Fortain_main static library from linking stages (PR #75816)

2023-12-18 Thread Michael Klemm via cfe-commits
https://github.com/mjklemm created https://github.com/llvm/llvm-project/pull/75816 At present, when building static or shared libraries, Flang adds `-lFortran_main.a` (or `/WHOLEARCHIVE:Fortran.*.lib` pon Windows) to the link line. This leads to the problem that `_QQmain` and `_QQEnvironmentD

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2023-12-18 Thread via cfe-commits
sethp wrote: Thanks for the feedback! I've definitely found it helpful trying to puzzle out why one of my static_asserts is failing, though it's certainly a far less complete solution than the document @tahonermann shared. The output from `printPretty` will definitely fall apart for a complex

[clang-tools-extra] [clangd] check for synthesized symbols when tracking include locations (PR #75128)

2023-12-18 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: @kadircet ping https://github.com/llvm/llvm-project/pull/75128 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add `intrin0.h` header to mimic `intrin0.h` used by MSVC STL for clang-cl (PR #75711)

2023-12-18 Thread Nico Weber via cfe-commits
nico wrote: In other words, please undo the changes to `clang/lib/Headers/immintrin.h` for now. https://github.com/llvm/llvm-project/pull/75711 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[clang] [clang] Add `intrin0.h` header to mimic `intrin0.h` used by MSVC STL for clang-cl (PR #75711)

2023-12-18 Thread Nico Weber via cfe-commits
nico wrote: Looks like it belongs to MSVC: https://github.com/microsoft/STL/blob/a806c6960f1687590ffd4244794c753aa819/stl/inc/yvals_core.h#L2040 So I think the right order here is: 1. Add intrin0.h header 2. Wait for a release 3. Change MSSTL to include that in clang builds as well 4. Wait

[clang] [SystemZ][z/OS] Add guard for dl_info and dladdr (PR #75637)

2023-12-18 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree closed https://github.com/llvm/llvm-project/pull/75637 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8a233d8 - [SystemZ][z/OS] Add guard for dl_info and dladdr (#75637)

2023-12-18 Thread via cfe-commits
Author: Abhina Sree Date: 2023-12-18T10:33:23-05:00 New Revision: 8a233d8cfde4cd026b5dd12b56ea029749a02329 URL: https://github.com/llvm/llvm-project/commit/8a233d8cfde4cd026b5dd12b56ea029749a02329 DIFF: https://github.com/llvm/llvm-project/commit/8a233d8cfde4cd026b5dd12b56ea029749a02329.diff L

[clang] [OpenMP][Clang] Force use of `num_teams` and `thread_limit` for bare kernel (PR #68373)

2023-12-18 Thread Shilei Tian via cfe-commits
https://github.com/shiltian closed https://github.com/llvm/llvm-project/pull/68373 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0f5eef1 - [OpenMP][Clang] Force use of `num_teams` and `thread_limit` for bare kernel (#68373)

2023-12-18 Thread via cfe-commits
Author: Shilei Tian Date: 2023-12-18T10:29:26-05:00 New Revision: 0f5eef1fb3e3f6491fb27dfb69b230946ffea69c URL: https://github.com/llvm/llvm-project/commit/0f5eef1fb3e3f6491fb27dfb69b230946ffea69c DIFF: https://github.com/llvm/llvm-project/commit/0f5eef1fb3e3f6491fb27dfb69b230946ffea69c.diff L

[clang] [clang] Add `intrin0.h` header to mimic `intrin0.h` used by MSVC STL for clang-cl (PR #75711)

2023-12-18 Thread Nico Weber via cfe-commits
nico wrote: Is `intrin0.h` a header that ships with MSVC's compiler, or with MS's STL? If the latter, shouldn't everything just work already? https://github.com/llvm/llvm-project/pull/75711 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

[llvm] [clang] [Clang][SVE2.1] Add floating-point variants of `svrevd_XX` (PR #75117)

2023-12-18 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov updated https://github.com/llvm/llvm-project/pull/75117 >From 979b240d2a084eb87db43d3fabfffa8d3351d294 Mon Sep 17 00:00:00 2001 From: Momchil Velikov Date: Mon, 11 Dec 2023 23:25:07 + Subject: [PATCH 1/2] [Clang][SVE2.1] Add floating-point variants of `sv

[clang] 5cda366 - Revert "[clang] Fix false positive -Wmissing-field-initializer for anonymous unions (#70829)"

2023-12-18 Thread via cfe-commits
Author: Podchishchaeva, Mariya Date: 2023-12-18T07:08:27-08:00 New Revision: 5cda366221236a43fdd89bca59e153b4384eaba8 URL: https://github.com/llvm/llvm-project/commit/5cda366221236a43fdd89bca59e153b4384eaba8 DIFF: https://github.com/llvm/llvm-project/commit/5cda366221236a43fdd89bca59e153b4384ea

[openmp] [clang] [Clang][OpenMP] Fix mapping of structs to device (PR #75642)

2023-12-18 Thread Jan Patrick Lehr via cfe-commits
jplehr wrote: It appears that this patch made the buildbot unhappy (https://lab.llvm.org/buildbot/#/builders/193/builds/43948). Let me know if you need help with this. https://github.com/llvm/llvm-project/pull/75642 ___ cfe-commits mailing list cfe-c

[llvm] [clang] [AMDGPU] Add InstCombine rule for ballot.i64 intrinsic in wave32 mode. (PR #71556)

2023-12-18 Thread Valery Pykhtin via cfe-commits
https://github.com/vpykhtin edited https://github.com/llvm/llvm-project/pull/71556 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [AMDGPU][GFX12] Add new v_permlane16 variants (PR #75475)

2023-12-18 Thread Nico Weber via cfe-commits
nico wrote: That did the trick, thanks! https://github.com/llvm/llvm-project/pull/75475 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [AMDGPU] Add InstCombine rule for ballot.i64 intrinsic in wave32 mode. (PR #71556)

2023-12-18 Thread Valery Pykhtin via cfe-commits
https://github.com/vpykhtin edited https://github.com/llvm/llvm-project/pull/71556 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SME] Warn when a function doesn't have ZA state (PR #75805)

2023-12-18 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 d777504355dac9a2a8a7bbba6001d05b936868b2 a1840e028ef8b412ffb13b9d105e34fee54dfaed --

[clang] [Clang][SME] Warn when a function doesn't have ZA state (PR #75805)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sam Tebbs (SamTebbs33) Changes This patch adds a warning that's emitted when a builtin call uses ZA state but the calling function doesn't provide any. Patch by David Sherwood . --- Patch is 186.65 KiB, truncated

[clang] [MinGW] MinGW Value.h (PR #74982)

2023-12-18 Thread 徐持恒 Xu Chiheng via cfe-commits
https://github.com/xu-chiheng edited https://github.com/llvm/llvm-project/pull/74982 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [MinGW] Fix the regression caused by commit 592e935e115ffb451eb9b782376711dab6558fe0, that, in MinGW, Clang can't be built by system Clang 15.0.4. (PR #74982)

2023-12-18 Thread 徐持恒 Xu Chiheng via cfe-commits
https://github.com/xu-chiheng edited https://github.com/llvm/llvm-project/pull/74982 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [SystemZ][z/OS] Add guard for dl_info and dladdr (PR #75637)

2023-12-18 Thread Abhina Sree via cfe-commits
@@ -125,21 +126,28 @@ const std::string &CIndexer::getClangResourcesPath() { #elif defined(_AIX) getClangResourcesPathImplAIX(LibClangPath); #else + bool pathFound = false; abhina-sree wrote: thanks, done! https://github.com/llvm/llvm-project/pull/75637 __

[clang] [SystemZ][z/OS] Add guard for dl_info and dladdr (PR #75637)

2023-12-18 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree updated https://github.com/llvm/llvm-project/pull/75637 >From 61385bf2fa5c7369812eed6d40d04599f2383ee0 Mon Sep 17 00:00:00 2001 From: Abhina Sreeskantharajan Date: Fri, 15 Dec 2023 14:39:23 -0500 Subject: [PATCH 1/2] check if we have dlfcn.h and dladdr --- clang

[clang] [SystemZ][z/OS] Add guard for dl_info and dladdr (PR #75637)

2023-12-18 Thread Fanbo Meng via cfe-commits
https://github.com/fanbo-meng approved this pull request. LGTM with nit https://github.com/llvm/llvm-project/pull/75637 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [SystemZ][z/OS] Add guard for dl_info and dladdr (PR #75637)

2023-12-18 Thread Fanbo Meng via cfe-commits
https://github.com/fanbo-meng edited https://github.com/llvm/llvm-project/pull/75637 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [SystemZ][z/OS] Add guard for dl_info and dladdr (PR #75637)

2023-12-18 Thread Fanbo Meng via cfe-commits
@@ -125,21 +126,28 @@ const std::string &CIndexer::getClangResourcesPath() { #elif defined(_AIX) getClangResourcesPathImplAIX(LibClangPath); #else + bool pathFound = false; fanbo-meng wrote: nit: Variables should start with upper case https://github.com/ll

[llvm] [clang] [RISCV] Update TargetAttr target-cpu override rule (PR #75804)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Piyou Chen (BeMg) Changes Address question from https://github.com/llvm/llvm-project/pull/74889 --- The target-cpu will infer its target-feature during backend codegen, it will make TargetAttr doesn't work. This patch implement

<    1   2   3   4   5   >