[clang] [llvm] [X86] Use vXi1 for `k` constraint in inline asm (PR #77733)

2024-01-14 Thread Shengchen Kan via cfe-commits
@@ -57046,17 +57046,17 @@ X86TargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI, // in the normal allocation? case 'k': if (Subtarget.hasAVX512()) { -if (VT == MVT::i1) +if (VT == MVT::v1i1 || VT == MVT::i1) re

[clang] [clang] [SemaCXX] Implement CWG2627 Bit-fields and narrowing conversions (PR #78112)

2024-01-14 Thread A. Jiang via cfe-commits
frederick-vs-ja wrote: > Should this be a SFINAE-able error before C++23? (It isn't currently) I believe this should (in C++11 and later modes). https://github.com/llvm/llvm-project/pull/78112 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

[llvm] [clang] [RISCV] Relax march string order constraint (PR #78120)

2024-01-14 Thread Piyou Chen via cfe-commits
https://github.com/BeMg created https://github.com/llvm/llvm-project/pull/78120 Address the https://github.com/riscv-non-isa/riscv-toolchain-conventions/pull/14 This patch relax the `-march` string for accept any order. 1. single-letter extension can be arbitrary order - march=rv32iamdf 2

[llvm] [clang] [RISCV] Relax march string order constraint (PR #78120)

2024-01-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-support Author: Piyou Chen (BeMg) Changes Address the https://github.com/riscv-non-isa/riscv-toolchain-conventions/pull/14 This patch relax the `-march` string for accept any order. 1. single-letter extension can be arbitrary order - march=rv

[clang-tools-extra] [llvm] [MLGO] Upstream the corpus extraction tooling (PR #72319)

2024-01-14 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/72319 >From c3f723c8a975cc5e075d56350645b0be486f3cda Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Tue, 14 Nov 2023 14:20:24 -0800 Subject: [PATCH] [MLGO] Upstream the corpus extraction tooling --- llvm/

[clang-tools-extra] [llvm] [MLGO] Upstream the corpus extraction tooling (PR #72319)

2024-01-14 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/72319 >From c3f723c8a975cc5e075d56350645b0be486f3cda Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Tue, 14 Nov 2023 14:20:24 -0800 Subject: [PATCH 1/2] [MLGO] Upstream the corpus extraction tooling --- l

[clang] [clang][docs] Improve "Obtaining Clang" section (PR #71313)

2024-01-14 Thread Jessica Clarke via cfe-commits
@@ -22,8 +22,8 @@ started guide `_. .. code-block:: console - cd ~/clang-llvm - git clone https://github.com/llvm/llvm-project.git + mkdir ~/clang-llvm && cd ~/clang-llvm + git clone https://github.com/llvm/llvm-p

[clang] [clang][docs] Improve "Obtaining Clang" section (PR #71313)

2024-01-14 Thread Jessica Clarke via cfe-commits
https://github.com/jrtc27 edited https://github.com/llvm/llvm-project/pull/71313 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Overwrite cpu target features for full arch string in target attribute (PR #77426)

2024-01-14 Thread Luke Lau via cfe-commits
https://github.com/lukel97 updated https://github.com/llvm/llvm-project/pull/77426 >From 0fadce20076015fbb28d449a2b3086f2e4261604 Mon Sep 17 00:00:00 2001 From: Luke Lau Date: Tue, 9 Jan 2024 15:32:15 +0700 Subject: [PATCH 1/2] [RISCV] Overwrite cpu target features for full arch string in targ

[clang] [llvm] [libc] [Libc] Give more functions restrict qualifiers (PR #78061)

2024-01-14 Thread via cfe-commits
AtariDreams wrote: @lntue Do you think this PR is acceptable? https://github.com/llvm/llvm-project/pull/78061 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [libc] [Libc] Give more functions restrict qualifiers (PR #78061)

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

[llvm] [clang] riscv vector cc (PR #77560)

2024-01-14 Thread Brandon Wu via cfe-commits
@@ -24,6 +24,19 @@ def CSR_ILP32D_LP64D : CalleeSavedRegs<(add CSR_ILP32_LP64, F8_D, F9_D, (sequence "F%u_D", 18, 27))>; +defvar CSR_V = (add (sequence "V%u", 1, 7), (sequence "V%u", 24, 31), + V2M2, V4M2, V6M2, V24M2, V26M2, V28M

[clang-tools-extra] [llvm] [MLGO] Upstream the corpus extraction tooling (PR #72319)

2024-01-14 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 edited https://github.com/llvm/llvm-project/pull/72319 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [llvm] [MLGO] Upstream the corpus extraction tooling (PR #72319)

2024-01-14 Thread Aiden Grossman via cfe-commits
https://github.com/boomanaiden154 ready_for_review https://github.com/llvm/llvm-project/pull/72319 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2024-01-14 Thread Jessica Paquette via cfe-commits
Hana =?utf-8?q?Dusíková?= Message-ID: In-Reply-To: ornata wrote: I think that skipping whitespace-only regions in llvm-cov intuitively makes sense. In general, showing coverage information about empty spaces doesn't give the user any useful information. I think I'd do that part in a separ

[clang-tools-extra] [llvm] [MLGO] Upstream the corpus extraction tooling (PR #72319)

2024-01-14 Thread Aiden Grossman via cfe-commits
boomanaiden154 wrote: After this lands, my plan is to work on getting CI up and running, both to run testing and also to publish the package. https://github.com/llvm/llvm-project/pull/72319 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

[mlir] [libcxx] [libunwind] [flang] [llvm] [clang-tools-extra] [lldb] [clang] [libunwind] fix dynamic .eh_frame registration (PR #77185)

2024-01-14 Thread via cfe-commits
https://github.com/SihangZhu updated https://github.com/llvm/llvm-project/pull/77185 >From ed0a694dbf7cb8e6775b53f3553f4ec7d1fdbee2 Mon Sep 17 00:00:00 2001 From: SihangZhu Date: Sat, 6 Jan 2024 15:43:41 +0800 Subject: [PATCH] [libunwind] fix dynamic .eh_frame registration --- libunwind/src/l

[llvm] [clang] [TargetParser] Define AEK_FCMA and AEK_JSCVT for tsv110 (PR #75516)

2024-01-14 Thread Bryan Chan via cfe-commits
https://github.com/bryanpkc updated https://github.com/llvm/llvm-project/pull/75516 >From a39cd3fba9cd8fb6757bfd297d57f6ab98b36405 Mon Sep 17 00:00:00 2001 From: Qi Hu Date: Thu, 14 Dec 2023 13:35:52 -0500 Subject: [PATCH] [TargetParser] Define AEK_FCMA and AEK_JSCVT for tsv110 We define AEK_J

[llvm] [clang-tools-extra] [libcxx] [libunwind] [flang] [mlir] [lldb] [clang] [libunwind] fix dynamic .eh_frame registration (PR #77185)

2024-01-14 Thread via cfe-commits
lhames wrote: Hi @SihangZhu. Sorry for the delay — will try to review this tomorrow. https://github.com/llvm/llvm-project/pull/77185 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [lldb] [compiler-rt] [clang-tools-extra] [lld] [libcxx] [llvm] [mlir] [clang] [clang-format] Add ShortReturnTypeLength option. (PR #78011)

2024-01-14 Thread via cfe-commits
https://github.com/rmarker updated https://github.com/llvm/llvm-project/pull/78011 >From c4d28f82e108f9f12ccd0375e2a3502025b8c1e8 Mon Sep 17 00:00:00 2001 From: rmarker Date: Thu, 11 Jan 2024 15:01:18 +1030 Subject: [PATCH 1/3] [clang-format] Add ShortReturnTypeLength option. --- clang/docs/C

[clang] [RISCV][clang] Optimize memory usage of intrinsic lookup table (PR #77487)

2024-01-14 Thread Brandon Wu via cfe-commits
@@ -416,8 +416,10 @@ class RVVIntrinsic { RVVTypePtr getOutputType() const { return OutputType; } const RVVTypes &getInputTypes() const { return InputTypes; } llvm::StringRef getBuiltinName() const { return BuiltinName; } - llvm::StringRef getName() const { return Name;

[clang] [RISCV] Support __riscv_v_fixed_vlen for vbool types. (PR #76551)

2024-01-14 Thread Wang Pengcheng via cfe-commits
https://github.com/wangpc-pp edited https://github.com/llvm/llvm-project/pull/76551 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Support __riscv_v_fixed_vlen for vbool types. (PR #76551)

2024-01-14 Thread Wang Pengcheng via cfe-commits
@@ -2415,7 +2415,10 @@ only be a power of 2 between 64 and 65536. For types where LMUL!=1, ``__riscv_v_fixed_vlen`` needs to be scaled by the LMUL of the type before passing to the attribute. -``vbool*_t`` types are not supported at this time. +For ``vbool*_t`` types, ``__ris

[clang] [RISCV] Support __riscv_v_fixed_vlen for vbool types. (PR #76551)

2024-01-14 Thread Wang Pengcheng via cfe-commits
https://github.com/wangpc-pp commented: Please add a release note. https://github.com/llvm/llvm-project/pull/76551 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV][clang] Optimize memory usage of intrinsic lookup table (PR #77487)

2024-01-14 Thread Brandon Wu via cfe-commits
@@ -463,7 +464,7 @@ void RISCVIntrinsicManagerImpl::CreateRVVIntrinsicDecl(LookupResult &LR, bool RISCVIntrinsicManagerImpl::CreateIntrinsicIfFound(LookupResult &LR, IdentifierInfo *II,

[llvm] [clang] [RISCV] Add Zicfiss support to the shadow call stack implementation. (PR #68075)

2024-01-14 Thread Yeting Kuo via cfe-commits
yetingk wrote: Ping. https://github.com/llvm/llvm-project/pull/68075 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 844f833 - Fix crash with modules and constexpr destructor (#69076)

2024-01-14 Thread via cfe-commits
Author: Jonas Hahnfeld Date: 2024-01-15T08:40:26+01:00 New Revision: 844f8335f211da19ae4b375761013909a3394d9a URL: https://github.com/llvm/llvm-project/commit/844f8335f211da19ae4b375761013909a3394d9a DIFF: https://github.com/llvm/llvm-project/commit/844f8335f211da19ae4b375761013909a3394d9a.diff

[clang] Fix crash with modules and constexpr destructor (PR #69076)

2024-01-14 Thread Jonas Hahnfeld via cfe-commits
https://github.com/hahnjo closed https://github.com/llvm/llvm-project/pull/69076 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libcxx] [flang] [clang-tools-extra] [lld] [mlir] [llvm] [compiler-rt] [lldb] [clang] [clang-tidy]Add new check readability-avoid-nested-conditional-operator (PR #78022)

2024-01-14 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. LGTM. Sync first line of release notes, doc, doxygen and could land. https://github.com/llvm/llvm-project/pull/78022 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[compiler-rt] [clang] [flang] [libcxx] [lldb] [mlir] [lld] [clang-tools-extra] [llvm] [clang-tidy]Add new check readability-avoid-nested-conditional-operator (PR #78022)

2024-01-14 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL edited https://github.com/llvm/llvm-project/pull/78022 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[lldb] [libcxx] [clang-tools-extra] [llvm] [compiler-rt] [clang] [mlir] [flang] [lld] [clang-tidy]Add new check readability-avoid-nested-conditional-operator (PR #78022)

2024-01-14 Thread Piotr Zegar via cfe-commits
@@ -224,6 +224,11 @@ New checks Recommends the smallest possible underlying type for an ``enum`` or ``enum`` class based on the range of its enumerators. +- New :doc:`readability-avoid-nested-conditional-operator + ` check. + + Finds nested conditional operator.

[llvm] [clang] [CodeGen] Port AtomicExpand to new Pass Manager (PR #71220)

2024-01-14 Thread Rishabh Bali via cfe-commits
https://github.com/Ris-Bali updated https://github.com/llvm/llvm-project/pull/71220 >From 0948e11b508e3f978f76a639f27101c8825250c7 Mon Sep 17 00:00:00 2001 From: Rishabh Bali Date: Sun, 14 Jan 2024 22:50:06 +0530 Subject: [PATCH 1/4] Port Atomicexpandpass to new PM --- llvm/include/llvm/CodeG

[clang-tools-extra] [clang-tid]fix modernize-use-auto incorrect fix hints for pointer (PR #77943)

2024-01-14 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,18 @@ +// RUN: %check_clang_tidy -check-suffix=REMOVE %s modernize-use-auto %t -- \ +// RUN: -config="{CheckOptions: {modernize-use-auto.RemoveStars: 'true', modernize-use-auto.MinTypeNameLength: '0'}}" +// RUN: %check_clang_tidy %s modernize-use-auto %t -- \ +// RUN

[clang] [RISCV][clang] Optimize memory usage of intrinsic lookup table (PR #77487)

2024-01-14 Thread Craig Topper via cfe-commits
@@ -416,8 +416,10 @@ class RVVIntrinsic { RVVTypePtr getOutputType() const { return OutputType; } const RVVTypes &getInputTypes() const { return InputTypes; } llvm::StringRef getBuiltinName() const { return BuiltinName; } - llvm::StringRef getName() const { return Name;

[clang] [RISCV][clang] Optimize memory usage of intrinsic lookup table (PR #77487)

2024-01-14 Thread Brandon Wu via cfe-commits
@@ -380,14 +380,14 @@ void RISCVIntrinsicManagerImpl::InitRVVIntrinsic( OverloadedName += "_" + OverloadedSuffixStr.str(); // clang built-in function name, e.g. __builtin_rvv_vadd. - std::string BuiltinName = "__builtin_rvv_" + std::string(Record.Name); + std::string B

[clang] [RISCV][clang] Optimize memory usage of intrinsic lookup table (PR #77487)

2024-01-14 Thread Craig Topper via cfe-commits
@@ -463,7 +464,7 @@ void RISCVIntrinsicManagerImpl::CreateRVVIntrinsicDecl(LookupResult &LR, bool RISCVIntrinsicManagerImpl::CreateIntrinsicIfFound(LookupResult &LR, IdentifierInfo *II,

[clang] [RISCV][clang] Optimize memory usage of intrinsic lookup table (PR #77487)

2024-01-14 Thread Craig Topper via cfe-commits
@@ -463,7 +464,7 @@ void RISCVIntrinsicManagerImpl::CreateRVVIntrinsicDecl(LookupResult &LR, bool RISCVIntrinsicManagerImpl::CreateIntrinsicIfFound(LookupResult &LR, IdentifierInfo *II,

[clang] [RISCV][clang] Optimize memory usage of intrinsic lookup table (PR #77487)

2024-01-14 Thread Brandon Wu via cfe-commits
@@ -463,7 +464,7 @@ void RISCVIntrinsicManagerImpl::CreateRVVIntrinsicDecl(LookupResult &LR, bool RISCVIntrinsicManagerImpl::CreateIntrinsicIfFound(LookupResult &LR, IdentifierInfo *II,

[clang] [RISCV][clang] Optimize memory usage of intrinsic lookup table (PR #77487)

2024-01-14 Thread Brandon Wu via cfe-commits
@@ -416,8 +416,10 @@ class RVVIntrinsic { RVVTypePtr getOutputType() const { return OutputType; } const RVVTypes &getInputTypes() const { return InputTypes; } llvm::StringRef getBuiltinName() const { return BuiltinName; } - llvm::StringRef getName() const { return Name;

[clang] [RISCV][clang] Optimize memory usage of intrinsic lookup table (PR #77487)

2024-01-14 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat deleted https://github.com/llvm/llvm-project/pull/77487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Support __riscv_v_fixed_vlen for vbool types. (PR #76551)

2024-01-14 Thread Craig Topper via cfe-commits
@@ -2415,7 +2415,10 @@ only be a power of 2 between 64 and 65536. For types where LMUL!=1, ``__riscv_v_fixed_vlen`` needs to be scaled by the LMUL of the type before passing to the attribute. -``vbool*_t`` types are not supported at this time. +For ``vbool*_t`` types, ``__ris

<    1   2   3