[libc] [llvm] [clang] [compiler-rt] [flang] [clang-tools-extra] [libcxx] [Clang] Generate the GEP instead of adding AST nodes (PR #73730)

2023-12-12 Thread Yeoul Na via cfe-commits
https://github.com/rapidsna edited https://github.com/llvm/llvm-project/pull/73730 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Allow the use of consecutive brackets as an extension in C++03 (PR #75148)

2023-12-12 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 created https://github.com/llvm/llvm-project/pull/75148 None >From be2654702d4e7bc3b8689662db6011a3e148ef4d Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Tue, 12 Dec 2023 08:47:26 +0100 Subject: [PATCH] [Clang] Allow the use of consecutive brackets as an ex

[clang] [clang] Use StringRef::{starts,ends}_with (NFC) (PR #75149)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-backend-amdgpu Author: Kazu Hirata (kazutakahirata) Changes This patch replaces uses of StringRef::{starts,ends}with with StringRef::{starts,ends}_with for consistency with std::{string,

[clang] [Clang] Allow the use of consecutive brackets as an extension in C++03 (PR #75148)

2023-12-12 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 edited https://github.com/llvm/llvm-project/pull/75148 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][docs] Update extension documentation (PR #75150)

2023-12-12 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 created https://github.com/llvm/llvm-project/pull/75150 This is back-ported to C++03 now, since clang accepts C++11 attributes in C++03. https://godbolt.org/z/f7xG18bdE >From fbc41ef81ff8d4b647f45dfbeca20d4428ce0c98 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser

[clang] [Clang][docs] Update extension documentation (PR #75150)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nikolas Klauser (philnik777) Changes This is back-ported to C++03 now, since clang accepts C++11 attributes in C++03. https://godbolt.org/z/f7xG18bdE --- Full diff: https://github.com/llvm/llvm-project/pull/75150.diff 1 Files Affected:

[clang] [clang] Add per-global code model attribute (PR #72078)

2023-12-12 Thread WÁNG Xuěruì via cfe-commits
@@ -0,0 +1,37 @@ +// RUN: %clang_cc1 -emit-llvm -triple loongarch64 %s -o - | FileCheck %s + +// CHECK: @_ZL2v1 ={{.*}} global i32 0, code_model "small" +static int v1 __attribute__((model("normal"))); + +void use1() { + v1 = 1; +} + +// CHECK: @v2 ={{.*}} global i32 0, code_mode

[clang] [clang] Add per-global code model attribute (PR #72078)

2023-12-12 Thread WÁNG Xuěruì via cfe-commits
https://github.com/xen0n edited https://github.com/llvm/llvm-project/pull/72078 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SVE2.1] Add intrinsics for `WHILEcc` resulting in predicate pair (PR #75107)

2023-12-12 Thread via cfe-commits
@@ -1341,6 +1341,26 @@ def SVWHILEHS_U32 : SInst<"svwhilege_{d}[_{1}]", "Pmm", "PUcPUsPUiPUl", MergeNon def SVWHILEHS_U64 : SInst<"svwhilege_{d}[_{1}]", "Pnn", "PUcPUsPUiPUl", MergeNone, "aarch64_sve_whilehs", [IsOverloadWhile]>; } +let TargetGuard = "sve2p1|sme2" in {

[clang] [Clang] Allow the use of consecutive brackets as an extension in C++03 (PR #75148)

2023-12-12 Thread via cfe-commits
@@ -815,8 +815,8 @@ def err_unexpected_template_in_destructor_name : Error< "'template' keyword not permitted in destructor name">; def err_unexpected_template_after_using : Error< "'template' keyword not permitted after 'using' keyword">; -def err_two_right_angle_brackets_

[clang] [clang][ASTImporter] Support Importer of BuiltinBitCastExpr (PR #74813)

2023-12-12 Thread Balázs Kéri via cfe-commits
@@ -9284,6 +9284,24 @@ TEST_P(ASTImporterOptionSpecificTestBase, // EXPECT_EQ(ToF1Imported->getPreviousDecl(), ToF1); } +const internal::VariadicDynCastAllOfMatcher +builtinBitCastExpr; + +TEST_P(ASTImporterOptionSpecificTestBase, ImportBuiltinBitCastExpr) { + const cha

[clang] [llvm] [AMDGPU] GFX12: Add Split Workgroup Barrier (PR #74836)

2023-12-12 Thread Mariusz Sikora via cfe-commits
mariusz-sikora-at-amd wrote: ping https://github.com/llvm/llvm-project/pull/74836 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang-tools-extra] [clang] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-12 Thread James Henderson via cfe-commits
https://github.com/jh7370 edited https://github.com/llvm/llvm-project/pull/65815 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [clang-tools-extra] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-12 Thread James Henderson via cfe-commits
https://github.com/jh7370 commented: I think you should undo the `reportWarning` changes: there's no guarantee anybody will need it in the future, so you shouldn't change it now. https://github.com/llvm/llvm-project/pull/65815 ___ cfe-commits mailing

[llvm] [clang] [clang-tools-extra] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-12 Thread James Henderson via cfe-commits
@@ -234,11 +234,11 @@ defm update_section defm gap_fill : Eq<"gap-fill", "Fill the gaps between sections with instead of zero. " " must be an unsigned 8-bit integer. " - "This option is only supported for ELF inputs and binary out

[llvm] [clang-tools-extra] [clang] [llvm-objcopy] Add --gap-fill and --pad-to options (PR #65815)

2023-12-12 Thread James Henderson via cfe-commits
@@ -234,11 +234,11 @@ defm update_section defm gap_fill : Eq<"gap-fill", "Fill the gaps between sections with instead of zero. " " must be an unsigned 8-bit integer. " - "This option is only supported for ELF inputs and binary out

[llvm] [clang] [AMDGPU] GFX12: Add Split Workgroup Barrier (PR #74836)

2023-12-12 Thread Piotr Sobczak via cfe-commits
@@ -684,6 +684,59 @@ # GFX12: s_rndne_f16 s5, 0x3456 ; encoding: [0xff,0x6e,0x85,0xbe,0x56,0x34,0x00,0x00] 0xff,0x6e,0x85,0xbe,0x56,0x34,0x00,0x00 +# GFX12: s_barrier_signal -2 ; encoding: [0xc2,0x4e,0x80,0xbe] +0xc2,0x4e,0x80,0xbe + +#

[clang] [clang][ASTImporter] skip TemplateTypeParmDecl in VisitTypeAliasTemplateDecl (PR #74919)

2023-12-12 Thread Balázs Kéri via cfe-commits
balazske wrote: The problem may be related to the fact that template parameter declarations can have the `TranslationUnitDecl` as parent until the template (with these parameters) is finally created. In the temporary phase the object (`TemplateTypeParmDecl`) is found with lookup if it has the

[clang] [clang-tools-extra] [llvm] [libcxx] [flang] [compiler-rt] [libc] [Clang] Generate the GEP instead of adding AST nodes (PR #73730)

2023-12-12 Thread Yeoul Na via cfe-commits
@@ -956,60 +951,199 @@ static llvm::Value *getArrayIndexingBound(CodeGenFunction &CGF, return nullptr; } -const Expr * -CodeGenFunction::BuildCountedByFieldExpr(const Expr *Base, - const ValueDecl *CountedByVD) { +namespace { + +/// \

[compiler-rt] [llvm] [libc] [flang] [libcxx] [clang] [clang-tools-extra] [Clang] Generate the GEP instead of adding AST nodes (PR #73730)

2023-12-12 Thread Yeoul Na via cfe-commits
@@ -4022,8 +4169,36 @@ LValue CodeGenFunction::EmitArraySubscriptExpr(const ArraySubscriptExpr *E, ArrayLV = EmitArraySubscriptExpr(ASE, /*Accessed*/ true); else ArrayLV = EmitLValue(Array); + auto *Idx = EmitIdxAfterBase(/*Promote*/true); +if (SanOp

[compiler-rt] [clang] [libcxx] [llvm] [flang] [clang-tools-extra] [libc] [Clang] Generate the GEP instead of adding AST nodes (PR #73730)

2023-12-12 Thread Yeoul Na via cfe-commits
@@ -956,60 +951,199 @@ static llvm::Value *getArrayIndexingBound(CodeGenFunction &CGF, return nullptr; } -const Expr * -CodeGenFunction::BuildCountedByFieldExpr(const Expr *Base, - const ValueDecl *CountedByVD) { +namespace { + +/// \

[compiler-rt] [libc] [clang] [clang-tools-extra] [flang] [llvm] [libcxx] [Clang] Generate the GEP instead of adding AST nodes (PR #73730)

2023-12-12 Thread Yeoul Na via cfe-commits
@@ -956,60 +951,199 @@ static llvm::Value *getArrayIndexingBound(CodeGenFunction &CGF, return nullptr; } -const Expr * -CodeGenFunction::BuildCountedByFieldExpr(const Expr *Base, - const ValueDecl *CountedByVD) { +namespace { + +/// \

[llvm] [libc] [libcxx] [flang] [clang] [compiler-rt] [clang-tools-extra] [Clang] Generate the GEP instead of adding AST nodes (PR #73730)

2023-12-12 Thread Yeoul Na via cfe-commits
@@ -876,31 +876,26 @@ CodeGenFunction::emitFlexibleArrayMemberSize(const Expr *E, unsigned Type, } // Get the flexible array member Decl. - const ValueDecl *FAMDecl = nullptr; + const RecordDecl *OuterRD = nullptr; if (const auto *ME = dyn_cast(Base)) { // Check

[clang-tools-extra] [clang] [llvm] [LoopVectorize] Improve algorithm for hoisting runtime checks (PR #73515)

2023-12-12 Thread David Sherwood via cfe-commits
https://github.com/david-arm closed https://github.com/llvm/llvm-project/pull/73515 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [LoopVectorize] Enable hoisting of runtime checks by default (PR #71538)

2023-12-12 Thread David Sherwood via cfe-commits
https://github.com/david-arm updated https://github.com/llvm/llvm-project/pull/71538 >From 8a2af20a52fd851eaff1cfa7d50df8b994d0db0d Mon Sep 17 00:00:00 2001 From: David Sherwood Date: Tue, 7 Nov 2023 13:57:17 + Subject: [PATCH 1/2] [LoopVectorize] Enable hoisting of runtime checks by defau

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-12-12 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= ,

[compiler-rt] [clang] [libcxx] [llvm] [flang] [clang-tools-extra] [libc] [AMDGPU] GFX12: Add Split Workgroup Barrier (PR #74836)

2023-12-12 Thread Piotr Sobczak via cfe-commits
@@ -15,6 +15,15 @@ # GFX12: s_singleuse_vdst 0x1234 ; encoding: [0x34,0x12,0x93,0xbf] 0x34,0x12,0x93,0xbf +# GFX12: s_barrier_wait 0x ; encoding: [0xff,0xff,0x94,0xbf] +0xff,0xff,0x94,0xbf + +# GFX12: s_barrier_wait 1

[clang] [clang-tools-extra] [llvm] [libcxx] [flang] [compiler-rt] [libc] [AMDGPU] GFX12: Add Split Workgroup Barrier (PR #74836)

2023-12-12 Thread Piotr Sobczak via cfe-commits
https://github.com/piotrAMD approved this pull request. LGTM with a nit. https://github.com/llvm/llvm-project/pull/74836 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] Add ABI handling for fp128 (PR #75156)

2023-12-12 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang created https://github.com/llvm/llvm-project/pull/75156 Fixes #74601 >From 9860e5454bdf3ee3a4283ab7102a8d70c3ebcbbc Mon Sep 17 00:00:00 2001 From: Phoebe Wang Date: Tue, 12 Dec 2023 17:27:33 +0800 Subject: [PATCH] [X86] Add ABI handling for fp128 Fixes #74601 ---

[clang] [X86] Add ABI handling for fp128 (PR #75156)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-backend-x86 Author: Phoebe Wang (phoebewang) Changes Fixes #74601 --- Full diff: https://github.com/llvm/llvm-project/pull/75156.diff 2 Files Affected: - (modified) clang/lib/CodeGen/Targets/X86.cpp (+2-1) - (added

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

2023-12-12 Thread via cfe-commits
@@ -1752,8 +1754,10 @@ static void AppendTargetClonesMangling(const CodeGenModule &CGM, const TargetInfo &TI = CGM.getTarget(); if (TI.getTriple().isAArch64()) { DanielKristofKiss wrote: As I see for other targets `"default"` is just copied as a feature st

[clang] [X86] Add ABI handling for __float128 (PR #75156)

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

[clang] [clang-tools-extra] [llvm] [Clang][AArch64] Add fix vector types to header into SVE (PR #73258)

2023-12-12 Thread Sander de Smalen via cfe-commits
@@ -2355,13 +2357,7 @@ void NeonEmitter::run(raw_ostream &OS) { OS << "#include \n"; - // Emit NEON-specific scalar typedefs. - OS << "typedef float float32_t;\n"; - OS << "typedef __fp16 float16_t;\n"; - - OS << "#ifdef __aarch64__\n"; - OS << "typedef double float64_

[clang-tools-extra] [clang] [llvm] [Clang][AArch64] Add fix vector types to header into SVE (PR #73258)

2023-12-12 Thread Sander de Smalen via cfe-commits
@@ -8360,9 +8360,11 @@ static void HandleNeonVectorTypeAttr(QualType &CurType, const ParsedAttr &Attr, // not to need a separate attribute) if (!(S.Context.getTargetInfo().hasFeature("neon") || S.Context.getTargetInfo().hasFeature("mve") || +S.Context.getTa

[clang] e3f4fa9 - [clang][Interp] Implement inc/dec for IntegralAP (#69597)

2023-12-12 Thread via cfe-commits
Author: Timm Baeder Date: 2023-12-12T10:44:43+01:00 New Revision: e3f4fa98349b85dbd7845a505a98bd331e5d2897 URL: https://github.com/llvm/llvm-project/commit/e3f4fa98349b85dbd7845a505a98bd331e5d2897 DIFF: https://github.com/llvm/llvm-project/commit/e3f4fa98349b85dbd7845a505a98bd331e5d2897.diff L

[clang] [clang][Interp] Implement inc/dec for IntegralAP (PR #69597)

2023-12-12 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/69597 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 43e6aec - [clang][Interp] Implement __builtin_rotate{right,left} (#72984)

2023-12-12 Thread via cfe-commits
Author: Timm Baeder Date: 2023-12-12T10:48:00+01:00 New Revision: 43e6aec145262afe53bf56372d363d1fbc4f6125 URL: https://github.com/llvm/llvm-project/commit/43e6aec145262afe53bf56372d363d1fbc4f6125 DIFF: https://github.com/llvm/llvm-project/commit/43e6aec145262afe53bf56372d363d1fbc4f6125.diff L

[clang] [clang][Interp] Implement __builtin_rotate{right, left} (PR #72984)

2023-12-12 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/72984 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SME2] Add multi-vector unpack builtins (PR #75075)

2023-12-12 Thread Sam Tebbs via cfe-commits
https://github.com/SamTebbs33 approved this pull request. Looks good to me. https://github.com/llvm/llvm-project/pull/75075 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Improve selection of ballot.i64 intrinsic in wave32 mode. (PR #71556)

2023-12-12 Thread Valery Pykhtin via cfe-commits
vpykhtin wrote: Gentle ping. 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][Interp] Implement __builtin_ffs (PR #72988)

2023-12-12 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/72988 >From 98375e9c26ff65a1123df48d00c64a47df56d72d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 21 Nov 2023 14:06:22 +0100 Subject: [PATCH] [clang][Interp] Implement __builtin_ffs --- cl

[clang-tools-extra] [flang] [llvm] [compiler-rt] [clang] [Legalizer] Expand fmaximum and fminimum (PR #67301)

2023-12-12 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon edited https://github.com/llvm/llvm-project/pull/67301 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [clang] [compiler-rt] [clang-tools-extra] [llvm] [Legalizer] Expand fmaximum and fminimum (PR #67301)

2023-12-12 Thread Simon Pilgrim via cfe-commits
@@ -8262,6 +8262,64 @@ SDValue TargetLowering::expandFMINNUM_FMAXNUM(SDNode *Node, return SDValue(); } +SDValue TargetLowering::expandFMINIMUM_FMAXIMUM(SDNode *N, +SelectionDAG &DAG) const { + SDLoc DL(N); + SDValue LHS = N-

[clang-tools-extra] [llvm] [compiler-rt] [flang] [clang] [Legalizer] Expand fmaximum and fminimum (PR #67301)

2023-12-12 Thread Simon Pilgrim via cfe-commits
@@ -8262,6 +8262,64 @@ SDValue TargetLowering::expandFMINNUM_FMAXNUM(SDNode *Node, return SDValue(); } +SDValue TargetLowering::expandFMINIMUM_FMAXIMUM(SDNode *N, +SelectionDAG &DAG) const { + SDLoc DL(N); + SDValue LHS = N-

[compiler-rt] [clang] [llvm] [flang] [clang-tools-extra] [Legalizer] Expand fmaximum and fminimum (PR #67301)

2023-12-12 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon commented: Is there any existing vector test coverage? There don't seem to be any test changes for them. https://github.com/llvm/llvm-project/pull/67301 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.l

[clang] [clang][Interp] Reject static lambdas with captures (PR #74718)

2023-12-12 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr edited https://github.com/llvm/llvm-project/pull/74718 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Substitute alias templates from correct context (PR #75069)

2023-12-12 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon updated https://github.com/llvm/llvm-project/pull/75069 >From d0bfa140bdfa2be213151d4d17263bb60e6b46d3 Mon Sep 17 00:00:00 2001 From: "Podchishchaeva, Mariya" Date: Mon, 11 Dec 2023 08:31:15 -0800 Subject: [PATCH 1/2] [clang] Substitute alias templates from correct

[libc] [libcxx] [flang] [clang] [libcxxabi] [compiler-rt] [openmp] [clang-tools-extra] [llvm] [mlir] [clang] Avoid -Wshadow warning when init-capture named same as class field (PR #74512)

2023-12-12 Thread Mariya Podchishchaeva via cfe-commits
Fznamznon wrote: @cor3ntin , @shafik WDYT about > I have a concern, that probably in case when this is actually captured, with > current implementation of the patch there will be no warning as well. Should we still emit shadowing warning in case lambda captured this and has an init-capture wi

[clang] c8c9af1 - [clang][Interp] Decay arrays to the first element (#72660)

2023-12-12 Thread via cfe-commits
Author: Timm Baeder Date: 2023-12-12T11:01:47+01:00 New Revision: c8c9af150d34306ee0af94baf8357891ace233ba URL: https://github.com/llvm/llvm-project/commit/c8c9af150d34306ee0af94baf8357891ace233ba DIFF: https://github.com/llvm/llvm-project/commit/c8c9af150d34306ee0af94baf8357891ace233ba.diff L

[clang] [clang][Interp] Decay arrays to the first element (PR #72660)

2023-12-12 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/72660 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [flang] [clang] [compiler-rt] [lld] [clang-tools-extra] [llvm] [lldb] [AMDGPU] Use alias info to relax waitcounts for LDS DMA (PR #74537)

2023-12-12 Thread Stanislav Mekhanoshin via cfe-commits
https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/74537 >From 7e382620cdc5999c645ed0746f242595f0294c58 Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Mon, 4 Dec 2023 16:11:53 -0800 Subject: [PATCH 1/7] [AMDGPU] Use alias info to relax waitcounts for LDS D

[libcxx] [flang] [clang] [compiler-rt] [lld] [clang-tools-extra] [llvm] [lldb] [AMDGPU] Use alias info to relax waitcounts for LDS DMA (PR #74537)

2023-12-12 Thread Stanislav Mekhanoshin via cfe-commits
rampitec wrote: Ping https://github.com/llvm/llvm-project/pull/74537 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1908d4c - [clang][Interp] Reject static lambdas with captures (#74718)

2023-12-12 Thread via cfe-commits
Author: Timm Baeder Date: 2023-12-12T11:08:38+01:00 New Revision: 1908d4cda6760d2c9b28d8bbb4a5b7eeb9697c96 URL: https://github.com/llvm/llvm-project/commit/1908d4cda6760d2c9b28d8bbb4a5b7eeb9697c96 DIFF: https://github.com/llvm/llvm-project/commit/1908d4cda6760d2c9b28d8bbb4a5b7eeb9697c96.diff L

[clang] [clang][Interp] Reject static lambdas with captures (PR #74718)

2023-12-12 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/74718 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [clang] [AArch64] Add an AArch64 pass for loop idiom transformations (PR #72273)

2023-12-12 Thread David Sherwood via cfe-commits
@@ -0,0 +1,726 @@ + +//===- AArch64LoopIdiomTransform.cpp - Loop idiom recognition -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[clang] [RISCV][NFC] Use AddTargetFeature to add fast-unaligned-access (PR #74280)

2023-12-12 Thread Wang Pengcheng via cfe-commits
wangpc-pp wrote: Ping. https://github.com/llvm/llvm-project/pull/74280 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [clang] [lld] [llvm] [openmp] [clang-tools-extra] [libcxx] [lldb] [libc] [flang] [mlir] fix issue 73559. (PR #74926)

2023-12-12 Thread Mariya Podchishchaeva via cfe-commits
@@ -3,3 +3,4 @@ // PR9137 void f0(int x) : {}; // expected-error{{expected function body after function declarator}} void f1(int x) try {}; // expected-error{{expected function body after function declarator}} +::; // expected-error{{expected identifier or '('}} -

[flang] [llvm] [mlir] [openmp] [clang-tools-extra] [clang] [lldb] [libc] [lld] [compiler-rt] [libcxx] fix issue 73559. (PR #74926)

2023-12-12 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon edited https://github.com/llvm/llvm-project/pull/74926 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [openmp] [lld] [mlir] [lldb] [flang] [libc] [compiler-rt] [clang] [libcxx] [clang-tools-extra] fix issue 73559. (PR #74926)

2023-12-12 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon commented: The PR can be landed after a formal approval. Please see https://llvm.org/docs/CodeReview.html#lgtm-how-a-patch-is-accepted . I gave a couple of NITs otherwise the patch looks ok to me. I'm a bit new here, so someone else should approve. I added more fol

[compiler-rt] [clang-tools-extra] [libcxx] [lldb] [llvm] [openmp] [flang] [mlir] [clang] [libc] [lld] fix issue 73559. (PR #74926)

2023-12-12 Thread Mariya Podchishchaeva via cfe-commits
@@ -641,6 +641,8 @@ Bug Fixes in This Version Fixes (`#67317 `_) - Clang now properly diagnoses use of stand-alone OpenMP directives after a label (including ``case`` or ``default`` labels). +- Fix crash when using C++ only

[clang] [clang-tools-extra] [llvm] [AArch64] Add an AArch64 pass for loop idiom transformations (PR #72273)

2023-12-12 Thread David Sherwood via cfe-commits
@@ -0,0 +1,726 @@ + +//===- AArch64LoopIdiomTransform.cpp - Loop idiom recognition -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[compiler-rt] [clang-tools-extra] [libcxx] [llvm] [libunwind] [lldb] [openmp] [libcxxabi] [flang] [mlir] [clang] [libc] [lld] [C23] Implement N3018: The constexpr specifier for object definitions (PR

2023-12-12 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon updated https://github.com/llvm/llvm-project/pull/73099 >From 1d70b7726e7d1f11622a6d5c8246b0737e024c8d Mon Sep 17 00:00:00 2001 From: "Podchishchaeva, Mariya" Date: Tue, 19 Sep 2023 08:37:18 -0700 Subject: [PATCH 1/9] [C23] Implement N3018: The constexpr specifier f

[compiler-rt] [clang-tools-extra] [libcxx] [llvm] [libunwind] [lldb] [openmp] [libcxxabi] [flang] [mlir] [clang] [libc] [lld] [C23] Implement N3018: The constexpr specifier for object definitions (PR

2023-12-12 Thread Mariya Podchishchaeva via cfe-commits
@@ -0,0 +1,287 @@ +// RUN: %clang_cc1 -std=c2x -verify -triple x86_64 -pedantic -Wno-conversion -Wno-constant-conversion -Wno-div-by-zero %s + +// Check that constexpr only applies to variables. +constexpr void f0() {} // expected-error {{'constexpr' can only be used in variable

[compiler-rt] [clang-tools-extra] [libcxx] [llvm] [flang] [clang] [libc] [AMDGPU] Update VOP instructions for GFX12 (PR #74853)

2023-12-12 Thread Mariusz Sikora via cfe-commits
https://github.com/mariusz-sikora-at-amd closed https://github.com/llvm/llvm-project/pull/74853 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV][NFC] Use AddTargetFeature to add fast-unaligned-access (PR #74280)

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

[clang] [clang][Sema] Resolving Inconsistent Arguments Panic in Variadic Template Variables (PR #70280)

2023-12-12 Thread via cfe-commits
knightXun wrote: cc @cor3ntin https://github.com/llvm/llvm-project/pull/70280 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 985c008 - [RISCV][NFC] Use AddTargetFeature to add fast-unaligned-access (#74280)

2023-12-12 Thread via cfe-commits
Author: Wang Pengcheng Date: 2023-12-12T19:16:30+08:00 New Revision: 985c00819583a23b58d8c8cdeaefe6f9ed49e9cf URL: https://github.com/llvm/llvm-project/commit/985c00819583a23b58d8c8cdeaefe6f9ed49e9cf DIFF: https://github.com/llvm/llvm-project/commit/985c00819583a23b58d8c8cdeaefe6f9ed49e9cf.diff

[clang] [RISCV][NFC] Use AddTargetFeature to add fast-unaligned-access (PR #74280)

2023-12-12 Thread Wang Pengcheng via cfe-commits
https://github.com/wangpc-pp closed https://github.com/llvm/llvm-project/pull/74280 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][docs] Update extension documentation (PR #75150)

2023-12-12 Thread Nikolas Klauser via cfe-commits
philnik777 wrote: I'm landing this, since this shouldn't be in any way controversial. https://github.com/llvm/llvm-project/pull/75150 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b204321 - [Clang][docs] Update extension documentation (#75150)

2023-12-12 Thread via cfe-commits
Author: Nikolas Klauser Date: 2023-12-12T12:22:03+01:00 New Revision: b204321302ad16d2a1bdb97830a5708282d0abd4 URL: https://github.com/llvm/llvm-project/commit/b204321302ad16d2a1bdb97830a5708282d0abd4 DIFF: https://github.com/llvm/llvm-project/commit/b204321302ad16d2a1bdb97830a5708282d0abd4.dif

[clang] [Clang][docs] Update extension documentation (PR #75150)

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

[clang] [Clang][SVE2.1] Add intrinsics for `WHILEcc` resulting in predicate pair (PR #75107)

2023-12-12 Thread Kerry McLaughlin via cfe-commits
@@ -1341,6 +1341,26 @@ def SVWHILEHS_U32 : SInst<"svwhilege_{d}[_{1}]", "Pmm", "PUcPUsPUiPUl", MergeNon def SVWHILEHS_U64 : SInst<"svwhilege_{d}[_{1}]", "Pnn", "PUcPUsPUiPUl", MergeNone, "aarch64_sve_whilehs", [IsOverloadWhile]>; } +let TargetGuard = "sve2p1|sme2" in { + d

[clang] [Analyzer][NFC] Remove redundant function call (PR #75076)

2023-12-12 Thread via cfe-commits
DonatNagyE wrote: I'm also weakly opposed to this patch, because the status quo is slightly better than introducing an assert that would make this area more fragile and could lead to some assertion failures if this code is modified in the future. https://github.com/llvm/llvm-project/pull/75076

[clang] [Clang][SVE2.1] Add intrinsics for `WHILEcc` resulting in predicate pair (PR #75107)

2023-12-12 Thread Momchil Velikov via cfe-commits
@@ -1341,6 +1341,26 @@ def SVWHILEHS_U32 : SInst<"svwhilege_{d}[_{1}]", "Pmm", "PUcPUsPUiPUl", MergeNon def SVWHILEHS_U64 : SInst<"svwhilege_{d}[_{1}]", "Pnn", "PUcPUsPUiPUl", MergeNone, "aarch64_sve_whilehs", [IsOverloadWhile]>; } +let TargetGuard = "sve2p1|sme2" in {

[clang] [analyzer] Move alpha checker EnumCastOutOfRange to optin (PR #67157)

2023-12-12 Thread via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: https://github.com/DonatNagyE updated https://github.com/llvm/llvm-project/pull/67157 >From 5c42d3e5286e041e22776fa496d884454640ffec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Fri, 22 Sep 2023 17

[clang] [llvm] [clang-tools-extra] [Clang][AArch64] Add fix vector types to header into SVE (PR #73258)

2023-12-12 Thread via cfe-commits
https://github.com/CarolineConcatto updated https://github.com/llvm/llvm-project/pull/73258 >From e0f245e8d6a395afac5de471b55358c7b730a170 Mon Sep 17 00:00:00 2001 From: Caroline Concatto Date: Wed, 22 Nov 2023 10:03:50 + Subject: [PATCH 01/11] [Clang][AArch64] Add fix vector types to head

[clang] [clang][dataflow] Strengthen pointer comparison. (PR #75170)

2023-12-12 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/75170 - Instead of comparing the identity of the `PointerValue`s, compare the underlying `StorageLocation`s. - If the `StorageLocation`s are different, return a definite "false" as the result of the compar

[clang] [clang][dataflow] Strengthen pointer comparison. (PR #75170)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (martinboehme) Changes - Instead of comparing the identity of the `PointerValue`s, compare the underlying `StorageLocation`s. - If the `StorageLocation`s are different, return a definite "false" as the result of the comparison

[clang] [analyzer] Move alpha checker EnumCastOutOfRange to optin (PR #67157)

2023-12-12 Thread via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: DonatNagyE wrote: The limitation is emphasized in the documentation, and I also added a `TODO` comment that mentions it in the source code. I'll merge this change as it is now (because I don't want to leave it open for

[clang] [llvm] [Clang][IR] add TBAA metadata on pointer, union and array types. (PR #75177)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir @llvm/pr-subscribers-backend-amdgpu @llvm/pr-subscribers-backend-risc-v Author: Bushev Dmitry (dybv-sc) Changes Options to disable new behaviour: -Xclang -no-union-tbaa -Xclang -no-pointer-tbaa -Xclang -no-array-tbaa To enable union struct path

[clang] [llvm] [Clang][IR] add TBAA metadata on pointer, union and array types. (PR #75177)

2023-12-12 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 97181bf9a05251d48c8016ad61d3e38df90620bb 8711499955afb9fd273da929f14742aed2dac822 --

[flang] [lld] [clang] [lldb] [mlir] [compiler-rt] [llvm] [libcxx] [openmp] [clang-tools-extra] [libc] [libcxxabi] [libc++] Fix `take_view::__sentinel`'s `operator==` (PR #74655)

2023-12-12 Thread Jakub Mazurkiewicz via cfe-commits
https://github.com/JMazurkiewicz updated https://github.com/llvm/llvm-project/pull/74655 >From b3de573887cdd86fd6ce168bdcc6d729d73b13b2 Mon Sep 17 00:00:00 2001 From: Jakub Mazurkiewicz Date: Wed, 6 Dec 2023 14:03:51 +0100 Subject: [PATCH 01/11] [libc++] Fix `take_view::__sentinel`'s `operator=

[clang] 1954686 - [Clang][SME2] Add multi-vector unpack builtins (#75075)

2023-12-12 Thread via cfe-commits
Author: Kerry McLaughlin Date: 2023-12-12T13:15:24Z New Revision: 19546861772f225d2648d7a5f3fea7798a13be70 URL: https://github.com/llvm/llvm-project/commit/19546861772f225d2648d7a5f3fea7798a13be70 DIFF: https://github.com/llvm/llvm-project/commit/19546861772f225d2648d7a5f3fea7798a13be70.diff L

[clang] [Clang][SME2] Add multi-vector unpack builtins (PR #75075)

2023-12-12 Thread Kerry McLaughlin via cfe-commits
https://github.com/kmclaughlin-arm closed https://github.com/llvm/llvm-project/pull/75075 ___ 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-12 Thread via cfe-commits
https://github.com/CarolineConcatto approved this pull request. Thank you Momchil! 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] [llvm] [Clang][SVE2.1] Add floating-point variants of `svrevd_XX` (PR #75117)

2023-12-12 Thread via cfe-commits
CarolineConcatto wrote: nit: I would probably remove the sme flag from it. It needs some work to allow this instruction under sme. https://github.com/llvm/llvm-project/pull/75117 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.ll

[llvm] [clang-tools-extra] [LoopVectorize] Enable hoisting of runtime checks by default (PR #71538)

2023-12-12 Thread David Sherwood via cfe-commits
david-arm wrote: Gentle ping! https://github.com/llvm/llvm-project/pull/73515 has now landed so I think this patch should be ready to go. https://github.com/llvm/llvm-project/pull/71538 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://l

[clang] [Clang][SVE2.1] Add intrinsics for `WHILEcc` resulting in predicate pair (PR #75107)

2023-12-12 Thread via cfe-commits
@@ -1341,6 +1341,26 @@ def SVWHILEHS_U32 : SInst<"svwhilege_{d}[_{1}]", "Pmm", "PUcPUsPUiPUl", MergeNon def SVWHILEHS_U64 : SInst<"svwhilege_{d}[_{1}]", "Pnn", "PUcPUsPUiPUl", MergeNone, "aarch64_sve_whilehs", [IsOverloadWhile]>; } +let TargetGuard = "sve2p1|sme2" in {

[clang] [Clang][SVE2.1] Add intrinsics for `WHILEcc` resulting in predicate pair (PR #75107)

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

[mlir] [llvm] [compiler-rt] [clang] [clang-tools-extra] [libcxxabi] [flang] [openmp] [lldb] [libcxx] [MachineCopyPropagation] When the source of PreviousCopy is undef, we cannot replace sub register (

2023-12-12 Thread via cfe-commits
DianQK wrote: > I don't believe the undef is the issue - I think the issue is that > AArch64InstrInfo::isCopyInstrImpl is saying that a W-reg orr is a copy, even > if it is really a zextend because the entire X output register is depended > upon. Thanks for the explanation. > Can you try and

[clang] [NFC][CLANG] Fix static analyzer bugs about large copy by values (PR #75060)

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

[clang] a9b3054 - [NFC][CLANG] Fix static analyzer bugs about large copy by values (#75060)

2023-12-12 Thread via cfe-commits
Author: smanna12 Date: 2023-12-12T08:07:55-06:00 New Revision: a9b30545448695c76ddb25a16fae613d641cfeb7 URL: https://github.com/llvm/llvm-project/commit/a9b30545448695c76ddb25a16fae613d641cfeb7 DIFF: https://github.com/llvm/llvm-project/commit/a9b30545448695c76ddb25a16fae613d641cfeb7.diff LOG:

[clang] [NFC][CLANG] Fix static analyzer bugs about large copy by values (PR #75060)

2023-12-12 Thread via cfe-commits
smanna12 wrote: Thank you for reviews everyone! https://github.com/llvm/llvm-project/pull/75060 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SVE2.1] Add intrinsics for `WHILEcc` resulting in predicate pair (PR #75107)

2023-12-12 Thread via cfe-commits
https://github.com/CarolineConcatto dismissed https://github.com/llvm/llvm-project/pull/75107 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV][RFC] BareMetal multilibs YAML usage (PR #75191)

2023-12-12 Thread Emil J via cfe-commits
https://github.com/ekliptik created https://github.com/llvm/llvm-project/pull/75191 This is an initial, minimal change to get a viable embedded toolchain build for RV32. Add the 7th of December LLVM RISC-V call, it was discussed that merging the functionalities of the RISC-V toolchain driver i

[clang] [RISCV][RFC] BareMetal multilibs YAML usage (PR #75191)

2023-12-12 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it i

[clang] [RISCV][RFC] BareMetal multilibs YAML usage (PR #75191)

2023-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Emil J (ekliptik) Changes This is an initial, minimal change to get a viable embedded toolchain build for RV32. Add the 7th of December LLVM RISC-V call, it was discussed that merging the functionalities

[clang] [clang][ASTImporter] skip TemplateTypeParmDecl in VisitTypeAliasTemplateDecl (PR #74919)

2023-12-12 Thread Balázs Kéri via cfe-commits
balazske wrote: The `VisitTypeAliasTemplateDecl` function should be re-designed to check for structural equivalence at import. The following test does not pass because an existing `TypeAliasTemplateDecl` declaration with the same name is always found and returned, without check for structural

[clang] [RISCV][RFC] BareMetal multilibs YAML usage (PR #75191)

2023-12-12 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 ccec22b675195bf45a5e34583a866ab881f94dde eecc1d1bdcf7aa587dda5335ce8c1fcfbe2ddb6b --

[clang] [libcxx] [clang-tools-extra] [llvm] [libc++] P2770R0: "Stashing stashing iterators for proper flattening" (PR #66033)

2023-12-12 Thread Jakub Mazurkiewicz via cfe-commits
JMazurkiewicz wrote: Ping @ldionne, CI is green (except for code formatting). https://github.com/llvm/llvm-project/pull/66033 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   >