[clang] [Clang] Verify data layout consistency (PR #144720)

2025-06-27 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM I see you opened a PR for m68k and aix; did you open a PR or issue report for wasm? https://github.com/llvm/llvm-project/pull/144720 ___ cfe-commits mailing list cfe-commits@lists.llvm

[clang] [clang][RISCV] Fix crash on VLS calling convention (PR #145489)

2025-06-27 Thread Craig Topper via cfe-commits
@@ -143,52 +143,82 @@ void __attribute__((riscv_vls_cc)) test_too_large(int32x64_t arg) {} // CHECK-LLVM: define dso_local riscv_vls_cc(256) void @test_too_large_256( noundef %arg.coerce) void __attribute__((riscv_vls_cc(256))) test_too_large_256(int32x64_t arg) {} -// CHECK

[clang] 3e9fd49 - [CIR] Add support for constructor aliases (#145792)

2025-06-27 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-06-27T09:43:05-07:00 New Revision: 3e9fd4966d7333a0bd7fcf3b4a7828d0545af90b URL: https://github.com/llvm/llvm-project/commit/3e9fd4966d7333a0bd7fcf3b4a7828d0545af90b DIFF: https://github.com/llvm/llvm-project/commit/3e9fd4966d7333a0bd7fcf3b4a7828d0545af90b.diff L

[clang] [CIR] Add support for constructor aliases (PR #145792)

2025-06-27 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/145792 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 74cabdb - [CIR] Add basic support for operator new (#145802)

2025-06-27 Thread via cfe-commits
Author: Andy Kaylor Date: 2025-06-27T09:43:26-07:00 New Revision: 74cabdb806aea341f6bdcc57e2377882f08a4684 URL: https://github.com/llvm/llvm-project/commit/74cabdb806aea341f6bdcc57e2377882f08a4684 DIFF: https://github.com/llvm/llvm-project/commit/74cabdb806aea341f6bdcc57e2377882f08a4684.diff L

[clang] [CIR] Add basic support for operator new (PR #145802)

2025-06-27 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor closed https://github.com/llvm/llvm-project/pull/145802 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang]Fix Handle structs exceeding 1EB size limit (PR #146032)

2025-06-27 Thread via cfe-commits
https://github.com/Karthikdhondi updated https://github.com/llvm/llvm-project/pull/146032 >From 45fb5d7c3cfd959778f1f410ea2f1f1d96953064 Mon Sep 17 00:00:00 2001 From: Karthikdhondi Date: Fri, 27 Jun 2025 21:56:38 +0530 Subject: [PATCH] [clang]Fix, Handle structs exceeding 1EB size limit ---

[clang] [llvm] [AMDGPU][clang][CodeGen][opt] Add late-resolved feature identifying predicates (PR #134016)

2025-06-27 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: We briefly discussed this in the clang area team meeting, and we weren't really happy with the design as-is. The underlying idea behind the feature makes sense, but semantics of the actual builtin is ugly: there's a loose connection between the condition check, and the re

[clang] [llvm] [mlir] [ADT] Deprecate MutableArrayRef(std::nullopt) (PR #146113)

2025-06-27 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146113 ArrayRef(std::nullopt) just got deprecated. This patch does the same to MutableArrayRef(std::nullopt). Since there are only a couple of uses, this patch does migration and deprecation at the same time.

[clang] [llvm] [mlir] [ADT] Deprecate MutableArrayRef(std::nullopt) (PR #146113)

2025-06-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-core Author: Kazu Hirata (kazutakahirata) Changes ArrayRef(std::nullopt) just got deprecated. This patch does the same to MutableArrayRef(std::nullopt). Since there are only a couple of uses, this patch does migration and deprecation at the same t

[clang] Add some basic extra support for C++ unity building (PR #146104)

2025-06-27 Thread Maksim Levental via cfe-commits
https://github.com/makslevental edited https://github.com/llvm/llvm-project/pull/146104 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix tests broken by empty %z3_include_dir (PR #146042)

2025-06-27 Thread Balazs Benics via cfe-commits
=?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: @@ -173,13 +173,16 @@ def have_host_clang_repl_cuda(): config.available_features.add("staticanalyzer") tools.append("clang-check") +I_z3_include_dir = "" if config.clang_staticanalyzer_z3: config.avai

[clang] [clang] Add option for -nolibc in Driver/ToolChains/Baremetal.cpp (PR #145700)

2025-06-27 Thread Victor Campos via cfe-commits
vhscampos wrote: The change LGTM. Please just fix a typo in the PR description: "requre" https://github.com/llvm/llvm-project/pull/145700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [RISCV] Remove required features zvfhmin/zvfbfmin from plain f16/bf16 intrinsics (PR #145891)

2025-06-27 Thread Jim Lin via cfe-commits
https://github.com/tclin914 closed https://github.com/llvm/llvm-project/pull/145891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ADT] Remove a constructor (NFC) (PR #146010)

2025-06-27 Thread Tim Gymnich via cfe-commits
https://github.com/tgymnich approved this pull request. https://github.com/llvm/llvm-project/pull/146010 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CLANG][AArch64] Add mfloat8_t support for more SVE load intrinsics (PR #145383)

2025-06-27 Thread via cfe-commits
https://github.com/amilendra updated https://github.com/llvm/llvm-project/pull/145383 >From 2941cdc8c447dc841d7021719587d187cf3219f9 Mon Sep 17 00:00:00 2001 From: Amilendra Kodithuwakku Date: Mon, 23 Jun 2025 19:16:28 +0100 Subject: [PATCH 1/2] [CLANG][AArch64] Add mfloat8_t support for more S

[clang] [llvm] [NFC][analyzer] Remove Z3-as-constraint-manager hacks from lit test code (PR #145731)

2025-06-27 Thread Donát Nagy via cfe-commits
NagyDonat wrote: Sorry for the failures -- I'll try to troubleshoot them ASAP. https://github.com/llvm/llvm-project/pull/145731 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-27 Thread Donát Nagy via cfe-commits
NagyDonat wrote: > The bug was that we inserted the `T` into the expected `InsertPos` > corresponding to the `Profile` of `T` - so far so good, but instead of > returning that, we checked if this is "overly complicated", and if so, we > created the new `SymbolOverlyComplex` symbol and returned

[clang] [mlir] [OpenACC][CIR] Implement copyin/copyout/create lowering for compute/c… (PR #145976)

2025-06-27 Thread Razvan Lupusoru via cfe-commits
https://github.com/razvanlupusoru approved this pull request. Thank you! https://github.com/llvm/llvm-project/pull/145976 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 3463aba - [OpenACC][CIR] Implement copyin/copyout/create lowering for compute/c… (#145976)

2025-06-27 Thread via cfe-commits
Author: Erich Keane Date: 2025-06-27T07:25:58-07:00 New Revision: 3463aba45f61c082d54bb6e7a99549277a5517a4 URL: https://github.com/llvm/llvm-project/commit/3463aba45f61c082d54bb6e7a99549277a5517a4 DIFF: https://github.com/llvm/llvm-project/commit/3463aba45f61c082d54bb6e7a99549277a5517a4.diff L

[clang] [mlir] [OpenACC][CIR] Implement copyin/copyout/create lowering for compute/c… (PR #145976)

2025-06-27 Thread Erich Keane via cfe-commits
https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/145976 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Improve Markup Rendering (PR #140498)

2025-06-27 Thread via cfe-commits
@@ -118,8 +138,8 @@ class Document { BulletList &addBulletList(); /// Doesn't contain any trailing newlines. - /// We try to make the markdown human-readable, e.g. avoid extra escaping. - /// At least one client (coc.nvim) displays the markdown verbatim!

[clang] 772009c - [PS5][Driver] Allow selection of CRT with `-L` (#145869)

2025-06-27 Thread via cfe-commits
Author: Edd Dawson Date: 2025-06-27T15:29:49+01:00 New Revision: 772009ce4aff79858481540aa04401eebf3f709a URL: https://github.com/llvm/llvm-project/commit/772009ce4aff79858481540aa04401eebf3f709a DIFF: https://github.com/llvm/llvm-project/commit/772009ce4aff79858481540aa04401eebf3f709a.diff LO

[clang] [PS5][Driver] Allow selection of CRT with `-L` (PR #145869)

2025-06-27 Thread Edd Dawson via cfe-commits
https://github.com/playstation-edd closed https://github.com/llvm/llvm-project/pull/145869 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Add new check `llvm-prefer-static-over-anonymous-namespace` (PR #142839)

2025-06-27 Thread via cfe-commits
@@ -0,0 +1,201 @@ +// RUN: %check_clang_tidy %s llvm-prefer-static-over-anonymous-namespace %t -- -- -fno-delayed-template-parsing +// RUN: %check_clang_tidy -check-suffixes=,VAR %s llvm-prefer-static-over-anonymous-namespace %t -- \ +// RUN: -config="{CheckOptions: { \ +// RU

[clang] Suppress noreturn warning if last statement in a function is a throw (PR #145166)

2025-06-27 Thread Samarth Narang via cfe-commits
@@ -0,0 +1,26 @@ +// RUN: %clang_cc1 -fsyntax-only -fcxx-exceptions -fexceptions -Wreturn-type -verify %s +// expected-no-diagnostics + +namespace std { + class string { + public: +string(const char*); // constructor for runtime_error + }; + class runtime_error { + publi

[clang] Suppress noreturn warning if last statement in a function is a throw (PR #145166)

2025-06-27 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 ready_for_review https://github.com/llvm/llvm-project/pull/145166 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Suppress noreturn warning if last statement in a function is a throw (PR #145166)

2025-06-27 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/145166 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Fix the false positive ArgInitializedness warning on unnamed bit-field (PR #145066)

2025-06-27 Thread Baranov Victor via cfe-commits
vbvictor wrote: I restarted the job, there is already an issue for such fail https://github.com/llvm/llvm-project/issues/145703 https://github.com/llvm/llvm-project/pull/145066 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang] Thread Safety Analysis: Warn when using negative reentrant capability (PR #141599)

2025-06-27 Thread Marco Elver via cfe-commits
https://github.com/melver edited https://github.com/llvm/llvm-project/pull/141599 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 61c0a94 - [CIR] Refactor type interfaces (#146044)

2025-06-27 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-06-27T16:47:58+02:00 New Revision: 61c0a94a9047ca8bbcf65fdabaa1c10926bdd0b0 URL: https://github.com/llvm/llvm-project/commit/61c0a94a9047ca8bbcf65fdabaa1c10926bdd0b0 DIFF: https://github.com/llvm/llvm-project/commit/61c0a94a9047ca8bbcf65fdabaa1c10926bdd0b0.diff

[clang] [CIR] Implement SizedTypeInterface to make isSized hookable (PR #146045)

2025-06-27 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko updated https://github.com/llvm/llvm-project/pull/146045 >From 1f65dd5ba9fe0c256f26a7ea333fa0c6d8d22a1b Mon Sep 17 00:00:00 2001 From: xlauko Date: Fri, 27 Jun 2025 11:24:23 +0200 Subject: [PATCH] [CIR] Implement SizedTypeInterface to make isSized hookable Resolves is

[clang] [SystemZ][z/OS] Implement #pragma export (PR #141671)

2025-06-27 Thread Sean Perry via cfe-commits
@@ -1395,6 +1411,171 @@ bool Parser::HandlePragmaMSAllocText(StringRef PragmaName, return true; } +NestedNameSpecifier * +Parser::zOSParseIdentifier(StringRef PragmaName, + const IdentifierInfo *IdentName) { + NestedNameSpecifier *NestedId = nullp

[clang] [CIR] Implement SizedTypeInterface to make isSized hookable (PR #146045)

2025-06-27 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko edited https://github.com/llvm/llvm-project/pull/146045 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Refactor type interfaces (PR #146044)

2025-06-27 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko closed https://github.com/llvm/llvm-project/pull/146044 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 07f1502 - [CIR] Implement SizedTypeInterface to make isSized hookable (#146045)

2025-06-27 Thread via cfe-commits
Author: Henrich Lauko Date: 2025-06-27T16:50:01+02:00 New Revision: 07f1502b867e85b0b67a54664e57b71dcb37f1cb URL: https://github.com/llvm/llvm-project/commit/07f1502b867e85b0b67a54664e57b71dcb37f1cb DIFF: https://github.com/llvm/llvm-project/commit/07f1502b867e85b0b67a54664e57b71dcb37f1cb.diff

[clang] [CIR] Implement SizedTypeInterface to make isSized hookable (PR #146045)

2025-06-27 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko closed https://github.com/llvm/llvm-project/pull/146045 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Driver][SamplePGO] Enable -fsample-profile-use-profi for SamplePGO (PR #145957)

2025-06-27 Thread Snehasish Kumar via cfe-commits
snehasish wrote: We evaluated profi internally (at Google) last year. Our configuration uses AutoFDO with [flow-sensitive discriminators ](https://lists.llvm.org/pipermail/llvm-dev/2020-November/146694.html) (FS-AFDO). We found slight regressions with this configuration and didn't enable it f

[clang] [SystemZ][z/OS] Implement #pragma export (PR #141671)

2025-06-27 Thread Sean Perry via cfe-commits
https://github.com/perry-ca edited https://github.com/llvm/llvm-project/pull/141671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [SystemZ][z/OS] Implement #pragma export (PR #141671)

2025-06-27 Thread Sean Perry via cfe-commits
https://github.com/perry-ca edited https://github.com/llvm/llvm-project/pull/141671 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 794edd1 - [clang] Suppress noreturn warning if last statement in a function is a throw (#145166)

2025-06-27 Thread via cfe-commits
Author: Samarth Narang Date: 2025-06-27T10:52:22-04:00 New Revision: 794edd187cee49e3f12cc2ce587d60fc85e08dd6 URL: https://github.com/llvm/llvm-project/commit/794edd187cee49e3f12cc2ce587d60fc85e08dd6 DIFF: https://github.com/llvm/llvm-project/commit/794edd187cee49e3f12cc2ce587d60fc85e08dd6.diff

[clang] Suppress noreturn warning if last statement in a function is a throw (PR #145166)

2025-06-27 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 closed https://github.com/llvm/llvm-project/pull/145166 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-27 Thread Balázs Benics via cfe-commits
balazs-benics-sonarsource wrote: > The parts of the flamegraph that you highlight are presumably coming from the > _other_ operand whose simplification is skipped due to the presence of the > `UnknownVal`. Yes, this is my theory, but this still wouldn't explain why I didn't see these simplify

[clang] [Clang] [CodeGen] UBSan Trap Reasons (PR #145967)

2025-06-27 Thread Michael Buch via cfe-commits
@@ -85,6 +85,94 @@ enum VariableTypeDescriptorKind : uint16_t { //Miscellaneous Helper Methods //======// +static llvm::StringRef GetUBSanTrapForHandler(SanitizerHandler ID) { + switch

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-27 Thread Balázs Benics via cfe-commits
https://github.com/balazs-benics-sonarsource updated https://github.com/llvm/llvm-project/pull/144327 From bc7dfc2b4f143c2caa1189db096bf9e4ea76f053 Mon Sep 17 00:00:00 2001 From: Balazs Benics Date: Mon, 16 Jun 2025 12:14:06 +0200 Subject: [PATCH 1/2] [analyzer] Enforce not making overly compli

[clang] [clang] Add option for -nolibc in Driver/ToolChains/Baremetal.cpp (PR #145700)

2025-06-27 Thread William Huynh via cfe-commits
https://github.com/saturn691 edited https://github.com/llvm/llvm-project/pull/145700 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][CompundLiteralExpr] Don't defer evaluation for CLEs (PR #137163)

2025-06-27 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet updated https://github.com/llvm/llvm-project/pull/137163 From 55976eaeac5bba9c36b92d7aa99f8f589d6c9ef5 Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Thu, 24 Apr 2025 11:12:00 +0200 Subject: [PATCH 1/4] [clang][CompundLiteralExpr] Don't defer evaluation for CL

[clang] [Clang][Driver] Warn on complex number range incompatibility with GCC (PR #144468)

2025-06-27 Thread Shunsuke Watanabe via cfe-commits
@@ -520,6 +520,9 @@ def warn_drv_math_errno_enabled_after_veclib: Warning< "math errno enabled by '%0' after it was implicitly disabled by '%1'," " this may limit the utilization of the vector library">, InGroup; +def warn_drv_gcc_incompatible_complex_range_override: Warn

[clang] [Clang][Sema] Require `BaseClass::` (not other classes) in member using-declaration in C++98 mode (PR #143492)

2025-06-27 Thread Yanzuo Liu via cfe-commits
zwuis wrote: > > I think we need an entry in "Potentially breaking changes" section. > > This is still missing. I think [this commit](https://github.com/llvm/llvm-project/commit/c9e11f8d3d2c277fca8ec986b0c01ac71e0e4161) move the release note to the right place. Can you check this again? http

[clang] [analyzer] Fix tests broken by empty %z3_include_dir (PR #146042)

2025-06-27 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat created https://github.com/llvm/llvm-project/pull/146042 This commit should fix the build failure caused by my recent commit 40cc4379cda6e0d6efe72c55d1968f9cf427a16a From b7bfc546397c42b1e26cfd0d10bdf583d0091ff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=2

[clang] [analyzer] Fix tests broken by empty %z3_include_dir (PR #146042)

2025-06-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-static-analyzer-1 Author: Donát Nagy (NagyDonat) Changes This commit should fix the build failure caused by my recent commit 40cc4379cda6e0d6efe72c55d1968f9cf427a16a --- Full diff: https://github.com/llvm/llvm-project/p

[clang] [llvm] [NFC][analyzer] Remove Z3-as-constraint-manager hacks from lit test code (PR #145731)

2025-06-27 Thread Michał Górny via cfe-commits
mgorny wrote: As I've said, my issue is specific to the standalone build. You install LLVM first, then build clang against installed LLVM. Installed LLVM configs indicate whether LLVM was built against Z3, but they don't include internal Z3 lookup variables. https://github.com/llvm/llvm-proje

[clang] [analyzer] Fix tests broken by empty %z3_include_dir (PR #146042)

2025-06-27 Thread Michał Górny via cfe-commits
mgorny wrote: That's not the correct solution. You either need to export these variables from LLVM (implying renaming them to prefix with LLVM namespace), or issue another `find_package()` in clang standalone block. https://github.com/llvm/llvm-project/pull/146042 _

[clang] [NFC][analyzer] Use %clang_analyze_cc1 consistently (PR #145895)

2025-06-27 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/145895 From 06bfdd1e2ce11716dad904b8f2736c5b404f1c07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Thu, 26 Jun 2025 15:17:05 +0200 Subject: [PATCH 1/2] [NFC][analyzer] Use %clang_analyze_cc1 cons

[clang-tools-extra] [clang-tidy] unnecessary-value-param: Allow moving of value arguments. (PR #145871)

2025-06-27 Thread Clement Courbet via cfe-commits
legrosbuffle wrote: Note that in the test I wrote I called a ctor for simplicity, but in general I want to avoid warning on anything that looks like this: ``` template void Eat(Args&&...); void NegativeMoved(ExpensiveToCopyType A) { Eat(std::move(A)); } ``` The move ctor just happens to be

[clang] [clang] Add option for -nolibc in Driver/ToolChains/Baremetal.cpp (PR #145700)

2025-06-27 Thread William Huynh via cfe-commits
https://github.com/saturn691 updated https://github.com/llvm/llvm-project/pull/145700 >From 97c87ceb781eee0a04bd93299a341e03cbe68ddd Mon Sep 17 00:00:00 2001 From: William Huynh Date: Wed, 25 Jun 2025 14:25:22 +0100 Subject: [PATCH 1/4] [clang] Add option for -nolibc in Driver/ToolChains/Barem

[clang] [libcxx] [Clang] Add __builtin_invoke and use it in libc++ (PR #116709)

2025-06-27 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 updated https://github.com/llvm/llvm-project/pull/116709 >From e0bb550672326e21a556ac727f2e2a6ef65f0469 Mon Sep 17 00:00:00 2001 From: Nikolas Klauser Date: Tue, 1 Oct 2024 11:08:02 +0200 Subject: [PATCH 01/11] [Clang] Add __builtin_invoke and recognize std::invoke

[clang] [llvm] [EarlyCSE] Add support for writeonly call CSE (PR #145474)

2025-06-27 Thread Yingwei Zheng via cfe-commits
@@ -1626,14 +1626,17 @@ bool EarlyCSE::processNode(DomTreeNode *Node) { !(MemInst.isValid() && !MemInst.mayReadFromMemory())) LastStore = nullptr; -// If this is a read-only call, process it. -if (CallValue::canHandle(&Inst)) { +// If this is a read-o

[clang] [llvm] [EarlyCSE] Add support for writeonly call CSE (PR #145474)

2025-06-27 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw commented: This patch eliminates many math libcalls that set `errno`. However, it causes some regressions when processing `llvm.memset`. See the following pattern: ``` memset(p) if (Cond) { memset(p); mem access with p } ``` After this patch, the second memset is r

[clang] [llvm] [EarlyCSE] Add support for writeonly call CSE (PR #145474)

2025-06-27 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw edited https://github.com/llvm/llvm-project/pull/145474 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][analyzer] Use %clang_analyze_cc1 consistently (PR #145895)

2025-06-27 Thread Donát Nagy via cfe-commits
@@ -10,7 +10,7 @@ // DEFINE: %{mocked_clang} = \ // DEFINE: LD_PRELOAD="%t/MockZ3_solver_check.so" \ -// DEFINE: %clang_cc1 %s -analyze -setup-static-analyzer \ +// DEFINE: %clang_analyze_cc1 %s -setup-static-analyzer \

[clang] [clang][analyzer] Fix the false positive ArgInitializedness warning on unnamed bit-field (PR #145066)

2025-06-27 Thread via cfe-commits
https://github.com/Tedlion updated https://github.com/llvm/llvm-project/pull/145066 >From 03004d9a9348e365a2d2d05e69f83fc404ddb605 Mon Sep 17 00:00:00 2001 From: tangwy Date: Sat, 21 Jun 2025 00:22:10 +0800 Subject: [PATCH 1/2] [clang][analyzer] Fix the false positive ArgInitializedness warnin

[clang] [clang][analyzer] Fix the false positive ArgInitializedness warning on unnamed bit-field (PR #145066)

2025-06-27 Thread via cfe-commits
https://github.com/Tedlion updated https://github.com/llvm/llvm-project/pull/145066 >From 03004d9a9348e365a2d2d05e69f83fc404ddb605 Mon Sep 17 00:00:00 2001 From: tangwy Date: Sat, 21 Jun 2025 00:22:10 +0800 Subject: [PATCH 1/2] [clang][analyzer] Fix the false positive ArgInitializedness warnin

[clang-tools-extra] [clang-tidy] unnecessary-value-param: Allow moving of value arguments. (PR #145871)

2025-06-27 Thread Oliver Stöneberg via cfe-commits
firewave wrote: > We've actually had such a check internally for a few years (suggesting to > `move` local objects, including parameters). See #53489 and #139525 about such a check. I think moving (no pun intended) the logic for suggesting using `std::move()` into a separate check is an inter

[clang] [Clang] include attribute scope in diagnostics (PR #144619)

2025-06-27 Thread Oleksandr T. via cfe-commits
@@ -506,7 +506,15 @@ void clang::FormatASTNodeDiagnosticArgument( case DiagnosticsEngine::ak_attr: { const Attr *At = reinterpret_cast(Val); assert(At && "Received null Attr object!"); - OS << '\'' << At->getSpelling() << '\''; + + OS << '\''; + i

[clang] [-Wunterminated-string-initialization] Handle C string literals ending with explicit '\0' (PR #143487)

2025-06-27 Thread Ziqing Luo via cfe-commits
ziqingluo-90 wrote: > LLVM Buildbot has detected a new failure on builder > `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `clang` at > step 7 "test-build-unified-tree-check-llvm". > > Full details are available at: > https://lab.llvm.org/buildbot/#/builders/60/builds/31310

[clang] [Clang][NFC] - Move attr-cpuspecific-cpus test over to Sema (PR #146065)

2025-06-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Pawan Nirpal (pawan-nirpal-031) Changes The attr-cpuspecific-cpus test does not have any LLVM IR checks relevant to Codegen, Moving the test over to clang/test/Sema. --- Full diff: https://github.com/llvm/llvm-project/pull/146065.diff

[clang] [Clang][NFC] - Move attr-cpuspecific-cpus test over to Sema (PR #146065)

2025-06-27 Thread Pawan Nirpal via cfe-commits
https://github.com/pawan-nirpal-031 created https://github.com/llvm/llvm-project/pull/146065 The attr-cpuspecific-cpus test does not have any LLVM IR checks relevant to Codegen, Moving the test over to clang/test/Sema. >From 557821de15a610bc02e6e144910fc8708652bc6c Mon Sep 17 00:00:00 2001 F

[clang] [llvm] [mlir] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)

2025-06-27 Thread Adrian Vogelsgesang via cfe-commits
vogelsgesang wrote: > I don't feel there are coroutine specific things What I would have had in mind: The integration in the `CoroSplit` pass and the test case changes > I can accept this Thanks! I will still wait for a 2nd review from someone with debuginfo expertise. We still have 3 weeks

[clang] [HLSL] Implement `SpirvType` and `SpirvOpaqueType` (PR #134034)

2025-06-27 Thread Aaron Ballman via cfe-commits
@@ -4855,6 +4857,17 @@ LinkageInfo LinkageComputer::computeTypeLinkageInfo(const Type *T) { return computeTypeLinkageInfo(cast(T) ->getContainedType() ->getCanonicalTypeInternal()); + case Type::H

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-27 Thread Donát Nagy via cfe-commits
NagyDonat wrote: > We see a lot of `simplifySValOnce` that decomposes the symbol and traverses > the tree. With my original patch it's not present likely because the > `Unknowns` poison the the tree so there is nothing to be traversed. This is > why with my original patch we actually improve t

[clang] [SystemZ][z/OS] Implement #pragma export (PR #141671)

2025-06-27 Thread Sean Perry via cfe-commits
https://github.com/perry-ca updated https://github.com/llvm/llvm-project/pull/141671 >From 33413248f61e899f6d4dbbddec9c1cec7bf0e44a Mon Sep 17 00:00:00 2001 From: Sean Perry Date: Fri, 23 May 2025 04:36:46 + Subject: [PATCH 1/5] #pragma export support --- clang/docs/ReleaseNotes.rst

[clang] [llvm] [clang][python][test] Move python binding tests to lit framework (PR #145855)

2025-06-27 Thread Rainer Orth via cfe-commits
rorth wrote: I'd already acknowledged the failure and provided a possible 1-line patch (which I cannot test). Instead of doing that, you chose to revert. I'm totally tired of that constant merge/revert/reland/revert/... churn that is so typical of LLVM. I can fully understand reversal if a p

[clang] [clang][analyzer] Fix the false positive ArgInitializedness warning on unnamed bit-field (PR #145066)

2025-06-27 Thread via cfe-commits
Tedlion wrote: @vbvictor Thank you for your help. But the Build and Test Windows " fails: `llvm-lit.py: C:\_work\llvm-project\llvm-project\llvm\utils\lit\lit\llvm\config.py:312: fatal: Couldn't find the include dir for Clang ('c:\_work\llvm-project\llvm-project\build\bin\clang.exe')` It seems

[clang] Suppress noreturn warning if last statement in a function is a throw (PR #145166)

2025-06-27 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/145166 >From 602b472aadebe365cb9f499ce85687a5e31605b8 Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Sat, 21 Jun 2025 08:42:00 -0400 Subject: [PATCH 1/9] Suppress noreturn warning if last statement in a functio

[clang] [PS5][Driver] Allow selection of CRT with `-L` (PR #145869)

2025-06-27 Thread Edd Dawson via cfe-commits
@@ -200,12 +200,10 @@ // CHECK-NO-TARGETLIB-SAME: "-L." // RUN: mkdir -p %t.dir/myroot/target/lib -// RUN: touch %t.dir/myroot/target/lib/crti.o // RUN: env SCE_PROSPERO_SDK_DIR=%t.dir/myroot %clang --target=x64_64-sie-ps5 %s -### -Luser 2>&1 | FileCheck --check-prefixes=CHE

[clang] 2cbcec4 - [Clang][NFC] - Move attr-cpuspecific-cpus test over to Sema (#146065)

2025-06-27 Thread via cfe-commits
Author: Pawan Nirpal Date: 2025-06-27T09:22:52-04:00 New Revision: 2cbcec483293d71007b642c2acc5284d4182913a URL: https://github.com/llvm/llvm-project/commit/2cbcec483293d71007b642c2acc5284d4182913a DIFF: https://github.com/llvm/llvm-project/commit/2cbcec483293d71007b642c2acc5284d4182913a.diff

[clang] [clang-fuzzer] Fix latent race condition in build (PR #146119)

2025-06-27 Thread Paddy McDonald via cfe-commits
https://github.com/padriff created https://github.com/llvm/llvm-project/pull/146119 Add explicit dependency for gen_vt to the CMakeLists.txt for clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp to prevent race condition on generation of llvm/CodeGen/GenVT.inc This explicit dependency was a

[clang] [clang-fuzzer] Fix latent race condition in build (PR #146119)

2025-06-27 Thread Paddy McDonald via cfe-commits
padriff wrote: @etcwilde https://github.com/llvm/llvm-project/pull/146119 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e4d8e06 - [OpenACC][CIR] Implement present/deviceptr/attach lowering for data

2025-06-27 Thread via cfe-commits
Author: erichkeane Date: 2025-06-27T10:24:38-07:00 New Revision: e4d8e06f83f866786cb5af602857f6d161501593 URL: https://github.com/llvm/llvm-project/commit/e4d8e06f83f866786cb5af602857f6d161501593 DIFF: https://github.com/llvm/llvm-project/commit/e4d8e06f83f866786cb5af602857f6d161501593.diff LO

[clang] Fix AST IgnoreUnlessSpelledInSource traversal nullptr dereference (PR #146103)

2025-06-27 Thread Yanzuo Liu via cfe-commits
zwuis wrote: Thank you for the patch! Please add a release note to "clang/docs/ReleaseNotes.rst" so users can know the improvement. Please add a tag to the beginning of the PR title in square brackets like other PRs. E.g. `[clang]`. https://github.com/llvm/llvm-project/pull/146103 ___

[clang] [clang-fuzzer] Fix latent race condition in build (PR #146119)

2025-06-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Paddy McDonald (padriff) Changes Add explicit dependency for gen_vt to the CMakeLists.txt for clang/tools/clang-fuzzer/handle-llvm/handle_llvm.cpp to prevent race condition on generation of llvm/CodeGen/GenVT.inc This explicit dependency

[clang] [llvm] [Hexagon] NFC: Reduce the amount of version-specific code (PR #145812)

2025-06-27 Thread Alexey Karyakin via cfe-commits
@@ -70,6 +70,8 @@ MCRegisterInfo *createHexagonMCRegisterInfo(StringRef TT); namespace Hexagon_MC { StringRef selectHexagonCPU(StringRef CPU); + /** Return a set of extra features to set. The returned set is not a + * transitive closure. */ quic-akaryaki

[clang] [clang-fuzzer] Fix latent race condition in build (PR #146119)

2025-06-27 Thread Evan Wilde via cfe-commits
https://github.com/etcwilde approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/146119 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][ByteCode][NFC] Misc minor performance fixes (PR #145988)

2025-06-27 Thread Shafik Yaghmour via cfe-commits
shafik wrote: Looks like the window CI fail is related to this issue: https://github.com/llvm/llvm-project/issues/145703 https://github.com/llvm/llvm-project/pull/145988 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cg

[clang] [Clang][ByteCode][NFC] Misc minor performance fixes (PR #145988)

2025-06-27 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik closed https://github.com/llvm/llvm-project/pull/145988 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][ByteCode][NFC] Avoid copies by using move in Disasm.cpp (PR #146127)

2025-06-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Shafik Yaghmour (shafik) Changes Static analysis flagged some cases we could avoid copies by using std::move in Disasm.cpp. --- Full diff: https://github.com/llvm/llvm-project/pull/146127.diff 1 Files Affected: - (modified) clang/lib/A

[clang] [Clang][ByteCode][NFC] Avoid copies by using move in Disasm.cpp (PR #146127)

2025-06-27 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik created https://github.com/llvm/llvm-project/pull/146127 Static analysis flagged some cases we could avoid copies by using std::move in Disasm.cpp. >From 6dbfe12457e7fd7dbb62d4cb5d53b3206b78e492 Mon Sep 17 00:00:00 2001 From: Shafik Yaghmour Date: Fri, 27 Jun 2025 10

[clang] Add some basic extra support for C++ unity building (PR #146104)

2025-06-27 Thread Maksim Levental via cfe-commits
https://github.com/makslevental edited https://github.com/llvm/llvm-project/pull/146104 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-06-27 Thread Cristian Assaiante via cfe-commits
https://github.com/cristianassaiante updated https://github.com/llvm/llvm-project/pull/145059 >From ab6063493744ef5a1ee92fd249bf8d86b7299fad Mon Sep 17 00:00:00 2001 From: Cristian Assaiante Date: Fri, 20 Jun 2025 16:56:23 +0200 Subject: [PATCH 1/5] Adding -opt-disable and a test for it --- c

[clang] [llvm] [mlir] [ADT] Deprecate MutableArrayRef(std::nullopt) (PR #146113)

2025-06-27 Thread David Blaikie via cfe-commits
https://github.com/dwblaikie approved this pull request. https://github.com/llvm/llvm-project/pull/146113 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a4be46e - [Clang][ByteCode][NFC] Misc minor performance fixes (#145988)

2025-06-27 Thread via cfe-commits
Author: Shafik Yaghmour Date: 2025-06-27T11:00:16-07:00 New Revision: a4be46e0e5bc124f446720337018c555ba38a875 URL: https://github.com/llvm/llvm-project/commit/a4be46e0e5bc124f446720337018c555ba38a875 DIFF: https://github.com/llvm/llvm-project/commit/a4be46e0e5bc124f446720337018c555ba38a875.dif

[clang] [clang] Fix AST IgnoreUnlessSpelledInSource traversal nullptr dereference (PR #146103)

2025-06-27 Thread Jonathan Marriott via cfe-commits
https://github.com/JonathanMarriott updated https://github.com/llvm/llvm-project/pull/146103 >From 646d006e327f9d891dea5d9c334e44174a5560a3 Mon Sep 17 00:00:00 2001 From: Jon Marriott Date: Wed, 25 Jun 2025 18:04:59 +0100 Subject: [PATCH 1/3] Add check for decl nullptr to `ASTNodeTraverser::Vis

[clang] [clang][AST] Fix AST IgnoreUnlessSpelledInSource traversal nullptr dereference (PR #146103)

2025-06-27 Thread Jonathan Marriott via cfe-commits
JonathanMarriott wrote: > Thank you for the patch! Please add a release note to > "clang/docs/ReleaseNotes.rst" so users can know the improvement. Please add a > tag to the beginning of the PR title in square brackets like other PRs. E.g. > `[clang]`. Thanks, I've added a release note in what

[clang] [llvm] [AMDGPU][Clang] Allow amdgpu-waves-per-eu attribute to lower target occupancy range (PR #138284)

2025-06-27 Thread Lucas Ramirez via cfe-commits
https://github.com/lucas-rami updated https://github.com/llvm/llvm-project/pull/138284 >From b277b2e90a3665c5e945ddff47c6c55a7fdb8d33 Mon Sep 17 00:00:00 2001 From: Lucas Ramirez Date: Thu, 22 May 2025 13:26:57 + Subject: [PATCH 1/3] Rebase on main (integrate changes from 1b34722) --- cla

[clang] [llvm] [mlir] Add some basic extra support for C++ unity building (PR #146104)

2025-06-27 Thread Maksim Levental via cfe-commits
https://github.com/makslevental updated https://github.com/llvm/llvm-project/pull/146104 >From 6e4090dd5e83d28ef3655e2b11746d0a6da0b8d0 Mon Sep 17 00:00:00 2001 From: Maksim Levental Date: Fri, 27 Jun 2025 12:20:07 -0400 Subject: [PATCH 1/2] Add some basic extra support for C++ unity building

[clang] [llvm] [AMDGPU][Clang] Allow amdgpu-waves-per-eu attribute to lower target occupancy range (PR #138284)

2025-06-27 Thread Lucas Ramirez via cfe-commits
@@ -0,0 +1,40 @@ +; RUN: not llvm-as -disable-output %s 2>&1 | FileCheck %s + +target triple = "amdgcn-amd-amdhsa" + +define void @valid_amdgpu_waves_per_eu_range() "amdgpu-waves-per-eu"="2,4" { + ret void +} lucas-rami wrote: Will keep that in mind, thanks. ht

[clang] [llvm] [AMDGPU][Clang] Allow amdgpu-waves-per-eu attribute to lower target occupancy range (PR #138284)

2025-06-27 Thread Lucas Ramirez via cfe-commits
@@ -46,7 +46,6 @@ __attribute__((amdgpu_num_sgpr(4294967296))) kernel void kernel_num_sgpr_L() {} __attribute__((amdgpu_num_vgpr(4294967296))) kernel void kernel_num_vgpr_L() {} // expected-error {{integer constant expression evaluates to value 4294967296 that cannot be repres

[clang] [llvm] [AMDGPU][Clang] Allow amdgpu-waves-per-eu attribute to lower target occupancy range (PR #138284)

2025-06-27 Thread Lucas Ramirez via cfe-commits
@@ -2519,6 +2519,29 @@ void Verifier::verifyFunctionAttrs(FunctionType *FT, AttributeList Attrs, CheckFailed("invalid value for 'denormal-fp-math-f32' attribute: " + S, V); } + + if (TT.isAMDGPU()) { +if (auto A = Attrs.getFnAttr("amdgpu-waves-pe

[clang] Reland [Driver] Add support for GCC installation detection in Baremetal toolchain (PR #145390)

2025-06-27 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/145390 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4   >