[clang] [CUDA][HIP] Exclude external variables from constant promotion. (PR #73549)

2023-12-20 Thread Levon Ter-Grigoryan via cfe-commits
https://github.com/PatriosTheGreat updated https://github.com/llvm/llvm-project/pull/73549 >From 1c24a6774f08c9943cce1a2eee96a6a92b11fd02 Mon Sep 17 00:00:00 2001 From: Levon Ter-Grigoryan Date: Mon, 27 Nov 2023 18:09:22 +0100 Subject: [PATCH] [CUDA][HIP] Exclude external variables from constan

[clang] [ClangRepl] Reland Semanic Code Completion (PR #75556)

2023-12-20 Thread Vladimir Vereschaka via cfe-commits
vvereschaka wrote: Works fine on my builder. Thank you. I'm going to land this patch. https://github.com/llvm/llvm-project/pull/75556 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7022a24 - [ClangRepl] Fix failed ClangReplInterpreter unit tests (#75556).

2023-12-20 Thread Vladimir Vereschaka via cfe-commits
Author: Vladimir Vereschaka Date: 2023-12-20T00:11:12-08:00 New Revision: 7022a24771c8404f847abb226735a3ae21794426 URL: https://github.com/llvm/llvm-project/commit/7022a24771c8404f847abb226735a3ae21794426 DIFF: https://github.com/llvm/llvm-project/commit/7022a24771c8404f847abb226735a3ae21794426

[clang] [flang] [Flang, Clang] Enable and test 'rdynamic' flag (PR #75598)

2023-12-20 Thread Radu Salavat via cfe-commits
@@ -7,13 +7,17 @@ ! RUN: %flang -### --target=x86_64-windows-msvc -rpath /path/to/dir -shared \ ! RUN: -static %s 2>&1 | FileCheck \ ! RUN: --check-prefixes=MSVC-LINKER-OPTIONS %s +! RUN: %flang -### --target=aarch64-linux-none -rdynamic %s 2>&1 | FileCheck --check-pre

[clang] [flang] [flang][Driver] Let the linker fail on multiple definitions of main() (PR #73124)

2023-12-20 Thread Andrzej Warzyński via cfe-commits
banach-space wrote: @kkwli and @DanielCChen - could you review https://github.com/llvm/llvm-project/pull/75816 and see whether that makes sense to you? I am referring specifically to the documentation that @mjklemm is kindly adding. Hopefully that will help folks avoid similar issues in the f

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

2023-12-20 Thread via cfe-commits
https://github.com/SunilKuravinakop updated https://github.com/llvm/llvm-project/pull/75709 >From fe931d64741f427629407bca3e68a61bec6f2b67 Mon Sep 17 00:00:00 2001 From: Sunil Kuravinakop Date: Sat, 16 Dec 2023 11:43:35 -0600 Subject: [PATCH 1/2] Adding parameter to fail clause (i.e. memory ord

[compiler-rt] [clang] [AIX] Undefine __STDC_NO_ATOMICS__ to enable c11 atomics functionality (PR #76025)

2023-12-20 Thread Kai Luo via cfe-commits
https://github.com/bzEq created https://github.com/llvm/llvm-project/pull/76025 This is copied from https://reviews.llvm.org/D109139. `__STDC_NO_ATOMICS__` is predefined to indicate clang on AIX doesn't support `_Atomic` and not shipped with `stdatomic.h` yet. Actually `_Atomic` is already sup

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

2023-12-20 Thread via cfe-commits
https://github.com/SunilKuravinakop updated https://github.com/llvm/llvm-project/pull/75709 >From fe931d64741f427629407bca3e68a61bec6f2b67 Mon Sep 17 00:00:00 2001 From: Sunil Kuravinakop Date: Sat, 16 Dec 2023 11:43:35 -0600 Subject: [PATCH 1/2] Adding parameter to fail clause (i.e. memory ord

[compiler-rt] [clang] [AIX] Undefine __STDC_NO_ATOMICS__ to enable c11 atomics functionality (PR #76025)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kai Luo (bzEq) Changes This is copied from https://reviews.llvm.org/D109139. `__STDC_NO_ATOMICS__` is predefined to indicate clang on AIX doesn't support `_Atomic` and not shipped with `stdatomic.h` yet. Actually `_Atomic` is already sup

[clang] [flang] [llvm] [clang-tools-extra] [flang] Pass to add frame pointer attribute (PR #74598)

2023-12-20 Thread Radu Salavat via cfe-commits
https://github.com/Radu2k updated https://github.com/llvm/llvm-project/pull/74598 >From fda39a4d196c6cdafe3ee42358c962ef0173aaca Mon Sep 17 00:00:00 2001 From: Radu2k Date: Wed, 6 Dec 2023 14:39:24 + Subject: [PATCH 01/12] Pass to add frame pointer attribute --- .../include/flang/Frontend

[clang] [flang] [llvm] [clang-tools-extra] [flang] Pass to add frame pointer attribute (PR #74598)

2023-12-20 Thread Radu Salavat via cfe-commits
@@ -245,6 +245,24 @@ static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts, opts.AliasAnalysis = opts.OptimizationLevel > 0; + if (const llvm::opt::Arg *a = + args.getLastArg(clang::driver::options::OPT_mframe_pointer_EQ)) { +llvm::StringRef s

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

2023-12-20 Thread via cfe-commits
https://github.com/SunilKuravinakop ready_for_review 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

[llvm] [clang-tools-extra] [flang] [clang] [flang] Pass to add frame pointer attribute (PR #74598)

2023-12-20 Thread Andrzej Warzyński via cfe-commits
@@ -245,6 +245,24 @@ static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts, opts.AliasAnalysis = opts.OptimizationLevel > 0; + if (const llvm::opt::Arg *a = + args.getLastArg(clang::driver::options::OPT_mframe_pointer_EQ)) { +llvm::StringRef s

[clang] [flang] [llvm] [clang-tools-extra] [flang] Pass to add frame pointer attribute (PR #74598)

2023-12-20 Thread Andrzej Warzyński via cfe-commits
@@ -51,9 +51,9 @@ ! Content to check from the MLIR outputs !-- ! MLIR-FIR-NOT: llvm.func -! MLIR-FIR: func.func @{{.*}}main() { +! MLIR-FIR: func.func @{{.*}}main(){{.*}}{ banach-space wrote: What do these extra braces capture? https:/

[clang-tools-extra] [clang] [llvm] [flang] [flang] Pass to add frame pointer attribute (PR #74598)

2023-12-20 Thread Andrzej Warzyński via cfe-commits
@@ -245,6 +245,24 @@ static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts, opts.AliasAnalysis = opts.OptimizationLevel > 0; + if (const llvm::opt::Arg *a = + args.getLastArg(clang::driver::options::OPT_mframe_pointer_EQ)) { +llvm::StringRef s

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

2023-12-20 Thread via cfe-commits
https://github.com/jensmassberg approved this pull request. Thanks for the fix! https://github.com/llvm/llvm-project/pull/75795 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Add `Environment::get<>()`. (PR #76027)

2023-12-20 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/76027 This template function casts the result of `getValue()` or `getStorageLocation()` to a given subclass of `Value` or `StorageLocation` (using `cast_or_null`). It's a common pattern to do something like this:

[clang] [clang][dataflow] Add `Environment::get<>()`. (PR #76027)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: None (martinboehme) Changes This template function casts the result of `getValue()` or `getStorageLocation()` to a given subclass of `Value` or `StorageLocation` (using `cast_or_null`). It's a common pattern to do something like t

[clang] [clang][dataflow] Add `Environment::get<>()`. (PR #76027)

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

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

2023-12-20 Thread via cfe-commits
Author: Haojian Wu Date: 2023-12-20T10:08:43+01:00 New Revision: 3b1f06e52712a56bf33757d596482c60013d63fd URL: https://github.com/llvm/llvm-project/commit/3b1f06e52712a56bf33757d596482c60013d63fd DIFF: https://github.com/llvm/llvm-project/commit/3b1f06e52712a56bf33757d596482c60013d63fd.diff LO

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

2023-12-20 Thread Haojian Wu via cfe-commits
https://github.com/hokein closed https://github.com/llvm/llvm-project/pull/75795 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Fix Wswitch-default bad warning in template (PR #76007)

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

[llvm] [clang] [AArch64] Update target feature requirements of SVE bfloat instructions (PR #75596)

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

[clang] [Clang][Parser] Fix crash of clang when using C++ constructs like :: in C code (PR #74926)

2023-12-20 Thread via cfe-commits
@@ -2679,6 +2679,8 @@ Parser::ParseCXXClassMemberDeclaration(AccessSpecifier AS, ParsedAttributes &AccessAttrs, const ParsedTemplateInfo &TemplateInfo, ParsingDe

[compiler-rt] [lld] [lldb] [flang] [clang] [mlir] [llvm] [libcxx] [builtins] Refactor cpu_model support to reduce #if nesting. NFCI (PR #75635)

2023-12-20 Thread Petr Hosek via cfe-commits
petrhosek wrote: I have discovered another issue, on Fuchsia `libclang_rt.builtins.a` now has a reference to `getauxval` which it didn't have before. This is really undesirable because on Fuchsia, there's no `auxv` to begin with. I believe this is because before, the `__init_cpu_features` defi

[clang] [Clang][Parser] Fix crash of clang when using C++ constructs like :: in C code (PR #74926)

2023-12-20 Thread via cfe-commits
https://github.com/cor3ntin commented: Thanks for fixing this bug. LGTM modulo nit https://github.com/llvm/llvm-project/pull/74926 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SME] Add IsStreamingOrSVE2p1 (PR #75958)

2023-12-20 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm edited https://github.com/llvm/llvm-project/pull/75958 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SME] Add IsStreamingOrSVE2p1 (PR #75958)

2023-12-20 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm commented: I also noticed that a number of tests are failing with your patch at the moment. https://github.com/llvm/llvm-project/pull/75958 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[clang] [Clang][SME] Add IsStreamingOrSVE2p1 (PR #75958)

2023-12-20 Thread Sander de Smalen via cfe-commits
@@ -679,6 +679,7 @@ bool AArch64TargetInfo::hasFeature(StringRef Feature) const { .Case("f32mm", FPU & SveMode && HasMatmulFP32) .Case("f64mm", FPU & SveMode && HasMatmulFP64) .Case("sve2", FPU & SveMode && HasSVE2) + .Case("sve2p1", HasSVE2p1) -

[clang] [Clang][SME] Add IsStreamingOrSVE2p1 (PR #75958)

2023-12-20 Thread Sander de Smalen via cfe-commits
@@ -8,7 +8,7 @@ // RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve2p1 -S -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -p mem2reg,instcombine,tailcallelim | FileCheck %s // RUN: %clang_cc1 -f

[clang] [Clang][SME] Add IsStreamingOrSVE2p1 (PR #75958)

2023-12-20 Thread Sander de Smalen via cfe-commits
@@ -1,78 +0,0 @@ -// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py sdesmalen-arm wrote: Why is this file removed? (same question for `acle_sve2p1_sclamp.c`) https://github.com/llvm/llvm-project/pull/75958

[clang] [Cygwin] Value.h consider Cygwin (PR #75395)

2023-12-20 Thread 徐持恒 Xu Chiheng via cfe-commits
https://github.com/xu-chiheng closed https://github.com/llvm/llvm-project/pull/75395 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-12-20 Thread via cfe-commits
@@ -1990,79 +1990,61 @@ def SVWHILELO_COUNT : SInst<"svwhilelo_{d}", "}nni", "QcQsQiQl", MergeNone, "a def SVWHILELS_COUNT : SInst<"svwhilels_{d}", "}nni", "QcQsQiQl", MergeNone, "aarch64_sve_whilels_{d}", [IsOverloadNone], [ImmCheck<2, ImmCheck2_4_Mul2>]>; def SVWHILEHI_C

[llvm] [libc] [clang] [libcxx] [compiler-rt] [flang] [clang-tools-extra] [RISCV][MC] Add support for experimental Zimop extension (PR #75182)

2023-12-20 Thread via cfe-commits
https://github.com/ln8-8 updated https://github.com/llvm/llvm-project/pull/75182 >From e6bf0819c96fcfbd73d711acc951065e2ed22d8c Mon Sep 17 00:00:00 2001 From: ln8-8 Date: Tue, 12 Dec 2023 12:47:32 +0400 Subject: [PATCH 1/3] [RISCV][MC] Add support for experimental Zimop extension This implement

[llvm] [libc] [mlir] [lldb] [clang] [flang] Make 'UnrollMaxUpperBound' to be overridable by target. (PR #76029)

2023-12-20 Thread via cfe-commits
https://github.com/boxu-zhang updated https://github.com/llvm/llvm-project/pull/76029 >From 60030d96d27d23ef2049a3888d65721be51c4481 Mon Sep 17 00:00:00 2001 From: "boxu.zhang" Date: Wed, 20 Dec 2023 17:35:25 +0800 Subject: [PATCH] Make 'UnrollMaxUpperBound' to be overridable by target. The de

[clang] Avoid printing overly large integer. (PR #75902)

2023-12-20 Thread via cfe-commits
cor3ntin wrote: I agree with @tbaederr, fixing the underlying issue - either by optimizing divide (good luck!) or printing in hexadecimal, seems like a better solution. At the minimum, we should have a fixme comment to explain the restriction @tbaederr @erichkeane @shafik opinion? https://gi

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

2023-12-20 Thread Qizhi Hu via cfe-commits
https://github.com/jcsxky updated https://github.com/llvm/llvm-project/pull/74813 >From d1f48502c1ec7a58ca18a19dc3631265e5c1b137 Mon Sep 17 00:00:00 2001 From: huqizhi Date: Fri, 8 Dec 2023 15:26:01 +0800 Subject: [PATCH] [clang][ASTImporter] Support Importer of BuiltinBitCastExpr --- clang/l

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

2023-12-20 Thread Qizhi Hu via cfe-commits
@@ -3220,6 +3220,12 @@ TEST_P(ImportExpr, UnresolvedMemberExpr) { compoundStmt(has(callExpr(has(unresolvedMemberExpr()); } +TEST_P(ImportExpr, BuiltinBitCastExpr) { + MatchVerifier Verifier; + testImport("void declToImport(int T) { (void)__builtin_bi

[clang-tools-extra] [clangd] Perform self-containedness check at EOF (PR #75965)

2023-12-20 Thread Ilya Biryukov via cfe-commits
ilya-biryukov wrote: Thanks a lot! This fixes the problem we encountered with ranking includes. https://github.com/llvm/llvm-project/pull/75965 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang-tools-extra] [clangd] Perform self-containedness check at EOF (PR #75965)

2023-12-20 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov approved this pull request. https://github.com/llvm/llvm-project/pull/75965 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] cf048e1 - [clangd] Perform self-containedness check at EOF (#75965)

2023-12-20 Thread via cfe-commits
Author: kadir çetinkaya Date: 2023-12-20T10:48:18+01:00 New Revision: cf048e16a7c682a3ed5abb32702c3048fcad7638 URL: https://github.com/llvm/llvm-project/commit/cf048e16a7c682a3ed5abb32702c3048fcad7638 DIFF: https://github.com/llvm/llvm-project/commit/cf048e16a7c682a3ed5abb32702c3048fcad7638.dif

[clang-tools-extra] [clangd] Perform self-containedness check at EOF (PR #75965)

2023-12-20 Thread Ilya Biryukov via cfe-commits
https://github.com/ilya-biryukov closed https://github.com/llvm/llvm-project/pull/75965 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AArch64][SME2] Add SME2 MLA/MLS builtins. (PR #75584)

2023-12-20 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm approved this pull request. https://github.com/llvm/llvm-project/pull/75584 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AST] Add dump() method to TypeLoc (PR #65484)

2023-12-20 Thread via cfe-commits
cor3ntin wrote: @sam-mccall are you still working on this? https://github.com/llvm/llvm-project/pull/65484 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Add `Environment::get<>()`. (PR #76027)

2023-12-20 Thread via cfe-commits
https://github.com/martinboehme updated https://github.com/llvm/llvm-project/pull/76027 >From 9fd1ed96c1b7934754b6fefd7b01a62d4a391d73 Mon Sep 17 00:00:00 2001 From: Martin Braenne Date: Wed, 20 Dec 2023 10:01:10 + Subject: [PATCH] [clang][dataflow] Add `Environment::get<>()`. This templat

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

2023-12-20 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/4] Problem :For Kernel Modules ,emitting the relocs like

[llvm] [libc] [clang] [clang-tools-extra] [libcxx] [compiler-rt] [mlir] [flang] [AsmWriter] Ensure getMnemonic doesn't return invalid pointers (PR #75783)

2023-12-20 Thread Lucas Duarte Prates via cfe-commits
https://github.com/pratlucas closed https://github.com/llvm/llvm-project/pull/75783 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SME] Add IsStreamingOrSVE2p1 (PR #75958)

2023-12-20 Thread via cfe-commits
@@ -227,6 +227,7 @@ def IsPreservesZA : FlagType<0x100>; def IsReadZA : FlagType<0x200>; def IsWriteZA : FlagType<0x400>; def IsReductionQV : FlagType<0x800>; +def IsStreamingOrSVE2p1

[clang] [llvm] [AArch64] Update target feature requirements of SVE bfloat instructions (PR #75596)

2023-12-20 Thread Momchil Velikov via cfe-commits
https://github.com/momchil-velikov closed https://github.com/llvm/llvm-project/pull/75596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-12-20 Thread Sander de Smalen via cfe-commits
https://github.com/sdesmalen-arm approved this pull request. https://github.com/llvm/llvm-project/pull/75737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Separate Intel ADC instrinsics from ADX intrinsics (PR #75992)

2023-12-20 Thread Simon Pilgrim via cfe-commits
@@ -14,9 +14,6 @@ #ifndef __ADXINTRIN_H #define __ADXINTRIN_H -/* Define the default attributes for the functions in this file. */ -#define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__)) RKSimon wrote: (minor) You could put this back with

[llvm] [clang] [clang-tools-extra] [ISel] Add pattern matching for depositing subreg value (PR #75978)

2023-12-20 Thread Simon Pilgrim via cfe-commits
@@ -0,0 +1,93 @@ +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4 +; RUN: llc < %s -mtriple=i386-unknown-unknown | FileCheck %s --check-prefixes=I386 +; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-pref

[clang] [flang] [Flang] remove whole-archive option for AIX linker (PR #76039)

2023-12-20 Thread via cfe-commits
https://github.com/madanial0 created https://github.com/llvm/llvm-project/pull/76039 The AIX linker does not support the `--whole-archive` option, removing the option if the OS is AIX. >From 30f511b804d7a1a5a5f80daf0bef928ff7643971 Mon Sep 17 00:00:00 2001 From: Mark Danial Date: Wed, 20 Dec

[clang] [flang] [Flang] remove whole-archive option for AIX linker (PR #76039)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: None (madanial0) Changes The AIX linker does not support the `--whole-archive` option, removing the option if the OS is AIX. --- Full diff: https://github.com/llvm/llvm-project/pull/76039.diff 2 Files Affected: - (modified) clan

[flang] [clang] [Flang] remove whole-archive option for AIX linker (PR #76039)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: None (madanial0) Changes The AIX linker does not support the `--whole-archive` option, removing the option if the OS is AIX. --- Full diff: https://github.com/llvm/llvm-project/pull/76039.diff 2 Files A

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

2023-12-20 Thread Bushev Dmitry via cfe-commits
@@ -1,7 +1,7 @@ -// RUN: %clang_cc1 -triple x86_64-linux -std=c++98 %s -O3 -disable-llvm-passes -pedantic-errors -emit-llvm -o - | FileCheck %s dybv-sc wrote: I am sure that level 3 optimization should cut out all stack manipulation here leaving only one necess

[clang] [Clang][SME] Add IsStreamingOrSVE2p1 (PR #75958)

2023-12-20 Thread Sander de Smalen via cfe-commits
@@ -227,6 +227,7 @@ def IsPreservesZA : FlagType<0x100>; def IsReadZA : FlagType<0x200>; def IsWriteZA : FlagType<0x400>; def IsReductionQV : FlagType<0x800>; +def IsStreamingOrSVE2p1

[clang] [llvm] [InstCombine] Canonicalize constant GEPs to i8 source element type (PR #68882)

2023-12-20 Thread Nikita Popov via cfe-commits
https://github.com/nikic edited https://github.com/llvm/llvm-project/pull/68882 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [InstCombine] Canonicalize constant GEPs to i8 source element type (PR #68882)

2023-12-20 Thread Nikita Popov via cfe-commits
https://github.com/nikic ready_for_review https://github.com/llvm/llvm-project/pull/68882 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [InstCombine] Canonicalize constant GEPs to i8 source element type (PR #68882)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v @llvm/pr-subscribers-backend-amdgpu @llvm/pr-subscribers-clang Author: Nikita Popov (nikic) Changes This patch canonicalizes getelementptr instructions with constant indices to use the `i8` source element type. This makes it easier for op

[clang] [llvm] [InstCombine] Canonicalize constant GEPs to i8 source element type (PR #68882)

2023-12-20 Thread Nikita Popov via cfe-commits
@@ -560,14 +560,15 @@ define i32 @test28() nounwind { ; CHECK-NEXT: entry: ; CHECK-NEXT:[[ORIENTATIONS:%.*]] = alloca [1 x [1 x %struct.x]], align 8 ; CHECK-NEXT:[[T3:%.*]] = call i32 @puts(ptr noundef nonnull dereferenceable(1) @.str) #[[ATTR0]] +; CHECK-NEXT:[[

[llvm] [clang] [InstCombine] Canonicalize constant GEPs to i8 source element type (PR #68882)

2023-12-20 Thread Nikita Popov via cfe-commits
https://github.com/nikic edited https://github.com/llvm/llvm-project/pull/68882 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [InstCombine] Canonicalize constant GEPs to i8 source element type (PR #68882)

2023-12-20 Thread Nikita Popov via cfe-commits
https://github.com/nikic edited https://github.com/llvm/llvm-project/pull/68882 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [AArch64] Support for 9.5-A PAuthLR (PR #75947)

2023-12-20 Thread Jonathan Thackray via cfe-commits
jthackray wrote: Long diff! Looks good to me, great work. https://github.com/llvm/llvm-project/pull/75947 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [clang] [AArch64] Support for 9.5-A PAuthLR (PR #75947)

2023-12-20 Thread Jonathan Thackray via cfe-commits
https://github.com/jthackray approved this pull request. +2 https://github.com/llvm/llvm-project/pull/75947 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Disallow setting properties on `RecordValue`s. (PR #76042)

2023-12-20 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/76042 Instead, synthetic fields should now be used for the same purpose. These have a number of advantages, as described in https://github.com/llvm/llvm-project/pull/73860, and longer-term, we want to eliminate `Re

[clang] [clang][dataflow] Disallow setting properties on `RecordValue`s. (PR #76042)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: None (martinboehme) Changes Instead, synthetic fields should now be used for the same purpose. These have a number of advantages, as described in https://github.com/llvm/llvm-project/pull/73860, and longer-term, we want to eliminat

[clang] [clang][dataflow] Disallow setting properties on `RecordValue`s. (PR #76042)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (martinboehme) Changes Instead, synthetic fields should now be used for the same purpose. These have a number of advantages, as described in https://github.com/llvm/llvm-project/pull/73860, and longer-term, we want to eliminate `Record

[llvm] [lldb] [clang-tools-extra] [flang] [clang] [IndVars] Add check of loop invariant for trunc instructions (PR #71072)

2023-12-20 Thread Markos Horro via cfe-commits
markoshorro wrote: @fhahn yeah, thanks. I'm investigating this. https://github.com/llvm/llvm-project/pull/71072 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [lldb] [clang-tools-extra] [flang] [clang] [IndVars] Add check of loop invariant for trunc instructions (PR #71072)

2023-12-20 Thread Florian Hahn via cfe-commits
fhahn wrote: @markoshorro Great thanks. Please revert the patch if you won't be able to fix this today. https://github.com/llvm/llvm-project/pull/71072 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [flang] [Flang] remove whole-archive option for AIX linker (PR #76039)

2023-12-20 Thread via cfe-commits
https://github.com/madanial0 updated https://github.com/llvm/llvm-project/pull/76039 >From a61a1c050612493d17b5ec199d00c38afdee8663 Mon Sep 17 00:00:00 2001 From: Mark Danial Date: Wed, 20 Dec 2023 05:38:28 -0500 Subject: [PATCH] [Flang] remove whole-archive option for AIX linker --- clang/li

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

2023-12-20 Thread via cfe-commits
bd1976bris wrote: Thanks for the responses. > The meaning that we want to make clear is that this toggles the special > behavior of forcing the visibility of these symbols despite all the other > mechanisms that usually control visibility for all other symbols. Agreed. I'm in favour of your s

[clang-tools-extra] [clang] [flang] [llvm] [flang] Pass to add frame pointer attribute (PR #74598)

2023-12-20 Thread Radu Salavat via cfe-commits
@@ -245,6 +245,24 @@ static void parseCodeGenArgs(Fortran::frontend::CodeGenOptions &opts, opts.AliasAnalysis = opts.OptimizationLevel > 0; + if (const llvm::opt::Arg *a = + args.getLastArg(clang::driver::options::OPT_mframe_pointer_EQ)) { +llvm::StringRef s

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

2023-12-20 Thread via cfe-commits
gendalph wrote: In real projects mix enum class with old int switch. Try to update defaults and have noise from enum class case. My be mix options -Wswitch -Wswitch-default can disable warning in enum class case without default if full covered? https://godbolt.org/z/xrdafn6WK https://github.

[clang] [clang][CodeGen] Always use CLANG_VENDOR as a quoted string (PR #75935)

2023-12-20 Thread Dimitry Andric via cfe-commits
https://github.com/DimitryAndric updated https://github.com/llvm/llvm-project/pull/75935 >From 4b3db6bdaf9f94277f23bf9a796f474a353e4d73 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Tue, 19 Dec 2023 13:37:37 +0100 Subject: [PATCH] [clang] Add getClangVendor() and use it in CodeGenModule.c

[clang] [clang] Add getClangVendor() and use it in CodeGenModule.cpp (PR #75935)

2023-12-20 Thread Dimitry Andric via cfe-commits
https://github.com/DimitryAndric edited https://github.com/llvm/llvm-project/pull/75935 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add getClangVendor() and use it in CodeGenModule.cpp (PR #75935)

2023-12-20 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 b01adc6bed7e5b924dd8a097be0aa893f4823905 4b3db6bdaf9f94277f23bf9a796f474a353e4d73 --

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

2023-12-20 Thread Kiran Chandramohan via cfe-commits
kiranchandramohan wrote: Looks reasonable to me. I guess the environment settings that are there in the EnvironmentDefaults apply only when the main program is compiled with some flags. It would be good to check the options in EnvironmentDefaults and see that they are all applicable only when

[clang] [clang] Add getClangVendor() and use it in CodeGenModule.cpp (PR #75935)

2023-12-20 Thread Dimitry Andric via cfe-commits
https://github.com/DimitryAndric updated https://github.com/llvm/llvm-project/pull/75935 >From ab5263e77e19ede918faf517dd348018c1982590 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Tue, 19 Dec 2023 13:37:37 +0100 Subject: [PATCH] [clang] Add getClangVendor() and use it in CodeGenModule.c

[flang] [clang] [llvm] [clang-tools-extra] [flang] Pass to add frame pointer attribute (PR #74598)

2023-12-20 Thread Radu Salavat via cfe-commits
@@ -51,9 +51,9 @@ ! Content to check from the MLIR outputs !-- ! MLIR-FIR-NOT: llvm.func -! MLIR-FIR: func.func @{{.*}}main() { +! MLIR-FIR: func.func @{{.*}}main(){{.*}}{ Radu2k wrote: This was added due to failing the test when it was

[clang] [clang] Add getClangVendor() and use it in CodeGenModule.cpp (PR #75935)

2023-12-20 Thread Dimitry Andric via cfe-commits
@@ -995,12 +995,7 @@ void CodeGenModule::Release() { uint32_t(CLANG_VERSION_MINOR)); getModule().addModuleFlag(llvm::Module::Warning, "zos_product_patchlevel", uint32_t(CLANG_VERSION_PATCHLEVEL)); -std::string

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

2023-12-20 Thread via cfe-commits
gendalph wrote: Using an enum class without default is a good opportunity to get a warning in all places of use in the switch construct when adding new elements to the enum https://github.com/llvm/llvm-project/pull/73077 ___ cfe-commits mailing list c

[flang] [clang] [Flang, Clang] Enable and test 'rdynamic' flag (PR #75598)

2023-12-20 Thread Radu Salavat via cfe-commits
https://github.com/Radu2k updated https://github.com/llvm/llvm-project/pull/75598 >From 6180787f9bc9449ce90999c3c5f9c96cfd057a50 Mon Sep 17 00:00:00 2001 From: Radu2k Date: Fri, 15 Dec 2023 12:11:04 + Subject: [PATCH 1/3] Enable and test 'rdynamic' flag --- clang/include/clang/Driver/Opti

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

2023-12-20 Thread Alexey Bataev via cfe-commits
@@ -6580,6 +6578,51 @@ void CodeGenFunction::EmitOMPAtomicDirective(const OMPAtomicDirective &S) { } } + if (KindsEncountered.contains(OMPC_compare) && + KindsEncountered.contains(OMPC_fail)) { +Kind = OMPC_compare; +const OMPFailClause *fC = S.getSingleCl

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

2023-12-20 Thread Alexey Bataev via cfe-commits
@@ -6580,6 +6578,51 @@ void CodeGenFunction::EmitOMPAtomicDirective(const OMPAtomicDirective &S) { } } + if (KindsEncountered.contains(OMPC_compare) && + KindsEncountered.contains(OMPC_fail)) { +Kind = OMPC_compare; +const OMPFailClause *fC = S.getSingleCl

[clang] e86a02c - Use llvm-config.h in CIndexer.cpp instead of private header (#75928)

2023-12-20 Thread via cfe-commits
Author: Abhina Sree Date: 2023-12-20T08:44:40-05:00 New Revision: e86a02ce89c33f3fa4061fb4c67c3b05c69a72ab URL: https://github.com/llvm/llvm-project/commit/e86a02ce89c33f3fa4061fb4c67c3b05c69a72ab DIFF: https://github.com/llvm/llvm-project/commit/e86a02ce89c33f3fa4061fb4c67c3b05c69a72ab.diff L

[llvm] [clang] Use llvm-config.h in CIndexer.cpp instead of private header (PR #75928)

2023-12-20 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree closed https://github.com/llvm/llvm-project/pull/75928 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-12-20 Thread Walter Lee via cfe-commits
https://github.com/googlewalt updated https://github.com/llvm/llvm-project/pull/75827 >From eefa77a7cc7c671ef1551239e473f0267527dfa3 Mon Sep 17 00:00:00 2001 From: Walter Lee Date: Mon, 18 Dec 2023 11:41:43 -0500 Subject: [PATCH 1/2] Add tests for driver to propagate module map flags when -fno

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

2023-12-20 Thread Walter Lee via cfe-commits
@@ -57,6 +57,14 @@ // CHECK-MODULE-MAP-FILES: "-fmodule-map-file=foo.map" // CHECK-MODULE-MAP-FILES: "-fmodule-map-file=bar.map" +// RUN: %clang -fno-modules -fmodule-name=foo -c -### %s 2>&1 | FileCheck -check-prefix=CHECK-PROPAGATE-MODULE-NAME %s googlewalt

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

2023-12-20 Thread Michael Klemm via cfe-commits
@@ -163,6 +163,40 @@ forward compiler options to the frontend driver, `flang-new -fc1`. You can read more on the design of `clangDriver` in Clang's [Driver Design & Internals](https://clang.llvm.org/docs/DriverInternals.html). +## Linker Driver +When used as a linker, Flang's

[clang] [clang-format] Support of TableGen formatting. (PR #76059)

2023-12-20 Thread via cfe-commits
https://github.com/hnakamura5 created https://github.com/llvm/llvm-project/pull/76059 Currently, TableGen has its language style but the it does not works well. This patch adds total support of TableGen formatting including the support for the code (multi line string), DAG args, bang operators

[clang] [clang-format] Support of TableGen formatting. (PR #76059)

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

[clang] [clang-format] Support of TableGen formatting. (PR #76059)

2023-12-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: H.Nakamura (hnakamura5) Changes Currently, TableGen has its language style but the it does not works well. This patch adds total support of TableGen formatting including the support for the code (multi line string), DAG args, bang

[clang] [Clang][SME] Add IsStreamingOrSVE2p1 (PR #75958)

2023-12-20 Thread Sam Tebbs via cfe-commits
@@ -679,6 +679,7 @@ bool AArch64TargetInfo::hasFeature(StringRef Feature) const { .Case("f32mm", FPU & SveMode && HasMatmulFP32) .Case("f64mm", FPU & SveMode && HasMatmulFP64) .Case("sve2", FPU & SveMode && HasSVE2) + .Case("sve2p1", HasSVE2p1) -

[clang] [Clang][SME] Add IsStreamingOrSVE2p1 (PR #75958)

2023-12-20 Thread Sam Tebbs via cfe-commits
@@ -8,7 +8,7 @@ // RUN: %clang_cc1 -fclang-abi-compat=latest -DSVE_OVERLOADED_FORMS -triple aarch64-none-linux-gnu -target-feature +sve2p1 -S -disable-O0-optnone -Werror -Wall -emit-llvm -o - %s | opt -S -p mem2reg,instcombine,tailcallelim | FileCheck %s // RUN: %clang_cc1 -f

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

2023-12-20 Thread Balázs Kéri via cfe-commits
https://github.com/balazske approved this pull request. https://github.com/llvm/llvm-project/pull/74813 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][SME] Add IsStreamingOrSVE2p1 (PR #75958)

2023-12-20 Thread Kerry McLaughlin via cfe-commits
@@ -11,10 +11,16 @@ // RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64-none-linux-gnu -target-feature +sve2p1 \ // RUN: -S -disable-O0-optnone -Werror -Wall -o /dev/null %s // RUN: %clang_cc1 -fclang-abi-compat=latest -triple aarch64-none-linux-gnu -target-feature

[clang] [clang-format] Support of TableGen formatting. (PR #76059)

2023-12-20 Thread via cfe-commits
hnakamura5 wrote: The failure in Check code formatting seems to be caused by the commit (replacing to clang-format style) https://github.com/llvm/llvm-project/commit/5c60e2ce78e79c2d15152e08d9e28fcf3a1d4e51 I avoid this by using clang-format binary from main branch in my local. What should I do

[clang] [clang][dataflow] Add `Environment::get<>()`. (PR #76027)

2023-12-20 Thread Yitzhak Mandelbaum via cfe-commits
https://github.com/ymand edited https://github.com/llvm/llvm-project/pull/76027 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][dataflow] Add `Environment::get<>()`. (PR #76027)

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

  1   2   3   >