[clang-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

2025-07-24 Thread Jacques Pienaar via cfe-commits
@@ -0,0 +1,75 @@ +// RUN: %check_clang_tidy --match-partial-fixes %s llvm-use-new-mlir-op-builder %t + +namespace mlir { +class Location {}; +class OpBuilder { +public: + template + OpTy create(Location location, Args &&...args) { +return OpTy(args...); + } + Location ge

[clang] [clang-tools-extra] [lldb] [llvm] [mlir] [NFC] Fix typos 'seperate' -> 'separate' (PR #144368)

2025-07-24 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett approved this pull request. LGTM, thanks! https://github.com/llvm/llvm-project/pull/144368 ___ 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 MLIR check for old op builder usage. (PR #149148)

2025-07-24 Thread Jacques Pienaar via cfe-commits
https://github.com/jpienaar updated https://github.com/llvm/llvm-project/pull/149148 >From b404f5390ac5684c7452e69f6fe209e5215f8929 Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Wed, 16 Jul 2025 17:37:53 + Subject: [PATCH 01/12] [clang-tidy] Add MLIR check for old op builder usage.

[clang] [clang-tools-extra] [lldb] [llvm] [mlir] [NFC] Fix typos 'seperate' -> 'separate' (PR #144368)

2025-07-24 Thread David Spickett via cfe-commits
DavidSpickett wrote: Please change your email settings as explained in https://llvm.org/docs/DeveloperPolicy.html#email-addresses. Right now it would be merged with a GitHub noreply address. https://github.com/llvm/llvm-project/pull/144368 ___ cfe-co

[clang] [clang-format] Fix a bug in `DerivePointerAlignment: true` (PR #150387)

2025-07-24 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/150387 Fixes #150327 >From 12777c2044cc9daac3fffcb96c0c1f4c772e9147 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 24 Jul 2025 01:22:36 -0700 Subject: [PATCH] [clang-format] Fix a bug in `DerivePointerAlignment: tr

[clang] [clang-format] Fix a bug in `DerivePointerAlignment: true` (PR #150387)

2025-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixes #150327 --- Full diff: https://github.com/llvm/llvm-project/pull/150387.diff 2 Files Affected: - (modified) clang/lib/Format/Format.cpp (+3-2) - (modified) clang/unittests/Format/FormatTest.cpp (+

[clang] [clang-format] Fix a bug in `DerivePointerAlignment: true` (PR #150387)

2025-07-24 Thread Owen Pan via cfe-commits
https://github.com/owenca milestoned https://github.com/llvm/llvm-project/pull/150387 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][driver] Improve warning message for complex range overrides and GCC incompatibility (PR #149028)

2025-07-24 Thread Shunsuke Watanabe via cfe-commits
s-watanabe314 wrote: @andykaylor Could you please comment on Clang's complex number warnings? https://github.com/llvm/llvm-project/pull/149028 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [llvm] [StackProtector] Introduce stack-protect-attributor pass to remove unnecessary protections. (PR #150390)

2025-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: None (Mermen) Changes This pass uses StackSafetyGlobalAnalysis to reduce number of functions that require stack protector. All llvm lit tests passed. In llvm-test-suite it reduces number of instrumented functions by 13% (8883 -> 7

[clang] [llvm] [StackProtector] Introduce stack-protect-attributor pass to remove unnecessary protections. (PR #150390)

2025-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-arm @llvm/pr-subscribers-llvm-globalisel Author: None (Mermen) Changes This pass uses StackSafetyGlobalAnalysis to reduce number of functions that require stack protector. All llvm lit tests passed. In llvm-test-suite it reduces number of inst

[clang] [llvm] [StackProtector] Introduce stack-protect-attributor pass to remove unnecessary protections. (PR #150390)

2025-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-debuginfo Author: None (Mermen) Changes This pass uses StackSafetyGlobalAnalysis to reduce number of functions that require stack protector. All llvm lit tests passed. In llvm-test-suite it reduces number of instrumented functions by 13% (8883 -> 772

[clang] [llvm] [StackProtector] Introduce stack-protect-attributor pass to remove unnecessary protections. (PR #150390)

2025-07-24 Thread via cfe-commits
https://github.com/Mermen created https://github.com/llvm/llvm-project/pull/150390 This pass uses StackSafetyGlobalAnalysis to reduce number of functions that require stack protector. All llvm lit tests passed. In llvm-test-suite it reduces number of instrumented functions by 13% (8883 -> 77

[clang] [clang-format] Add AfterNot to SpaceBeforeParensOptions (PR #150367)

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

[clang] [llvm] [StackProtector] Introduce stack-protect-attributor pass to remove unnecessary protections. (PR #150390)

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

[clang] [llvm] [StackProtector] Introduce stack-protect-attributor pass to remove unnecessary protections. (PR #150390)

2025-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: None (Mermen) Changes This pass uses StackSafetyGlobalAnalysis to reduce number of functions that require stack protector. All llvm lit tests passed. In llvm-test-suite it reduces number of instrumented functions by 13% (8883

[clang] 531cf82 - [clang-format] Stop ctor initializer from being inlined (#150361)

2025-07-24 Thread via cfe-commits
Author: Eric Li Date: 2025-07-24T04:06:03-04:00 New Revision: 531cf8298b08eacdf670bac8c28db97a5dc8cb01 URL: https://github.com/llvm/llvm-project/commit/531cf8298b08eacdf670bac8c28db97a5dc8cb01 DIFF: https://github.com/llvm/llvm-project/commit/531cf8298b08eacdf670bac8c28db97a5dc8cb01.diff LOG:

[clang] [clang-format] Stop ctor initializer from being inlined (PR #150361)

2025-07-24 Thread Eric Li via cfe-commits
https://github.com/tJener closed https://github.com/llvm/llvm-project/pull/150361 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Add language option for experimental lifetime safety (PR #149592)

2025-07-24 Thread Sjoerd Meijer via cfe-commits
sjoerdmeijer wrote: Hello, I am a `-Weverything` user, but not an expert... First #148222 broke my build. I understood and experimental feature was enabled under `-Weverything`. This patch and fix improved things and I see less build failures, but my problems haven't gone away. Now Clang hangs

[clang-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

2025-07-24 Thread Jacques Pienaar via cfe-commits
https://github.com/jpienaar updated https://github.com/llvm/llvm-project/pull/149148 >From b404f5390ac5684c7452e69f6fe209e5215f8929 Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Wed, 16 Jul 2025 17:37:53 + Subject: [PATCH 01/10] [clang-tidy] Add MLIR check for old op builder usage.

[clang-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

2025-07-24 Thread Jacques Pienaar via cfe-commits
https://github.com/jpienaar updated https://github.com/llvm/llvm-project/pull/149148 >From b404f5390ac5684c7452e69f6fe209e5215f8929 Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Wed, 16 Jul 2025 17:37:53 + Subject: [PATCH 01/11] [clang-tidy] Add MLIR check for old op builder usage.

[clang-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

2025-07-24 Thread Jacques Pienaar via cfe-commits
@@ -0,0 +1,51 @@ +// RUN: %check_clang_tidy --match-partial-fixes %s llvm-mlir-op-builder %t + +namespace mlir { +class Location {}; +class OpBuilder { +public: + template + OpTy create(Location location, Args &&...args) { +return OpTy(args...); + } + Location getUnknownL

[clang] [llvm] [RISCV] Support XSfmm C intrinsics (PR #143070)

2025-07-24 Thread Jim Lin via cfe-commits
@@ -71,7 +71,38 @@ def isVectorConfigInstr PseudoVSETVLI, PseudoVSETVLIX0, PseudoVSETVLIX0X0, - PseudoVSETIVLI + PseudoVSETIVLI, + PseudoSF_VSE

[clang] [llvm] Reject out-of-bounds enum sentinels in DenseMap/DenseSet. (PR #150308)

2025-07-24 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/150308 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Stop ctor initializer from being inlined (PR #150361)

2025-07-24 Thread Eric Li via cfe-commits
https://github.com/tJener updated https://github.com/llvm/llvm-project/pull/150361 >From 2c1a695bd602b45f68bdc97043ff2b144372230b Mon Sep 17 00:00:00 2001 From: Eric Li Date: Wed, 23 Jul 2025 22:18:05 -0400 Subject: [PATCH 1/2] [clang-format] Stop ctor initializer from being inlined The colon

[clang] [clang-format] Stop ctor initializer from being inlined (PR #150361)

2025-07-24 Thread Owen Pan via cfe-commits
https://github.com/owenca approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/150361 ___ 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 MLIR check for old op builder usage. (PR #149148)

2025-07-24 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,75 @@ +// RUN: %check_clang_tidy --match-partial-fixes %s llvm-use-new-mlir-op-builder %t + +namespace mlir { +class Location {}; +class OpBuilder { +public: + template + OpTy create(Location location, Args &&...args) { +return OpTy(args...); + } + Location ge

[clang-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

2025-07-24 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. +- LGTM https://github.com/llvm/llvm-project/pull/149148 ___ 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 MLIR check for old op builder usage. (PR #149148)

2025-07-24 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL edited https://github.com/llvm/llvm-project/pull/149148 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [lldb-dap] Add performance optimization options to improve launch times (PR #150365)

2025-07-24 Thread Cả thế giới là Rust via cfe-commits
https://github.com/naoNao89 updated https://github.com/llvm/llvm-project/pull/150365 From 2d9ae771247af025d6319c044e9f8727e9bebfd8 Mon Sep 17 00:00:00 2001 From: naoNao89 <90588855+naona...@users.noreply.github.com> Date: Wed, 23 Jul 2025 20:54:02 +0700 Subject: [PATCH 1/2] [clang][StaticAnalyze

[clang] [clang][StaticAnalyzer] Fix crash in SimpleSValBuilder with unsigned __int128 and negative literals (PR #150225)

2025-07-24 Thread Cả thế giới là Rust via cfe-commits
https://github.com/naoNao89 updated https://github.com/llvm/llvm-project/pull/150225 From 2d9ae771247af025d6319c044e9f8727e9bebfd8 Mon Sep 17 00:00:00 2001 From: naoNao89 <90588855+naona...@users.noreply.github.com> Date: Wed, 23 Jul 2025 20:54:02 +0700 Subject: [PATCH 1/2] [clang][StaticAnalyze

[clang] [llvm] [RISCV] Support Base P RV32/64 Instructions (PR #150379)

2025-07-24 Thread via cfe-commits
https://github.com/realqhc created https://github.com/llvm/llvm-project/pull/150379 This patch supports RV32/64 extension instructions. The final patch split from the original pull request will add RV32 Only instructions with register pair operands. Documentation: https://jhauser.us/RISCV/ext

[clang] [llvm] [RISCV] Support Base P RV32/64 Instructions (PR #150379)

2025-07-24 Thread via cfe-commits
https://github.com/realqhc edited https://github.com/llvm/llvm-project/pull/150379 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Support Base P RV32/64 Instructions (PR #150379)

2025-07-24 Thread via cfe-commits
realqhc wrote: I am seeking to receive review and comments on naming scheme for the tablegen classes, like `RVPShiftN_ri` and `RVPBinaryScalar_rr`. Any suggesion would be highly valuable. Thank you. https://github.com/llvm/llvm-project/pull/150379 _

[clang] [clang][ExprConst] Consider integer pointers of value 0 nullptr (PR #150164)

2025-07-24 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/150164 >From b9655ff6d54475b5697a63571734192c92a6af07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 23 Jul 2025 06:05:21 +0200 Subject: [PATCH] [clang][ExprConst] Consider integer pointers of

[clang] [clang][ExprConst] Consider integer pointers of value 0 nullptr (PR #150164)

2025-07-24 Thread Timm Baeder via cfe-commits
@@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -triple amdgcn -cl-std=clc++ -verify %s + +// expected-no-diagnostics + +#define fold(x) (__builtin_constant_p(x) ? (x) : (x)) +static_assert(nullptr != fold(reinterpret_cast(0))); + +static_assert(nullptr == (private int *)0); + ---

[clang-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-07-24 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti edited https://github.com/llvm/llvm-project/pull/146553 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][OpenMP] Fixing Clang error for metadirective with multiple when clauses and no otherwise (PR #148583)

2025-07-24 Thread via cfe-commits
@@ -108,6 +108,12 @@ void foo1(void) { : parallel) otherwise(parallel for) for (int i=0; i<10; i++) ; + +#pragma omp metadirective when(user = {condition(1)} \ + : parallel for)

[clang] [llvm] [openmp] [clang][OpenMP] New OpenMP 6.0 threadset clause (PR #135807)

2025-07-24 Thread via cfe-commits
https://github.com/Ritanya-B-Bharadwaj updated https://github.com/llvm/llvm-project/pull/135807 >From 9c56e59ba9984c14c15a8d5a95a02e7192a64e8f Mon Sep 17 00:00:00 2001 From: Ritanya B Bharadwaj Date: Sun, 6 Apr 2025 09:33:06 -0500 Subject: [PATCH 01/10] [OpenMP] Parsing Support of ThreadSets in

[clang] [llvm] [clang] [OpenMP] New OpenMP 6.0 self_maps clause - CodeGen (PR #134131)

2025-07-24 Thread via cfe-commits
@@ -236,6 +236,8 @@ enum class OpenMPOffloadMappingFlags : uint64_t { // dynamic. // This is an OpenMP extension for the sake of OpenACC support. OMP_MAP_OMPX_HOLD = 0x2000, + /// Self directs mapping without creating a separate device copy. + OMP_MAP_SELF = 0x4000, ---

[clang] 07faafe - [Clang] Fix a partial ordering bug involving CTAD injected template arguments (#149782)

2025-07-24 Thread via cfe-commits
Author: Younan Zhang Date: 2025-07-24T15:30:51+08:00 New Revision: 07faafe4a4d0a5bd82b648aa9717783f001ddfae URL: https://github.com/llvm/llvm-project/commit/07faafe4a4d0a5bd82b648aa9717783f001ddfae DIFF: https://github.com/llvm/llvm-project/commit/07faafe4a4d0a5bd82b648aa9717783f001ddfae.diff

[clang] [Clang] Fix a partial ordering bug involving CTAD injected template arguments (PR #149782)

2025-07-24 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/149782 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [lldb-dap] Add performance optimization options to improve launch times (PR #150365)

2025-07-24 Thread David Spickett via cfe-commits
https://github.com/DavidSpickett requested changes to this pull request. I'm going to go out on a limb and suggest that a certain sort of assistive interactive tool was used to generate this. Which I don't venture an opinion on in general but in this case, it's didn't do so well. A glance at t

[clang] [Clang] Fail the constraint substitution early after CWG2369 (PR #143096)

2025-07-24 Thread Younan Zhang via cfe-commits
zyn0217 wrote: @tstellar thanks! Feel free to open an issue about that if you got something :) https://github.com/llvm/llvm-project/pull/143096 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang] [clang-format] Fix a bug in `DerivePointerAlignment: true` (PR #150387)

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

[clang] [llvm] [StackProtector] Introduce stack-protect-attributor pass to remove unnecessary protections. (PR #150390)

2025-07-24 Thread Nikita Popov via cfe-commits
https://github.com/nikic commented: Why is this a separate pass that removes attributes from the *function* if *all* allocas are safe, rather than integrated with the actual stack protection, so that the decision can be made per alloca? https://github.com/llvm/llvm-project/pull/150390

[clang] [Clang][RFC] Do not eat SFINAE diagnostics for explicit template arguments (PR #139066)

2025-07-24 Thread Younan Zhang via cfe-commits
@@ -12166,6 +12174,15 @@ static void DiagnoseBadDeduction(Sema &S, NamedDecl *Found, Decl *Templated, diag::note_ovl_candidate_explicit_arg_mismatch_unnamed) << (index + 1); } + +if (PartialDiagnosticAt *PDiag = DeductionFailure.getSFINAEDiagnost

[clang] c049732 - [clang] Fix crash when diagnosing unsupported attributes (#150333)

2025-07-24 Thread via cfe-commits
Author: Benjamin Maxwell Date: 2025-07-24T09:42:05+01:00 New Revision: c049732d7f946492ec3f6f5e7c3b845b7133fca8 URL: https://github.com/llvm/llvm-project/commit/c049732d7f946492ec3f6f5e7c3b845b7133fca8 DIFF: https://github.com/llvm/llvm-project/commit/c049732d7f946492ec3f6f5e7c3b845b7133fca8.di

[clang] [clang] Fix crash when diagnosing unsupported attributes (PR #150333)

2025-07-24 Thread Benjamin Maxwell via cfe-commits
https://github.com/MacDue closed https://github.com/llvm/llvm-project/pull/150333 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [LifetimeSafety] Add language option for experimental lifetime safety (PR #149592)

2025-07-24 Thread Paul Osmialowski via cfe-commits
pawosm-arm wrote: @sjoerdmeijer clang doesn't terminate for me too these days (see #150336) but I tracked it down to PR #144408 https://github.com/llvm/llvm-project/pull/149592 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang] [clang] Fix crash when diagnosing unsupported attributes (PR #150333)

2025-07-24 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `fuchsia-x86_64-linux` running on `fuchsia-debian-64-us-central1-a-1` while building `clang` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/20236 Here is the relevant

[clang-tools-extra] 46e1d3d - [clang-tidy] Add parallel execution by default in 'run-clang-tidy' and 'clang-tidy-diff' (#149739)

2025-07-24 Thread via cfe-commits
Author: Baranov Victor Date: 2025-07-24T23:03:17+03:00 New Revision: 46e1d3d2a4394b805428111043d73aab309f44f0 URL: https://github.com/llvm/llvm-project/commit/46e1d3d2a4394b805428111043d73aab309f44f0 DIFF: https://github.com/llvm/llvm-project/commit/46e1d3d2a4394b805428111043d73aab309f44f0.diff

[clang-tools-extra] [clang-tidy] Add parallel execution by default in 'run-clang-tidy' and 'clang-tidy-diff' (PR #149739)

2025-07-24 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/149739 ___ 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 parallel execution by default in 'run-clang-tidy' and 'clang-tidy-diff' (PR #149739)

2025-07-24 Thread Baranov Victor via cfe-commits
vbvictor wrote: I will make the renaming on the next PR. https://github.com/llvm/llvm-project/pull/149739 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement CK_LValueToRValueBitCast for ComplexType (PR #150296)

2025-07-24 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper closed https://github.com/llvm/llvm-project/pull/150296 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1031f14 - [CIR] Implement CK_LValueToRValueBitCast for ComplexType (#150296)

2025-07-24 Thread via cfe-commits
Author: Amr Hesham Date: 2025-07-24T22:23:30+02:00 New Revision: 1031f14e921ad54ca17333f59cb19a981f864d95 URL: https://github.com/llvm/llvm-project/commit/1031f14e921ad54ca17333f59cb19a981f864d95 DIFF: https://github.com/llvm/llvm-project/commit/1031f14e921ad54ca17333f59cb19a981f864d95.diff LO

[clang] [clang][analyzer] Add StoreToImmutable checker (PR #150417)

2025-07-24 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 edited https://github.com/llvm/llvm-project/pull/150417 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Added check 'bugprone-function-visibility-change' (PR #140086)

2025-07-24 Thread Endre Fülöp via cfe-commits
gamesh411 wrote: The overall check implementation looks great. Once the name is settled, it is ready IMO. https://github.com/llvm/llvm-project/pull/140086 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[clang] [Serialization] Fix crash while lazy-loading template specializations (PR #150430)

2025-07-24 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. LGTM. Thanks for looking into this. https://github.com/llvm/llvm-project/pull/150430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] [llvm] [Clang][Unittest] Support for `target` directive and `from` clause in clang unittests (PR #150580)

2025-07-24 Thread Amit Tiwari via cfe-commits
https://github.com/amitamd7 created https://github.com/llvm/llvm-project/pull/150580 Added support for detecting OMP Target Directive and OMP From Clause in Clang Unit Test Framework >From 846d871783d572667cb8bdb954961f274e04702c Mon Sep 17 00:00:00 2001 From: amtiwari Date: Tue, 17 Jun 2025

[clang] [llvm] [Clang][Unittest] Support for `target` directive and `from` clause in clang unittests (PR #150580)

2025-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amit Tiwari (amitamd7) Changes Added support for detecting OMP Target Directive and OMP From Clause in Clang Unit Test Framework --- Full diff: https://github.com/llvm/llvm-project/pull/150580.diff 4 Files Affected: - (modified) clang/

[clang] [llvm] [Clang][Unittest] Support for `target` directive and `from` clause in clang unittests (PR #150580)

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

[clang] [flang] [mlir] Revert "[flang][flang-driver][mlir][OpenMP] atomic control support" (PR #150504)

2025-07-24 Thread Kiran Chandramohan via cfe-commits
https://github.com/kiranchandramohan updated https://github.com/llvm/llvm-project/pull/150504 >From 32c9e86d027efc84ba696a38ef626ae04d306ec0 Mon Sep 17 00:00:00 2001 From: Kiran Chandramohan Date: Thu, 24 Jul 2025 20:33:43 +0100 Subject: [PATCH] Revert "[flang][flang-driver][mlir][OpenMP] atomi

[clang] [clang][SYCL] Add sycl_external attribute and restrict emitting device code (PR #140282)

2025-07-24 Thread via cfe-commits
@@ -12908,6 +12908,14 @@ def err_sycl_special_type_num_init_method : Error< "types with 'sycl_special_class' attribute must have one and only one '__init' " "method defined">; +// SYCL external attribute diagnostics +def err_sycl_attribute_invalid_linkage : Error< + "'sy

[clang] [flang] [mlir] [flang][flang-driver][mlir][OpenMP] atomic control support (PR #143441)

2025-07-24 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-flang-rhel-clang` running on `ppc64le-flang-rhel-test` while building `clang,flang,mlir` at step 6 "test-build-unified-tree-check-flang". Full details are available at: https://lab.llvm.org/buildbot/#/builders/157/bui

[clang] [WebAssembly,clang] Add __builtin_wasm_test_function_pointer_signature (PR #150201)

2025-07-24 Thread Hood Chatham via cfe-commits
@@ -218,6 +221,64 @@ Value *CodeGenFunction::EmitWebAssemblyBuiltinExpr(unsigned BuiltinID, Function *Callee = CGM.getIntrinsic(Intrinsic::wasm_ref_null_func); return Builder.CreateCall(Callee); } + case WebAssembly::BI__builtin_wasm_test_function_pointer_signature:

[clang] [WebAssembly,clang] Add __builtin_wasm_test_function_pointer_signature (PR #150201)

2025-07-24 Thread Hood Chatham via cfe-commits
@@ -218,6 +221,64 @@ Value *CodeGenFunction::EmitWebAssemblyBuiltinExpr(unsigned BuiltinID, Function *Callee = CGM.getIntrinsic(Intrinsic::wasm_ref_null_func); return Builder.CreateCall(Callee); } + case WebAssembly::BI__builtin_wasm_test_function_pointer_signature:

[clang] [WebAssembly,clang] Add __builtin_wasm_test_function_pointer_signature (PR #150201)

2025-07-24 Thread Hood Chatham via cfe-commits
@@ -218,6 +221,64 @@ Value *CodeGenFunction::EmitWebAssemblyBuiltinExpr(unsigned BuiltinID, Function *Callee = CGM.getIntrinsic(Intrinsic::wasm_ref_null_func); return Builder.CreateCall(Callee); } + case WebAssembly::BI__builtin_wasm_test_function_pointer_signature:

[clang] [WebAssembly,clang] Add __builtin_wasm_test_function_pointer_signature (PR #150201)

2025-07-24 Thread Hood Chatham via cfe-commits
@@ -227,6 +227,53 @@ bool SemaWasm::BuiltinWasmTableCopy(CallExpr *TheCall) { return false; } +bool SemaWasm::BuiltinWasmTestFunctionPointerSignature(CallExpr *TheCall) { + if (SemaRef.checkArgCount(TheCall, 1)) +return true; + + Expr *FuncPtrArg = TheCall->getArg(0);

[clang] [llvm] [RISCV] Support resumable non-maskable interrupt handlers (PR #148134)

2025-07-24 Thread Sam Elliott via cfe-commits
https://github.com/lenary edited https://github.com/llvm/llvm-project/pull/148134 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Support resumable non-maskable interrupt handlers (PR #148134)

2025-07-24 Thread Sam Elliott via cfe-commits
@@ -22259,6 +22260,10 @@ SDValue RISCVTargetLowering::LowerFormalArguments( reportFatalUsageError( "'SiFive-CLIC-*' interrupt kinds require XSfmclic extension"); +if (Kind == "rnmi" && !Subtarget.hasStdExtSmrnmi()) + reportFatalUsageError("Handling of

[clang] [llvm] [RISCV] Support resumable non-maskable interrupt handlers (PR #148134)

2025-07-24 Thread Sam Elliott via cfe-commits
@@ -75,6 +75,8 @@ def riscv_sret_glue : RVSDNode<"SRET_GLUE", SDTNone, [SDNPHasChain, SDNPOptInGlue]>; def riscv_mret_glue : RVSDNode<"MRET_GLUE", SDTNone, [SDNPHasChain, SDNPOptInGlue]>; +def riscv_mnret_glue : RVSD

[clang] [CIR] Upstream proper function alias lowering (PR #150520)

2025-07-24 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/150520 This change implements correct lowering of function aliases to the LLVM dialect. >From 88039a468792435666e3026b5bf42ad31405d332 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Thu, 24 Jul 2025 13:14:35 -070

[clang] [CIR] Upstream proper function alias lowering (PR #150520)

2025-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes This change implements correct lowering of function aliases to the LLVM dialect. --- Full diff: https://github.com/llvm/llvm-project/pull/150520.diff 4 Files Affected: - (modified) clang/lib/CIR/Lowering

[clang-tools-extra] 2ca8cf9 - [clang-doc] remove nesting of text comments inside paragraphs (#150451)

2025-07-24 Thread via cfe-commits
Author: Erick Velez Date: 2025-07-24T19:49:54-07:00 New Revision: 2ca8cf922ff8f9498ae0f9def9dab9bf145c6653 URL: https://github.com/llvm/llvm-project/commit/2ca8cf922ff8f9498ae0f9def9dab9bf145c6653 DIFF: https://github.com/llvm/llvm-project/commit/2ca8cf922ff8f9498ae0f9def9dab9bf145c6653.diff L

[clang-tools-extra] [clang-doc] remove nesting of text comments inside paragraphs (PR #150451)

2025-07-24 Thread Erick Velez via cfe-commits
https://github.com/evelez7 closed https://github.com/llvm/llvm-project/pull/150451 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] precommit test for function comments (PR #150467)

2025-07-24 Thread Erick Velez via cfe-commits
https://github.com/evelez7 edited https://github.com/llvm/llvm-project/pull/150467 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] precommit test for function comments (PR #150467)

2025-07-24 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/150467 >From d8e460ad55c4e2353ee507c5f03eb344a46353e3 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 23 Jul 2025 10:16:42 -0700 Subject: [PATCH] [clang-doc] precommit test for function comments --- .../clang-d

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

2025-07-24 Thread via cfe-commits
Author: Mike Crowe Date: 2025-07-24T22:40:41+03:00 New Revision: 60bf97983df3efeb17f6db19b811b68fa74df9aa URL: https://github.com/llvm/llvm-project/commit/60bf97983df3efeb17f6db19b811b68fa74df9aa DIFF: https://github.com/llvm/llvm-project/commit/60bf97983df3efeb17f6db19b811b68fa74df9aa.diff LO

[clang] [HLSL] Avoid putting the byval attribute on out and inout parameters (PR #150495)

2025-07-24 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 approved this pull request. https://github.com/llvm/llvm-project/pull/150495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][driver] Improve warning message for complex range overrides and GCC incompatibility (PR #149028)

2025-07-24 Thread Andy Kaylor via cfe-commits
andykaylor wrote: I'm not sure the combined warning is necessary. I think just stating that the clang option overrides the GCC option is sufficient since there is no sense in which clang-specific options can be incompatible with GCC if GCC doesn't implement the option. I think we're all in ag

[clang] [clang-format] Google Style: disable DerivePointerAlignment. (PR #149602)

2025-07-24 Thread Owen Pan via cfe-commits
https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/149602 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Google Style: disable DerivePointerAlignment. (PR #149602)

2025-07-24 Thread Owen Pan via cfe-commits
owenca wrote: > Style Guide has been updated internally. I don't know how long it takes to > make its way to the public site, so I'd like to proceed. I've pasted the > updated text into the commit description above. I still think we should wait until it becomes official. WDYT @mydeveloperday

[clang-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

2025-07-24 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `clang-tools-extra` at step 9 "test-build-unified-tree-check-clang-extra". Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/337

[clang-tools-extra] [clang-doc] precommit test for function comments (PR #150467)

2025-07-24 Thread Erick Velez via cfe-commits
https://github.com/evelez7 closed https://github.com/llvm/llvm-project/pull/150467 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Add StoreToImmutable checker (PR #150417)

2025-07-24 Thread Endre Fülöp via cfe-commits
https://github.com/gamesh411 created https://github.com/llvm/llvm-project/pull/150417 This adds alpha.core.StoreToImmutable, a new alpha checker that detects writes to immutable memory regions, implementing part of SEI CERT Rule ENV30-C. The original proposal only handled global const variables,

[clang-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

2025-07-24 Thread Jacques Pienaar via cfe-commits
https://github.com/jpienaar updated https://github.com/llvm/llvm-project/pull/149148 >From b404f5390ac5684c7452e69f6fe209e5215f8929 Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Wed, 16 Jul 2025 17:37:53 + Subject: [PATCH 01/14] [clang-tidy] Add MLIR check for old op builder usage.

[clang] [clang][analyzer] Add StoreToImmutable checker (PR #150417)

2025-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Endre Fülöp (gamesh411) Changes This adds alpha.core.StoreToImmutable, a new alpha checker that detects writes to immutable memory regions, implementing part of SEI CERT Rule ENV30-C. The original proposal only handled global const variable

[clang] [Fuchsia] Add STAGE2 flags for PGO (PR #150414)

2025-07-24 Thread via cfe-commits
https://github.com/gulfemsavrun created https://github.com/llvm/llvm-project/pull/150414 None >From 50fb66e961d077ffcec3960638b2173e278c2c06 Mon Sep 17 00:00:00 2001 From: Gulfem Savrun Yeniceri Date: Thu, 24 Jul 2025 09:40:22 + Subject: [PATCH] [Fuchsia] Add STAGE2 flags for PGO --- cla

[clang] [Fuchsia] Add STAGE2 flags for PGO (PR #150414)

2025-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (gulfemsavrun) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/150414.diff 1 Files Affected: - (modified) clang/cmake/caches/Fuchsia.cmake (+3) ``diff diff --git a/clang/cmake/caches/Fuchsia.cmake b/cla

[clang] [flang] [flang][OpenMP] Add -f[no]-openmp-simd (PR #150269)

2025-07-24 Thread Kajetan Puchalski via cfe-commits
mrkajetanp wrote: > Is there a reason why we are preferring to generate constructs and then > removing non-simd ones, as opposed to simply generating only simd? I think both approaches have benefits and drawbacks, as usual. The current one keeps all the logic closer together as opposed to havi

[clang] [analyzer] Eliminate unique release point assertion (PR #150240)

2025-07-24 Thread Donát Nagy via cfe-commits
NagyDonat wrote: > I almost suggested the same fix, but I found it weird that the symbol is > conjured on linux with the caller stack frame, while on windows it was with > the callee stack frame. However, I also understand that debugging a Windows > only case might be beyond what we should inv

[clang] [clang][analyzer] Add StoreToImmutable checker (PR #150417)

2025-07-24 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,h -- clang/docs/analyzer/checkers/storetoimmutable_examp

[clang] [Sema] Fix false positive warnings for misaligned member access (PR #150025)

2025-07-24 Thread Erich Keane via cfe-commits
@@ -15534,17 +15534,28 @@ void Sema::AddPotentialMisalignedMembers(Expr *E, RecordDecl *RD, ValueDecl *MD, MisalignedMembers.emplace_back(E, RD, MD, Alignment); } -void Sema::DiagnoseMisalignedMembers() { - for (MisalignedMember &m : MisalignedMembers) { -const NamedDe

[clang] [Sema] Fix false positive warnings for misaligned member access (PR #150025)

2025-07-24 Thread Erich Keane via cfe-commits
https://github.com/erichkeane requested changes to this pull request. https://github.com/llvm/llvm-project/pull/150025 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Fix bugprone-tagged-union-member-count false-positive (PR #135831)

2025-07-24 Thread via cfe-commits
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=,=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=, =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=,=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=, =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?Message-ID: In-Reply-To: https://github.com/tigbr updated https://github.com/llvm/llvm-project/pull/135831 >F

[clang-tools-extra] 3feb6f9 - [clang-tidy] Add MLIR check for old op builder usage. (#149148)

2025-07-24 Thread via cfe-commits
Author: Jacques Pienaar Date: 2025-07-24T15:48:05+02:00 New Revision: 3feb6f971577701713034d3404b6737fe6462d43 URL: https://github.com/llvm/llvm-project/commit/3feb6f971577701713034d3404b6737fe6462d43 DIFF: https://github.com/llvm/llvm-project/commit/3feb6f971577701713034d3404b6737fe6462d43.dif

[clang-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

2025-07-24 Thread Jacques Pienaar via cfe-commits
https://github.com/jpienaar closed https://github.com/llvm/llvm-project/pull/149148 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][ARM][Sema] Reject bad sizes of __builtin_arm_ldrex (PR #150419)

2025-07-24 Thread Simon Tatham via cfe-commits
https://github.com/statham-arm created https://github.com/llvm/llvm-project/pull/150419 Depending on the particular version of the AArch32 architecture, load/store exclusive operations might be available for various subset of 8, 16, 32, and 64-bit quantities. Sema knew nothing about this and w

[clang] [Clang][ARM][Sema] Reject bad sizes of __builtin_arm_ldrex (PR #150419)

2025-07-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-arm Author: Simon Tatham (statham-arm) Changes Depending on the particular version of the AArch32 architecture, load/store exclusive operations might be available for various subset of 8, 16, 32, and 64-bit quantities. Sema knew nothing about t

[clang-tools-extra] [clang-tidy] Fix bugprone-tagged-union-member-count false-positive (PR #135831)

2025-07-24 Thread via cfe-commits
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=,=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=, =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=,=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=, =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?= Message-ID: In-Reply-To: tigbr wrote: Fixed merge conflict in ReleaseNotes.rst with rebase. https://github.

  1   2   3   4   5   >