[mlir] [clang] fix issue 73559. (PR #74926)

2023-12-17 Thread via cfe-commits
https://github.com/ChipsSpectre updated https://github.com/llvm/llvm-project/pull/74926 >From 8a3e710de9122ac74ab886f8878e01893c19ee87 Mon Sep 17 00:00:00 2001 From: ChipsSpectre Date: Sun, 17 Dec 2023 10:01:39 +0100 Subject: [PATCH] [clang][Parse] `TryAnnotateCXXScopeToken` to be called only

[mlir] [clang] fix issue 73559. (PR #74926)

2023-12-17 Thread via cfe-commits
https://github.com/ChipsSpectre updated https://github.com/llvm/llvm-project/pull/74926 >From 8a3e710de9122ac74ab886f8878e01893c19ee87 Mon Sep 17 00:00:00 2001 From: ChipsSpectre Date: Sun, 17 Dec 2023 10:01:39 +0100 Subject: [PATCH 1/2] [clang][Parse] `TryAnnotateCXXScopeToken` to be called o

[mlir] [clang] fix issue 73559. (PR #74926)

2023-12-17 Thread via cfe-commits
https://github.com/ChipsSpectre updated https://github.com/llvm/llvm-project/pull/74926 >From 8a3e710de9122ac74ab886f8878e01893c19ee87 Mon Sep 17 00:00:00 2001 From: ChipsSpectre Date: Sun, 17 Dec 2023 10:01:39 +0100 Subject: [PATCH 1/3] [clang][Parse] `TryAnnotateCXXScopeToken` to be called o

[mlir] [clang] fix issue 73559. (PR #74926)

2023-12-17 Thread via cfe-commits
https://github.com/ChipsSpectre updated https://github.com/llvm/llvm-project/pull/74926 >From 8a3e710de9122ac74ab886f8878e01893c19ee87 Mon Sep 17 00:00:00 2001 From: ChipsSpectre Date: Sun, 17 Dec 2023 10:01:39 +0100 Subject: [PATCH 1/4] [clang][Parse] `TryAnnotateCXXScopeToken` to be called o

[clang] fix issue 73559. (PR #74926)

2023-12-17 Thread via cfe-commits
https://github.com/ChipsSpectre updated https://github.com/llvm/llvm-project/pull/74926 >From f5029be3d1dc8714cd4ccb42efe4c1f07c1c7dd0 Mon Sep 17 00:00:00 2001 From: ChipsSpectre Date: Sun, 17 Dec 2023 10:09:16 +0100 Subject: [PATCH] [clang][Parse] `TryAnnotateCXXScopeToken` to be called only

[clang] fix issue 73559. (PR #74926)

2023-12-17 Thread via cfe-commits
ChipsSpectre wrote: The changes are squashed into one commit now. Sorry for the force push, it was needed to rebase on main. Do you think it can be merged now? https://github.com/llvm/llvm-project/pull/74926 ___ cfe-commits mailing list cfe-commits@l

[clang] [AArch64][SME2] Add builtins for FDOT, BFDOT, SUDOT, USDOT, SDOT, UDOT. (PR #75737)

2023-12-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: Dinar Temirbulatov (dtemirbulatov) Changes Add SME2 DOT builtins. --- Patch is 156.21 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/75737.diff 5 Files Affe

[llvm] [clang-tools-extra] [clang] [OpenMP] atomic compare fail : Codegen support (PR #75709)

2023-12-17 Thread via cfe-commits
https://github.com/SunilKuravinakop converted_to_draft https://github.com/llvm/llvm-project/pull/75709 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [clang] [flang][Driver] Support `-pthread` to the frontend. (PR #75739)

2023-12-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-flang-driver Author: Kareem Ergawy (ergawy) Changes Adds `-pthread` option to flang. Since the GNU toolchain already adds the required linker flag, we only need to declare `FlangOption` as one of the supported options for `-p

[clang-tools-extra] [NFC][clang] add a clang tool for mlir refactor (PR #75279)

2023-12-17 Thread via cfe-commits
https://github.com/lipracer updated https://github.com/llvm/llvm-project/pull/75279 >From b4113714159824b517779a3635f4d24d21dd338f Mon Sep 17 00:00:00 2001 From: lipracer Date: Wed, 13 Dec 2023 11:37:12 +0800 Subject: [PATCH] [NFC][clang] add a clang tool for mlir refactor --- clang-tools-ext

[clang-tools-extra] [NFC][clang] add a clang tool for mlir refactor (PR #75279)

2023-12-17 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 18959c46e3ced1f7ad12a82e9f30bafe9d1f1733 b4113714159824b517779a3635f4d24d21dd338f --

[clang-tools-extra] [NFC][clang] add a clang tool for mlir refactor (PR #75279)

2023-12-17 Thread via cfe-commits
https://github.com/lipracer converted_to_draft https://github.com/llvm/llvm-project/pull/75279 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Expand response files before CDB interpolation (PR #75753)

2023-12-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: Dmitry Polukhin (dmpolukhin) Changes Summary: After https://reviews.llvm.org/D143436 response files stopped working with CDB interpolation. It has happened because interpolation removes all unknwn flags and extra input files. Response f

[clang-tools-extra] [clangd] Expand response files before CDB interpolation (PR #75753)

2023-12-17 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 a418be96de7872f6058207c695ef4698cb1dbb93 957951483dab19b0982a5dbe7d5370bd9061d931 --

[clang] 401f039 - [clang-format] Fix a bug in `IndentExternBlock: NoIndent` (#75731)

2023-12-17 Thread via cfe-commits
Author: Owen Pan Date: 2023-12-17T15:07:11-08:00 New Revision: 401f0396c3070567ce1ad0b12be7e48713ec0c65 URL: https://github.com/llvm/llvm-project/commit/401f0396c3070567ce1ad0b12be7e48713ec0c65 DIFF: https://github.com/llvm/llvm-project/commit/401f0396c3070567ce1ad0b12be7e48713ec0c65.diff LOG:

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

2023-12-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-driver Author: Joseph Huber (jhuber6) Changes Summary: The CPU target currently inherits all the libraries from the normal link job to ensure that it has access to the same envrionment that the host does. However, this pr

[clang] 31429e7 - [CodeGen] Emit a more accurate alignment for non-temporal loads/stores (#75675)

2023-12-17 Thread via cfe-commits
Author: Akira Hatanaka Date: 2023-12-17T18:22:44-08:00 New Revision: 31429e7a89590f88034920edd3e997aeabff8124 URL: https://github.com/llvm/llvm-project/commit/31429e7a89590f88034920edd3e997aeabff8124 DIFF: https://github.com/llvm/llvm-project/commit/31429e7a89590f88034920edd3e997aeabff8124.diff

[clang] [llvm] [RISCV] Add sifive-p450 CPU. (PR #75760)

2023-12-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v @llvm/pr-subscribers-clang Author: Craig Topper (topperc) Changes This is an out of order core with no vector unit. More information: https://www.sifive.com/cores/performance-p450-470 Scheduler model and other tuning will come in separat

[llvm] [clang] Recommit [RISCV] Update the interface of sifive vqmaccqoq (#74284) (PR #75768)

2023-12-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Brandon Wu (4vtomat) Changes The spec(https://sifive.cdn.prismic.io/sifive/60d5a660-3af0-49a3-a904-d2bbb1a21517_int8-matmul-spec.pdf) is updated. --- Patch is 121.73 KiB, truncated to 20.00 KiB below, full version: https://gith

[clang] 111a229 - [RISCV] Implement multi-lib reuse rule for RISC-V bare-metal toolchain (#73765)

2023-12-17 Thread via cfe-commits
Author: Brandon Wu Date: 2023-12-18T15:52:14+08:00 New Revision: 111a2290650743b27f70f9b24618411e54493b59 URL: https://github.com/llvm/llvm-project/commit/111a2290650743b27f70f9b24618411e54493b59 DIFF: https://github.com/llvm/llvm-project/commit/111a2290650743b27f70f9b24618411e54493b59.diff LO

[clang] ca10343 - [clang][dataflow] Fix an issue with `Environment::getResultObjectLocation()`. (#75483)

2023-12-18 Thread via cfe-commits
Author: martinboehme Date: 2023-12-18T09:10:03+01:00 New Revision: ca1034341cfec226c09ff0e473c6ecbcc2a1194c URL: https://github.com/llvm/llvm-project/commit/ca1034341cfec226c09ff0e473c6ecbcc2a1194c DIFF: https://github.com/llvm/llvm-project/commit/ca1034341cfec226c09ff0e473c6ecbcc2a1194c.diff

[clang] [clang][dataflow] Fix an issue with `Environment::getResultObjectLocation()`. (PR #75483)

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

[clang-tools-extra] [lld] [llvm] [clang] [compiler-rt] [flang] [libc] [lldb] [libcxx] Don't emit relax relocs like R_X86_64_REX_GOTPCRELX on X86 target for OPENMP internal vars. (PR #75564)

2023-12-18 Thread via cfe-commits
https://github.com/UmeshKalappa0 updated https://github.com/llvm/llvm-project/pull/75564 >From 4125e4a709c594562fa6c52f045ba7442e3cb523 Mon Sep 17 00:00:00 2001 From: Umesh Kalappa Date: Fri, 15 Dec 2023 11:52:52 +0530 Subject: [PATCH 1/2] Problem :For Kernel Modules ,emitting the relocs like

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

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes Fixes https://github.com/llvm/llvm-project/issues/64347 --- Full diff: https://github.com/llvm/llvm-project/pull/75779.diff 4 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+2) - (modified) clang/

[clang] [clang][Sema] Add -Wswitch-default warning option (PR #73077)

2023-12-18 Thread via cfe-commits
gendalph wrote: ` enum class test { err1, err2, ok }; int check_err (test v) { switch (v) { case test::err1: return 1; case test::err2: return 2; case test::ok: break; } return 0; } ` https://github.com/llvm/llvm-project/pull/73077 ___

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

2023-12-18 Thread via cfe-commits
@@ -10804,9 +10804,12 @@ QualType Sema::DeduceTemplateSpecializationFromInitializer( if (getLangOpts().CPlusPlus20 && !HasAnyDeductionGuide) { if (ListInit && ListInit->getNumInits()) { SynthesizeAggrGuide(ListInit); - } else if (PL && PL->getNumExprs())

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

2023-12-18 Thread via cfe-commits
https://github.com/cor3ntin commented: Why remove the support for ParenListExpr entirely? Could you not fallback on looking at the init list expression only when ParenListExpr is null? https://github.com/llvm/llvm-project/pull/75779 ___ cfe-commits ma

[clang] [Concepts] Avoid substituting into constraints for invalid TemplateDecls (PR #75697)

2023-12-18 Thread via cfe-commits
@@ -353,6 +353,10 @@ static ExprResult calculateConstraintSatisfaction( if (Inst.isInvalid()) return ExprError(); + // An empty expression for substitution failure messages. + if (Template && Template->isInvalidDecl()) +retur

[clang] [clang][Interp] Implement integral->complex casts (PR #75590)

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

[clang] [clang][Interp] Implement integral->complex casts (PR #75590)

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

[clang] [clang][Interp] Implement integral->complex casts (PR #75590)

2023-12-18 Thread via cfe-commits
@@ -283,6 +283,28 @@ bool ByteCodeExprGen::VisitCastExpr(const CastExpr *CE) { case CK_ToVoid: return discard(SubExpr); + case CK_IntegralRealToComplex: + case CK_FloatingRealToComplex: { +// We're creating a complex value here, so need to cor3nti

[clang] [clang] Fix CTAD not respect default template arguments that were added after the definition. (PR #75569)

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

[clang] [clang][Interp] Support __real/__imag on primitives (PR #75485)

2023-12-18 Thread via cfe-commits
@@ -2761,6 +2761,8 @@ bool ByteCodeExprGen::VisitUnaryOperator(const UnaryOperator *E) { return false; return DiscardResult ? this->emitPop(*T, E) : this->emitComp(*T, E); case UO_Real: { // __real x +if (T) + return this->delegate(SubExpr); assert(!T

[clang] [clang][Interp] Support __real/__imag on primitives (PR #75485)

2023-12-18 Thread via cfe-commits
@@ -2776,6 +2778,11 @@ bool ByteCodeExprGen::VisitUnaryOperator(const UnaryOperator *E) { return true; } case UO_Imag: { // __imag x +if (T) { + if (!this->discard(SubExpr)) +return false; + return this->visitZeroInitializer(*T, SubExpr->getType()

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

2023-12-18 Thread via cfe-commits
@@ -69,6 +69,29 @@ OpenACCDirectiveKindEx getOpenACCDirectiveKind(Token Tok) { .Default(OpenACCDirectiveKindEx::Invalid); } +// Translate single-token string representations to the OpenCC Clause Kind. +OpenACCClauseKind getOpenACCClauseKind(Token Tok) {

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

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

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

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

[clang] [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (PR #75052)

2023-12-18 Thread via cfe-commits
@@ -262,12 +291,52 @@ OpenACCDirectiveKind ParseOpenACCDirectiveKind(Parser &P) { return DirKind; } +bool ParseOpenACCClause(Parser &P) { cor3ntin wrote: Thanks https://github.com/llvm/llvm-project/pull/75052 __

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

2023-12-18 Thread via cfe-commits
Author: Momchil Velikov Date: 2023-12-18T11:03:39Z New Revision: 1faa1cd02d569c1e58303ab4bd9d082aecda2a52 URL: https://github.com/llvm/llvm-project/commit/1faa1cd02d569c1e58303ab4bd9d082aecda2a52 DIFF: https://github.com/llvm/llvm-project/commit/1faa1cd02d569c1e58303ab4bd9d082aecda2a52.diff LO

[clang-tools-extra] [NFC][clang] add a clang tool for mlir refactor (PR #75279)

2023-12-18 Thread via cfe-commits
https://github.com/lipracer updated https://github.com/llvm/llvm-project/pull/75279 >From 71ae35b1538201790e5fc7a25d1d7aba7df7913d Mon Sep 17 00:00:00 2001 From: lipracer Date: Wed, 13 Dec 2023 11:37:12 +0800 Subject: [PATCH] [NFC][clang] add a clang tool for mlir refactor --- clang-tools-ext

[clang] 42239d2 - [clang] Fix CTAD not respect default template arguments that were added after the definition. (#75569)

2023-12-18 Thread via cfe-commits
Author: Haojian Wu Date: 2023-12-18T12:37:29+01:00 New Revision: 42239d2e96c5683a2973c39ea7ea20b616218b66 URL: https://github.com/llvm/llvm-project/commit/42239d2e96c5683a2973c39ea7ea20b616218b66 DIFF: https://github.com/llvm/llvm-project/commit/42239d2e96c5683a2973c39ea7ea20b616218b66.diff LO

[clang] dea16eb - [LLVM][IR] Replace ConstantInt's specialisation of getType() with getIntegerType(). (#75217)

2023-12-18 Thread via cfe-commits
Author: Paul Walker Date: 2023-12-18T11:58:42Z New Revision: dea16ebd2613a4a218c53045270fc4fcc9b427ad URL: https://github.com/llvm/llvm-project/commit/dea16ebd2613a4a218c53045270fc4fcc9b427ad DIFF: https://github.com/llvm/llvm-project/commit/dea16ebd2613a4a218c53045270fc4fcc9b427ad.diff LOG: [

[clang] [AArch64][SME2] Add builtins for FDOT, BFDOT, SUDOT, USDOT, SDOT, UDOT. (PR #75737)

2023-12-18 Thread via cfe-commits
CarolineConcatto wrote: Hey Dinar, I will leave the same comments Kerry left in the other one Can you add check for the immediate in acle_sme2_imm.cpp https://github.com/llvm/llvm-project/pull/75737 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[clang-tools-extra] [NFC][clang] add a clang tool for mlir refactor (PR #75279)

2023-12-18 Thread via cfe-commits
https://github.com/lipracer ready_for_review https://github.com/llvm/llvm-project/pull/75279 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[RISCV] Implement multi-lib reuse rule for RISC-V bare-metal … (PR #75789)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: antoine moynault (antmox) Changes …toolchain (#73765)" This reverts commit 111a2290650743b27f70f9b24618411e54493b59, as it broke several bots https://lab.llvm.org/buildbot/#/builders/245/builds/18162 https://lab.llvm.org/buildb

[clang] Revert "[RISCV] Implement multi-lib reuse rule for RISC-V bare-metal … (PR #75789)

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

[clang] 9727919 - Revert "[RISCV] Implement multi-lib reuse rule for RISC-V bare-metal … (#75789)

2023-12-18 Thread via cfe-commits
Author: antoine moynault Date: 2023-12-18T13:52:21+01:00 New Revision: 9727919a2e35d2114d52f33a7751696ae1595581 URL: https://github.com/llvm/llvm-project/commit/9727919a2e35d2114d52f33a7751696ae1595581 DIFF: https://github.com/llvm/llvm-project/commit/9727919a2e35d2114d52f33a7751696ae1595581.di

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

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sander de Smalen (sdesmalen-arm) Changes This includes: * __arm_in_streaming_mode() * __arm_has_sme() * __arm_za_disable() * __svundef_za() --- Full diff: https://github.com/llvm/llvm-project/pull/75791.diff 4 Files Affected: - (modifie

[clang-tools-extra] [clang] [llvm] [clang] Fix false positive -Wmissing-field-initializer for anonymous unions (PR #70829)

2023-12-18 Thread via cfe-commits
mikaelholmen wrote: Hi again @Fznamznon the following also started causing warnings after this patch (also with the fix) ``` struct S3 { long int l; struct { int a, b; } d1[2]; }; struct S3 s32 = { .d1[0].a = 1 }; ``` We get ``` foo.c:6:30: warning: missing field 'b' initializer [-Wmissin

[clang] [AST] RecursiveASTVisitor: traverse the require clause for partial template specializations. (PR #75795)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes This fixes tooling (clangd, include-cleaner) bugs where we miss functionalities on concept AST nodes. --- Full diff: https://github.com/llvm/llvm-project/pull/75795.diff 2 Files Affected: - (modified) clang/

[clang] [clang][Interp] Fix nullptr array dereferencing (PR #75798)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes The attached test case would cause an assertion failure in Pointer.h when operating on a null pointer. --- Full diff: https://github.com/llvm/llvm-project/pull/75798.diff 3 Files Affected: - (modified) cl

[clang-tools-extra] [llvm] [clang] [clang] Fix false positive -Wmissing-field-initializer for anonymous unions (PR #70829)

2023-12-18 Thread via cfe-commits
mikaelholmen wrote: @Fznamznon : Thank you! I wider discussion about how clang should behave sounds good. https://github.com/llvm/llvm-project/pull/70829 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[clang] 4ef6587 - [Clang][OpenMP] Fix mapping of structs to device (#75642)

2023-12-18 Thread via cfe-commits
Author: Gheorghe-Teodor Bercea Date: 2023-12-18T09:47:59-05:00 New Revision: 4ef6587715bec4520332528c4a71fe5a9ac10477 URL: https://github.com/llvm/llvm-project/commit/4ef6587715bec4520332528c4a71fe5a9ac10477 DIFF: https://github.com/llvm/llvm-project/commit/4ef6587715bec4520332528c4a71fe5a9ac10

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

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

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

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

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

2023-12-18 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff d777504355dac9a2a8a7bbba6001d05b936868b2 a1840e028ef8b412ffb13b9d105e34fee54dfaed --

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[clang] f0691bc - [clang][lex] Fix non-portability diagnostics with absolute path (#74782)

2023-12-18 Thread via cfe-commits
Author: Jan Svoboda Date: 2023-12-18T12:11:27-08:00 New Revision: f0691bcdf90bc44d0737e3395423e84b075ab84a URL: https://github.com/llvm/llvm-project/commit/f0691bcdf90bc44d0737e3395423e84b075ab84a DIFF: https://github.com/llvm/llvm-project/commit/f0691bcdf90bc44d0737e3395423e84b075ab84a.diff L

[llvm] [clang] [RISCV][MC] MC layer support for the experimental zalasr extension (PR #69685)

2023-12-18 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff bf2e05c7fbc739cd9b9086163303f846ee2806d2 89b78a0af5547fc4c0c85368698c1bd2b0151993 --

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

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

[clang] d1e2b96 - [clang][fatlto] Don't set ThinLTO module flag with FatLTO (#75079)

2023-12-18 Thread via cfe-commits
Author: Paul Kirth Date: 2023-12-18T13:03:13-08:00 New Revision: d1e2b96b606e5bf8329ab5821f7a614163a56e16 URL: https://github.com/llvm/llvm-project/commit/d1e2b96b606e5bf8329ab5821f7a614163a56e16 DIFF: https://github.com/llvm/llvm-project/commit/d1e2b96b606e5bf8329ab5821f7a614163a56e16.diff LO

[clang] Revert counted_by attribute feature (PR #75857)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Bill Wendling (bwendling) Changes There are many issues that popped up with the counted_by feature. The patch has grown too large and approval is blocking Linux testing. Includes reverts of: commit 769bc11f684d ("[Clang] Implement

[clang] Revert counted_by attribute feature (PR #75857)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Bill Wendling (bwendling) Changes There are many issues that popped up with the counted_by feature. The patch has grown too large and approval is blocking Linux testing. Includes reverts of: commit 769bc11f684d ("[Clang] Implement the 'co

[clang] [mlir] [compiler-rt] [libcxx] [lld] [clang-tools-extra] [llvm] [lldb] [libc++][ranges] Implement ranges::contains_subrange (PR #66963)

2023-12-18 Thread via cfe-commits
@@ -0,0 +1,303 @@ +//===--===// +// +// 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: Apa

[llvm] [compiler-rt] [libc] [flang] [libcxx] [clang-tools-extra] [mlir] [lldb] [clang] [lld] GFX12: Add LoopDataPrefetchPass (PR #75625)

2023-12-18 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 33d5f4314f4fd83be21e22054e662220a62fe40b 6296613d1d3f3e8b63e1af1d12d28f2000facc0e --

[clang] cca4d6c - Revert counted_by attribute feature (#75857)

2023-12-18 Thread via cfe-commits
Author: Bill Wendling Date: 2023-12-18T15:16:09-08:00 New Revision: cca4d6cfd2a3780bb432e4f8234704d920dcce50 URL: https://github.com/llvm/llvm-project/commit/cca4d6cfd2a3780bb432e4f8234704d920dcce50 DIFF: https://github.com/llvm/llvm-project/commit/cca4d6cfd2a3780bb432e4f8234704d920dcce50.diff

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

2023-12-18 Thread via cfe-commits
h-vetinari wrote: > #75857 has been merged in. This PR is no longer valid. Couldn't you just rebase it like: - base: `main` - pick revert of #75857 - all the commits of this PR It's a bit of a matter of taste obviously how to deal with such situations. I tend to prefer not to split the contex

[clang] [ARM] arm_acle.h add Coprocessor Instrinsics (PR #75440)

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

[clang] [ARM] arm_acle.h add Coprocessor Instrinsics (PR #75440)

2023-12-18 Thread via cfe-commits
https://github.com/hstk30-hw updated https://github.com/llvm/llvm-project/pull/75440 >From fdb2b45298ef5282897297c913a195af07aec64b Mon Sep 17 00:00:00 2001 From: hstk30-hw Date: Thu, 14 Dec 2023 15:40:03 +0800 Subject: [PATCH] feat: arm_acle.h add Coprocessor Instrinsics --- clang/lib/Header

[clang] d9d20bd - Honor -fno-sanitize-link-runtime for libclang_rt.asan_static (#66414)

2023-12-18 Thread via cfe-commits
Author: Colin Cross Date: 2023-12-18T17:15:41-08:00 New Revision: d9d20bd81f2f95c9b7510725fb76975e8123a542 URL: https://github.com/llvm/llvm-project/commit/d9d20bd81f2f95c9b7510725fb76975e8123a542 DIFF: https://github.com/llvm/llvm-project/commit/d9d20bd81f2f95c9b7510725fb76975e8123a542.diff L

[clang-tools-extra] [llvm] [clang] [libcxx] [libcxx] adds ranges::fold_left_with_iter and ranges::fold_left (PR #75259)

2023-12-18 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 12cbccc3125725fad00022a9b3a52ed9be69c3a3 141be9754313d239d5a0df61fa18935cd276b0b5 --

[clang] [flang] [flang][driver] Rename `flang-new` as `flang` (PR #74377)

2023-12-18 Thread via cfe-commits
h-vetinari wrote: It appears this PR now has conflicts that need resolving... https://github.com/llvm/llvm-project/pull/74377 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Support MSPropertyRefExpr as placement arg to new-expression (PR #75883)

2023-12-18 Thread via cfe-commits
https://github.com/Sirraide created https://github.com/llvm/llvm-project/pull/75883 It seems we were forgetting to call `checkArgsForPlaceholders` on the placement arguments of new-expressions in Sema. I don't think that was intended—at least doing so doesn't seem to break anything—so this pr

[clang] [Clang] Support MSPropertyRefExpr as placement arg to new-expression (PR #75883)

2023-12-18 Thread via cfe-commits
Sirraide wrote: CC @AaronBallman https://github.com/llvm/llvm-project/pull/75883 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Support MSPropertyRefExpr as placement arg to new-expression (PR #75883)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Sirraide) Changes It seems we were forgetting to call `checkArgsForPlaceholders` on the placement arguments of new-expressions in Sema. I don't think that was intended—at least doing so doesn't seem to break anything—so this pr adds

[llvm] [clang] [SPARC] Support reserving arbitrary general purpose registers (PR #74927)

2023-12-18 Thread via cfe-commits
koachan wrote: Ping? https://github.com/llvm/llvm-project/pull/74927 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fdee0a3 - [OpenACC] Add 'clause' parsing infrastructure plus a few clauses (#75052)

2023-12-18 Thread via cfe-commits
Author: Erich Keane Date: 2023-12-18T18:53:37-08:00 New Revision: fdee0a35d9da1febfab20ead8565cf6167103b51 URL: https://github.com/llvm/llvm-project/commit/fdee0a35d9da1febfab20ead8565cf6167103b51 DIFF: https://github.com/llvm/llvm-project/commit/fdee0a35d9da1febfab20ead8565cf6167103b51.diff L

[clang] [llvm] DiagnosticHandler: refactor error checking (PR #75889)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Fangrui Song (MaskRay) Changes In LLVMContext::diagnose, set `HasErrors` for `DS_Error` so that all derived `DiagnosticHandler` have correct `HasErrors` information. An alternative is to set `HasErrors` in `DiagnosticHandler::handl

[llvm] [clang] DiagnosticHandler: refactor error checking (PR #75889)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Fangrui Song (MaskRay) Changes In LLVMContext::diagnose, set `HasErrors` for `DS_Error` so that all derived `DiagnosticHandler` have correct `HasErrors` information. An alternative is to set `HasErrors` in `DiagnosticHandler::handleDiagnos

[llvm] [clang] DiagnosticHandler: refactor error checking (PR #75889)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Fangrui Song (MaskRay) Changes In LLVMContext::diagnose, set `HasErrors` for `DS_Error` so that all derived `DiagnosticHandler` have correct `HasErrors` information. An alternative is to set `HasErrors` in `DiagnosticHandler::handleDiagn

[clang] Recommit [RISCV] Implement multi-lib reuse rule for RISC-V bare-metal toolchain (#73765) (PR #75890)

2023-12-18 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Brandon Wu (4vtomat) Changes Extend the multi-lib re-use selection mechanism for RISC-V. This funciton will try to re-use multi-lib if they are compatible. Definition of compatible: - ABI must be the same. - multi-lib is a subs

<    29   30   31   32   33   34   35   36   37   38   >