[clang] [compiler-rt] [llvm] [AArch64][FMV] Support feature MOPS in Function Multi Versioning. (PR #78788)

2024-01-22 Thread Alexandros Lamprineas via cfe-commits
@@ -172,6 +172,11 @@ static void __init_cpu_features_constructor(unsigned long hwcap, // ID_AA64ISAR1_EL1.LS64 >= 0b0011 if (extractBits(ftr, 60, 4) >= 0x3) setCPUFeature(FEAT_LS64_ACCDATA); + labrinea wrote: Done

[clang] [compiler-rt] [llvm] [AArch64][FMV] Support feature MOPS in Function Multi Versioning. (PR #78788)

2024-01-22 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea updated https://github.com/llvm/llvm-project/pull/78788 >From 3c696fa3c4f5459ace01faffab0eb028f3b6f4eb Mon Sep 17 00:00:00 2001 From: Alexandros Lamprineas Date: Fri, 19 Jan 2024 21:07:46 + Subject: [PATCH] [AArch64][FMV] Support feature MOPS in Function Multi

[clang] [clang-tools-extra] [libc] [flang] [compiler-rt] [llvm] [AArch64] Combine store (trunc X to <3 x i8>) to sequence of ST1.b. (PR #78637)

2024-01-22 Thread Florian Hahn via cfe-commits
https://github.com/fhahn updated https://github.com/llvm/llvm-project/pull/78637 >From efd07e93aed51049ad3783c701284617ae446330 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Wed, 17 Jan 2024 11:11:59 + Subject: [PATCH 1/2] [AArch64] Combine store (trunc X to <3 x i8>) to sequence of

[clang] [clang-tools-extra] [libc] [flang] [compiler-rt] [llvm] [AArch64] Add custom lowering for load <3 x i8>. (PR #78632)

2024-01-22 Thread Florian Hahn via cfe-commits
https://github.com/fhahn updated https://github.com/llvm/llvm-project/pull/78632 >From a786cdedc2c9a9898cd0b80d84f5b11aace5da1c Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Tue, 28 Nov 2023 15:44:02 + Subject: [PATCH 1/2] [AArch64] Add custom lowering for load <3 x i8>. Add custom

[clang] [clang][Sema] Add checks for validity of default ctor's class (PR #78898)

2024-01-22 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: > So, there is no way to consistently check on all platforms that we didn't > crash when an error diagnostic was issued (does clang return non-zero when > there is error diagnostic?), is that a right understanding? Yes. On Linux and Windows `1` is returned if error diagnostic

[clang] [clang-format] Don't confuse initializer equal signs in for loops (PR #77712)

2024-01-22 Thread Emilia Kond via cfe-commits
https://github.com/rymiel closed https://github.com/llvm/llvm-project/pull/77712 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fa6025e - [clang-format] Don't confuse initializer equal signs in for loops (#77712)

2024-01-22 Thread via cfe-commits
Author: Emilia Kond Date: 2024-01-22T14:57:37+02:00 New Revision: fa6025e25b5754e8cf39169e3a7085b57ea35de5 URL: https://github.com/llvm/llvm-project/commit/fa6025e25b5754e8cf39169e3a7085b57ea35de5 DIFF: https://github.com/llvm/llvm-project/commit/fa6025e25b5754e8cf39169e3a7085b57ea35de5.diff

[clang] [clang-format] Allow decltype in requires clause (PR #78847)

2024-01-22 Thread Emilia Kond via cfe-commits
@@ -1071,6 +1071,16 @@ TEST_F(TokenAnnotatorTest, UnderstandsRequiresClausesAndConcepts) { "concept C = (!Foo) && Bar;"); rymiel wrote: 88d1de5ec64210686d93a90529583505635d257d https://github.com/llvm/llvm-project/pull/78847

[clang] [clang-repl] Fix PLT offset too large linker error on ARM (PR #78959)

2024-01-22 Thread Stefan Gränitz via cfe-commits
https://github.com/weliveindetail closed https://github.com/llvm/llvm-project/pull/78959 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4821c90 - [clang-repl] Fix PLT offset too large linker error on ARM (#78959)

2024-01-22 Thread via cfe-commits
Author: Stefan Gränitz Date: 2024-01-22T13:56:44+01:00 New Revision: 4821c90c24d52d4a42990fd9371caedb157bc58b URL: https://github.com/llvm/llvm-project/commit/4821c90c24d52d4a42990fd9371caedb157bc58b DIFF:

[clang] [clang-repl] Fix PLT offset too large linker error on ARM (PR #78959)

2024-01-22 Thread Stefan Gränitz via cfe-commits
weliveindetail wrote: Thank for the quick review! Toolchain files seem to set a lowercase string sometimes, so I added a case-conversion. https://github.com/llvm/llvm-project/pull/78959 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] 88d1de5 - [clang-format][NFC] Unify token size tests to use ASSERT_EQ

2024-01-22 Thread Emilia Kond via cfe-commits
Author: Emilia Kond Date: 2024-01-22T14:53:47+02:00 New Revision: 88d1de5ec64210686d93a90529583505635d257d URL: https://github.com/llvm/llvm-project/commit/88d1de5ec64210686d93a90529583505635d257d DIFF: https://github.com/llvm/llvm-project/commit/88d1de5ec64210686d93a90529583505635d257d.diff

[clang-tools-extra] [llvm] [clang] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

2024-01-22 Thread Florian Hahn via cfe-commits
https://github.com/fhahn updated https://github.com/llvm/llvm-project/pull/78113 >From 36b085f21b76d7bf7c9965a86a09d1cef4fe9329 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Sun, 14 Jan 2024 14:13:08 + Subject: [PATCH 1/4] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation.

[clang] [clang-repl] Fix PLT offset too large linker error on ARM (PR #78959)

2024-01-22 Thread Stefan Gränitz via cfe-commits
https://github.com/weliveindetail updated https://github.com/llvm/llvm-project/pull/78959 From 0449f8fc14a703aae515db1696bbbee578914629 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Gr=C3=A4nitz?= Date: Sat, 20 Jan 2024 11:13:45 +0100 Subject: [PATCH 1/2] [clang-repl] Fix linker error on

[clang-tools-extra] [llvm] [clang] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

2024-01-22 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 30d6806a08f8f453d6389bdfeae4c32e937a9821 9331a454be3ca943244ddd02c934192eda98ec39 --

[clang-tools-extra] [llvm] [clang] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

2024-01-22 Thread Florian Hahn via cfe-commits
@@ -1469,6 +1465,47 @@ void VPReplicateRecipe::print(raw_ostream , const Twine , } #endif +Value *VPScalarCastRecipe ::generate(VPTransformState , unsigned Part) { + assert(vputils::onlyFirstLaneUsed(this) && + "Codegen only implemented for first lane only.");

[llvm] [clang-tools-extra] [clang] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

2024-01-22 Thread Florian Hahn via cfe-commits
@@ -1117,13 +1119,7 @@ void VPScalarIVStepsRecipe::execute(VPTransformState ) { // Ensure step has the same type as that of scalar IV. Type *BaseIVTy = BaseIV->getType()->getScalarType(); - if (BaseIVTy != Step->getType()) { -// TODO: Also use VPDerivedIVRecipe when

[llvm] [clang] [clang-tools-extra] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

2024-01-22 Thread Florian Hahn via cfe-commits
@@ -362,6 +362,7 @@ class VPDef { // START: Phi-like recipes. Need to be kept together. VPBlendSC, VPPredInstPHISC, +VPScalarCastSC, fhahn wrote: Moved, thanks! https://github.com/llvm/llvm-project/pull/78113

[clang-tools-extra] [clang] [llvm] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

2024-01-22 Thread Florian Hahn via cfe-commits
@@ -1469,6 +1465,47 @@ void VPReplicateRecipe::print(raw_ostream , const Twine , } #endif +Value *VPScalarCastRecipe ::generate(VPTransformState , unsigned Part) { + assert(vputils::onlyFirstLaneUsed(this) && + "Codegen only implemented for first lane only."); +

[clang] [clang-tools-extra] [llvm] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

2024-01-22 Thread Florian Hahn via cfe-commits
@@ -164,6 +164,8 @@ bool VPRecipeBase::mayHaveSideEffects() const { auto *R = cast(this); return R->getUnderlyingInstr()->mayHaveSideEffects(); } + case VPScalarCastSC: +return false; fhahn wrote: moved, thanks!

[clang] [llvm] [clang-tools-extra] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

2024-01-22 Thread Florian Hahn via cfe-commits
@@ -1338,6 +1339,34 @@ class VPWidenCastRecipe : public VPRecipeWithIRFlags { Type *getResultType() const { return ResultTy; } }; +/// VPScalarCastRecipe is a recipe o create scalar cast instructions. +class VPScalarCastRecipe : public VPRecipeBase, public VPValue { + ///

[clang] [clang-tools-extra] [llvm] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

2024-01-22 Thread Florian Hahn via cfe-commits
@@ -1469,6 +1465,47 @@ void VPReplicateRecipe::print(raw_ostream , const Twine , } #endif +Value *VPScalarCastRecipe ::generate(VPTransformState , unsigned Part) { + assert(vputils::onlyFirstLaneUsed(this) && + "Codegen only implemented for first lane only.");

[llvm] [clang-tools-extra] [clang] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

2024-01-22 Thread Florian Hahn via cfe-commits
@@ -504,6 +504,15 @@ static VPValue *createScalarIVSteps(VPlan , const InductionDescriptor , HeaderVPBB->insert(BaseIV->getDefiningRecipe(), IP); } + VPTypeAnalysis TypeInfo(SE.getContext()); + if (TypeInfo.inferScalarType(BaseIV) != TypeInfo.inferScalarType(Step)) {

[clang] [clang-tools-extra] [llvm] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

2024-01-22 Thread Florian Hahn via cfe-commits
@@ -1338,6 +1339,34 @@ class VPWidenCastRecipe : public VPRecipeWithIRFlags { Type *getResultType() const { return ResultTy; } }; +/// VPScalarCastRecipe is a recipe o create scalar cast instructions. fhahn wrote: Fixed, thanks!

[clang] [clang-tools-extra] [llvm] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

2024-01-22 Thread Florian Hahn via cfe-commits
@@ -1338,6 +1339,34 @@ class VPWidenCastRecipe : public VPRecipeWithIRFlags { Type *getResultType() const { return ResultTy; } }; +/// VPScalarCastRecipe is a recipe o create scalar cast instructions. +class VPScalarCastRecipe : public VPRecipeBase, public VPValue { + ///

[clang] [clang-tools-extra] [llvm] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

2024-01-22 Thread Florian Hahn via cfe-commits
@@ -230,7 +230,11 @@ Type *VPTypeAnalysis::inferScalarType(const VPValue *V) { return V->getUnderlyingValue()->getType(); }) .Case( - [](const VPWidenCastRecipe *R) { return R->getResultType(); }); + [](const

[llvm] [clang] [clang-tools-extra] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

2024-01-22 Thread Florian Hahn via cfe-commits
@@ -1338,6 +1339,34 @@ class VPWidenCastRecipe : public VPRecipeWithIRFlags { Type *getResultType() const { return ResultTy; } }; +/// VPScalarCastRecipe is a recipe o create scalar cast instructions. +class VPScalarCastRecipe : public VPRecipeBase, public VPValue {

[clang] [clang-tools-extra] [llvm] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

2024-01-22 Thread Florian Hahn via cfe-commits
@@ -1338,6 +1339,34 @@ class VPWidenCastRecipe : public VPRecipeWithIRFlags { Type *getResultType() const { return ResultTy; } }; +/// VPScalarCastRecipe is a recipe o create scalar cast instructions. +class VPScalarCastRecipe : public VPRecipeBase, public VPValue { + ///

[clang] [clang-tools-extra] [llvm] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation. (PR #78113)

2024-01-22 Thread Florian Hahn via cfe-commits
https://github.com/fhahn updated https://github.com/llvm/llvm-project/pull/78113 >From 36b085f21b76d7bf7c9965a86a09d1cef4fe9329 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Sun, 14 Jan 2024 14:13:08 + Subject: [PATCH 1/3] [VPlan] Add new VPUniformPerUFRecipe, use for step truncation.

[clang] [clang-format] Support of TableGen statements in unwrapped line parser (PR #78846)

2024-01-22 Thread Hirofumi Nakamura via cfe-commits
hnakamura5 wrote: Thank you very much! > how small the diff is Maybe it is by TableGen's simple syntax, and that here we are parsing only the structure of the statements. (e.g. ignoring the `` part of `if` now). https://github.com/llvm/llvm-project/pull/78846

[clang] [Sema] Add `-fvisibility-global-new-delete=` option (PR #75364)

2024-01-22 Thread via cfe-commits
bd1976bris wrote: > > I rebased the changes onto the latest main to resolve the merge conflicts - > > these were just textual not semantic. > > You may like getcord/spr :) > https://maskray.me/blog/2023-09-09-reflections-on-llvm-switch-to-github-pull-requests#my-workflow Thanks for the link

[clang] [clang-format] Allow decltype in requires clause (PR #78847)

2024-01-22 Thread Emilia Kond via cfe-commits
https://github.com/rymiel updated https://github.com/llvm/llvm-project/pull/78847 >From 79ebbdc60cfa0635c9d889823a8b37710d9a4fb5 Mon Sep 17 00:00:00 2001 From: Emilia Kond Date: Sat, 20 Jan 2024 15:44:16 +0200 Subject: [PATCH 1/3] [clang-format] Allow decltype in requires clause If

[clang] [Coverage] Map regions from system headers (PR #76950)

2024-01-22 Thread via cfe-commits
https://github.com/ManuelvOK updated https://github.com/llvm/llvm-project/pull/76950 >From 1762695354c172bb35b97017b2706d8d476121e1 Mon Sep 17 00:00:00 2001 From: Manuel Kalettka Date: Wed, 3 Jan 2024 16:59:00 +0100 Subject: [PATCH] [Coverage] Map regions from system headers In 2155195, the

[libcxx] [lld] [libc] [lldb] [clang] [flang] [compiler-rt] [clang-tools-extra] [llvm] [AMDGPU][GFX12] VOP encoding and codegen - add support for v_cvt fp8/… (PR #78414)

2024-01-22 Thread Ivan Kosarev via cfe-commits
@@ -626,11 +629,82 @@ class Cvt_PK_F32_F8_Pat; -foreach Index = [0, -1] in { - def : Cvt_PK_F32_F8_Pat; - def : Cvt_PK_F32_F8_Pat; +let SubtargetPredicate = isGFX9Only in { + foreach Index = [0, -1] in { +def : Cvt_PK_F32_F8_Pat; +def : Cvt_PK_F32_F8_Pat; + } +} + +

[clang] [Coverage] Map regions from system headers (PR #76950)

2024-01-22 Thread via cfe-commits
ManuelvOK wrote: Thanks for the approval. I unfortunately don't have the credentials to merge this change. Can you do this, @petrhosek ? https://github.com/llvm/llvm-project/pull/76950 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang][Sema] Add checks for validity of default ctor's class (PR #78898)

2024-01-22 Thread Mariya Podchishchaeva via cfe-commits
Fznamznon wrote: So, there is no way to consistently check on all platforms that we didn't crash when an error diagnostic was issued (does clang return non-zero when there is error diagnostic?), is that a right understanding? Still, if the tests won't be "pretty" that is not an excuse to not

[clang] [Sema] Add `-fvisibility-global-new-delete=` option (PR #75364)

2024-01-22 Thread via cfe-commits
https://github.com/bd1976bris closed https://github.com/llvm/llvm-project/pull/75364 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 27ce26b - [Sema] Add `-fvisibility-global-new-delete=` option (#75364)

2024-01-22 Thread via cfe-commits
Author: bd1976bris Date: 2024-01-22T12:37:11Z New Revision: 27ce26b06655cfece3d54b30e442ef93d3e78ac7 URL: https://github.com/llvm/llvm-project/commit/27ce26b06655cfece3d54b30e442ef93d3e78ac7 DIFF: https://github.com/llvm/llvm-project/commit/27ce26b06655cfece3d54b30e442ef93d3e78ac7.diff LOG:

[clang] df4ba00 - [clang-format] Support of TableGen statements in unwrapped line parser (#78846)

2024-01-22 Thread via cfe-commits
Author: Hirofumi Nakamura Date: 2024-01-22T21:35:01+09:00 New Revision: df4ba00c7b50429fa88c3a9991e9194e2422dc76 URL: https://github.com/llvm/llvm-project/commit/df4ba00c7b50429fa88c3a9991e9194e2422dc76 DIFF:

[clang] [clang-format] Support of TableGen statements in unwrapped line parser (PR #78846)

2024-01-22 Thread Hirofumi Nakamura via cfe-commits
https://github.com/hnakamura5 closed https://github.com/llvm/llvm-project/pull/78846 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LTO] Fix Veclib flags correctly pass to LTO flags (PR #78749)

2024-01-22 Thread Paschalis Mpeis via cfe-commits
https://github.com/paschalis-mpeis updated https://github.com/llvm/llvm-project/pull/78749 >From c342eea051da7eed2ef4541e5daf445114258e1d Mon Sep 17 00:00:00 2001 From: Paschalis Mpeis Date: Fri, 19 Jan 2024 16:27:20 + Subject: [PATCH] [LTO] Fix Veclib flags correctly pass to LTO flags

[clang] [LTO] Fix Veclib flags correctly pass to LTO flags (PR #78749)

2024-01-22 Thread Paschalis Mpeis via cfe-commits
https://github.com/paschalis-mpeis edited https://github.com/llvm/llvm-project/pull/78749 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LTO] Fix Veclib flags correctly pass to LTO flags (PR #78749)

2024-01-22 Thread Paschalis Mpeis via cfe-commits
https://github.com/paschalis-mpeis edited https://github.com/llvm/llvm-project/pull/78749 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LTO] Fix Veclib flags correctly pass to LTO flags (PR #78749)

2024-01-22 Thread Paschalis Mpeis via cfe-commits
https://github.com/paschalis-mpeis edited https://github.com/llvm/llvm-project/pull/78749 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LTO] Fix Veclib flags correctly pass to LTO flags (PR #78749)

2024-01-22 Thread Paschalis Mpeis via cfe-commits
@@ -31,3 +31,31 @@ // RUN: %clang -fveclib=Accelerate %s -nodefaultlibs -target arm64-apple-ios8.0.0 -### 2>&1 | FileCheck --check-prefix=CHECK-LINK-NODEFAULTLIBS %s // CHECK-LINK-NODEFAULTLIBS-NOT: "-framework" "Accelerate" + + +/* Verify that the correct vector library is

[clang] [Sema] Add `-fvisibility-global-new-delete=` option (PR #75364)

2024-01-22 Thread via cfe-commits
https://github.com/bd1976bris reopened https://github.com/llvm/llvm-project/pull/75364 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [AArch64][FMV] Support feature MOPS in Function Multi Versioning. (PR #78788)

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

[clang] [compiler-rt] [llvm] [AArch64][FMV] Support feature MOPS in Function Multi Versioning. (PR #78788)

2024-01-22 Thread via cfe-commits
@@ -172,6 +172,11 @@ static void __init_cpu_features_constructor(unsigned long hwcap, // ID_AA64ISAR1_EL1.LS64 >= 0b0011 if (extractBits(ftr, 60, 4) >= 0x3) setCPUFeature(FEAT_LS64_ACCDATA); + DanielKristofKiss wrote: Won't be any observable

[clang] [libcxx] CI Test - Please ignore (PR #78712)

2024-01-22 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 closed https://github.com/llvm/llvm-project/pull/78712 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [libcxx] [clang] [lldb] [lld] [llvm] [flang] [libc] [compiler-rt] [AMDGPU][GFX12] VOP encoding and codegen - add support for v_cvt fp8/… (PR #78414)

2024-01-22 Thread Ivan Kosarev via cfe-commits
kosarev wrote: > Correct, some of these instructions use opsel[1] which in LLVM in stored in > src1_modifiers so a dummy src1 is used. Why can't we just use `SRCMODS.OP_SEL_1` with src0? https://github.com/llvm/llvm-project/pull/78414 ___

[clang] [CMake][PGO] Add libunwind to list of stage1 runtimes (PR #78869)

2024-01-22 Thread Louis Dionne via cfe-commits
https://github.com/ldionne approved this pull request. https://github.com/llvm/llvm-project/pull/78869 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add options to set number of empty lines after includes (PR #78957)

2024-01-22 Thread via cfe-commits
https://github.com/seranu updated https://github.com/llvm/llvm-project/pull/78957 >From 501cd2230cc878189e2dde912bd659faf711a2db Mon Sep 17 00:00:00 2001 From: Serban Ungureanu Date: Sat, 20 Jan 2024 17:02:04 +0200 Subject: [PATCH] [clang-format] Add options to set number of empty lines after

[clang] [llvm] [Clang] Correct __builtin_dynamic_object_size for subobject types (PR #78526)

2024-01-22 Thread Siddhesh Poyarekar via cfe-commits
siddhesh wrote: > Perhaps we need clarification on what GCC means by "may point to multiple > objects" in this instance. To me that means either "get me the size of the > largest of these multiple objects" or "size of the smallest." In my eyes, > that means pointing to a union field. > It's

[clang] [Sema] Add `-fvisibility-global-new-delete=` option (PR #75364)

2024-01-22 Thread via cfe-commits
https://github.com/bd1976bris closed https://github.com/llvm/llvm-project/pull/75364 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AMDGPU][GFX12] Add tests for unsupported builtins (PR #78729)

2024-01-22 Thread Mariusz Sikora via cfe-commits
https://github.com/mariusz-sikora-at-amd updated https://github.com/llvm/llvm-project/pull/78729 >From eb04956ce8ad84206a95789885003dd6c6f60d2e Mon Sep 17 00:00:00 2001 From: Mariusz Sikora Date: Fri, 19 Jan 2024 16:29:46 +0100 Subject: [PATCH] [AMDGPU][GFX12] Add tests for unsupported

[clang] [llvm] [coverage] skipping code coverage for 'if constexpr' and 'if consteval' (PR #78033)

2024-01-22 Thread Hana Dusíková via cfe-commits
https://github.com/hanickadot closed https://github.com/llvm/llvm-project/pull/78033 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 865e4a1 - [coverage] skipping code coverage for 'if constexpr' and 'if consteval' (#78033)

2024-01-22 Thread via cfe-commits
Author: Hana Dusíková Date: 2024-01-22T12:50:20+01:00 New Revision: 865e4a1f33bd3be42ff256c6839aff0860610a5a URL: https://github.com/llvm/llvm-project/commit/865e4a1f33bd3be42ff256c6839aff0860610a5a DIFF: https://github.com/llvm/llvm-project/commit/865e4a1f33bd3be42ff256c6839aff0860610a5a.diff

[clang] [LTO] Fix Veclib flags correctly pass to LTO flags (PR #78749)

2024-01-22 Thread Paschalis Mpeis via cfe-commits
@@ -783,6 +783,28 @@ void tools::addLTOOptions(const ToolChain , const ArgList , "-generate-arange-section")); } + // Pass vector library arguments to LTO. + Arg *ArgVecLib = Args.getLastArg(options::OPT_fveclib); + if (ArgVecLib

[clang] [clang-repl] Fix PLT offset too large linker error on ARM (PR #78959)

2024-01-22 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/78959 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LoongArch] Add definitions and feature 'frecipe' for FP approximation intrinsics/builtins (PR #78962)

2024-01-22 Thread via cfe-commits
Ami-zhang wrote: Add @xen0n @xry111 https://github.com/llvm/llvm-project/pull/78962 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [LoongArch] Add definitions and feature 'frecipe' for FP approximation intrinsics/builtins (PR #78962)

2024-01-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Ami-zhang) Changes This PR adds definitions and 'frecipe' feature for FP approximation intrinsics/builtins. In additions, this adds and complements relative testcases. --- Patch is 35.58 KiB, truncated to 20.00 KiB below, full

[clang] [llvm] [LoongArch] Add definitions and feature 'frecipe' for FP approximation intrinsics/builtins (PR #78962)

2024-01-22 Thread via cfe-commits
https://github.com/Ami-zhang created https://github.com/llvm/llvm-project/pull/78962 This PR adds definitions and 'frecipe' feature for FP approximation intrinsics/builtins. In additions, this adds and complements relative testcases. >From 3a0a9e18654b99496a11ab303ee436023036e0ee Mon Sep 17

[clang] [llvm] [AArch64][SME] Take arm_sme.h out of draft (PR #78961)

2024-01-22 Thread Matthew Devereau via cfe-commits
https://github.com/MDevereau created https://github.com/llvm/llvm-project/pull/78961 None >From 5b7d0d25709cb13840845af67409ec74083a96c6 Mon Sep 17 00:00:00 2001 From: Matt Devereau Date: Mon, 22 Jan 2024 11:24:59 + Subject: [PATCH] [AArch64][SME] Take arm_sme.h out of draft ---

[flang] [clang] [flang]Add support for -moutline-atomics and -mno-outline-atomics (PR #78755)

2024-01-22 Thread Tom Eccles via cfe-commits
@@ -402,6 +402,21 @@ static void parseTargetArgs(TargetOptions , llvm::opt::ArgList ) { for (const llvm::opt::Arg *currentArg : args.filtered(clang::driver::options::OPT_target_feature)) opts.featuresAsWritten.emplace_back(currentArg->getValue()); + +

[clang] [clang][Sema] Add checks for validity of default ctor's class (PR #78898)

2024-01-22 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: > Could you elaborate a bit more on that? What is the exact problem with the > testing infrastructure? Can we just add a separate test with the cases from > the issues, perhaps without -verify at all? 1) I think that the most reliable way to detect a crash would be to leverage

[clang] [clang-repl] Fix PLT offset too large linker error on ARM (PR #78959)

2024-01-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Stefan Gränitz (weliveindetail) Changes I cross-compile clang-repl with GCC-10 on Ubuntu 20.04 and get this error when linking with gold: PLT offset too large, try linking with --long-plt --- Full diff:

[clang] [clang-repl] Fix PLT offset too large linker error on ARM (PR #78959)

2024-01-22 Thread Stefan Gränitz via cfe-commits
https://github.com/weliveindetail created https://github.com/llvm/llvm-project/pull/78959 I cross-compile clang-repl with GCC-10 on Ubuntu 20.04 and get this error when linking with gold: PLT offset too large, try linking with --long-plt From 0449f8fc14a703aae515db1696bbbee578914629 Mon Sep

[clang] [llvm] [AArch64][SME2] Refine fcvtu/fcvts/scvtf/ucvtf (PR #77947)

2024-01-22 Thread Matthew Devereau via cfe-commits
https://github.com/MDevereau updated https://github.com/llvm/llvm-project/pull/77947 >From 83374edb041c2440f6bfb9413f62882d6e7b6b19 Mon Sep 17 00:00:00 2001 From: Matt Devereau Date: Fri, 12 Jan 2024 14:01:10 + Subject: [PATCH 1/2] [AArch64][SME2] Refine fcvtu/fcvts/scvtf/ucvtf Rename

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

2024-01-22 Thread Tom Eccles via cfe-commits
https://github.com/tblah commented: Flang changes LGTM once CI passes. https://github.com/llvm/llvm-project/pull/75530 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] WIP: Implement CTAD for type alias template. (PR #77890)

2024-01-22 Thread Haojian Wu via cfe-commits
hokein wrote: > Note that Clang 18 is going to branch soon, so this PR is going to target > Clang 19. Yes, this patch will not be ready before the 18 release cut, so targeting clang 19 sounds like a good plan. As you may notice, the implementation is incomplete, and is likely far from

[clang] [llvm] [MTE] Disable all MTE protection of globals in sections (PR #78443)

2024-01-22 Thread Mitch Phillips via cfe-commits
https://github.com/hctim closed https://github.com/llvm/llvm-project/pull/78443 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c9f5b5c - [MTE] Disable all MTE protection of globals in sections (#78443)

2024-01-22 Thread via cfe-commits
Author: Mitch Phillips Date: 2024-01-22T11:55:39+01:00 New Revision: c9f5b5c935bd12d76d4bafff61d8116cb3229972 URL: https://github.com/llvm/llvm-project/commit/c9f5b5c935bd12d76d4bafff61d8116cb3229972 DIFF:

[clang] [clang-format] Separate License text and include blocks (PR #77918)

2024-01-22 Thread via cfe-commits
seranu wrote: I created a new PR for separating the includes at https://github.com/llvm/llvm-project/pull/78957 and will continue to work on getting the top-level comment code fixed as per review comments. Closing this PR. https://github.com/llvm/llvm-project/pull/77918

[clang] [clang-format] Separate License text and include blocks (PR #77918)

2024-01-22 Thread via cfe-commits
https://github.com/seranu closed https://github.com/llvm/llvm-project/pull/77918 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add options to set number of empty lines after includes (PR #78957)

2024-01-22 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 cc38cff05cfafb92bf91aadc39692ec5e12710a0 351995614fb6155bcb621860f18d97f727ece101 --

[clang] [clang] WIP: Implement CTAD for type alias template. (PR #77890)

2024-01-22 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/77890 >From 0b592732066e79c7ea64bdd2550a58bc86d9b464 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 26 Jul 2023 09:40:12 +0200 Subject: [PATCH 1/6] [clang] WIP: Implement CTAD for type alias template. This is a

[clang] [clang-format] Add options to set number of empty lines after includes (PR #78957)

2024-01-22 Thread via cfe-commits
https://github.com/seranu edited https://github.com/llvm/llvm-project/pull/78957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add options to set number of empty lines after includes (PR #78957)

2024-01-22 Thread via cfe-commits
https://github.com/seranu edited https://github.com/llvm/llvm-project/pull/78957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] WIP: Implement CTAD for type alias template. (PR #77890)

2024-01-22 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/77890 >From 0f7ac82eaf79a483159351a44782c4b375f8e31b Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 26 Jul 2023 09:40:12 +0200 Subject: [PATCH 1/6] [clang] WIP: Implement CTAD for type alias template. This is a

[clang] [clang-format] Add options to set number of empty lines after includes (PR #78957)

2024-01-22 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: serbanu (seranu) Changes Add option to set the number of empty lines after include areas. An include area is a list of consecutive include statements. Include areas may be composed of multiple include blocks(group of related

[clang] [clang-format] Add options to set number of empty lines after includes (PR #78957)

2024-01-22 Thread via cfe-commits
https://github.com/seranu created https://github.com/llvm/llvm-project/pull/78957 Add option to set the number of empty lines after include areas. An include area is a list of consecutive include statements. Include areas may be composed of multiple include blocks(group of related include

[clang] [flang] [flang][driver] Allow explicit specification of -lFortran_main (PR #78152)

2024-01-22 Thread Tom Eccles via cfe-commits
tblah wrote: > My suggestion: > > * rename `Fortran_main.a` as e.g. `flang_fortran_main.a`, > > * introduce `-ffortran-main` on top of `-fno-fortran-main`, > > * disallow `-lFortran_main.a` and `-lflang_fortran_main.a` - this library > should be kept as an implementation detail

[clang] [AArch64][Clang] Fix linker error for function multiversioning (PR #74358)

2024-01-22 Thread via cfe-commits
DanielKristofKiss wrote: ping https://github.com/llvm/llvm-project/pull/74358 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Amend SME attributes with support for ZT0. (PR #77941)

2024-01-22 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm updated https://github.com/llvm/llvm-project/pull/77941 >From 34da3f6446c826ec1d2c7f6eb8020d1c18146b51 Mon Sep 17 00:00:00 2001 From: Sander de Smalen Date: Thu, 4 Jan 2024 14:03:04 + Subject: [PATCH 1/3] [Clang] Amend SME attributes with support for ZT0.

[clang] [clang][Sema] Add checks for validity of default ctor's class (PR #78898)

2024-01-22 Thread Mariya Podchishchaeva via cfe-commits
Fznamznon wrote: > I decided to not include tests, because our testing infrastructure is not > ready to test that Clang doesn't crash without overspecifying the tests using > `-verify` mode. Could you elaborate a bit more on that? What is the exact problem with the testing infrastructure?

[clang] [clang][analyzer] Add function 'fscanf' to StreamChecker. (PR #78180)

2024-01-22 Thread Balazs Benics via cfe-commits
=?utf-8?q?Balázs_Kéri?= Message-ID: In-Reply-To: steakhal wrote: This patch breaks a downstream test, like this: ```c++ void test_fscanf_2() { FILE *F1 = tmpfile(); if (!F1) return; int a; unsigned b; fscanf(F1, "%d %u", , ); clang_analyzer_dump_int(a); // FP warning: 1st

[clang] [clang] WIP: Implement CTAD for type alias template. (PR #77890)

2024-01-22 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/77890 >From 89ae5aaf3bd6b4908191902b999ef9f6782d645f Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 26 Jul 2023 09:40:12 +0200 Subject: [PATCH 1/6] [clang] WIP: Implement CTAD for type alias template. This is a

[libc] [clang] [libcxx] [llvm] [lld] [clang-tools-extra] [flang] [compiler-rt] [lldb] [AMDGPU][GFX12] VOP encoding and codegen - add support for v_cvt fp8/… (PR #78414)

2024-01-22 Thread Mirko Brkušanin via cfe-commits
mbrkusanin wrote: > > > Why is so there so much special casing in the assembler/disassembler? > > > > > > I'm not an original author of these change, but from what I understand it > > is a workaround to handle VOP3 instructions which have a single source but > > require the use of two bits

[clang] [clang-format] adds a space after not inside macros (PR #78176)

2024-01-22 Thread Owen Pan via cfe-commits
@@ -4842,19 +4842,19 @@ bool TokenAnnotator::spaceRequiredBefore(const AnnotatedLine , return true; } if (Left.is(TT_UnaryOperator)) { -if (Right.isNot(tok::l_paren)) { +if (Right.isOneOf(tok::identifier, tok::numeric_constant)) { // The alternative

[clang] [clang-format] adds a space after not inside macros (PR #78176)

2024-01-22 Thread Owen Pan via cfe-commits
@@ -24160,6 +24160,14 @@ TEST_F(FormatTest, AlternativeOperators) { verifyFormat("int a compl(5);"); verifyFormat("int a not(5);"); + verifyFormat("v(not)"); + verifyFormat("v(not!)"); + verifyFormat("Symbol(not, None)"); + verifyFormat("Symbol(not!, None)"); + +

[clang] [clang-format] adds a space after not inside macros (PR #78176)

2024-01-22 Thread Owen Pan via cfe-commits
@@ -4842,19 +4842,19 @@ bool TokenAnnotator::spaceRequiredBefore(const AnnotatedLine , return true; } if (Left.is(TT_UnaryOperator)) { -if (Right.isNot(tok::l_paren)) { +if (Right.isOneOf(tok::identifier, tok::numeric_constant)) { // The alternative

[compiler-rt] [clang-tools-extra] [llvm] [clang] [flang] [libc] [mlir] [libcxx] [clang] Remove `CXXNewInitializationStyle::Implicit` (PR #78793)

2024-01-22 Thread via cfe-commits
https://github.com/tomasz-kaminski-sonarsource edited https://github.com/llvm/llvm-project/pull/78793 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libc] [flang] [compiler-rt] [llvm] [clang-tools-extra] [lldb] [clang] [libcxx] [lld] [AMDGPU][GFX12] VOP encoding and codegen - add support for v_cvt fp8/… (PR #78414)

2024-01-22 Thread Mirko Brkušanin via cfe-commits
mbrkusanin wrote: > > Why is so there so much special casing in the assembler/disassembler? > > I'm not an original author of these change, but from what I understand it is > a workaround to handle VOP3 instructions which have a single source but > require the use of two bits from OPSEL.

[libc] [flang] [compiler-rt] [llvm] [clang-tools-extra] [lldb] [clang] [libcxx] [lld] [AMDGPU][GFX12] VOP encoding and codegen - add support for v_cvt fp8/… (PR #78414)

2024-01-22 Thread Mariusz Sikora via cfe-commits
mariusz-sikora-at-amd wrote: > Why is so there so much special casing in the assembler/disassembler? I'm not an original author of these change, but from what I understand it is a workaround to handle VOP3 instructions which have a single source but require the use of two bits from OPSEL.

[clang] [Serialization] Load Specializations Lazily (PR #76774)

2024-01-22 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/76774 >From 26bd7dc5139811b2b0d8d8642a67b67340eeb1d5 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Wed, 3 Jan 2024 11:33:17 +0800 Subject: [PATCH 1/4] Load Specializations Lazily ---

[clang] [Serialization] Load Specializations Lazily (PR #76774)

2024-01-22 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: In the newest push, I changed 2 things: - In `ASTReader::LoadExternalSpecializations`, I am moving `Deserializing LookupResults(this);` before calculating the ODR hash for template arguments. Since I didn't realize that the ODRHash may trigger deserializing before. - I

[clang] [Serialization] Load Specializations Lazily (PR #76774)

2024-01-22 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/76774 >From 26bd7dc5139811b2b0d8d8642a67b67340eeb1d5 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Wed, 3 Jan 2024 11:33:17 +0800 Subject: [PATCH 1/4] Load Specializations Lazily ---

[openmp] [compiler-rt] [libclc] [llvm] [clang-tools-extra] [libcxx] [clang] [libc] [mlir] [lld] [lldb] Make llvm-strip not eat the .gnu_debuglink section (PR #78919)

2024-01-22 Thread Felix Kellenbenz via cfe-commits
https://github.com/felixkellenbenz updated https://github.com/llvm/llvm-project/pull/78919 >From bf376afe7bd69fd25a006890b2910f2fd32c191b Mon Sep 17 00:00:00 2001 From: Felix Kellenbenz Date: Mon, 22 Jan 2024 00:49:21 +0100 Subject: [PATCH 1/2] Make llvm-strip not eat the .gnu_debuglink

[llvm] [clang-tools-extra] [clang] [clang-format] Option to ignore macro definitions (PR #70338)

2024-01-22 Thread via cfe-commits
@@ -1157,7 +1157,15 @@ void UnwrappedLineParser::parsePPDefine() { // guard processing above, and changes preprocessing nesting. FormatTok->Tok.setKind(tok::identifier); FormatTok->Tok.setIdentifierInfo(Keywords.kw_internal_ident_after_define); - nextToken(); + + if

[clang] [llvm] [coverage] skipping code coverage for 'if constexpr' and 'if consteval' (PR #78033)

2024-01-22 Thread Hana Dusíková via cfe-commits
https://github.com/hanickadot updated https://github.com/llvm/llvm-project/pull/78033 From e2e0ecab6693547938274ffa0a7f517cedf52205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hana=20Dusi=CC=81kova=CC=81?= Date: Mon, 22 Jan 2024 00:00:43 +0100 Subject: [PATCH 1/9] [coverage] skipping code

<    1   2   3   4   5   6   7   >