[clang] [flang] [Flang][Driver][Offload] Support -Xoffload-linker argument in Flang (PR #109907)

2024-09-25 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. https://github.com/llvm/llvm-project/pull/109907 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Allow class with anonymous union member to be const-default-constructible even if a union member has a default member initializer (#95854) (PR #96301)

2024-09-25 Thread Rajveer Singh Bharadwaj via cfe-commits
https://github.com/Rajveer100 updated https://github.com/llvm/llvm-project/pull/96301 >From f42cea250e79efc6ae51139d51ac72adc4fe7bfd Mon Sep 17 00:00:00 2001 From: Rajveer Date: Fri, 21 Jun 2024 18:26:36 +0530 Subject: [PATCH] [clang] Allow class with anonymous union member to be const-default

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

2024-09-25 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] [Flang][Driver] Enable the -B option The option

[clang] [clang] Allow class with anonymous union member to be const-default-constructible even if a union member has a default member initializer (#95854) (PR #96301)

2024-09-25 Thread Rajveer Singh Bharadwaj via cfe-commits
@@ -0,0 +1,43 @@ +// RUN: %clang_cc1 -std=c++23 -fsyntax-only -verify %s + +struct A { Rajveer100 wrote: Added. https://github.com/llvm/llvm-project/pull/96301 ___ cfe-commits mailing list cfe-commits@lists.llvm.org ht

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

2024-09-25 Thread via cfe-commits
https://github.com/tcwzxx created https://github.com/llvm/llvm-project/pull/109970 Fix #108015 The mangleNameOrStandardSubstitution function does not add the RD type into the substitution, which causes the mangling of the \ to be incorrect. >From cb60af05cd01da679a473538e80dfb22feefc4bb Mon

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

2024-09-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: tcwzxx (tcwzxx) Changes Fix #108015 The mangleNameOrStandardSubstitution function does not add the RD type into the substitution, which causes the mangling of the \ to be incorrect. --- Full diff: https://github.com/llvm/ll

[clang] [analyzer] Suppress out of bounds reports after weak loop assumptions (PR #109804)

2024-09-25 Thread Donát Nagy via cfe-commits
@@ -121,6 +121,25 @@ struct EvalCallOptions { EvalCallOptions() {} }; +/// Simple control flow statements like `if` only produce a single state split, +/// so the fact that they are included in the source code implies that both +/// branches are possible (at least under some

[clang] [analyzer] Suppress out of bounds reports after weak loop assumptions (PR #109804)

2024-09-25 Thread Donát Nagy via cfe-commits
@@ -121,6 +121,25 @@ struct EvalCallOptions { EvalCallOptions() {} }; +/// Simple control flow statements like `if` only produce a single state split, +/// so the fact that they are included in the source code implies that both +/// branches are possible (at least under some

[clang] [compiler-rt] [lldb] [llvm] [Support] Remove terminfo dependency (PR #92865)

2024-09-25 Thread Bernhard Kaindl via cfe-commits
bernhardkaindl wrote: @davide-q: The patch linked from this comment avoids this issue https://github.com/llvm/llvm-project/issues/101368: https://github.com/spack/spack/pull/46504#issuecomment-2372520318 https://github.com/llvm/llvm-project/pull/92865 ___

[clang] [flang] [mlir] [clang][flang][mlir] Support -frecord-command-line option (PR #102975)

2024-09-25 Thread Tarun Prabhu via cfe-commits
tarunprabhu wrote: The underlying issue is due to `CLOptions.inc` being included in `FrontendActions.cpp` and `bbc.cpp`. The file contained a number of command line options and functions, all of which were declared `static`. This PR added `libflangFrontend` to the list of libraries linked into

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

2024-09-25 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 aae7ac668588192e21a2435da0229fa0f49c231f cd3960354231edcf3dce4860bc56243b33fc7f01 --e

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

2024-09-25 Thread Brad Richardson via cfe-commits
https://github.com/everythingfunctional updated https://github.com/llvm/llvm-project/pull/110023 >From 38b43f6c2d90420c775d4658e7c472b323bfc30e Mon Sep 17 00:00:00 2001 From: Brad Richardson Date: Wed, 25 Sep 2024 13:25:22 -0500 Subject: [PATCH] [flang][driver] rename flang-new to flang --- c

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

2024-09-25 Thread Brad Richardson via cfe-commits
https://github.com/everythingfunctional created https://github.com/llvm/llvm-project/pull/110023 This does a global rename from `flang-new` to `flang`. I also removed/changed any TODOs that I found related to making this change. >From cd3960354231edcf3dce4860bc56243b33fc7f01 Mon Sep 17 00:00:0

[libcxx] [libcxxabi] [libunwind] [llvm] [runtimes] Run backdeployment CI on Github hosted runners (PR #109984)

2024-09-25 Thread Louis Dionne via cfe-commits
https://github.com/ldionne updated https://github.com/llvm/llvm-project/pull/109984 >From 6567a45fca93b81da2ccb0d596aa0be84666eab1 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Wed, 25 Sep 2024 09:55:53 -0400 Subject: [PATCH 1/2] [runtimes] Run backdeployment CI on Github hosted runners Th

[clang] [llvm] [ADT][NFC] Simplify SmallSet (PR #109412)

2024-09-25 Thread Nikita Popov via cfe-commits
nikic wrote: Looks like this change has a small negative compile-time impact: https://llvm-compile-time-tracker.com/compare.php?from=0c31ea5a09d854d5891eac40629f6a17a66fdcf7&to=ce6c236c965dc1bb5fa2257e17ea253a015705cc&stat=instructions:u Not obvious to me why that should be. https://github.com

[clang] [llvm] Deprecate the `-fbasic-block-sections=labels` option. (PR #107494)

2024-09-25 Thread Rahman Lavaee via cfe-commits
https://github.com/rlavaee updated https://github.com/llvm/llvm-project/pull/107494 >From 5cc499a7abfeb464ebffba6a04017ec1e5304839 Mon Sep 17 00:00:00 2001 From: Rahman Lavaee Date: Thu, 5 Sep 2024 19:14:11 + Subject: [PATCH 1/2] Deprecate the `-fbasic-block-sections=labels` option. This f

[clang] [llvm] Deprecate the `-fbasic-block-sections=labels` option. (PR #107494)

2024-09-25 Thread Rahman Lavaee via cfe-commits
rlavaee wrote: > > Just chiming in that I happened to spot the pre-merge check failure looks > > possibly related. > > @jh7370 It's weird I can't reproduce this on my machine. Fixed. It was an assertion failure. https://github.com/llvm/llvm-project/pull/107494

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

2024-09-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: Brad Richardson (everythingfunctional) Changes This does a global rename from `flang-new` to `flang`. I also removed/changed any TODOs that I found related to making this change. --- Patch is 81.03 KiB, truncated to 20.00 KiB belo

[clang] [llvm] adding clang codegen (PR #109331)

2024-09-25 Thread via cfe-commits
https://github.com/joaosaffran updated https://github.com/llvm/llvm-project/pull/109331 >From 50d21754119ac10c2ee2376ed8f79d12f73cd137 Mon Sep 17 00:00:00 2001 From: Joao Saffran Date: Thu, 19 Sep 2024 00:13:51 + Subject: [PATCH 1/3] Codegen builtin --- clang/include/clang/Basic/Builtins.

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

2024-09-25 Thread Craig Topper 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] [HLSL] Remove `__builtin_hlsl_create_handle` (PR #109910)

2024-09-25 Thread Helena Kotas via cfe-commits
https://github.com/hekota closed https://github.com/llvm/llvm-project/pull/109910 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement labelled type filtering for overflow/truncation sanitizers w/ SSCLs (PR #107332)

2024-09-25 Thread Justin Stitt via cfe-commits
@@ -48,6 +49,63 @@ Example $ clang -fsanitize=address -fsanitize-ignorelist=ignorelist.txt foo.c ; ./a.out # No error report here. +Usage with UndefinedBehaviorSanitizer += + +The arithmetic overflow sanitizers ``unsigned-integer-overfl

[clang] [HLSL] Implement `asint` casting using `bit_cast` (PR #110027)

2024-09-25 Thread Finn Plummer via cfe-commits
https://github.com/inbelic created https://github.com/llvm/llvm-project/pull/110027 Using clang's `__builtin_bit_cast`, implement the hlsl intrinsic `asint`. Follows implementation details of `asuint/asfloat`. Fixes #99091 >From 48ed7afee4dbe3735decff795aac26a6788f2680 Mon Sep 17 00:00:00 200

[clang] 1911a50 - Deprecate the `-fbasic-block-sections=labels` option. (#107494)

2024-09-25 Thread via cfe-commits
Author: Rahman Lavaee Date: 2024-09-25T12:03:38-07:00 New Revision: 1911a50fae8a441b445eb835b98950710d28fc88 URL: https://github.com/llvm/llvm-project/commit/1911a50fae8a441b445eb835b98950710d28fc88 DIFF: https://github.com/llvm/llvm-project/commit/1911a50fae8a441b445eb835b98950710d28fc88.diff

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

2024-09-25 Thread Craig Topper via cfe-commits
topperc wrote: I think maybe we should separate -fcf-protection=branch from the Zicfilp extension being in -march/-mcpu both in the frontend and backend. The encoding for lpad does not require Zicfilp. Only the assembly processing of the "lpad" mnemonic does. Even that we could change. It is

[clang] [Clang] Implement labelled type filtering for overflow/truncation sanitizers w/ SSCLs (PR #107332)

2024-09-25 Thread Justin Stitt via cfe-commits
@@ -817,6 +817,37 @@ ASTContext::getCanonicalTemplateTemplateParmDecl( return CanonTTP; } +/// Check if a type can have its sanitizer instrumentation elided. +/// Determine this by its presence in a SCL alongside its specified categories. +/// For example: +/// ignorelist.tx

[clang] [llvm] Deprecate the `-fbasic-block-sections=labels` option. (PR #107494)

2024-09-25 Thread Rahman Lavaee via cfe-commits
https://github.com/rlavaee closed https://github.com/llvm/llvm-project/pull/107494 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Deprecate the `-fbasic-block-sections=labels` option. (PR #107494)

2024-09-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-x86_64-debian` running on `lldb-x86_64-debian` while building `clang,llvm` at step 4 "build". Full details are available at: https://lab.llvm.org/buildbot/#/builders/162/builds/7163 Here is the relevant piece of the bui

[clang] [llvm] [AArch64] Implement intrinsics for SME2 FSCALE (PR #100128)

2024-09-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `clang,llvm` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/10045 He

[clang] [llvm] Deprecate the `-fbasic-block-sections=labels` option. (PR #107494)

2024-09-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/7978 Here is th

[clang] [llvm] Deprecate the `-fbasic-block-sections=labels` option. (PR #107494)

2024-09-25 Thread via cfe-commits
zeroomega wrote: Hi This change likely broke the clang build: ``` [4323/4602](116) Building CXX object tools/lld/ELF/CMakeFiles/lldELF.dir/LTO.cpp.o FAILED: tools/lld/ELF/CMakeFiles/lldELF.dir/LTO.cpp.o /b/s/w/ir/x/w/rc/cxx-rbeirddhris/reclient-cxx-wrapper.sh /b/s/w/ir/x/w/cipd/bin/clang++

<    1   2   3   4   5