[clang] [CIR] Upstream PackIndexingExpr for ScalarExpr (PR #146239)

2025-06-29 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/146239 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream PackIndexingExpr for ScalarExpr (PR #146239)

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

[clang] [lld] [llvm] [AArch64] Fix stale +zcm target feature to +zcm-gpr64 (PR #146260)

2025-06-29 Thread Tomer Shafir via cfe-commits
https://github.com/tomershafir updated https://github.com/llvm/llvm-project/pull/146260 >From 91c9e0832a72f8ed9198b644b677f0e93a557d89 Mon Sep 17 00:00:00 2001 From: tomershafir Date: Sun, 29 Jun 2025 10:17:47 +0300 Subject: [PATCH] [AArch64] Fix stale +zcm target feature to +zcm-gpr64 Replace

[clang] [lld] [llvm] [AArch64] Fix stale +zcm target feature to +zcm-gpr64 (PR #146260)

2025-06-29 Thread Tomer Shafir via cfe-commits
https://github.com/tomershafir created https://github.com/llvm/llvm-project/pull/146260 Replaces all the uses of `+zcm` with `+zcm-gpr64`. >From f7ba61ad76cf956d642aa36a98288ab0df3c56d8 Mon Sep 17 00:00:00 2001 From: tomershafir Date: Sun, 29 Jun 2025 10:17:47 +0300 Subject: [PATCH] [AArch64]

[clang] [lld] [llvm] [AArch64] Fix stale +zcm target feature to +zcm-gpr64 (PR #146260)

2025-06-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-lld Author: Tomer Shafir (tomershafir) Changes Replaces all the uses of `+zcm` with `+zcm-gpr64`. A fix for: https://github.com/llvm/llvm-project/pull/146051 --- Patch is 30.41 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/

[clang] [lld] [llvm] [AArch64] Fix stale +zcm target feature to +zcm-gpr64 (PR #146260)

2025-06-29 Thread Tomer Shafir via cfe-commits
https://github.com/tomershafir ready_for_review https://github.com/llvm/llvm-project/pull/146260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [AArch64] Fix stale +zcm target feature to +zcm-gpr64 (PR #146260)

2025-06-29 Thread Tomer Shafir via cfe-commits
https://github.com/tomershafir edited https://github.com/llvm/llvm-project/pull/146260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add OptInfo attribute (PR #146261)

2025-06-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clangir Author: Sirui Mu (Lancern) Changes This patch adds the `#cir.opt_info` attribute which holds module-level optimization information. --- Full diff: https://github.com/llvm/llvm-project/pull/146261.diff 5 Files Affect

[clang] [CIR] Add OptInfo attribute (PR #146261)

2025-06-29 Thread Sirui Mu via cfe-commits
https://github.com/Lancern created https://github.com/llvm/llvm-project/pull/146261 This patch adds the `#cir.opt_info` attribute which holds module-level optimization information. >From c1f884577af1d55cb7cc9b65276e43bd96b82378 Mon Sep 17 00:00:00 2001 From: Sirui Mu Date: Sun, 29 Jun 2025 15

[clang] [lld] [llvm] [AArch64] Fix stale +zcm target feature to +zcm-gpr64 (PR #146260)

2025-06-29 Thread David Green via cfe-commits
https://github.com/davemgreen approved this pull request. OK. LGTM then. Thanks for the quick fix. https://github.com/llvm/llvm-project/pull/146260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang] [clang] [modules] Add err_main_in_named_module (PR #146247)

2025-06-29 Thread Ashwin Banwari via cfe-commits
https://github.com/ashwinbanwari updated https://github.com/llvm/llvm-project/pull/146247 >From f2ed0c7989d7e181004237a4fa2ba7ae1efe44ed Mon Sep 17 00:00:00 2001 From: Ashwin Banwari Date: Sat, 28 Jun 2025 16:19:55 -0700 Subject: [PATCH 1/4] add err_main_in_named_module --- clang/include/clan

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

2025-06-29 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/14] [Clang] Add __builtin_invoke and recognize std::invoke

[clang-tools-extra] [clangd] `--header-insertion` CLI fix (PR #146235)

2025-06-29 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 approved this pull request. Thanks! https://github.com/llvm/llvm-project/pull/146235 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] d2d5203 - [clangd] Consistent precedence between `--header-insertion` and `HeaderInsertion` (#146235)

2025-06-29 Thread via cfe-commits
Author: Mythreya Date: 2025-06-29T10:47:49-04:00 New Revision: d2d5203bf48af9b55b8e379c1c152fec97349340 URL: https://github.com/llvm/llvm-project/commit/d2d5203bf48af9b55b8e379c1c152fec97349340 DIFF: https://github.com/llvm/llvm-project/commit/d2d5203bf48af9b55b8e379c1c152fec97349340.diff LOG:

[clang-tools-extra] [clangd] `--header-insertion` CLI fix (PR #146235)

2025-06-29 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/146235 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add nothrow attribute to the call operation (PR #145178)

2025-06-29 Thread Sirui Mu via cfe-commits
Lancern wrote: I conducted a minor refactor in the latest commit. Prior to the latest commit, CallOp build functions (namely, `CallOp::build`, `CIRBaseBuilderTy::createCallOp`, and `CIRBaseBuilderTy::createIndirectCallOp`) takes quite a lot parameters, including the extra optional call attribu

[clang] dd02fb3 - [AArch64] Fix stale +zcm target feature to +zcm-gpr64 (#146260)

2025-06-29 Thread via cfe-commits
Author: Tomer Shafir Date: 2025-06-29T15:01:05+03:00 New Revision: dd02fb3a51456187b0586693c82285606fae6ee5 URL: https://github.com/llvm/llvm-project/commit/dd02fb3a51456187b0586693c82285606fae6ee5 DIFF: https://github.com/llvm/llvm-project/commit/dd02fb3a51456187b0586693c82285606fae6ee5.diff

[clang] [lld] [llvm] [AArch64] Fix stale +zcm target feature to +zcm-gpr64 (PR #146260)

2025-06-29 Thread Tomer Shafir via cfe-commits
https://github.com/tomershafir closed https://github.com/llvm/llvm-project/pull/146260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Initial extra attributes for call operation (PR #145178)

2025-06-29 Thread Sirui Mu via cfe-commits
https://github.com/Lancern updated https://github.com/llvm/llvm-project/pull/145178 >From 183dad89003c36f3c3d11c4b930908b829f40f17 Mon Sep 17 00:00:00 2001 From: Sirui Mu Date: Sun, 29 Jun 2025 20:06:51 +0800 Subject: [PATCH] [CIR] Add nothrow attribute to call operations This patch adds nothr

[clang] [CIR] Add nothrow attribute to the call operation (PR #145178)

2025-06-29 Thread Sirui Mu via cfe-commits
@@ -368,4 +368,34 @@ def CIR_VisibilityAttr : CIR_Attr<"Visibility", "visibility"> { }]; } +//===--===// +// ExtraFuncAttributesAttr +//===---

[clang] [CIR] Add nothrow attribute to the call operation (PR #145178)

2025-06-29 Thread Sirui Mu via cfe-commits
@@ -102,3 +104,16 @@ void f12() { // LLVM: %[[#slot:]] = alloca %struct.S, i64 1, align 4 // LLVM-NEXT:%[[#ret:]] = call %struct.S @_Z3f10v() // LLVM-NEXT:store %struct.S %[[#ret]], ptr %[[#slot]], align 4 + +void f13() noexcept; +void f14() { + f13(); +} + +//

[clang] [CIR] Add nothrow attribute to the call operation (PR #145178)

2025-06-29 Thread Sirui Mu via cfe-commits
https://github.com/Lancern edited https://github.com/llvm/llvm-project/pull/145178 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] modernize-use-std-print, format: Fix checks with Abseil functions (PR #142312)

2025-06-29 Thread Mike Crowe via cfe-commits
mikecrowe wrote: Ping? https://github.com/llvm/llvm-project/pull/142312 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format][NFC] Replace a function with StringRef::contains (PR #146245)

2025-06-29 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks commented: While it is less code, I find a bit harder to understand and the code gen is far worse: https://gcc.godbolt.org/z/KzG4YnTh3 https://github.com/llvm/llvm-project/pull/146245 ___ cfe-commits mailing list

[clang] [clang] [Sema] Suggest [[noreturn]] for void functions that always throw (PR #146234)

2025-06-29 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/146234 >From 588ae1c6c4b965a6cd57044284845a62c75da9c2 Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Sat, 28 Jun 2025 15:31:37 -0400 Subject: [PATCH 1/2] Emit a suggestion to explicitly mark the function with

[clang] [clang] [Sema] Suggest [[noreturn]] for void functions that always throw (PR #146234)

2025-06-29 Thread Samarth Narang via cfe-commits
@@ -1979,6 +1979,13 @@ void clang::inferNoReturnAttr(Sema &S, const Decl *D) { if (!FD->hasAttr() && !FD->hasAttr() && isKnownToAlwaysThrow(FD)) { NonConstFD->addAttr(InferredNoReturnAttr::CreateImplicit(S.Context)); + +// Conditionally, emit the suggestion warn

[clang] [clang] [Sema] Suggest [[noreturn]] for void functions that always throw (PR #146234)

2025-06-29 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/146234 >From 588ae1c6c4b965a6cd57044284845a62c75da9c2 Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Sat, 28 Jun 2025 15:31:37 -0400 Subject: [PATCH 1/2] Emit a suggestion to explicitly mark the function with

[clang] [clang-tools-extra] [clang] skip explicit obj param in code complete (PR #146258)

2025-06-29 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: > [...] people like to **also** ask for a test to be added to libSema's own > code completion test suite. These tests work a bit differently: they're found > at `clang/test/CodeCompletion` (see for example [this > file](https://searchfox.org/llvm/source/clang/test/CodeCom

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

2025-06-29 Thread via cfe-commits
@@ -0,0 +1,240 @@ +// RUN: %clang_cc1 -verify -fsyntax-only %s -std=c++23 + +void func() { // expected-note {{'func' declared here}} + __builtin_invoke(); // expected-error {{too few arguments to function call, expected at least 1, have 0}} +} + +void nfunc() noexcept {} + +stru

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

2025-06-29 Thread via cfe-commits
@@ -0,0 +1,240 @@ +// RUN: %clang_cc1 -verify -fsyntax-only %s -std=c++23 + +void func() { // expected-note {{'func' declared here}} + __builtin_invoke(); // expected-error {{too few arguments to function call, expected at least 1, have 0}} +} + +void nfunc() noexcept {} + +stru

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

2025-06-29 Thread via cfe-commits
EricWF wrote: @philnik777 I'm encountering a number of test failures related to libc++'s clang-tidy module when running the libc++ test suite with the new compiler: > # .---command stdout # | /home/eric/llvm-project/build/libcxx/libcxx/test-suite-install/include/c++/v1/__type_trait

[clang] Reapply [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #146281)

2025-06-29 Thread via cfe-commits
@@ -453,70 +455,35 @@ bool DeadCodeScan::isDeadCodeRoot(const clang::CFGBlock *Block) { return isDeadRoot; } -// Check if the given `DeadStmt` is a coroutine statement and is a substmt of -// the coroutine statement. `Block` is the CFGBlock containing the `DeadStmt`. -stati

[clang] Reapply [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #146281)

2025-06-29 Thread via cfe-commits
https://github.com/yronglin updated https://github.com/llvm/llvm-project/pull/146281 >From 5839b3d8dc65d0ea26769556974403f97098b4c3 Mon Sep 17 00:00:00 2001 From: yronglin Date: Mon, 30 Jun 2025 00:48:24 +0800 Subject: [PATCH] Reapply [Analyzer][CFG] Correctly handle rebuilt default arg and de

[clang] [clang-tools-extra] [clang] skip explicit obj param in code complete (PR #146258)

2025-06-29 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/146258 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang] skip explicit obj param in code complete (PR #146258)

2025-06-29 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/146258 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang] skip explicit obj param in code complete (PR #146258)

2025-06-29 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/146258 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang] skip explicit obj param in code complete (PR #146258)

2025-06-29 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 edited https://github.com/llvm/llvm-project/pull/146258 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Handle consteval constructors with default initialization. (PR #144970)

2025-06-29 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic updated https://github.com/llvm/llvm-project/pull/144970 >From ef713152a6fb5d2321330d8fbaa77970e8666b13 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Thu, 19 Jun 2025 18:29:49 -0700 Subject: [PATCH 1/2] [clang] Handle consteval constructors with default ini

[clang] Reapply [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #146281)

2025-06-29 Thread via cfe-commits
https://github.com/yronglin created https://github.com/llvm/llvm-project/pull/146281 This PR reapply https://github.com/llvm/llvm-project/pull/127338. Fixes: https://github.com/llvm/llvm-project/issues/128068, https://github.com/llvm/llvm-project/issues/128195 >From 3a15187cc3250624a79d1c0427

[clang] Reapply [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #146281)

2025-06-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: None (yronglin) Changes This PR reapply https://github.com/llvm/llvm-project/pull/127338. Fixes: https://github.com/llvm/llvm-project/issues/128068, https://github.com/llvm/llvm-project/issues/128195 --- Patch is 22.68

[clang] Reapply [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #146281)

2025-06-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (yronglin) Changes This PR reapply https://github.com/llvm/llvm-project/pull/127338. Fixes: https://github.com/llvm/llvm-project/issues/128068, https://github.com/llvm/llvm-project/issues/128195 --- Patch is 22.68 KiB, truncated to

[clang] Reapply [Analyzer][CFG] Correctly handle rebuilt default arg and default init expression (PR #146281)

2025-06-29 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 HEAD~1 HEAD --extensions h,cpp -- clang/include/clang/AST/ParentMap.h clang/lib/AST/P

[clang] [docs][coroutines] Revamp "Debugging C++ coroutines" (PR #142651)

2025-06-29 Thread Adrian Vogelsgesang via cfe-commits
@@ -301,177 +735,284 @@ optimized to the equivalent of: std::cout << a+5 << "\n"; } -It should now be obvious why the value of `__int_32_0` remains unchanged -throughout the function. It is important to recognize that `__int_32_0` -does not directly correspond to `a`, bu

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

2025-06-29 Thread Nikolas Klauser via cfe-commits
philnik777 wrote: > @philnik777 I'm encountering a number of test failures related to libc++'s > clang-tidy module when running the libc++ test suite with the new compiler: > > ``` > # .---command stdout > # | > /home/eric/llvm-project/build/libcxx/libcxx/test-suite-install/include

[clang] [NFC][docs][coro] Fix syntax & typos (PR #146282)

2025-06-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Adrian Vogelsgesang (vogelsgesang) Changes Follow-up fixes to #142651 --- Full diff: https://github.com/llvm/llvm-project/pull/146282.diff 1 Files Affected: - (modified) clang/docs/DebuggingCoroutines.rst (+9-9) ``diff diff -

[clang] [NFC][docs][coro] Fix syntax & typos (PR #146282)

2025-06-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-coroutines Author: Adrian Vogelsgesang (vogelsgesang) Changes Follow-up fixes to #142651 --- Full diff: https://github.com/llvm/llvm-project/pull/146282.diff 1 Files Affected: - (modified) clang/docs/DebuggingCoroutines.rst (+9-9) ``diff d

[clang] [NFC][docs][coro] Fix syntax & typos (PR #146282)

2025-06-29 Thread Adrian Vogelsgesang via cfe-commits
https://github.com/vogelsgesang created https://github.com/llvm/llvm-project/pull/146282 Follow-up fixes to #142651 >From 21f5dad37ecae2465e9c135e70bec6c040449823 Mon Sep 17 00:00:00 2001 From: Adrian Vogelsgesang Date: Sun, 29 Jun 2025 17:07:29 + Subject: [PATCH] [NFC][docs][coro] Fix syn

[clang] [NFC][docs][coro] Fix syntax & typos (PR #146282)

2025-06-29 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis approved this pull request. https://github.com/llvm/llvm-project/pull/146282 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] [modules] Add err_main_in_named_module (PR #146247)

2025-06-29 Thread Ashwin Banwari via cfe-commits
https://github.com/ashwinbanwari updated https://github.com/llvm/llvm-project/pull/146247 >From f2ed0c7989d7e181004237a4fa2ba7ae1efe44ed Mon Sep 17 00:00:00 2001 From: Ashwin Banwari Date: Sat, 28 Jun 2025 16:19:55 -0700 Subject: [PATCH 1/4] add err_main_in_named_module --- clang/include/clan

[clang] [CIR] Upstream GenericSelectionExpr for ComplexType (PR #146265)

2025-06-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes Upstream the GenericSelectionExpr for ComplexType https://github.com/llvm/llvm-project/issues/141365 --- Full diff: https://github.com/llvm/llvm-project/pull/146265.diff 2 Files Affected: - (modified)

[clang] [CIR] Upstream GenericSelectionExpr for ComplexType (PR #146265)

2025-06-29 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/146265 Upstream the GenericSelectionExpr for ComplexType https://github.com/llvm/llvm-project/issues/141365 >From 75b506657dc2ecda04a5fda1f76141346d9ec3ab Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 2

[clang] [CIR] Upstream GenericSelectionExpr for ComplexType (PR #146265)

2025-06-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes Upstream the GenericSelectionExpr for ComplexType https://github.com/llvm/llvm-project/issues/141365 --- Full diff: https://github.com/llvm/llvm-project/pull/146265.diff 2 Files Affected: - (modified

[clang] dcc9e36 - [ARM] Add neon vector support for floor (#142559)

2025-06-29 Thread via cfe-commits
Author: David Green Date: 2025-06-29T11:37:16+01:00 New Revision: dcc9e36b18264aef4008b88c4ae38e33151c3345 URL: https://github.com/llvm/llvm-project/commit/dcc9e36b18264aef4008b88c4ae38e33151c3345 DIFF: https://github.com/llvm/llvm-project/commit/dcc9e36b18264aef4008b88c4ae38e33151c3345.diff L

[clang] [llvm] [ARM] Add neon vector support for floor (PR #142559)

2025-06-29 Thread David Green via cfe-commits
https://github.com/davemgreen closed https://github.com/llvm/llvm-project/pull/142559 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Make EndsInComma in ContinuationIndenter consistent (PR #146256)

2025-06-29 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/146256 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ARM] Add neon vector support for floor (PR #142559)

2025-06-29 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `arc-builder` running on `arc-worker` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/3/builds/18242 Here is the relevant pie

[clang] [clang] [Sema] Suggest [[noreturn]] for void functions that always throw (PR #146234)

2025-06-29 Thread Timm Baeder via cfe-commits
@@ -1979,6 +1979,13 @@ void clang::inferNoReturnAttr(Sema &S, const Decl *D) { if (!FD->hasAttr() && !FD->hasAttr() && isKnownToAlwaysThrow(FD)) { NonConstFD->addAttr(InferredNoReturnAttr::CreateImplicit(S.Context)); + +// Conditionally, emit the suggestion warn

[clang] [docs][coroutines] Revamp "Debugging C++ coroutines" (PR #142651)

2025-06-29 Thread Adrian Vogelsgesang via cfe-commits
vogelsgesang wrote: Thanks for reporting. I actually ended up feeding this document to AI and asked it to do a proof-read. It found a couple more smaller issues. Those are fixed in #146282 now https://github.com/llvm/llvm-project/pull/142651 ___ cfe-

[clang] [clang] [Sema] Suggest [[noreturn]] for void functions that always throw (PR #146234)

2025-06-29 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/146234 >From 588ae1c6c4b965a6cd57044284845a62c75da9c2 Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Sat, 28 Jun 2025 15:31:37 -0400 Subject: [PATCH 1/2] Emit a suggestion to explicitly mark the function with

[clang] [NFC][docs][coro] Fix syntax & typos (PR #146282)

2025-06-29 Thread Adrian Vogelsgesang via cfe-commits
https://github.com/vogelsgesang updated https://github.com/llvm/llvm-project/pull/146282 >From b547ef22612bdd66abc8076df40924074230c9e3 Mon Sep 17 00:00:00 2001 From: Adrian Vogelsgesang Date: Sun, 29 Jun 2025 17:07:29 + Subject: [PATCH] [NFC][docs][coro] Fix syntax & typos Follow-up fixes

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

2025-06-29 Thread via cfe-commits
https://github.com/tcottin updated https://github.com/llvm/llvm-project/pull/140498 >From 8fadd8d51fa3d96c7fb82b9d749ef3f35441ac64 Mon Sep 17 00:00:00 2001 From: Tim Cottin Date: Mon, 19 May 2025 06:26:36 + Subject: [PATCH 1/3] [clangd] Improve Markup Rendering --- clang-tools-extra/clang

[clang] [CIR] Implement ArraySubscript for ComplexType (PR #146283)

2025-06-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes Implement ArraySubscript for ComplexType https://github.com/llvm/llvm-project/issues/141365 --- Full diff: https://github.com/llvm/llvm-project/pull/146283.diff 2 Files Affected: - (modified) clang/l

[clang] [CIR] Implement ArraySubscript for ComplexType (PR #146283)

2025-06-29 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/146283 Implement ArraySubscript for ComplexType https://github.com/llvm/llvm-project/issues/141365 >From 0d1cec7c321351ed1d685ca2708683903aaf98d5 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 29 Jun 202

[clang] 40525fb - [NFC][docs][coro] Fix syntax & typos (#146282)

2025-06-29 Thread via cfe-commits
Author: Adrian Vogelsgesang Date: 2025-06-29T21:25:35+02:00 New Revision: 40525fb4c78a9020c0cb39c9ec4fb0b14e88eba4 URL: https://github.com/llvm/llvm-project/commit/40525fb4c78a9020c0cb39c9ec4fb0b14e88eba4 DIFF: https://github.com/llvm/llvm-project/commit/40525fb4c78a9020c0cb39c9ec4fb0b14e88eba4

[clang] [NFC][docs][coro] Fix syntax & typos (PR #146282)

2025-06-29 Thread Adrian Vogelsgesang via cfe-commits
https://github.com/vogelsgesang closed https://github.com/llvm/llvm-project/pull/146282 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode][NFC] Remove some dead code (PR #146287)

2025-06-29 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/146287 None >From 7812277876bfa5ac75c110d582dea98924339858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 29 Jun 2025 21:19:22 +0200 Subject: [PATCH] [clang][bytecode][NFC] Remove some dead c

[clang-tools-extra] a3a60e0 - [clang-tidy] add new check: modernize-use-scoped-lock (#126434)

2025-06-29 Thread via cfe-commits
Author: Baranov Victor Date: 2025-06-29T22:34:32+03:00 New Revision: a3a60e03e2bf7b79683517584a9a7b3e4c8cd297 URL: https://github.com/llvm/llvm-project/commit/a3a60e03e2bf7b79683517584a9a7b3e4c8cd297 DIFF: https://github.com/llvm/llvm-project/commit/a3a60e03e2bf7b79683517584a9a7b3e4c8cd297.diff

[clang] [clang] Improve constexpr-unknown diagnostics. (PR #146288)

2025-06-29 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic created https://github.com/llvm/llvm-project/pull/146288 APValue::ConstexprUnknown() constructs a broken LValue that doesn't have an lvalue path, which confuses later error handling. It turns out we don't actually use the result of createConstexprUnknownAPValu

[clang] [clang] Improve constexpr-unknown diagnostics. (PR #146288)

2025-06-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Eli Friedman (efriedma-quic) Changes APValue::ConstexprUnknown() constructs a broken LValue that doesn't have an lvalue path, which confuses later error handling. It turns out we don't actually use the result of createConstexprUnknownAPV

[clang-tools-extra] [clang-tidy] add new check: modernize-use-scoped-lock (PR #126434)

2025-06-29 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/126434 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Improve constexpr-unknown diagnostics. (PR #146288)

2025-06-29 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 HEAD~1 HEAD --extensions cpp -- clang/lib/AST/ExprConstant.cpp clang/test/SemaCXX/con

[clang] [llvm] AMDGPU: Implement intrinsic/builtins for gfx1250 load transpose instructions (PR #146289)

2025-06-29 Thread Changpeng Fang via cfe-commits
https://github.com/changpeng created https://github.com/llvm/llvm-project/pull/146289 None >From fc2039dcf338f04977b2a0b43e8714cb5eb0f440 Mon Sep 17 00:00:00 2001 From: Changpeng Fang Date: Fri, 27 Jun 2025 14:59:33 -0700 Subject: [PATCH] AMDGPU: Implement intrinsic/builtins for gfx1250 load

[clang] fa05864 - [clang-format] Make EndsInComma in ContinuationIndenter consistent (#146256)

2025-06-29 Thread via cfe-commits
Author: Owen Pan Date: 2025-06-29T12:41:34-07:00 New Revision: fa058647fe3ad7834f9d99af7597b00990afc186 URL: https://github.com/llvm/llvm-project/commit/fa058647fe3ad7834f9d99af7597b00990afc186 DIFF: https://github.com/llvm/llvm-project/commit/fa058647fe3ad7834f9d99af7597b00990afc186.diff LOG:

[clang] [clang-format] Make EndsInComma in ContinuationIndenter consistent (PR #146256)

2025-06-29 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/146256 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Implement intrinsic/builtins for gfx1250 load transpose instructions (PR #146289)

2025-06-29 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Changpeng Fang (changpeng) Changes --- Patch is 37.64 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/146289.diff 11 Files Affected: - (modified) clang/include/clang/Basic/BuiltinsAMDGPU.def

[clang] [Clang] Fix '-Wformat-overflow' FP when floats had field-width and plus prefix (PR #144274)

2025-06-29 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/144274 >From dfb2abd2c2711c87a22e8f8c93aa82f2621518cb Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Sun, 15 Jun 2025 22:20:54 +0300 Subject: [PATCH 1/3] [Clang] Fix '-Wformat-overflow' FP when floats had field-

[clang-tools-extra] [clang-tidy] properly handle private move constructors in `modernize-pass-by-value` check (PR #141304)

2025-06-29 Thread Baranov Victor via cfe-commits
vbvictor wrote: Ping https://github.com/llvm/llvm-project/pull/141304 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement ArraySubscript for ComplexType (PR #146283)

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

[clang] [CIR] Implement ArraySubscript for ComplexType (PR #146283)

2025-06-29 Thread Henrich Lauko via cfe-commits
https://github.com/xlauko approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/146283 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement ArraySubscript for ComplexType (PR #146283)

2025-06-29 Thread Henrich Lauko via cfe-commits
@@ -442,3 +442,35 @@ bool foo19(double _Complex a, double _Complex b) { // OGCG: %[[CMP_IMAG:.*]] = fcmp oeq double %[[A_IMAG]], %[[B_IMAG]] // OGCG: %[[RESULT:.*]] = and i1 %[[CMP_REAL]], %[[CMP_IMAG]] + +void foo24() { + int _Complex arr[2]; + int _Complex r = arr[1]; ---

[clang] [clang][bytecode] Add `Descriptor::hasTrivialDtor()` (PR #146286)

2025-06-29 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/146286 >From a034db206e38bc4473bb47e152a7078e7348649a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 25 Jun 2025 10:27:56 +0200 Subject: [PAT

[clang] [clang] Build the Z3 mock module via CMake (PR #146284)

2025-06-29 Thread Balazs Benics via cfe-commits
https://github.com/steakhal approved this pull request. Looks really good. Sweet! Thank you for this patch. If it works then it works. There is only one thing though. We have a couple uses of %clang_cc1 and we could substitute when we are at it. See an example here https://github.com/llvm/llvm-

[clang] [lld] [llvm] [AArch64] Fix stale +zcm target feature to +zcm-gpr64 (PR #146260)

2025-06-29 Thread David Green via cfe-commits
@@ -170,7 +170,7 @@ getAArch64MicroArchFeaturesFromMtune(const Driver &D, StringRef Mtune, // 'cyclone' and later have zero-cycle register moves and zeroing. if (MtuneLowerCase == "cyclone" || StringRef(MtuneLowerCase).starts_with("apple")) { -Features.push_back(

[clang] [lld] [llvm] [AArch64] Fix stale +zcm target feature to +zcm-gpr64 (PR #146260)

2025-06-29 Thread David Green via cfe-commits
https://github.com/davemgreen commented: The llvm test look OK if you wanted to push those separately. https://github.com/llvm/llvm-project/pull/146260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [lld] [llvm] [AArch64] Fix stale +zcm target feature to +zcm-gpr64 (PR #146260)

2025-06-29 Thread David Green via cfe-commits
https://github.com/davemgreen edited https://github.com/llvm/llvm-project/pull/146260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] [AArch64] Fix stale +zcm target feature to +zcm-gpr64 (PR #146260)

2025-06-29 Thread Tomer Shafir via cfe-commits
@@ -170,7 +170,7 @@ getAArch64MicroArchFeaturesFromMtune(const Driver &D, StringRef Mtune, // 'cyclone' and later have zero-cycle register moves and zeroing. if (MtuneLowerCase == "cyclone" || StringRef(MtuneLowerCase).starts_with("apple")) { -Features.push_back(

[clang] [Clang] Remove AArch64TargetInfo::setArchFeatures (PR #146107)

2025-06-29 Thread David Green via cfe-commits
davemgreen wrote: The best kind of patch. > When compiling with -march=armv9-a+nosve we found that Clang still defines > the __ARM_FEATURE_SVE2 macro Could we add a test for this, in case it comes up again in the future? Negative features have not worked super well in the past and could do wi

[clang] [clang] Handle consteval constructors with default initialization. (PR #144970)

2025-06-29 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev commented: LGTM! https://github.com/llvm/llvm-project/pull/144970 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Handle consteval constructors with default initialization. (PR #144970)

2025-06-29 Thread Vassil Vassilev via cfe-commits
@@ -14423,6 +14423,9 @@ void Sema::ActOnUninitializedDecl(Decl *RealDecl) { Var->getType().getAddressSpace() == LangAS::hlsl_input) return; +if (getLangOpts().CPlusPlus) + ActOnCXXEnterDeclInitializer(nullptr, Var); vgvassilev wrote: ``

[clang] [clang] Handle consteval constructors with default initialization. (PR #144970)

2025-06-29 Thread Vassil Vassilev via cfe-commits
@@ -14458,6 +14461,9 @@ void Sema::ActOnUninitializedDecl(Decl *RealDecl) { } CheckCompleteVariableDeclaration(Var); + +if (getLangOpts().CPlusPlus) + ActOnCXXExitDeclInitializer(nullptr, Var); vgvassilev wrote: ```suggestion ActOnCXXEx

[clang] [clang] Handle consteval constructors with default initialization. (PR #144970)

2025-06-29 Thread Vassil Vassilev via cfe-commits
https://github.com/vgvassilev edited https://github.com/llvm/llvm-project/pull/144970 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-06-29 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/13] [Clang] Add __builtin_invoke and recognize std::invoke

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

2025-06-29 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/13] [Clang] Add __builtin_invoke and recognize std::invoke

[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

2025-06-29 Thread Alexis Engelke via cfe-commits
@@ -18,6 +18,11 @@ namespace llvm { class WebAssemblyTargetStreamer; +struct BranchHintRecord { + MCSymbol *func_sym; + SmallVector, 0> hints; aengelke wrote: ```suggestion SmallVector, 0> Hints; ``` https://github.com/llvm/llvm-project/pull/146230 _

[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

2025-06-29 Thread Alexis Engelke via cfe-commits
@@ -18,6 +18,11 @@ namespace llvm { class WebAssemblyTargetStreamer; +struct BranchHintRecord { + MCSymbol *func_sym; aengelke wrote: Naming: `FuncSym` https://github.com/llvm/llvm-project/pull/146230 ___ cfe-comm

[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

2025-06-29 Thread Alexis Engelke via cfe-commits
@@ -2562,8 +2565,22 @@ void WebAssemblyCFGStackify::rewriteDepthImmediates(MachineFunction &MF) { MO = MachineOperand::CreateImm(getDelegateDepth(Stack, MO.getMBB())); else if (MI.getOpcode() == WebAssembly::RETHROW) MO = MachineOperand::CreateImm(g

[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

2025-06-29 Thread Alexis Engelke via cfe-commits
@@ -28,6 +33,9 @@ class LLVM_LIBRARY_VISIBILITY WebAssemblyAsmPrinter final : public AsmPrinter { WebAssemblyFunctionInfo *MFI; bool signaturesEmitted = false; + // vec idx == local func_idx + std::vector> branchHints; aengelke wrote: Use SmallVector.

[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

2025-06-29 Thread Alexis Engelke via cfe-commits
@@ -55,6 +55,15 @@ using namespace llvm; #define DEBUG_TYPE "asm-printer" extern cl::opt WasmKeepRegisters; +// values are divided by 1<<31 to calculate the probability +static cl::opt WasmHighBranchProb( +"wasm-branch-prob-high", cl::Hidden, +cl::desc("lowest branch p

[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

2025-06-29 Thread Alexis Engelke via cfe-commits
@@ -697,6 +738,34 @@ void WebAssemblyAsmPrinter::emitInstruction(const MachineInstr *MI) { WebAssemblyMCInstLower MCInstLowering(OutContext, *this); MCInst TmpInst; MCInstLowering.lower(MI, TmpInst); +if (Subtarget->hasBranchHinting() && +MI->getOpcode(

[clang] [lld] [llvm] [LLVM][WebAssembly] Implement branch hinting proposal (PR #146230)

2025-06-29 Thread Alexis Engelke via cfe-commits
@@ -697,6 +738,34 @@ void WebAssemblyAsmPrinter::emitInstruction(const MachineInstr *MI) { WebAssemblyMCInstLower MCInstLowering(OutContext, *this); MCInst TmpInst; MCInstLowering.lower(MI, TmpInst); +if (Subtarget->hasBranchHinting() && +MI->getOpcode(

  1   2   >