[clang] [llvm] [clang][llvm][SPIR-V] Explicitly encode native integer widths for SPIR-V (PR #110695)

2024-10-01 Thread Alex Voicu via cfe-commits
@@ -54,14 +54,14 @@ static std::string computeDataLayout(const Triple &TT) { // memory model used for graphics: PhysicalStorageBuffer64. But it shouldn't // mean anything. if (Arch == Triple::spirv32) -return "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-" -

[clang] [clang-tools-extra] [flang] [lld] [lldb] [llvm] [NFC] Rename Option parsing related files from OptXYZ -> OptionXYZ (PR #110692)

2024-10-01 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/110692 Rename option parsing related files from OptXYZ -> OptionXYZ, since Opt could be confused with optimization and Opt as a short hand for Option is not really that smaller to warrant its use. >From 7ee776230f113

[clang] clang should have a warning to disallow re-externs (PR #109714)

2024-10-01 Thread Jeffrey Crowell via cfe-commits
jchcrsp wrote: Ping https://github.com/llvm/llvm-project/pull/109714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][TableGen] Change OptionDoc Emitter to use const Record * (PR #110592)

2024-10-01 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul closed https://github.com/llvm/llvm-project/pull/110592 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] cea0988 - [Clang][TableGen] Change OptionDoc Emitter to use const Record * (#110592)

2024-10-01 Thread via cfe-commits
Author: Rahul Joshi Date: 2024-10-01T10:45:57-07:00 New Revision: cea09886c22f6f1b745a3d9e04494ae63e25cb8b URL: https://github.com/llvm/llvm-project/commit/cea09886c22f6f1b745a3d9e04494ae63e25cb8b DIFF: https://github.com/llvm/llvm-project/commit/cea09886c22f6f1b745a3d9e04494ae63e25cb8b.diff L

[clang] [llvm] [InstrPGO] Instrument sampling profile based cold function (PR #109837)

2024-10-01 Thread Lei Wang via cfe-commits
https://github.com/wlei-llvm ready_for_review https://github.com/llvm/llvm-project/pull/109837 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][TableGen] Change NeonEmitter to use const Record * (PR #110597)

2024-10-01 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul closed https://github.com/llvm/llvm-project/pull/110597 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e9dbdb2 - [Clang][TableGen] Change NeonEmitter to use const Record * (#110597)

2024-10-01 Thread via cfe-commits
Author: Rahul Joshi Date: 2024-10-01T10:47:09-07:00 New Revision: e9dbdb20f26c3a08849f22c4e2460bbaeba531c7 URL: https://github.com/llvm/llvm-project/commit/e9dbdb20f26c3a08849f22c4e2460bbaeba531c7 DIFF: https://github.com/llvm/llvm-project/commit/e9dbdb20f26c3a08849f22c4e2460bbaeba531c7.diff L

[clang] [clang-tools-extra] [lldb] [llvm] Propagate IsText parameter to openFileForRead function (PR #110661)

2024-10-01 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree updated https://github.com/llvm/llvm-project/pull/110661 >From b4bf7c601d2b790ea5e65f68cb1fa9375457b558 Mon Sep 17 00:00:00 2001 From: Abhina Sreeskantharajan Date: Mon, 9 Sep 2024 15:32:09 -0400 Subject: [PATCH] Propagate IsText parameter to openFileForRead funct

[clang] [clang][ExtractAPI] Generate subheading for typedef'd anonymous types (PR #110689)

2024-10-01 Thread via cfe-commits
https://github.com/QuietMisdreavus approved this pull request. https://github.com/llvm/llvm-project/pull/110689 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1d39b4f - [Clang][TableGen] Change SACheckersEmitter to use const Record * (#110596)

2024-10-01 Thread via cfe-commits
Author: Rahul Joshi Date: 2024-10-01T10:46:32-07:00 New Revision: 1d39b4f7175d8d75af6e3711dc7fa88a13df5af1 URL: https://github.com/llvm/llvm-project/commit/1d39b4f7175d8d75af6e3711dc7fa88a13df5af1 DIFF: https://github.com/llvm/llvm-project/commit/1d39b4f7175d8d75af6e3711dc7fa88a13df5af1.diff L

[clang] [llvm] [InstrPGO] Instrument sampling profile based cold function (PR #109837)

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Lei Wang (wlei-llvm) Changes This patch adds support for cold function coverage instrumentation based on sampling PGO counts. The major motivation is to detect dead functions for the services that are optimized with sampling PGO. If a fun

[clang] [Clang][TableGen] Change SACheckersEmitter to use const Record * (PR #110596)

2024-10-01 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul closed https://github.com/llvm/llvm-project/pull/110596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][clang] Add elementwise builtin for atan2 (p3) (PR #110187)

2024-10-01 Thread Tex Riddell via cfe-commits
@@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -emit-llvm-only -disable-llvm-passes -verify -DTEST_FUNC=__builtin_elementwise_atan2 +// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermode

[clang] 308c9a9 - [Clang][LLVM][AArch64] Add intrinsic for MOVT SME2 instruction (#97602)

2024-10-01 Thread via cfe-commits
Author: CarolineConcatto Date: 2024-10-01T10:11:32+01:00 New Revision: 308c9a9451aaf8673b2c2dca6f4de384a3a06f37 URL: https://github.com/llvm/llvm-project/commit/308c9a9451aaf8673b2c2dca6f4de384a3a06f37 DIFF: https://github.com/llvm/llvm-project/commit/308c9a9451aaf8673b2c2dca6f4de384a3a06f37.di

[clang] 74cfd20 - [clang][headers][x86] Reduce clang-format warnings when updating x86 headers

2024-10-01 Thread Simon Pilgrim via cfe-commits
Author: Simon Pilgrim Date: 2024-10-01T18:04:40+01:00 New Revision: 74cfd203c36d314e3a47c3e239776a1a90424531 URL: https://github.com/llvm/llvm-project/commit/74cfd203c36d314e3a47c3e239776a1a90424531 DIFF: https://github.com/llvm/llvm-project/commit/74cfd203c36d314e3a47c3e239776a1a90424531.diff

[clang] [HLSL] Make HLSLAttributedResourceType canonical and add code paths to convert HLSL types to DirectX target types (PR #110327)

2024-10-01 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/110327 >From 4f235c0e9c539cdaa2bab9a7f8228f33c0fea2b8 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Thu, 26 Sep 2024 14:34:16 -0700 Subject: [PATCH 1/4] Add codegen for existing resource types and make HLSLAttribut

[clang] [llvm] [InstrPGO] Instrument sampling profile based cold function (PR #109837)

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-pgo Author: Lei Wang (wlei-llvm) Changes This patch adds support for cold function coverage instrumentation based on sampling PGO counts. The major motivation is to detect dead functions for the services that are optimized with sampling PGO. If a funct

[clang] [HLSL] Array by-value assignment (PR #109323)

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

[clang] a86e966 - [TableGen] Change TableGenMain to use const RecordKeeper (#110578)

2024-10-01 Thread via cfe-commits
Author: Rahul Joshi Date: 2024-10-01T06:51:07-07:00 New Revision: a86e966a2017ae1934cb9681260207f557329bba URL: https://github.com/llvm/llvm-project/commit/a86e966a2017ae1934cb9681260207f557329bba DIFF: https://github.com/llvm/llvm-project/commit/a86e966a2017ae1934cb9681260207f557329bba.diff L

[clang] 8a8e7f3 - [clang][x86] Add constexpr support for all remaining BMI1 intrinsics (#110581)

2024-10-01 Thread via cfe-commits
Author: Simon Pilgrim Date: 2024-10-01T11:10:05+01:00 New Revision: 8a8e7f3e43861e9a36c8f39fc21a2f50a6ccc9b3 URL: https://github.com/llvm/llvm-project/commit/8a8e7f3e43861e9a36c8f39fc21a2f50a6ccc9b3 DIFF: https://github.com/llvm/llvm-project/commit/8a8e7f3e43861e9a36c8f39fc21a2f50a6ccc9b3.diff

[clang] [Clang][TableGen] Change SACheckersEmitter to use const Record * (PR #110596)

2024-10-01 Thread Rahul Joshi via cfe-commits
jurahul wrote: @kazutakahirata would appreciate if you can look at this smaller one as well. https://github.com/llvm/llvm-project/pull/110596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [libc] [llvm] [mlir] [TableGen] Change TableGenMain to use const RecordKeeper (PR #110578)

2024-10-01 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul closed https://github.com/llvm/llvm-project/pull/110578 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add cross builtins and cross HLSL function to DirectX and SPIR-V backend (PR #109180)

2024-10-01 Thread Joshua Batista via cfe-commits
@@ -74,6 +75,42 @@ static Value *expandAbs(CallInst *Orig) { "dx.max"); } +static Value *expandCrossIntrinsic(CallInst *Orig) { + + VectorType *VT = cast(Orig->getType()); + if (cast(VT)->getNumElements() != 3) +report_fatal_error(Twine("

[clang] d8df118 - [HLSL] Array by-value assignment (#109323)

2024-10-01 Thread via cfe-commits
Author: Sarah Spall Date: 2024-10-01T11:03:37-07:00 New Revision: d8df118545bf0aff3b03d923ca1aa205e7e74f43 URL: https://github.com/llvm/llvm-project/commit/d8df118545bf0aff3b03d923ca1aa205e7e74f43 DIFF: https://github.com/llvm/llvm-project/commit/d8df118545bf0aff3b03d923ca1aa205e7e74f43.diff L

[clang] [HLSL] Array by-value assignment (PR #109323)

2024-10-01 Thread Sarah Spall via cfe-commits
https://github.com/spall closed https://github.com/llvm/llvm-project/pull/109323 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc] [llvm] [mlir] [TableGen] Change `getValueAsListOfDefs` return const pointer vector (PR #110713)

2024-10-01 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul created https://github.com/llvm/llvm-project/pull/110713 Change `getValueAsListOfDefs` to return a vector of const Record pointer, and remove `getValueAsListOfConstDefs` that was added as a transition aid. >From a2025446594a0029033e2950d7bbd027f3860865 Mon Sep 17 00:

[clang] [llvm] [clang][llvm][SPIR-V] Explicitly encode native integer widths for SPIR-V (PR #110695)

2024-10-01 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx created https://github.com/llvm/llvm-project/pull/110695 SPIR-V doesn't currently encode "native" integer bit-widths in its datalayout(s). This is problematic as it leads to optimisation passes, such as InstCombine, getting ideas and e.g. shrinking to non byte-multip

[clang] [WIP][clang] Fix std::tm etc. mangling on Solaris (PR #106353)

2024-10-01 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: > just leads to infinite recursion (obviously), Try casting the pointer to uintptr_t? --- Might be simpler to mess with CXXNameMangler::mangleUnscopedName, though, which I think is where the St prefix is getting added. https://github.com/llvm/llvm-project/pull/106353

[clang] [llvm] [clang][llvm][SPIR-V] Explicitly encode native integer widths for SPIR-V (PR #110695)

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-spir-v Author: Alex Voicu (AlexVlx) Changes SPIR-V doesn't currently encode "native" integer bit-widths in its datalayout(s). This is problematic as it leads to optimisation passes, such as InstCombine, getting ideas and e.g. shrinking to non b

[clang] [llvm] [clang][llvm][SPIR-V] Explicitly encode native integer widths for SPIR-V (PR #110695)

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Alex Voicu (AlexVlx) Changes SPIR-V doesn't currently encode "native" integer bit-widths in its datalayout(s). This is problematic as it leads to optimisation passes, such as InstCombine, getting ideas and e.g. shrinking to non byte-multi

[clang] [Clang][TableGen] Change NeonEmitter to use const Record * (PR #110597)

2024-10-01 Thread Rahul Joshi via cfe-commits
@@ -1195,10 +1193,10 @@ void SVEEmitter::createIntrinsic( for (auto TS : TypeSpecs) { // Collate a list of range/option checks for the immediates. SmallVector ImmChecks; -for (auto *R : ImmCheckList) { - int64_t ArgIdx = R->getValueAsInt("ImmArgIdx"); -

[clang] [clang][RISC-V] fixed fp calling convention for fpcc eligible structs for risc-v (PR #110690)

2024-10-01 Thread Kamran Yousafzai via cfe-commits
https://github.com/KamranYousafzai edited https://github.com/llvm/llvm-project/pull/110690 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][TableGen] Change NeonEmitter to use const Record * (PR #110597)

2024-10-01 Thread Kazu Hirata via cfe-commits
@@ -1195,10 +1193,10 @@ void SVEEmitter::createIntrinsic( for (auto TS : TypeSpecs) { // Collate a list of range/option checks for the immediates. SmallVector ImmChecks; -for (auto *R : ImmCheckList) { - int64_t ArgIdx = R->getValueAsInt("ImmArgIdx"); -

[clang] [clang][CodeGen] Emit improved memory effects and return status for AsmStmt (PR #110510)

2024-10-01 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: > OK, so your position is that this patch should add a section in > LanguageExtensions that describes the assumptions that we make regarding the > effects of inline assembly, do I understand that correctly? Yes. Ideally, we'd also have more complete documentation about co

[clang] [llvm] [clang][llvm][SPIR-V] Explicitly encode native integer widths for SPIR-V (PR #110695)

2024-10-01 Thread Matt Arsenault via cfe-commits
@@ -54,14 +54,14 @@ static std::string computeDataLayout(const Triple &TT) { // memory model used for graphics: PhysicalStorageBuffer64. But it shouldn't // mean anything. if (Arch == Triple::spirv32) -return "e-p:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-" -

[clang] [llvm] [clang][llvm][SPIR-V] Explicitly encode native integer widths for SPIR-V (PR #110695)

2024-10-01 Thread Matt Arsenault via cfe-commits
@@ -1,56 +0,0 @@ -; This test aims to check ability to support "Arithmetic with Overflow" intrinsics arsenm wrote: Not sure what the problem is with this test, but it's already covered by another? https://github.com/llvm/llvm-project/pull/110695 _

[clang] [clang][x86] Add constexpr support for ADC/SBB + ADX intrinsics (PR #110668)

2024-10-01 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon updated https://github.com/llvm/llvm-project/pull/110668 >From cd62ac98f0df8db5f2458efc87e5d40b36ba8469 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Tue, 1 Oct 2024 14:22:49 +0100 Subject: [PATCH 1/2] [clang][x86] Add constexpr support for ADC/SBB + ADX intrins

[clang] [llvm] [IR] Allow fast math flags on calls with homogeneous FP struct types (PR #110506)

2024-10-01 Thread Benjamin Maxwell via cfe-commits
https://github.com/MacDue updated https://github.com/llvm/llvm-project/pull/110506 >From 328357f2300ebe55b8385c01f9c655f703933736 Mon Sep 17 00:00:00 2001 From: Benjamin Maxwell Date: Mon, 30 Sep 2024 11:07:45 + Subject: [PATCH 1/9] [IR] Allow fast math flags on calls with homogeneous FP s

[clang] [Clang][TableGen] Change Opcodes Emitter to use const Record * (PR #110588)

2024-10-01 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul closed https://github.com/llvm/llvm-project/pull/110588 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fe61dbf - [AMDGPU] Specify width and align for all AMDGPU builtin types. NFC. (#109656)

2024-10-01 Thread via cfe-commits
Author: Jay Foad Date: 2024-10-01T14:12:34+01:00 New Revision: fe61dbf1d3350d11ab975e45f805f3bfe885b8b7 URL: https://github.com/llvm/llvm-project/commit/fe61dbf1d3350d11ab975e45f805f3bfe885b8b7 DIFF: https://github.com/llvm/llvm-project/commit/fe61dbf1d3350d11ab975e45f805f3bfe885b8b7.diff LOG:

[clang] [llvm] [clang][llvm][SPIR-V] Explicitly encode native integer widths for SPIR-V (PR #110695)

2024-10-01 Thread Alex Voicu via cfe-commits
@@ -1,56 +0,0 @@ -; This test aims to check ability to support "Arithmetic with Overflow" intrinsics AlexVlx wrote: Right but it's relying on a non-guaranteed maybe-optimisation firing, as far as I can tell. https://github.com/llvm/llvm-project/pull/110695 ___

[clang] [Clang][TableGen] Change NeonEmitter to use const Record * (PR #110597)

2024-10-01 Thread Rahul Joshi via cfe-commits
@@ -1161,11 +1161,9 @@ void SVEEmitter::createIntrinsic( uint64_t Merge = R->getValueAsInt("Merge"); StringRef MergeSuffix = R->getValueAsString("MergeSuffix"); uint64_t MemEltType = R->getValueAsInt("MemEltType"); - std::vector FlagsList = R->getValueAsListOfDefs("Flags

[clang] [Clang][TableGen] Change NeonEmitter to use const Record * (PR #110597)

2024-10-01 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul updated https://github.com/llvm/llvm-project/pull/110597 >From 8887de9f0cd4fda51c4e1945fa40a4c1fc5775af Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Mon, 30 Sep 2024 15:55:03 -0700 Subject: [PATCH] [Clang][TableGen] Change NeonEmitter to use const Record * --- c

[clang] [Clang][TableGen] Change NeonEmitter to use const Record * (PR #110597)

2024-10-01 Thread Kazu Hirata via cfe-commits
@@ -1161,11 +1161,9 @@ void SVEEmitter::createIntrinsic( uint64_t Merge = R->getValueAsInt("Merge"); StringRef MergeSuffix = R->getValueAsString("MergeSuffix"); uint64_t MemEltType = R->getValueAsInt("MemEltType"); - std::vector FlagsList = R->getValueAsListOfDefs("Flags

[clang] [llvm] [IR] Allow fast math flags on calls with homogeneous FP struct types (PR #110506)

2024-10-01 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/110506 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AArch64][SVE] Fix definition of bfloat fcvt intrinsics. (PR #110281)

2024-10-01 Thread Paul Walker via cfe-commits
@@ -5553,6 +5553,14 @@ static SDValue getSVEPredicateBitCast(EVT VT, SDValue Op, SelectionDAG &DAG) { if (InVT == VT) return Op; + // Look through casts to when their input has more lanes than paulwalker-arm wrote: I knew something was odd when I was

[clang] [llvm] [AArch64][SVE] Fix definition of bfloat fcvt intrinsics. (PR #110281)

2024-10-01 Thread Paul Walker via cfe-commits
@@ -5553,6 +5553,14 @@ static SDValue getSVEPredicateBitCast(EVT VT, SDValue Op, SelectionDAG &DAG) { if (InVT == VT) return Op; + // Look through casts to when their input has more lanes than + // VT. This will increase the chances of removing casts that introduce n

[clang] [Clang] Add __builtin_(elementwise|reduce)_(max|min)imum (PR #110198)

2024-10-01 Thread Francis Visoiu Mistrih via cfe-commits
https://github.com/francisvm updated https://github.com/llvm/llvm-project/pull/110198 >From af6d6b8f84b4972f6063e195a39eb7e6a29d30ea Mon Sep 17 00:00:00 2001 From: Francis Visoiu Mistrih Date: Thu, 26 Sep 2024 18:05:09 -0700 Subject: [PATCH] [Clang] Add __builtin_elementwise|reduce_max|minimum

[clang] [clang][RISC-V] fixed fp calling convention for fpcc eligible structs for risc-v (PR #110690)

2024-10-01 Thread Craig Topper via cfe-commits
@@ -251,6 +253,15 @@ bool RISCVABIInfo::detectFPCCEligibleStructHelper(QualType Ty, CharUnits CurOff, // bitwidth is XLen or less. if (getContext().getTypeSize(QTy) > XLen && BitWidth <= XLen) QTy = getContext().getIntTypeForBitwidth(XLen, false); +

[clang] [clang][RISC-V] fixed fp calling convention for fpcc eligible structs for risc-v (PR #110690)

2024-10-01 Thread Craig Topper via cfe-commits
@@ -251,6 +253,15 @@ bool RISCVABIInfo::detectFPCCEligibleStructHelper(QualType Ty, CharUnits CurOff, // bitwidth is XLen or less. if (getContext().getTypeSize(QTy) > XLen && BitWidth <= XLen) QTy = getContext().getIntTypeForBitwidth(XLen, false); +

[clang] [llvm] workflows/release-binaries: Use static ZSTD on macOS (PR #109909)

2024-10-01 Thread Tom Stellard via cfe-commits
tstellar wrote: @keith Yes, this change needs to be in the release branch or it won't take effect. https://github.com/llvm/llvm-project/pull/109909 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] 748f540 - workflows/release-binaries: Use static ZSTD on macOS (#109909)

2024-10-01 Thread via cfe-commits
Author: Keith Smiley Date: 2024-10-01T10:02:20-07:00 New Revision: 748f5404ccdf28d4beef37efdaeba7a1701ab425 URL: https://github.com/llvm/llvm-project/commit/748f5404ccdf28d4beef37efdaeba7a1701ab425 DIFF: https://github.com/llvm/llvm-project/commit/748f5404ccdf28d4beef37efdaeba7a1701ab425.diff

[clang] [llvm] workflows/release-binaries: Use static ZSTD on macOS (PR #109909)

2024-10-01 Thread Keith Smiley via cfe-commits
keith wrote: https://github.com/llvm/llvm-project/pull/110701 https://github.com/llvm/llvm-project/pull/109909 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][TableGen] Change NeonEmitter to use const Record * (PR #110597)

2024-10-01 Thread Rahul Joshi via cfe-commits
jurahul wrote: Thanks! https://github.com/llvm/llvm-project/pull/110597 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][TableGen] Change OptionDoc Emitter to use const Record * (PR #110592)

2024-10-01 Thread Rahul Joshi via cfe-commits
jurahul wrote: @kazutakahirata would appreciate if you can look at this smaller one as well. https://github.com/llvm/llvm-project/pull/110592 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-co

[clang] [flang] [llvm] [openmp] [flang][driver] rename flang-new to flang (PR #110023)

2024-10-01 Thread Valentin Clement バレンタイン クレメン via cfe-commits
clementval wrote: > > Could you add an experimental message ("The openmp support in Flang is > > experimental") when compiling with OpenMP? The warning can be in the Driver > > code that forwards the `-fopenmp` flag to the driver. > > Hm. I'm not yet fully convinced that we should be doing thi

[clang] [llvm] Add cross builtins and cross HLSL function to DirectX and SPIR-V backend (PR #109180)

2024-10-01 Thread Joshua Batista via cfe-commits
@@ -1828,6 +1828,41 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) { return true; break; } + case Builtin::BI__builtin_hlsl_cross: { +if (SemaRef.checkArgCount(TheCall, 2)) + return true; +if (CheckVectorElementCallA

[clang] [Clang][TableGen] Change SACheckersEmitter to use const Record * (PR #110596)

2024-10-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata approved this pull request. LGTM. Thanks! https://github.com/llvm/llvm-project/pull/110596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add cross builtins and cross HLSL function to DirectX and SPIR-V backend (PR #109180)

2024-10-01 Thread Joshua Batista via cfe-commits
@@ -4709,6 +4709,18 @@ def HLSLClamp : LangBuiltin<"HLSL_LANG"> { let Prototype = "void(...)"; } +def HLSLCreateHandle : LangBuiltin<"HLSL_LANG"> { + let Spellings = ["__builtin_hlsl_create_handle"]; + let Attributes = [NoThrow, Const]; + let Prototype = "void*(unsigned c

[clang] [llvm] workflows/release-binaries: Use static ZSTD on macOS (PR #109909)

2024-10-01 Thread Keith Smiley via cfe-commits
https://github.com/keith closed https://github.com/llvm/llvm-project/pull/109909 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] workflows/release-binaries: Use static ZSTD on macOS (PR #109909)

2024-10-01 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `clang` at step 3 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/6757 Here is the relevant piece of the build log for

[clang] [clang][x86] Add constexpr support for ADC/SBB + ADX intrinsics (PR #110668)

2024-10-01 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon created https://github.com/llvm/llvm-project/pull/110668 ADC and ADX use the same internal intrinsics - for testing I've taken a same approach as the generic builtin overfloaw tests, putting the intrinsics in a constexpr test wrapper and comparing the carry/result va

[clang] [Clang][TableGen] Change NeonEmitter to use const Record * (PR #110597)

2024-10-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata approved this pull request. LGTM. Thanks! https://github.com/llvm/llvm-project/pull/110597 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] workflows/release-binaries: Use static ZSTD on macOS (PR #109909)

2024-10-01 Thread Keith Smiley via cfe-commits
keith wrote: should I cherry pick this for future releases? https://github.com/llvm/llvm-project/pull/109909 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISC-V] fixed fp calling convention for fpcc eligible structs for risc-v (PR #110690)

2024-10-01 Thread Craig Topper via cfe-commits
@@ -251,6 +253,15 @@ bool RISCVABIInfo::detectFPCCEligibleStructHelper(QualType Ty, CharUnits CurOff, // bitwidth is XLen or less. if (getContext().getTypeSize(QTy) > XLen && BitWidth <= XLen) QTy = getContext().getIntTypeForBitwidth(XLen, false); +

[clang] [Clang][TableGen] Change OptionDoc Emitter to use const Record * (PR #110592)

2024-10-01 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata approved this pull request. LGTM. Thanks! https://github.com/llvm/llvm-project/pull/110592 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExtractAPI] Generate subheading for typedef'd anonymous types (PR #110689)

2024-10-01 Thread via cfe-commits
@@ -1621,6 +1621,9 @@ DeclarationFragmentsBuilder::getSubHeading(const NamedDecl *Decl) { cast(Decl)->isOverloadedOperator()) { Fragments.append(Decl->getNameAsString(), DeclarationFragments::FragmentKind::Identifier); + } else if (dyn_ca

[clang] [Clang][CodeGen] Emit load of GEP after EmitMemberExpr (PR #110487)

2024-10-01 Thread Jan Hendrik Farr via cfe-commits
@@ -1160,23 +1162,10 @@ llvm::Value *CodeGenFunction::EmitLoadOfCountedByField( if (!StructBase || StructBase->HasSideEffects(getContext())) return nullptr; - llvm::Value *Res = nullptr; - if (const auto *DRE = dyn_cast(StructBase)) { -Res = EmitDeclRefLValue(DRE).

[clang] [clang-tools-extra] [clang-tidy] add `ctime` and `localtime` to `clang-tidy` (PR #110366)

2024-10-01 Thread Зишан Мирза via cfe-commits
https://github.com/zimirza updated https://github.com/llvm/llvm-project/pull/110366 From 4fb69942effb3cf34d07f33a14a95757b6ca5ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B8=D1=88=D0=B0=D0=BD=20=D0=9C=D0=B8=D1=80=D0=B7?= =?UTF-8?q?=D0=B0?= Date: Sat, 28 Sep 2024 17:05:42 +0200 Subjec

[clang] [HLSL] Array by-value assignment (PR #109323)

2024-10-01 Thread Chris B via cfe-commits
https://github.com/llvm-beanz approved this pull request. https://github.com/llvm/llvm-project/pull/109323 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Finish implementation of P0522 (PR #96023)

2024-10-01 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/96023 >From b29e3d3285a414df74a75404c6fe4a39f4a0725d Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Mon, 17 Jun 2024 21:39:08 -0300 Subject: [PATCH 1/2] [clang] Finish implementation of P0522 This finishes the

[clang] [clang-tools-extra] [clang-tidy] add `ctime` and `localtime` to `clang-tidy` (PR #110366)

2024-10-01 Thread Зишан Мирза via cfe-commits
https://github.com/zimirza updated https://github.com/llvm/llvm-project/pull/110366 From 4fb69942effb3cf34d07f33a14a95757b6ca5ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=97=D0=B8=D1=88=D0=B0=D0=BD=20=D0=9C=D0=B8=D1=80=D0=B7?= =?UTF-8?q?=D0=B0?= Date: Sat, 28 Sep 2024 17:05:42 +0200 Subjec

[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)

2024-10-01 Thread via cfe-commits
https://github.com/higher-performance updated https://github.com/llvm/llvm-project/pull/102040 >From 7ea9d3dbb6ff74ca3f7f9b9a0c589e4a0a3366f2 Mon Sep 17 00:00:00 2001 From: higher-performance Date: Mon, 5 Aug 2024 15:04:19 -0400 Subject: [PATCH 1/2] Add Clang attribute to ensure that fields are

[clang] [llvm] [InstrPGO] Instrument sampling profile based cold function (PR #109837)

2024-10-01 Thread Mircea Trofin via cfe-commits
@@ -319,6 +319,18 @@ static cl::opt PGOFunctionCriticalEdgeThreshold( cl::desc("Do not instrument functions with the number of critical edges " " greater than this threshold.")); +cl::opt InstrumentColdFunctionCoverage( +"instrument-cold-function-coverage"

[clang] [llvm] [InstrPGO] Instrument sampling profile based cold function (PR #109837)

2024-10-01 Thread Mircea Trofin via cfe-commits
@@ -1784,6 +1784,12 @@ defm debug_info_for_profiling : BoolFOption<"debug-info-for-profiling", PosFlag, NegFlag>; +def fprofile_generate_cold_function_coverage : Flag<["-"], "fprofile-generate-cold-function-coverage">, mtrofin wrote: Is it necessary to e

[clang] [llvm] [CloneFunction][DebugInfo] Avoid cloning DILocalVariables of inlined functions (PR #75385)

2024-10-01 Thread Jeremy Morse via cfe-commits
jmorse wrote: [This keeps on slipping to the back of my TODO list,] I've been enlightened by the comments on #68929 about ODR rules, and that there isn't a violation in the example; it does at least exercise the code path of interest, my summary of which is that the ODR-uniquing of types is ha

[libcxx] [libcxxabi] [libunwind] [libc++abi][libunwind] Run c++abi and unwind tests against a fake install root (PR #110171)

2024-10-01 Thread via cfe-commits
zeroomega wrote: We are seeing a test failure on linux-x64 runtime after this patch landed. Error message: ``` [245/246](1) Running runtimes regression tests llvm-lit: /b/s/w/ir/x/w/llvm-llvm-project/llvm/utils/lit/lit/TestingConfig.py:154: fatal: unable to parse config file '/b/s/w/ir/x/w/ll

[clang] [Clang] Emit a diagnostic note at the class declaration when the method definition does not match any declaration. (PR #110638)

2024-10-01 Thread via cfe-commits
@@ -108,6 +108,7 @@ namespace MultilevelSpecialization { template<> template void B::f(int i, int (&arr1)[a], int (&arr2)[b]) {} // since-cxx11-error@-1 {{out-of-line definition of 'f' does not match any declaration in 'cwg2233::MultilevelSpecialization::B'}} +//

[clang] [Clang][TableGen] Change ClangDiagnosticEmitter to use const Record * (PR #110585)

2024-10-01 Thread Rahul Joshi via cfe-commits
https://github.com/jurahul closed https://github.com/llvm/llvm-project/pull/110585 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 52e7c69 - [Clang][TableGen] Change ClangDiagnosticEmitter to use const Record * (#110585)

2024-10-01 Thread via cfe-commits
Author: Rahul Joshi Date: 2024-10-01T06:52:20-07:00 New Revision: 52e7c699a5a0cbc157773cd1790a669d14d681cf URL: https://github.com/llvm/llvm-project/commit/52e7c699a5a0cbc157773cd1790a669d14d681cf DIFF: https://github.com/llvm/llvm-project/commit/52e7c699a5a0cbc157773cd1790a669d14d681cf.diff L

[clang-tools-extra] [llvm] [clangd] Add CodeAction to swap operands to binary operators (PR #78999)

2024-10-01 Thread Tor Shepherd via cfe-commits
torshepherd wrote: @5chmidti this should be ready for merge https://github.com/llvm/llvm-project/pull/78999 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][x86] Add constexpr support for MULX intrinsics (PR #110654)

2024-10-01 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon closed https://github.com/llvm/llvm-project/pull/110654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [AMDGPU] Specify width and align for all AMDGPU builtin types. NFC. (PR #109656)

2024-10-01 Thread Jay Foad via cfe-commits
https://github.com/jayfoad closed https://github.com/llvm/llvm-project/pull/109656 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [clang][RecordLayoutBuilder] Be stricter about inferring packed-ness in ExternalLayouts (PR #97443)

2024-10-01 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/97443 >From 3a718c75d0458b7aece72f2ba8e5aa5a68815237 Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Tue, 2 Jul 2024 18:43:34 +0200 Subject: [PATCH] [clang][RecordLayoutBuilder] Be stricter about inferring packed

[clang] Handle variable templates in `isInstantiated` and `isInTemplateInstantiation` matchers (PR #110666)

2024-10-01 Thread Fred Tingaud via cfe-commits
https://github.com/frederic-tingaud-sonarsource created https://github.com/llvm/llvm-project/pull/110666 Fix `isInstantiated` and `isInTemplateInstantiation` matchers, so they return true for instantiations of variable templates, and any declaration in statements contained in such instantiati

[clang] Handle variable templates in `isInstantiated` and `isInTemplateInstantiation` matchers (PR #110666)

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Fred Tingaud (frederic-tingaud-sonarsource) Changes Fix `isInstantiated` and `isInTemplateInstantiation` matchers, so they return true for instantiations of variable templates, and any declaration in statements contained in such instanti

[clang] [analyzer] Suppress out of bounds reports after weak loop assumptions (PR #109804)

2024-10-01 Thread Donát Nagy via cfe-commits
@@ -194,3 +199,99 @@ char test_comparison_with_extent_symbol(struct incomplete *p) { return ((char *)p)[-1]; // no-warning } +// WeakLoopAssumption suppression +/// + +int GlobalArray[100]; +int loop_suppre

[clang] [clang] WIP: Warn on mismatched RequiresCapability attributes (PR #67520)

2024-10-01 Thread Aaron Puchert via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: @@ -5794,6 +5794,30 @@ static void handleRequiresCapabilityAttr(Sema &S, Decl *D, RequiresCapabilityAttr(S.Context, AL, Args.data(), Args.size()); D->addAttr(RCA); + + if (const auto *FD = dy

[clang] 257707b - [Clang][NFC] Add a test for CWG 2913 (#110614)

2024-10-01 Thread via cfe-commits
Author: Younan Zhang Date: 2024-10-01T15:47:39+08:00 New Revision: 257707b45332a8d4f30df317753cece76eca7795 URL: https://github.com/llvm/llvm-project/commit/257707b45332a8d4f30df317753cece76eca7795 DIFF: https://github.com/llvm/llvm-project/commit/257707b45332a8d4f30df317753cece76eca7795.diff

[clang] 97da34e - [OpenACC] Add 'collapse' clause AST/basic Sema implementation (#109461)

2024-10-01 Thread via cfe-commits
Author: Erich Keane Date: 2024-10-01T06:40:21-07:00 New Revision: 97da34e0157d928e3cd0e9722b40ccf0d5769b5b URL: https://github.com/llvm/llvm-project/commit/97da34e0157d928e3cd0e9722b40ccf0d5769b5b DIFF: https://github.com/llvm/llvm-project/commit/97da34e0157d928e3cd0e9722b40ccf0d5769b5b.diff L

[clang] [clang-tools-extra] [lldb] [llvm] Propagate IsText parameter to openFileForRead function (PR #110661)

2024-10-01 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet requested changes to this pull request. sorry this is same as https://github.com/llvm/llvm-project/pull/107906 (with a bigger impact radius, as you're also changing getBufferForFile) and doesn't address any of the issues mention about explaining the semantics of `IsT

[clang] [OpenACC] Add 'collapse' clause AST/basic Sema implementation (PR #109461)

2024-10-01 Thread Erich Keane via cfe-commits
https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/109461 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Implement ia32_{pdep, pext} builtins (PR #110675)

2024-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/110675.diff 1 Files Affected: - (modified) clang/lib/AST/ByteCode/InterpBuiltin.cpp (+54) ``diff diff --git a/clang/lib/AST/ByteCode/Int

[clang] [clang-tools-extra] [lldb] [llvm] Propagate IsText parameter to openFileForRead function (PR #110661)

2024-10-01 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree edited https://github.com/llvm/llvm-project/pull/110661 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2e559c3 - [NFC] Correct the misuse of the API in the Clang test-report script (#108725)

2024-10-01 Thread via cfe-commits
Author: c8ef Date: 2024-10-01T14:52:14+02:00 New Revision: 2e559c3dceef94bcab7a112cc5e6600837851dab URL: https://github.com/llvm/llvm-project/commit/2e559c3dceef94bcab7a112cc5e6600837851dab DIFF: https://github.com/llvm/llvm-project/commit/2e559c3dceef94bcab7a112cc5e6600837851dab.diff LOG: [NF

[clang] [clang][ExtractAPI] Generate subheading for typedef'd anonymous types (PR #110689)

2024-10-01 Thread Daniel Grumberg via cfe-commits
https://github.com/daniel-grumberg created https://github.com/llvm/llvm-project/pull/110689 When an anonymous type has a typedef we normally use the typedef's name in places where we expect a named identifier in the symbol graph. This extends this logic to apply to subheadings. rdar://1366906

[clang] [clang][x86] Add constexpr support for MULX intrinsics (PR #110654)

2024-10-01 Thread Phoebe Wang via cfe-commits
@@ -86,5 +98,17 @@ char pext64_0[_pext_u64(0x0123456789ABCDEFULL, 0xULL) == 0x0 char pext64_1[_pext_u64(0x0123456789ABCDEFULL, 0x00F0ULL) == 0x000EULL ? 1 : -1]; char pext64_2[_pext_u64(0x0123456789ABCDEFULL, 0xF0F0F0F0ULL) =

[clang] 271dc4a - [clang][x86] Add constexpr support for PDEP/PEXT intrinsics (#110535)

2024-10-01 Thread via cfe-commits
Author: Simon Pilgrim Date: 2024-10-01T10:35:20+01:00 New Revision: 271dc4a3aa07554f0dd4db0b1cddf03007761bd1 URL: https://github.com/llvm/llvm-project/commit/271dc4a3aa07554f0dd4db0b1cddf03007761bd1 DIFF: https://github.com/llvm/llvm-project/commit/271dc4a3aa07554f0dd4db0b1cddf03007761bd1.diff

[clang] [clang][x86] Add constexpr support for MULX intrinsics (PR #110654)

2024-10-01 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang edited https://github.com/llvm/llvm-project/pull/110654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   5   >