[clang] [llvm] [clang] Add "debug_transparent" attribute (PR #109490)

2024-09-26 Thread Michael Buch via cfe-commits
@@ -109,6 +110,21 @@ static bool IsArtificial(VarDecl const *VD) { cast(VD->getDeclContext())->isImplicit()); } +static bool usesDebugTransparent(const Decl *D, const CodeGenModule &CGM) { + if (!D) +return false; + + if (auto *attr = D->get

[clang] [clang][RISCV] Introduce command line options for RISC-V Zicfilp CFI (PR #109784)

2024-09-26 Thread Kito Cheng via cfe-commits
https://github.com/kito-cheng approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/109784 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV] Introduce command line options for RISC-V Zicfilp CFI (PR #109784)

2024-09-26 Thread Ming-Yi Lai via cfe-commits
mylai-mtk wrote: > Could you update this PR? > https://github.com/llvm/llvm-project/commit/4579272e057e6ec77a2a660384080e1f57a17cf0 > is generally LGTM, but I assume this should process within this PR :) Sure, I'm just a few minutes behind you XD https://github.com/llvm/llvm-project/pull/1097

[libclc] [libclc] Fix installation w/ ENABLE_RUNTIME_SUBNORMAL (PR #109926)

2024-09-26 Thread Fraser Cormack via cfe-commits
@@ -221,8 +221,10 @@ if( ENABLE_RUNTIME_SUBNORMAL ) TARGET ${file} INPUTS ${CMAKE_CURRENT_SOURCE_DIR}/generic/lib/${file}.ll ) -install( FILES $ ARCHIVE - DESTINATION "${CMAKE_INSTALL_DATADIR}/clc" ) +install( + FILES ${CMAKE_CURRENT_BINARY_D

[libclc] [libclc] Fix installation w/ ENABLE_RUNTIME_SUBNORMAL (PR #109926)

2024-09-26 Thread Fraser Cormack via cfe-commits
@@ -221,8 +221,10 @@ if( ENABLE_RUNTIME_SUBNORMAL ) TARGET ${file} INPUTS ${CMAKE_CURRENT_SOURCE_DIR}/generic/lib/${file}.ll ) -install( FILES $ ARCHIVE - DESTINATION "${CMAKE_INSTALL_DATADIR}/clc" ) +install( + FILES ${CMAKE_CURRENT_BINARY_D

[clang] [Clang][RISCV] Add preprocessor macros for Zicfilp CFI scheme (PR #109600)

2024-09-26 Thread Ming-Yi Lai via cfe-commits
https://github.com/mylai-mtk updated https://github.com/llvm/llvm-project/pull/109600 >From 4579272e057e6ec77a2a660384080e1f57a17cf0 Mon Sep 17 00:00:00 2001 From: Ming-Yi Lai Date: Wed, 4 Sep 2024 18:40:48 +0800 Subject: [PATCH 1/2] [clang][RISCV] Introduce command line options for Zicfilp-ba

[clang] [Clang][RISCV] Add preprocessor macros for Zicfilp CFI scheme (PR #109600)

2024-09-26 Thread Ming-Yi Lai via cfe-commits
mylai-mtk wrote: Update: Always support `-fcf-protection=branch` for RISC-V targets https://github.com/llvm/llvm-project/pull/109600 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][RISCV] Add preprocessor macros for Zicfilp CFI scheme (PR #109600)

2024-09-26 Thread Ming-Yi Lai via cfe-commits
https://github.com/mylai-mtk updated https://github.com/llvm/llvm-project/pull/109600 >From 1a0aed20421b58114332975ad7d7fff90a21014a Mon Sep 17 00:00:00 2001 From: Ming-Yi Lai Date: Wed, 4 Sep 2024 18:40:48 +0800 Subject: [PATCH 1/2] [clang][RISCV] Introduce command line options for Zicfilp-ba

[clang-tools-extra] [clangd] Improve filtering logic for undesired proto symbols (PR #110091)

2024-09-26 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet created https://github.com/llvm/llvm-project/pull/110091 This used to filter any names with `_` in them, apart from enum-constants. Resulting in discrepancies in behavior when we had fields that have `_` in the name, or for accessors like `set_`, `has_`. The logic se

[clang-tools-extra] [clangd] Improve filtering logic for undesired proto symbols (PR #110091)

2024-09-26 Thread kadir çetinkaya via cfe-commits
kadircet wrote: https://reviews.llvm.org/D46751 for context from the original patch https://github.com/llvm/llvm-project/pull/110091 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Improve filtering logic for undesired proto symbols (PR #110091)

2024-09-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra @llvm/pr-subscribers-clangd Author: kadir çetinkaya (kadircet) Changes This used to filter any names with `_` in them, apart from enum-constants. Resulting in discrepancies in behavior when we had fields that have `_` in the name, or fo

[clang] [clang][RISCV] Introduce command line options for RISC-V Zicfilp CFI (PR #109784)

2024-09-26 Thread Ming-Yi Lai via cfe-commits
@@ -198,6 +198,21 @@ TargetInfo::checkCFProtectionBranchSupported(DiagnosticsEngine &Diags) const { return false; } +CFBranchLabelSchemeKind TargetInfo::getDefaultCFBranchLabelScheme() const { + // if this hook is called, the target should override it to return a + // non

[clang] [flang] [Flang][Driver] Enable the -B option (PR #109965)

2024-09-26 Thread Kiran Chandramohan via cfe-commits
https://github.com/kiranchandramohan updated https://github.com/llvm/llvm-project/pull/109965 >From 3af5907719193ebc5b251b4681c137827550a1d0 Mon Sep 17 00:00:00 2001 From: Kiran Chandramohan Date: Wed, 25 Sep 2024 11:43:40 + Subject: [PATCH 1/2] [Flang][Driver] Enable the -B option The opt

[clang] [flang] [Flang][Driver] Enable the -B option (PR #109965)

2024-09-26 Thread Kiran Chandramohan via cfe-commits
@@ -0,0 +1,23 @@ +! Check -B driver option. +! +! Target triple prefix is not detected for -B. +! RUN: %flang %s -### -o %t.o -target i386-unknown-linux \ kiranchandramohan wrote: Thanks. Done. Modified tests for both drivers. https://github.com/llvm/llvm-projec

[clang] [FMV][RISCV] Add __riscv_feature_bits.length check (PR #110098)

2024-09-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-codegen Author: Piyou Chen (BeMg) Changes This patch add a condition that check the `__riscv_feature_bits.length` before access `__riscv_feature_bits.features`. It updates the resolver function as the following structu

[clang] [FMV][RISCV] Add __riscv_feature_bits.length check (PR #110098)

2024-09-26 Thread Piyou Chen via cfe-commits
https://github.com/BeMg created https://github.com/llvm/llvm-project/pull/110098 This patch add a condition that check the `__riscv_feature_bits.length` before access `__riscv_feature_bits.features`. It updates the resolver function as the following structure. ``` if (__riscv_feature_bits.fe

[clang] [FMV][RISCV] Add __riscv_feature_bits.length check (PR #110098)

2024-09-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Piyou Chen (BeMg) Changes This patch add a condition that check the `__riscv_feature_bits.length` before access `__riscv_feature_bits.features`. It updates the resolver function as the following structure. ``` if (__riscv_feat

[clang] [FMV][RISCV] Add __riscv_feature_bits.length check (PR #110098)

2024-09-26 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 23487be4903630a4c06160562fb939f6389aa99d 838c6669d2f4464b9b528b0d633ad363b92e3b57 --e

[clang] [FMV][RISCV] Add __riscv_feature_bits.length check (PR #110098)

2024-09-26 Thread Piyou Chen via cfe-commits
https://github.com/BeMg updated https://github.com/llvm/llvm-project/pull/110098 >From 838c6669d2f4464b9b528b0d633ad363b92e3b57 Mon Sep 17 00:00:00 2001 From: Piyou Chen Date: Thu, 26 Sep 2024 02:16:56 -0700 Subject: [PATCH 1/2] [FMV][RISCV] Check FeatureBits.length before test all version ---

[clang-tools-extra] [clang-tidy] Portability Template Virtual Member Function Check (PR #110099)

2024-09-26 Thread via cfe-commits
https://github.com/isuckatcs created https://github.com/llvm/llvm-project/pull/110099 Per C++ ``[temp.inst#11]``: "It is unspecified whether or not an implementation implicitly instantiates a virtual member function of a class template if the virtual member function would not otherwise be inst

[clang-tools-extra] [clang-tidy] Portability Template Virtual Member Function Check (PR #110099)

2024-09-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: None (isuckatcs) Changes Per C++ ``[temp.inst#11]``: "It is unspecified whether or not an implementation implicitly instantiates a virtual member function of a class template if the virtual member function would not otherwise

[clang-tools-extra] [clang-tidy] Portability Template Virtual Member Function Check (PR #110099)

2024-09-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: None (isuckatcs) Changes Per C++ ``[temp.inst#11]``: "It is unspecified whether or not an implementation implicitly instantiates a virtual member function of a class template if the virtual member function would not otherwise be inst

[clang] [clang-tools-extra] [clang] Extend diagnose_if to accept more detailed warning information (PR #70976)

2024-09-26 Thread kadir çetinkaya via cfe-commits
@@ -489,13 +485,7 @@ static DiagnosticIDs::Level toLevel(diag::Severity SV) { DiagnosticIDs::Level DiagnosticIDs::getDiagnosticLevel(unsigned DiagID, SourceLocation Loc, const DiagnosticsEngine &Diag) const { - // Handle custom diagnostics, wh

[clang] [Clang][RISCV] Add preprocessor macros for Zicfilp CFI scheme (PR #109600)

2024-09-26 Thread Ming-Yi Lai via cfe-commits
@@ -134,6 +134,25 @@ class RISCVTargetInfo : public TargetInfo { bool validateGlobalRegisterVariable(StringRef RegName, unsigned RegSize, bool &HasSizeMismatch) const override; + + bool checkCFProtectionBranchSupported() const override

[clang] [Clang][RISCV] Add preprocessor macros for Zicfilp CFI scheme (PR #109600)

2024-09-26 Thread Ming-Yi Lai via cfe-commits
@@ -224,6 +225,34 @@ void RISCVTargetInfo::getTargetDefines(const LangOptions &Opts, else Builder.defineMacro("__riscv_32e"); } + + if (Opts.CFProtectionBranch) { +if (checkCFProtectionBranchSupported()) { + auto Scheme = Opts.getCFBranchLabelScheme(); +

[clang] [llvm] [Clang][LLVM][AArch64] Add intrinsic for MOVT SME2 instruction (PR #97602)

2024-09-26 Thread via cfe-commits
https://github.com/CarolineConcatto updated https://github.com/llvm/llvm-project/pull/97602 >From ac405d7516ea92cf3c63220d1bdf0677dd7dd372 Mon Sep 17 00:00:00 2001 From: Caroline Concatto Date: Wed, 3 Jul 2024 15:55:45 + Subject: [PATCH 1/6] [Clang][LLVM][AArch64] Add intrinsic for MOVT SME

[clang] e7569b3 - [clang] [Modules] Don't assume an overriden module file can not be out-of-date

2024-09-26 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2024-09-26T15:59:02+08:00 New Revision: e7569b30861cce7064fdc7b0e3ad1ee80fbc1fa7 URL: https://github.com/llvm/llvm-project/commit/e7569b30861cce7064fdc7b0e3ad1ee80fbc1fa7 DIFF: https://github.com/llvm/llvm-project/commit/e7569b30861cce7064fdc7b0e3ad1ee80fbc1fa7.diff LO

[clang] [ItaniumMangle] Use mangleType instead of mangleNameOrStandardSubstitution in mangleCXXCtorVTable function (PR #109970)

2024-09-26 Thread via cfe-commits
https://github.com/tcwzxx updated https://github.com/llvm/llvm-project/pull/109970 >From f9a25251087a160f2dc9e7f589aeb7b215bef60f Mon Sep 17 00:00:00 2001 From: tcwzxx Date: Wed, 25 Sep 2024 19:19:08 +0800 Subject: [PATCH] Rename mangleNameOrStandardSubstitution to mangleCXXRecordDecl and add

[clang] [clang][analyzer] FixedAddressChecker: no warning if system macro is used (PR #108993)

2024-09-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/5613 Here is the relevant piece of the b

[clang] [clang][RISCV] Introduce command line options for RISC-V Zicfilp CFI (PR #109784)

2024-09-26 Thread Kito Cheng via cfe-commits
kito-cheng wrote: Could you update this PR? https://github.com/llvm/llvm-project/pull/109600/commits/4579272e057e6ec77a2a660384080e1f57a17cf0 is generally LGTM, but I assume this should process within this PR :) https://github.com/llvm/llvm-project/pull/109784

[clang] [Clang][RISCV] Add preprocessor macros for Zicfilp CFI scheme (PR #109600)

2024-09-26 Thread Ming-Yi Lai via cfe-commits
@@ -0,0 +1,90 @@ +// Default cf-branch-label-scheme is func-sig +// RUN: %clang --target=riscv32 -menable-experimental-extensions \ +// RUN: -march=rv32i_zicfilp1p0 -fcf-protection=branch -E -dM %s -o - \ +// RUN: | FileCheck --check-prefix=CHECK-ZICFILP-FUNC-SIG %s +// RUN: %

[clang] [clang][RISCV] Introduce command line options for RISC-V Zicfilp CFI (PR #109784)

2024-09-26 Thread Ming-Yi Lai via cfe-commits
https://github.com/mylai-mtk updated https://github.com/llvm/llvm-project/pull/109784 >From 7aaeaef35f63665bc943efca7ef1b603137522eb Mon Sep 17 00:00:00 2001 From: Ming-Yi Lai Date: Wed, 4 Sep 2024 18:40:48 +0800 Subject: [PATCH] [clang][RISCV] Introduce command line options for Zicfilp-backed

[clang] [clang][RISCV] Introduce command line options for RISC-V Zicfilp CFI (PR #109784)

2024-09-26 Thread Ming-Yi Lai via cfe-commits
https://github.com/mylai-mtk updated https://github.com/llvm/llvm-project/pull/109784 >From baa87159eb5b6966841bac0a8a089f4ce63d66e2 Mon Sep 17 00:00:00 2001 From: Ming-Yi Lai Date: Wed, 4 Sep 2024 18:40:48 +0800 Subject: [PATCH] [clang][RISCV] Introduce command line options for Zicfilp-backed

[clang-tools-extra] [clangd] Improve filtering logic for undesired proto symbols (PR #110091)

2024-09-26 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 7645d9c77d390cff68ec2d253bc5b23c37bc665f 48e17de386d504f01cf89dba1f7bd445b4ce78e4 --e

[libclc] [libclc] Fix installation w/ ENABLE_RUNTIME_SUBNORMAL (PR #109926)

2024-09-26 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck edited https://github.com/llvm/llvm-project/pull/109926 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Fix installation w/ ENABLE_RUNTIME_SUBNORMAL (PR #109926)

2024-09-26 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck edited https://github.com/llvm/llvm-project/pull/109926 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Fix installation w/ ENABLE_RUNTIME_SUBNORMAL (PR #109926)

2024-09-26 Thread Fraser Cormack via cfe-commits
@@ -221,8 +221,10 @@ if( ENABLE_RUNTIME_SUBNORMAL ) TARGET ${file} INPUTS ${CMAKE_CURRENT_SOURCE_DIR}/generic/lib/${file}.ll ) -install( FILES $ ARCHIVE - DESTINATION "${CMAKE_INSTALL_DATADIR}/clc" ) +install( + FILES ${CMAKE_CURRENT_BINARY_D

[libclc] [libclc] Fix installation w/ ENABLE_RUNTIME_SUBNORMAL (PR #109926)

2024-09-26 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck updated https://github.com/llvm/llvm-project/pull/109926 >From 567ea02fda22989a5af89746dbc5ed6eac0a43d9 Mon Sep 17 00:00:00 2001 From: Fraser Cormack Date: Wed, 25 Sep 2024 09:18:10 +0100 Subject: [PATCH] [libclc] Fix installation w/ ENABLE_RUNTIME_SUBNORMAL The

[clang] [clang][RISCV] Introduce command line options for RISC-V Zicfilp CFI (PR #109784)

2024-09-26 Thread Ming-Yi Lai via cfe-commits
@@ -198,6 +198,21 @@ TargetInfo::checkCFProtectionBranchSupported(DiagnosticsEngine &Diags) const { return false; } +CFBranchLabelSchemeKind TargetInfo::getDefaultCFBranchLabelScheme() const { + // if this hook is called, the target should override it to return a + // non

[clang] [compiler-rt] [llvm] [AArch64] Split FeatureMTE to FEAT_MTE and FEAT_MTE2. (PR #109299)

2024-09-26 Thread Alexandros Lamprineas via cfe-commits
labrinea wrote: > I don't quite get the code, but it seems that +mte or +mte2 may be emitted in > disassembly and/or supported by the assembler? They are supported in assembler for the sole purpose of providing more informative error messages. https://github.com/llvm/llvm-project/pull/109299

[clang] [llvm] [ARM] Fix musttail calls (PR #109943)

2024-09-26 Thread Oliver Stannard via cfe-commits
@@ -12658,10 +12658,10 @@ This instruction requires several arguments: the return value of the callee is returned to the caller's caller, even if a void return type is in use. - Both markers imply that the callee does not access allocas from the caller. - The `

[clang] [clang][x86] Add constexpr support for BMI/TBM BEXTR intrinsics (PR #109577)

2024-09-26 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: ping - any thoughts on this? https://github.com/llvm/llvm-project/pull/109577 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Portability Template Virtual Member Function Check (PR #110099)

2024-09-26 Thread via cfe-commits
github-actions[bot] wrote: ⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo. Please turn off [Keep my email addresses private](https://github.com/settings/emails) setting in your account. See [LLVM Discourse](https://discourse.llvm.org/t/hidden-email

[clang] [clang][Index][USR][NFC] Allow customizing langopts for USR generation (PR #109574)

2024-09-26 Thread Balazs Benics via cfe-commits
steakhal wrote: For example the following code would get different USRs in C and C++: ```c++ static int f1(int* x); // USR in C: c:input.cc@F@f1 // USR in C++: c:input.cc@F@f1#*I# ``` So by having this patch, it would be possible to generate the C++ USR even if the AST (thus the ASTContext) w

[clang] [clang][RISCV] Introduce command line options for RISC-V Zicfilp CFI (PR #109784)

2024-09-26 Thread Kito Cheng via cfe-commits
https://github.com/kito-cheng approved this pull request. Still LGTM https://github.com/llvm/llvm-project/pull/109784 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [FMV][RISCV] Add __riscv_feature_bits.length check (PR #110098)

2024-09-26 Thread Jessica Clarke via cfe-commits
@@ -2970,22 +2974,28 @@ void CodeGenFunction::EmitRISCVMultiVersionResolver( // (__riscv_feature_bits.features[i] & REQUIRED_BITMASK) == // REQUIRED_BITMASK // +// First, check __riscv_feature_bits.length <= +// llvm::RISCVISAInfo::FeatureBitSize. This ensur

[clang] [FMV][RISCV] Add __riscv_feature_bits.length check (PR #110098)

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

[clang] [llvm] [ARM] [AArch32] Add support for Arm China STAR-MC1 CPU (PR #110085)

2024-09-26 Thread Albert Huang via cfe-commits
https://github.com/AlbertHuang-CPU updated https://github.com/llvm/llvm-project/pull/110085 >From a0c620f312382391cdc5e444a0c847cb2ebd23aa Mon Sep 17 00:00:00 2001 From: albhua01 Date: Thu, 26 Sep 2024 15:22:09 +0800 Subject: [PATCH 1/2] [ARM] [AArch32] Add support for Arm China STAR-MC1 CPU -

[clang] [clang][RISCV] Introduce command line options for RISC-V Zicfilp CFI (PR #109784)

2024-09-26 Thread Ming-Yi Lai via cfe-commits
mylai-mtk wrote: Thanks :D https://github.com/llvm/llvm-project/pull/109784 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9f33eb8 - [clang][RISCV] Introduce command line options for RISC-V Zicfilp CFI

2024-09-26 Thread via cfe-commits
Author: Ming-Yi Lai Date: 2024-09-26T18:30:43+08:00 New Revision: 9f33eb861a3d17fd92163ee894f7cd9f256d03fb URL: https://github.com/llvm/llvm-project/commit/9f33eb861a3d17fd92163ee894f7cd9f256d03fb DIFF: https://github.com/llvm/llvm-project/commit/9f33eb861a3d17fd92163ee894f7cd9f256d03fb.diff L

[clang] [clang][RISCV] Introduce command line options for RISC-V Zicfilp CFI (PR #109784)

2024-09-26 Thread Ming-Yi Lai via cfe-commits
https://github.com/mylai-mtk closed https://github.com/llvm/llvm-project/pull/109784 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add fake use emission to Clang with -fextend-lifetimes (PR #110102)

2024-09-26 Thread Stephen Tozer via cfe-commits
https://github.com/SLTozer created https://github.com/llvm/llvm-project/pull/110102 Following the [previous patch](https://github.com/llvm/llvm-project/pull/11) which adds the "extend lifetimes" flag without (almost) any functionality, this patch adds the real feature by allowing Clang to

[clang] [Clang][Driver] Add option to provide path for multilib's YAML config file (PR #109640)

2024-09-26 Thread Oliver Stannard via cfe-commits
@@ -1,79 +1,79 @@ -// RUN: %clang -print-multi-flags-experimental --target=aarch64-linux -fc++-abi=itanium -fsanitize=address | FileCheck --check-prefix=CHECK-LINUX %s +// RUN: %clang -multi-lib-config=%S/Inputs/multilib/empty.yaml -print-multi-flags-experimental --target=aarch6

[clang] [clang] return first Decl for CanonicalDecl in TranslationUnitDecl (PR #110101)

2024-09-26 Thread Vipul Cariappa via cfe-commits
https://github.com/Vipul-Cariappa created https://github.com/llvm/llvm-project/pull/110101 Return the first `Decl` when using `TranslationUnitDecl::getCanonicalDecl` >From 43d0e353e6e5870cf601ea83d072d8c05dbe94eb Mon Sep 17 00:00:00 2001 From: Vipul Cariappa Date: Thu, 26 Sep 2024 10:28:02 +00

[clang] [clang] return first Decl for CanonicalDecl in TranslationUnitDecl (PR #110101)

2024-09-26 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

[clang] [Clang] Add fake use emission to Clang with -fextend-lifetimes (PR #110102)

2024-09-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Stephen Tozer (SLTozer) Changes Following the [previous patch](https://github.com/llvm/llvm-project/pull/11) which adds the "extend lifetimes" flag without (almost) any functionality, this patch adds the real feature by allowing Clan

[clang] [clang] return first Decl for CanonicalDecl in TranslationUnitDecl (PR #110101)

2024-09-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vipul Cariappa (Vipul-Cariappa) Changes Return the first `Decl` when using `TranslationUnitDecl::getCanonicalDecl` --- Full diff: https://github.com/llvm/llvm-project/pull/110101.diff 1 Files Affected: - (modified) clang/include/clang/A

[clang-tools-extra] 2ad435f - Revert "[clang] Extend diagnose_if to accept more detailed warning information (#70976)"

2024-09-26 Thread Kadir Cetinkaya via cfe-commits
Author: Kadir Cetinkaya Date: 2024-09-26T12:16:07+02:00 New Revision: 2ad435f9f6fb792d9b010ddf56ca3ea26fbf5f15 URL: https://github.com/llvm/llvm-project/commit/2ad435f9f6fb792d9b010ddf56ca3ea26fbf5f15 DIFF: https://github.com/llvm/llvm-project/commit/2ad435f9f6fb792d9b010ddf56ca3ea26fbf5f15.dif

[clang] 2ad435f - Revert "[clang] Extend diagnose_if to accept more detailed warning information (#70976)"

2024-09-26 Thread Kadir Cetinkaya via cfe-commits
Author: Kadir Cetinkaya Date: 2024-09-26T12:16:07+02:00 New Revision: 2ad435f9f6fb792d9b010ddf56ca3ea26fbf5f15 URL: https://github.com/llvm/llvm-project/commit/2ad435f9f6fb792d9b010ddf56ca3ea26fbf5f15 DIFF: https://github.com/llvm/llvm-project/commit/2ad435f9f6fb792d9b010ddf56ca3ea26fbf5f15.dif

[clang] [llvm] [ARM] [AArch32] Add support for Arm China STAR-MC1 CPU (PR #110085)

2024-09-26 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray edited https://github.com/llvm/llvm-project/pull/110085 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ARM] Fix musttail calls (PR #109943)

2024-09-26 Thread Oliver Stannard via cfe-commits
@@ -0,0 +1,321 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 +; RUN: llc -mtriple=armv7a-none-eabi %s -o - | FileCheck %s + +declare i32 @many_args_callee(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) + +define i32 @many

[clang] [llvm] [ARM] [AArch32] Add support for Arm China STAR-MC1 CPU (PR #110085)

2024-09-26 Thread Jonathan Thackray via cfe-commits
@@ -362,6 +362,16 @@ def : ProcessorModel<"cortex-m33", CortexM4Model, [ARMv8mMainline, FeatureHasNoBranchPredictor, FeatureFixCMSE_CVE_2021_35465]>; +def

[clang] [llvm] [ARM] [AArch32] Add support for Arm China STAR-MC1 CPU (PR #110085)

2024-09-26 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray commented: Could you add `star-mc1` to clang/test/Driver/arm-cortex-cpus-2.c? https://github.com/llvm/llvm-project/pull/110085 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[clang] [llvm] [ARM] [AArch32] Add support for Arm China STAR-MC1 CPU (PR #110085)

2024-09-26 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray edited https://github.com/llvm/llvm-project/pull/110085 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ARM] [AArch32] Add support for Arm China STAR-MC1 CPU (PR #110085)

2024-09-26 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray commented: Another possible addition would be to `clang/test/Driver/arm-v8m.c`: ``` // RUN: %clang -target arm-none-none-eabi -mcpu=star-mc1 %s -### -c 2>&1 | FileCheck %s --check-prefix=V8M_MAINLINE_STAR_MC1_DSP // RUN: %clang -target arm-none-none-eabi -mcpu=star-m

[clang] [clang][x86] Add constexpr support for BMI/TBM BEXTR intrinsics (PR #109577)

2024-09-26 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/109577 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add fake use emission to Clang with -fextend-lifetimes (PR #110102)

2024-09-26 Thread Stephen Tozer via cfe-commits
https://github.com/SLTozer updated https://github.com/llvm/llvm-project/pull/110102 >From 7d8646edb373c38ee761de2c338c45b967a423e7 Mon Sep 17 00:00:00 2001 From: Stephen Tozer Date: Wed, 25 Sep 2024 16:55:39 +0100 Subject: [PATCH] [Clang] Add fake use emission to Clang with -fextend-lifetimes

[clang] [llvm] [ARM] Fix musttail calls (PR #109943)

2024-09-26 Thread Oliver Stannard via cfe-commits
@@ -5112,7 +5112,7 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo, RawAddress SRetAlloca = RawAddress::invalid(); llvm::Value *UnusedReturnSizePtr = nullptr; if (RetAI.isIndirect() || RetAI.isInAlloca() || RetAI.isCoerceAndExpand()) { -if (IsVirtu

[clang] [clang] return first Decl for CanonicalDecl in TranslationUnitDecl (PR #110101)

2024-09-26 Thread Vipul Cariappa via cfe-commits
Vipul-Cariappa wrote: ping @vgvassilev https://github.com/llvm/llvm-project/pull/110101 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86] Enable constexpr on LZCNT & BMI intrinsics (PR #94161)

2024-09-26 Thread Simon Pilgrim via cfe-commits
RKSimon wrote: @aniplcc Are you still wanting to work on this? Otherwise I'd like to commandeer and complete the patch to get it into trunk. https://github.com/llvm/llvm-project/pull/94161 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:

[clang] [Clang][RISCV] Add preprocessor macros for Zicfilp CFI scheme (PR #109600)

2024-09-26 Thread Ming-Yi Lai via cfe-commits
https://github.com/mylai-mtk updated https://github.com/llvm/llvm-project/pull/109600 >From 35532cf0a9cc855fe5f0a4eefd4c343687a595dc Mon Sep 17 00:00:00 2001 From: Ming-Yi Lai Date: Fri, 10 May 2024 14:16:59 +0800 Subject: [PATCH] [clang][RISCV] Add Zicfilp CFI scheme preprocessor macros These

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

2024-09-26 Thread David Spickett via cfe-commits
DavidSpickett wrote: > Is there a symbolic link flang-new -> flang? We would like to have a > transitional period. Compiler Explorer would also appreciate this. Though I should be able to get it switched to the new name within a week or two. https://github.com/llvm/llvm-project/pull/110023 __

[clang] [Clang] Add fake use emission to Clang with -fextend-lifetimes (PR #110102)

2024-09-26 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 22829f757dc76b23071d9438ae9c6ddc3e966db0 e04a16c6d51539421dd134f7524641e843f5d555 --e

[clang] 82ce829 - [clang][bytecode] Don't call dtors of anonymous unions (#110087)

2024-09-26 Thread via cfe-commits
Author: Timm Baeder Date: 2024-09-26T12:50:53+02:00 New Revision: 82ce8296b8024f1fb549c4b2dfcf736f809e19b7 URL: https://github.com/llvm/llvm-project/commit/82ce8296b8024f1fb549c4b2dfcf736f809e19b7 DIFF: https://github.com/llvm/llvm-project/commit/82ce8296b8024f1fb549c4b2dfcf736f809e19b7.diff L

[clang] [clang][bytecode] Don't call dtors of anonymous unions (PR #110087)

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

[clang] [llvm] [ARM] Fix musttail calls (PR #109943)

2024-09-26 Thread Oliver Stannard via cfe-commits
https://github.com/ostannard updated https://github.com/llvm/llvm-project/pull/109943 >From f96d3a1a44ade11f5a9879b49bb3d5296c4b225e Mon Sep 17 00:00:00 2001 From: Oliver Stannard Date: Thu, 9 May 2024 12:58:41 +0100 Subject: [PATCH 01/11] [ARM] Re-generate a test --- llvm/test/CodeGen/ARM/fp

[clang] [clang-tools-extra] [clang] Extend diagnose_if to accept more detailed warning information (PR #70976)

2024-09-26 Thread Mikael Holmén via cfe-commits
mikaelholmen wrote: Thanks @kadircet https://github.com/llvm/llvm-project/pull/70976 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Driver][AArch64] Add support for aarch64-amazon-linux triple (PR #109263)

2024-09-26 Thread Peter Waller via cfe-commits
peterwaller-arm wrote: @MaskRay please would you kindly reconsider aarch64-amazon-linux triple as an exception given the presence of x86_64 equivalent? I've explored that `LLVM_DEFAULT_TARGET_TRIPLE` if unspecified comes from `LLVM_INFERRED_HOST_TRIPLE` which comes from config.guess in here:

[clang] [clang] return first Decl for CanonicalDecl in TranslationUnitDecl (PR #110101)

2024-09-26 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: Can we add a unittest under clang/unittest/Interpreter? https://github.com/llvm/llvm-project/pull/110101 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] nonblocking/nonallocating attributes: 2nd pass caller/callee analysis (PR #99656)

2024-09-26 Thread via cfe-commits
https://github.com/Sirraide approved this pull request. I think that was everything, so lgtm. Since this is a rather big pr tho, I’d like for someone else to approve it too before we merge it. https://github.com/llvm/llvm-project/pull/99656 ___ cfe-co

[clang] [llvm] [sanitizer] Document AddressSanitizer security considerations (PR #100937)

2024-09-26 Thread Vitaly Buka via cfe-commits
@@ -351,6 +353,14 @@ There are several limitations: * Check groups (like ``undefined``) can't be used in suppressions file, only fine-grained checks are supported. +Security Considerations +=== + +UndefinedBehaviorSanitizer's runtime is meant for testing

[clang] [llvm] [sanitizer] Document AddressSanitizer security considerations (PR #100937)

2024-09-26 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: Don't forget to click "re-request review" after updating PRs, or it's not displayed as pending review request. https://github.com/llvm/llvm-project/pull/100937 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang] clang-format: Add "AllowShortNamespacesOnASingleLine" option (PR #105597)

2024-09-26 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 c557d8520413476221a4f3bf2b7b3fed17681691 ad1fdbb0131b10acf213b7fe49b0421856eadbc8 --e

[clang] [clang][bytecode] Don't call dtors of anonymous unions (PR #110087)

2024-09-26 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/110087 None >From d54a46d9ccc3eed3be0d319f26c49f069a68a9e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 26 Sep 2024 09:41:33 +0200 Subject: [PATCH] [clang][bytecode] Don't call dtors of ano

[clang] f3111cc - [clang][bytecode][NFC] Remove a useless cast

2024-09-26 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2024-09-26T09:43:38+02:00 New Revision: f3111cc77bea8d4f6b3ca90ee5457cff5faeb3fc URL: https://github.com/llvm/llvm-project/commit/f3111cc77bea8d4f6b3ca90ee5457cff5faeb3fc DIFF: https://github.com/llvm/llvm-project/commit/f3111cc77bea8d4f6b3ca90ee5457cff5faeb3fc.diff LO

[clang] [clang][bytecode] Don't call dtors of anonymous unions (PR #110087)

2024-09-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/110087.diff 4 Files Affected: - (modified) clang/lib/AST/ByteCode/Compiler.cpp (+7) - (modified) clang/lib/AST/ByteCode/Record.cpp (+2-1) - (modi

[clang] ae54a00 - [clang][analyzer] FixedAddressChecker: no warning if system macro is used (#108993)

2024-09-26 Thread via cfe-commits
Author: Balázs Kéri Date: 2024-09-26T09:49:29+02:00 New Revision: ae54a00cc1eb64a0300e190ccdc46ae9b31d2835 URL: https://github.com/llvm/llvm-project/commit/ae54a00cc1eb64a0300e190ccdc46ae9b31d2835 DIFF: https://github.com/llvm/llvm-project/commit/ae54a00cc1eb64a0300e190ccdc46ae9b31d2835.diff L

[clang] [clang][analyzer] FixedAddressChecker: no warning if system macro is used (PR #108993)

2024-09-26 Thread Balázs Kéri via cfe-commits
https://github.com/balazske closed https://github.com/llvm/llvm-project/pull/108993 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang-format: Add "AllowShortNamespacesOnASingleLine" option (PR #105597)

2024-09-26 Thread Galen Elias via cfe-commits
https://github.com/galenelias updated https://github.com/llvm/llvm-project/pull/105597 >From 4118b7dde9adbee7b6aaf5d094d34cb6b64f6c77 Mon Sep 17 00:00:00 2001 From: Galen Elias Date: Wed, 21 Aug 2024 16:33:42 -0700 Subject: [PATCH 1/9] clang-format: Add "AllowShortNamespacesOnASingleLine" opti

[clang] [llvm] [HLSL] Allow resource type attributes only on __hlsl_resource_t (PR #110079)

2024-09-26 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/110079 >From 970aab0a930e38dfd266c01065112602bb274a5e Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Wed, 25 Sep 2024 15:48:18 -0700 Subject: [PATCH 1/4] [HLSL] Allow resource type attributes only on __hlsl_resource

[clang] c511cc0 - [AArch64] Implement NEON vscale intrinsics (#100347)

2024-09-26 Thread via cfe-commits
Author: Lukacma Date: 2024-09-26T16:39:18+01:00 New Revision: c511cc099af6c25dc226af1e15b63e16295a790b URL: https://github.com/llvm/llvm-project/commit/c511cc099af6c25dc226af1e15b63e16295a790b DIFF: https://github.com/llvm/llvm-project/commit/c511cc099af6c25dc226af1e15b63e16295a790b.diff LOG:

[clang] [llvm] [AArch64] Implement NEON vscale intrinsics (PR #100347)

2024-09-26 Thread via cfe-commits
https://github.com/Lukacma closed https://github.com/llvm/llvm-project/pull/100347 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] Fix non-determinism in serialized AST (PR #110131)

2024-09-26 Thread via cfe-commits
eaeltsin wrote: I cannot reproduce the non-determinism on top of this patch any more. Thanks for the fix! Please submit at your earliest convenience. https://github.com/llvm/llvm-project/pull/110131 ___ cfe-commits mailing list cfe-commits@lists.llv

[clang] [llvm] [Clang][LLVM][AArch64] Add intrinsic for LUTI4 SME2 instruction (#97755) (PR #109953)

2024-09-26 Thread via cfe-commits
https://github.com/SpencerAbson approved this pull request. Thanks, there is some conflict from the [FSCALE work](https://github.com/llvm/llvm-project/pull/100128/files), but this LGTM. https://github.com/llvm/llvm-project/pull/109953 ___ cfe-commits

[clang] Add clang/docs/FunctionEffectAnalysis.rst. (PR #109855)

2024-09-26 Thread Doug Wyatt via cfe-commits
@@ -0,0 +1,503 @@ + +Function Effect Analysis + + +Introduction + + +Clang Function Effect Analysis is a C++ language extension which can warn about "unsafe" +constructs. The feature is currently tailored for the Perform

[clang] Add clang/docs/FunctionEffectAnalysis.rst. (PR #109855)

2024-09-26 Thread Doug Wyatt via cfe-commits
@@ -0,0 +1,503 @@ + +Function Effect Analysis + + +Introduction + + +Clang Function Effect Analysis is a C++ language extension which can warn about "unsafe" +constructs. The feature is currently tailored for the Perform

[clang] Fix "[AArch64] Implement NEON vscale intrinsics" (PR #110136)

2024-09-26 Thread via cfe-commits
https://github.com/Lukacma created https://github.com/llvm/llvm-project/pull/110136 This patch fixes failure of acle_neon_fscale.c in non-aarch64 targets. >From 32586c6e8ad4bab6bb27c85c30868ff34064f4a2 Mon Sep 17 00:00:00 2001 From: Lukacma Date: Thu, 26 Sep 2024 16:53:51 +0100 Subject: [PATC

[clang] [llvm] [AArch64] Implement NEON vscale intrinsics (PR #100347)

2024-09-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-sles-build-only` running on `rocm-worker-hw-04-sles` while building `clang,llvm` at step 6 "Add check check-clang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/7532 Here

[clang] [llvm] [AArch64] Implement NEON vscale intrinsics (PR #100347)

2024-09-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-cmake-x86_64-avx512-linux` running on `avx512-intel64` while building `clang,llvm` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/133/builds/4312 Here is the relevan

[clang] Fix "[AArch64] Implement NEON vscale intrinsics" (PR #110136)

2024-09-26 Thread via cfe-commits
https://github.com/Lukacma closed https://github.com/llvm/llvm-project/pull/110136 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   6   >