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

2025-07-20 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-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

2025-07-20 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 1/9] [clang-tidy] Add MLIR check for old op builder usage. Mo

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

2025-07-20 Thread Mike Crowe via cfe-commits
mikecrowe wrote: @vbvictor Thanks for the review. I've rebased (fixing conflicts on the release notes) and squashed the changes. I don't have commit access. Please can you land the change for me if you're still happy with it? https://github.com/llvm/llvm-project/pull/142312 ___

[clang] [flang] [SPARC][Driver] Move feature mode selection to Arch/Sparc.cpp (PR #149652)

2025-07-20 Thread Rainer Orth via cfe-commits
rorth wrote: I've now tested the (original version of) the patch on both `sparc64-unknown-linux-gnu` and `sparcv9-sun-solaris2.11`. The Linux/sparc64 build failure is gone, no regressions on either target. Btw., prompted by this I've discovered that GCC's `-mcpu=v9` default on Solaris/SPARC

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

2025-07-20 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor 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] [llvm] [SimplifyCFG] Extend jump-threading to allow live local defs (PR #135079)

2025-07-20 Thread Nikita Popov via cfe-commits
nikic wrote: > @nikic Can you check the compile-time impact of this patch? https://llvm-compile-time-tracker.com/compare.php?from=aa27d4e0c3aef8047828aa453f2943730aa779c6&to=6fab608ecf50f2f36ee635e3a5d7e5f326c9e635&stat=instructions:u https://github.com/llvm/llvm-project/pull/135079 ___

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

2025-07-20 Thread Mike Crowe via cfe-commits
https://github.com/mikecrowe updated https://github.com/llvm/llvm-project/pull/142312 >From 33dcd7df486391e77d4fd3a73c9856ead7dca12d Mon Sep 17 00:00:00 2001 From: Mike Crowe Date: Thu, 29 May 2025 21:19:11 +0100 Subject: [PATCH] [clang-tidy] modernize-use-std-print,format: Fix checks with Abs

[clang] 5b0935f - [clang][bytecode] Reintroduce Pointer::elem() (#149693)

2025-07-20 Thread via cfe-commits
Author: Timm Baeder Date: 2025-07-20T10:59:50+02:00 New Revision: 5b0935f1f05c7aa9d315463c17ff85e7d846d237 URL: https://github.com/llvm/llvm-project/commit/5b0935f1f05c7aa9d315463c17ff85e7d846d237 DIFF: https://github.com/llvm/llvm-project/commit/5b0935f1f05c7aa9d315463c17ff85e7d846d237.diff L

[clang] [clang][bytecode] Reintroduce Pointer::elem() (PR #149693)

2025-07-20 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/149693 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-20 Thread Vassil Vassilev via cfe-commits
@@ -68,6 +165,18 @@ TEST_F(InterpreterTest, Sanity) { EXPECT_EQ(1U, DeclsSize(R2.TUPart)); } +TEST_F(InterpreterTest, SanityWithRemoteExecution) { vgvassilev wrote: That probably will need to follow the what was done in `InterpreterExtensionsTest.cpp` wher

[clang] [llvm] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-20 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From fbe4344831538480be33accd35ef618c6d0e50b3 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 01/14] pipes for redirection in oop jit --- .../clang/Interpreter/Remo

[clang] [llvm] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-20 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From fbe4344831538480be33accd35ef618c6d0e50b3 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 01/13] pipes for redirection in oop jit --- .../clang/Interpreter/Remo

[clang] [CIR] Add assume_separate_storage operation (PR #149696)

2025-07-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sirui Mu (Lancern) Changes This patch adds the `cir.assume_separate_storage` operation for the `__builtin_assume_separate_storage` builtin function. --- Full diff: https://github.com/llvm/llvm-project/pull/149696.diff 5 Files Affected:

[clang] [CIR] Add assume_separate_storage operation (PR #149696)

2025-07-20 Thread Sirui Mu via cfe-commits
https://github.com/Lancern created https://github.com/llvm/llvm-project/pull/149696 This patch adds the `cir.assume_separate_storage` operation for the `__builtin_assume_separate_storage` builtin function. >From 54fc10bc7152748c2e889e5c20948a3cb99c1912 Mon Sep 17 00:00:00 2001 From: Sirui Mu

[clang] 6163b66 - [clang-repl] Another try on system-z.

2025-07-20 Thread Vassil Vassilev via cfe-commits
Author: Vassil Vassilev Date: 2025-07-20T08:23:47Z New Revision: 6163b66e0aa7a3fa32b05fa4e1016d0631c20451 URL: https://github.com/llvm/llvm-project/commit/6163b66e0aa7a3fa32b05fa4e1016d0631c20451 DIFF: https://github.com/llvm/llvm-project/commit/6163b66e0aa7a3fa32b05fa4e1016d0631c20451.diff LO

[clang] [llvm] [SimplifyCFG] Extend jump-threading to allow live local defs (PR #135079)

2025-07-20 Thread Yingwei Zheng via cfe-commits
@@ -3540,18 +3568,29 @@ foldCondBranchOnValueKnownInPredecessorImpl(BranchInst *BI, DomTreeUpdater *DTU, return false; // Now we know that this block has multiple preds and two succs. - // Check that the block is small enough and values defined in the block are - // n

[clang] [llvm] [SimplifyCFG] Extend jump-threading to allow live local defs (PR #135079)

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

[clang] [llvm] [SimplifyCFG] Extend jump-threading to allow live local defs (PR #135079)

2025-07-20 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw commented: @nikic Can you check the compile-time impact of this patch? https://github.com/llvm/llvm-project/pull/135079 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [llvm] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-20 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From fbe4344831538480be33accd35ef618c6d0e50b3 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 01/12] pipes for redirection in oop jit --- .../clang/Interpreter/Remo

[clang] [clang-format] Fix a bug in `BreakBeforeBinaryOperators: All` (PR #149695)

2025-07-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixes #149520 --- Full diff: https://github.com/llvm/llvm-project/pull/149695.diff 2 Files Affected: - (modified) clang/lib/Format/ContinuationIndenter.cpp (+1) - (modified) clang/unittests/Format/Forma

[clang] [clang-format] Fix a bug in `BreakBeforeBinaryOperators: All` (PR #149695)

2025-07-20 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/149695 Fixes #149520 >From 00d145827caea33cbec8f49a03e4c8b56fc40e01 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Sun, 20 Jul 2025 00:58:58 -0700 Subject: [PATCH] [clang-format] Fix a bug in `BreakBeforeBinaryOperators

[clang] [llvm] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-20 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From fbe4344831538480be33accd35ef618c6d0e50b3 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 01/11] pipes for redirection in oop jit --- .../clang/Interpreter/Remo

[clang-tools-extra] [clang-tidy] Teach `readability-uppercase-literal-suffix` about C++23 and C23 suffixes (PR #148275)

2025-07-20 Thread Carlos Galvez via cfe-commits
@@ -0,0 +1,248 @@ +// TODO: When Clang adds support for C++23 floating-point types, enable these tests by: +//1. Removing all the #if 0 + #endif guards. +//2. Removing all occurrences of the string "DISABLED-" in this file. +//3. Deleting this message. +// These suffi

[clang] [llvm] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-20 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From fbe4344831538480be33accd35ef618c6d0e50b3 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 01/10] pipes for redirection in oop jit --- .../clang/Interpreter/Remo

[clang-tools-extra] [clang-tidy] Teach `readability-uppercase-literal-suffix` about C++23 and C23 suffixes (PR #148275)

2025-07-20 Thread Carlos Galvez via cfe-commits
@@ -225,6 +226,89 @@ void integer_complex_suffix() { static_assert(v28 == 1J, ""); } +// This is a C++23 feature, but Clang supports it in earlier language modes +// as an extension, so we test it unconditionally. carlosgalvezp wrote: I agree! https://gith

[clang-tools-extra] [clang-tidy] Make `modernize-use-using`'s fixits more robust (PR #149694)

2025-07-20 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook converted_to_draft https://github.com/llvm/llvm-project/pull/149694 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Make `modernize-use-using`'s fixits more robust (PR #149694)

2025-07-20 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/149694 >From 823bfd458a0e03125d84fd676fbc284f09b50a5b Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sat, 19 Jul 2025 23:43:55 -0700 Subject: [PATCH] [clang-tidy] Make `modernize-use-using`'s fixits more rob

[clang] [clang][bytecode] Reintroduce Pointer::elem() (PR #149693)

2025-07-20 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/149693 >From 52e71459ab39407590ebf92f48e150a0e0f21a5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 20 Jul 2025 08:45:47 +0200 Subject: [PATCH] [clang][bytecode] Reintroduce Pointer::elem()

[clang-tools-extra] [clang-tidy] Make `modernize-use-using`'s fixits more robust (PR #149694)

2025-07-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Victor Chernyakin (localspook) Changes Fixes #105503. Fixes #31141 (the new fixit is not the one the author suggests, but now it's at least *correct*). First, let's look at `typedef`s that only introduce one name. Currently, t

[clang-tools-extra] [clang-tidy] Make `modernize-use-using`'s fixits more robust (PR #149694)

2025-07-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Victor Chernyakin (localspook) Changes Fixes #105503. Fixes #31141 (the new fixit is not the one the author suggests, but now it's at least *correct*). First, let's look at `typedef`s that only introduce one name. Currently, this fa

[clang-tools-extra] [clang-tidy] Make `modernize-use-using`'s fixits more robust (PR #149694)

2025-07-20 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/149694 Fixes #105503. Fixes #31141 (the new fixit is not the one the author suggests, but now it's at least *correct*). First, let's look at `typedef`s that only introduce one name. Currently, this fails in severa

[clang] [clang][bytecode] Reintroduce Pointer::elem() (PR #149693)

2025-07-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes As a way of writing atIndex(I).deref(), which creates an intermediate Pointer, which in turn adds (and removes) that pointer from the pointer list of the Block. This way we can avoid that. --- Full diff:

[clang] [clang][bytecode] Reintroduce Pointer::elem() (PR #149693)

2025-07-20 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/149693 As a way of writing atIndex(I).deref(), which creates an intermediate Pointer, which in turn adds (and removes) that pointer from the pointer list of the Block. This way we can avoid that. >From 6b0f913b9f7ef

[clang] [HIP][Clang][Driver] Move BC preference logic into ROCm detection (PR #149294)

2025-07-20 Thread Jakub Chlanda via cfe-commits
@@ -77,6 +79,82 @@ class RocmInstallationDetector { SPACKReleaseStr(SPACKReleaseStr.str()) {} }; + struct CommonBitcodeLibsPreferences { +CommonBitcodeLibsPreferences(const Driver &D, + const llvm::opt::ArgList &DriverArgs, +

[clang] [HIP][Clang][Driver] Move BC preference logic into ROCm detection (PR #149294)

2025-07-20 Thread Jakub Chlanda via cfe-commits
@@ -77,6 +79,82 @@ class RocmInstallationDetector { SPACKReleaseStr(SPACKReleaseStr.str()) {} }; + struct CommonBitcodeLibsPreferences { +CommonBitcodeLibsPreferences(const Driver &D, + const llvm::opt::ArgList &DriverArgs, +

[clang] [clang][bytecode] Use in Expr::tryEvaluateStrLen() (PR #149677)

2025-07-20 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/149677 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 51af47e - [clang][bytecode] Use in Expr::tryEvaluateStrLen() (#149677)

2025-07-20 Thread via cfe-commits
Author: Timm Baeder Date: 2025-07-20T09:00:22+02:00 New Revision: 51af47e53c32d29c0e29cbdcd66d8bbd41b673f3 URL: https://github.com/llvm/llvm-project/commit/51af47e53c32d29c0e29cbdcd66d8bbd41b673f3 DIFF: https://github.com/llvm/llvm-project/commit/51af47e53c32d29c0e29cbdcd66d8bbd41b673f3.diff L

[clang] [HIP][Clang][Driver] Move BC preference logic into ROCm detection (PR #149294)

2025-07-20 Thread Jakub Chlanda via cfe-commits
https://github.com/jchlanda updated https://github.com/llvm/llvm-project/pull/149294 >From ee6018745b93211af716e8923ecec9a83f717f55 Mon Sep 17 00:00:00 2001 From: Jakub Chlanda Date: Mon, 14 Jul 2025 13:30:57 + Subject: [PATCH 1/2] [HIP][Clang][Driver] Move BC preference logic into ROCm de

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

2025-07-19 Thread Owen Pan via cfe-commits
https://github.com/owenca edited 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-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

2025-07-19 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 1/8] [clang-tidy] Add MLIR check for old op builder usage. Mo

[clang] [clang][bytecode] Use in Expr::tryEvaluateStrLen() (PR #149677)

2025-07-19 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr edited https://github.com/llvm/llvm-project/pull/149677 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Clang-Repl] Add custom function as lambda in launchExecutor and fetch PID of launched executor (PR #147478)

2025-07-19 Thread Abhinav Kumar via cfe-commits
https://github.com/kr-2003 updated https://github.com/llvm/llvm-project/pull/147478 >From fbe4344831538480be33accd35ef618c6d0e50b3 Mon Sep 17 00:00:00 2001 From: kr-2003 Date: Tue, 1 Jul 2025 18:55:21 +0530 Subject: [PATCH 1/9] pipes for redirection in oop jit --- .../clang/Interpreter/Remote

[libclc] [libclc] Expose `prepare_builtins_*` variables in top-level CMakeLists (PR #149657)

2025-07-19 Thread Michał Górny via cfe-commits
mgorny wrote: Thx. https://github.com/llvm/llvm-project/pull/149657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [SPARC][Driver] Move feature mode selection to Arch/Sparc.cpp (PR #149652)

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

[libclc] [libclc] Expose `prepare_builtins_*` variables in top-level CMakeLists (PR #149657)

2025-07-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `libclc` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/38701 Here i

[libclc] [libclc] Expose `prepare_builtins_*` variables in top-level CMakeLists (PR #149657)

2025-07-19 Thread Sylvestre Ledru via cfe-commits
https://github.com/sylvestre closed https://github.com/llvm/llvm-project/pull/149657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] 58c3aff - [libclc] Expose `prepare_builtins_*` variables in top-level CMakeLists (#149657)

2025-07-19 Thread via cfe-commits
Author: Michał Górny Date: 2025-07-20T12:26:51+09:00 New Revision: 58c3affdaa732fd6f8c7e6640396e7c6366bac9d URL: https://github.com/llvm/llvm-project/commit/58c3affdaa732fd6f8c7e6640396e7c6366bac9d DIFF: https://github.com/llvm/llvm-project/commit/58c3affdaa732fd6f8c7e6640396e7c6366bac9d.diff

[clang] [Clang][Driver] Override Generic_ELF::buildLinker() to avoid calling gcc to link (PR #149681)

2025-07-19 Thread via cfe-commits
mintsuki wrote: A bunch of tests fail now... I feel like this change is too invasive for what I can possibly do on my own, but I hope that the original commit message is helpful in describing the problem at hand. https://github.com/llvm/llvm-project/pull/149681

[clang] [clang] Don't warn on zero literals with -std=c2y (PR #149688)

2025-07-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timothy Herchen (anematode) Changes Fixes #149669; the old check compared with the end of the literal, but we can just check that after parsing digits, we're pointing to one character past the token start. --- Full diff: https://github.c

[clang] [clang] Don't warn on zero literals with -std=c2y (PR #149688)

2025-07-19 Thread Timothy Herchen via cfe-commits
https://github.com/anematode created https://github.com/llvm/llvm-project/pull/149688 Fixes #149669; the old check compared with the end of the literal, but we can just check that after parsing digits, we're pointing to one character past the token start. >From 5def3c282d446e6ac687cdef37710e9

[clang] [flang] [SPARC][Driver] Move feature mode selection to Arch/Sparc.cpp (PR #149652)

2025-07-19 Thread via cfe-commits
https://github.com/koachan updated https://github.com/llvm/llvm-project/pull/149652 >From 84da1b197113869b684f87bf580b37122d6a15e3 Mon Sep 17 00:00:00 2001 From: Koakuma Date: Sat, 19 Jul 2025 05:40:56 +0700 Subject: [PATCH 1/2] [SPARC][Driver] Move feature mode selection to Arch/Sparc.cpp Th

[clang] [Clang][Driver] Override Generic_ELF::buildLinker() to avoid calling gcc to link (PR #149681)

2025-07-19 Thread via cfe-commits
https://github.com/mintsuki updated https://github.com/llvm/llvm-project/pull/149681 >From 491a834787083c74c3584839dc036cc1f54519c1 Mon Sep 17 00:00:00 2001 From: Mintsuki Date: Sun, 20 Jul 2025 00:21:08 +0200 Subject: [PATCH] [Clang][Driver] Override Generic_ELF::buildLinker() to avoid callin

[clang] [Clang][Driver] Override Generic_ELF::buildLinker() to avoid calling gcc to link (PR #149681)

2025-07-19 Thread via cfe-commits
mintsuki wrote: > Can you add a test to clang/test/Driver to show the behavior difference ? @MaskRay done. Does this work? https://github.com/llvm/llvm-project/pull/149681 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[clang] [Clang][Driver] Override Generic_ELF::buildLinker() to avoid calling gcc to link (PR #149681)

2025-07-19 Thread via cfe-commits
https://github.com/mintsuki updated https://github.com/llvm/llvm-project/pull/149681 >From 468635d12a26a7e1d38fe9d1321a5f76167ddead Mon Sep 17 00:00:00 2001 From: Mintsuki Date: Sun, 20 Jul 2025 00:21:08 +0200 Subject: [PATCH] [Clang][Driver] Override Generic_ELF::buildLinker() to avoid callin

[clang] [Clang][Driver] Override Generic_ELF::buildLinker() to avoid calling gcc to link (PR #149681)

2025-07-19 Thread Fangrui Song via cfe-commits
MaskRay wrote: Can you add a test to clang/test/Driver to show the behavior difference ? https://github.com/llvm/llvm-project/pull/149681 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] [Clang] Be less strict about diagnosing null pointer dereference. (PR #149648)

2025-07-19 Thread Shafik Yaghmour via cfe-commits
@@ -1445,3 +1445,8 @@ static_assert(test_member_null(), ""); } } + +namespace GH149500 { + unsigned int * p = &(*(unsigned int *)0x400); + static const void *q = &(*(const struct sysrq_key_op *)0); shafik wrote: Maybe also `nullptr` test? https://github.co

[clang] [Clang] Be less strict about diagnosing null pointer dereference. (PR #149648)

2025-07-19 Thread Shafik Yaghmour via cfe-commits
@@ -153,3 +150,7 @@ struct PR35214_X { int PR35214_x; int PR35214_y = ((struct PR35214_X *)&PR35214_x)->arr[1]; // expected-error {{not a compile-time constant}} int *PR35214_z = &((struct PR35214_X *)&PR35214_x)->arr[1]; // ok, &PR35214_x + 2 + + +int * GH149500_p = &(*(int

[clang] [llvm] [docs] Add clang/llvm release notes for mipsel-windows-* targets (PR #147133)

2025-07-19 Thread Brad Smith via cfe-commits
brad0 wrote: This should be taken and created as a MR against the 21 release. https://github.com/llvm/llvm-project/pull/147133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Support v_wmma_f32_16x16x128_f8f6f4 on gfx1250 (PR #149684)

2025-07-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Changpeng Fang (changpeng) Changes --- Patch is 132.52 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/149684.diff 31 Files Affected: - (modified) clang/include/clang/Basic/BuiltinsAMDGPU.de

[clang] [llvm] AMDGPU: Support v_wmma_f32_16x16x128_f8f6f4 on gfx1250 (PR #149684)

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

[clang] [llvm] AMDGPU: Support v_wmma_f32_16x16x128_f8f6f4 on gfx1250 (PR #149684)

2025-07-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu @llvm/pr-subscribers-llvm-ir Author: Changpeng Fang (changpeng) Changes --- Patch is 132.52 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/149684.diff 31 Files Affected: - (modified) clang

[clang] [llvm] AMDGPU: Support v_wmma_f32_16x16x128_f8f6f4 on gfx1250 (PR #149684)

2025-07-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: Changpeng Fang (changpeng) Changes --- Patch is 132.52 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/149684.diff 31 Files Affected: - (modified) clang/include/clang/Basic/Builtin

[clang] [Clang][Driver] Override Generic_ELF::buildLinker() to avoid calling gcc to link (PR #149681)

2025-07-19 Thread Brad Smith via cfe-commits
brad0 wrote: cc @MaskRay https://github.com/llvm/llvm-project/pull/149681 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Driver] Override Generic_ELF::buildLinker() to avoid calling gcc to link (PR #149681)

2025-07-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (mintsuki) Changes This change primarily makes it so that when targeting freestanding/unknown OSes, the driver will not use `gcc` to link, but rather will link using the chosen linker (`-fuse-ld=...`) directly. If Clang is to be a cro

[clang] [Clang][Driver] Override Generic_ELF::buildLinker() to avoid calling gcc to link (PR #149681)

2025-07-19 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] [Clang][Driver] Override Generic_ELF::buildLinker() to avoid calling gcc to link (PR #149681)

2025-07-19 Thread via cfe-commits
https://github.com/mintsuki created https://github.com/llvm/llvm-project/pull/149681 This change primarily makes it so that when targeting freestanding/unknown OSes, the driver will not use `gcc` to link, but rather will link using the chosen linker (`-fuse-ld=...`) directly. If Clang is to be

[clang] Reland [clang][modules-driver] Add scanner to detect C++20 module presence (PR #147630)

2025-07-19 Thread Naveen Seth Hanig via cfe-commits
naveen-seth wrote: This now also leverages the `Scanner` in `DependencyDirectivesScanner.cpp` to reuse its logic for properly lexing module related directives. For this to happen, I had to first land two fixes with #148674 and #148685. https://github.com/llvm/llvm-project/pull/147630 _

[clang] Reland [clang][modules-driver] Add scanner to detect C++20 module presence (PR #147630)

2025-07-19 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth updated https://github.com/llvm/llvm-project/pull/147630 >From 6b440de2ed76a6095c4b68ba1301dfbd19f9a285 Mon Sep 17 00:00:00 2001 From: Naveen Seth Hanig Date: Fri, 13 Jun 2025 09:19:21 +0200 Subject: [PATCH 1/4] Reland [clang][modules-driver] Add scanner to detect

[clang] [clang][docs] Add all clang-tools-extra to 'ClangTools.rst' (PR #148622)

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

[clang] 54492c2 - [clang][docs] Add all clang-tools-extra to 'ClangTools.rst' (#148622)

2025-07-19 Thread via cfe-commits
Author: Manas Date: 2025-07-20T01:18:24+03:00 New Revision: 54492c231c5d9091d086bfb767423415ea6bd0bc URL: https://github.com/llvm/llvm-project/commit/54492c231c5d9091d086bfb767423415ea6bd0bc DIFF: https://github.com/llvm/llvm-project/commit/54492c231c5d9091d086bfb767423415ea6bd0bc.diff LOG: [c

[clang-tools-extra] [clang-tidy] Teach `readability-uppercase-literal-suffix` about C++23 and C23 suffixes (PR #148275)

2025-07-19 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,162 @@ +// TODO: When Clang adds support for decimal floating point types, enable these tests by: +//1. Removing all the #if 0 + #endif guards. +//2. Removing all occurrences of the string "DISABLED-" in this file. +//3. Deleting this message. + +// RUN: %c

[clang-tools-extra] [clang-tidy] Teach `readability-uppercase-literal-suffix` about C++23 and C23 suffixes (PR #148275)

2025-07-19 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,248 @@ +// TODO: When Clang adds support for C++23 floating-point types, enable these tests by: +//1. Removing all the #if 0 + #endif guards. +//2. Removing all occurrences of the string "DISABLED-" in this file. +//3. Deleting this message. +// These suffi

[clang-tools-extra] [clang-tidy] Teach `readability-uppercase-literal-suffix` about C++23 and C23 suffixes (PR #148275)

2025-07-19 Thread Baranov Victor via cfe-commits
@@ -225,6 +226,89 @@ void integer_complex_suffix() { static_assert(v28 == 1J, ""); } +// This is a C++23 feature, but Clang supports it in earlier language modes +// as an extension, so we test it unconditionally. vbvictor wrote: I think we should not depen

[clang-tools-extra] [clang-tidy] Teach `readability-uppercase-literal-suffix` about C++23 and C23 suffixes (PR #148275)

2025-07-19 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,248 @@ +// TODO: When Clang adds support for C++23 floating-point types, enable these tests by: +//1. Removing all the #if 0 + #endif guards. +//2. Removing all occurrences of the string "DISABLED-" in this file. +//3. Deleting this message. +// These suffi

[clang-tools-extra] [clang-tidy] Teach `readability-uppercase-literal-suffix` about C++23 and C23 suffixes (PR #148275)

2025-07-19 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,248 @@ +// TODO: When Clang adds support for C++23 floating-point types, enable these tests by: +//1. Removing all the #if 0 + #endif guards. +//2. Removing all occurrences of the string "DISABLED-" in this file. +//3. Deleting this message. +// These suffi

[clang-tools-extra] [clang-tidy] Make `bugprone-unhandled-self-assignment` check more general (PR #147066)

2025-07-19 Thread Baranov Victor via cfe-commits
@@ -540,6 +547,89 @@ class NotACopyAssignmentOperator { Uy *getUy() const { return Ptr2; } }; +// Support "extended" copy/move constructors +class AllocatorAwareClass { vbvictor wrote: Could you add cases when the check will fire (I suppose it at least): -

[clang-tools-extra] [clang-tidy] Make `bugprone-unhandled-self-assignment` check more general (PR #147066)

2025-07-19 Thread Baranov Victor via cfe-commits
@@ -69,6 +69,28 @@ void UnhandledSelfAssignmentCheck::registerMatchers(MatchFinder *Finder) { cxxMethodDecl(unless(hasDescendant(cxxMemberCallExpr(callee(cxxMethodDecl( hasName("operator="), ofClass(equalsBoundNode("class"; + // Checking that some ki

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

2025-07-19 Thread Baranov Victor 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-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

2025-07-19 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,103 @@ +//===--- MLIROpBuilderCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

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

2025-07-19 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,21 @@ +.. title:: clang-tidy - llvm-mlir-op-builder + +llvm-mlir-op-builder + + +Flags usage of old form of invoking create on MLIR's ``OpBuilder`` and suggests +new form. vbvictor wrote: I think we should write why the user should

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

2025-07-19 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,103 @@ +//===--- MLIROpBuilderCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

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

2025-07-19 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor 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-tools-extra] [clang-tidy] Add MLIR check for old op builder usage. (PR #149148)

2025-07-19 Thread Baranov Victor via cfe-commits
@@ -40,6 +41,7 @@ class LLVMModule : public ClangTidyModule { CheckFactories.registerCheck( "llvm-qualified-auto"); CheckFactories.registerCheck("llvm-twine-local"); +CheckFactories.registerCheck("llvm-mlir-op-builder"); vbvictor wrote: Ple

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

2025-07-19 Thread Baranov Victor via cfe-commits
@@ -0,0 +1,29 @@ +//===--- MLIROpBuilderCheck.h - clang-tidy --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

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

2025-07-19 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor commented: I think we need a more verbose check name for users to understand what is the check about, e.g. `llvm-prefer-new-mlir-op-builder` `llvm-use-new-mlir-op-builder` `llvm-use-static-function-mlir-op-builder` https://github.com/llvm/llvm-project/pull/149148 ___

[clang] [clang][bytecode] Use in Expr::tryEvaluateStrLen() (PR #149677)

2025-07-19 Thread via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/149677.diff 4 Files Affected: - (modified) clang/lib/AST/ByteCode/Context.cpp (+37) - (modified

[clang] [clang][bytecode] Use in Expr::tryEvaluateStrLen() (PR #149677)

2025-07-19 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/149677 None >From 9db49be1f605ec039b984bd7df3e29c127df1866 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 19 Jul 2025 23:02:13 +0200 Subject

[clang] [CIR] Add support for binary operations on bitfield members (PR #149676)

2025-07-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: None (Andres-Salamanca) Changes This PR introduces support for binary operations on bitfield members. --- Full diff: https://github.com/llvm/llvm-project/pull/149676.diff 2 Files Affected: - (modified) clang/lib/CIR/CodeGen/CIRGenExpr

[clang] [CIR] Add support for binary operations on bitfield members (PR #149676)

2025-07-19 Thread via cfe-commits
https://github.com/Andres-Salamanca created https://github.com/llvm/llvm-project/pull/149676 This PR introduces support for binary operations on bitfield members. >From c5da343296558a3a418c6282b104196d20f88a60 Mon Sep 17 00:00:00 2001 From: Andres Salamanca Date: Sat, 19 Jul 2025 15:54:56 -050

[clang] fix-149477-- Emit correct closure members for lambdas in CreateLimitedType (PR #149674)

2025-07-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ayush Pareek (ayushpareek2003) Changes Fix an issue where local lambdas caused a crash when importing the std module in LLDB due to missing capture fields in debug info. Now closures always emit all fields for lambdas by skipping the `is

[clang] fix-149477-- Emit correct closure members for lambdas in CreateLimitedType (PR #149674)

2025-07-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Ayush Pareek (ayushpareek2003) Changes Fix an issue where local lambdas caused a crash when importing the std module in LLDB due to missing capture fields in debug info. Now closures always emit all fields for lambdas by skipping

[clang] fix-149477-- Emit correct closure members for lambdas in CreateLimitedType (PR #149674)

2025-07-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-debuginfo Author: Ayush Pareek (ayushpareek2003) Changes Fix an issue where local lambdas caused a crash when importing the std module in LLDB due to missing capture fields in debug info. Now closures always emit all fields for lambdas by skipping the

[clang] fix-149477-- Emit correct closure members for lambdas in CreateLimitedType (PR #149674)

2025-07-19 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] fix-149477-- Emit correct closure members for lambdas in CreateLimitedType (PR #149674)

2025-07-19 Thread Ayush Pareek via cfe-commits
https://github.com/ayushpareek2003 created https://github.com/llvm/llvm-project/pull/149674 Fix an issue where local lambdas caused a crash when importing the std module in LLDB due to missing capture fields in debug info. Now closures always emit all fields for lambdas by skipping the `isImp

[libclc] [libclc] Expose `prepare_builtins_*` variables in top-level CMakeLists (PR #149657)

2025-07-19 Thread Sam James via cfe-commits
https://github.com/thesamesam approved this pull request. https://github.com/llvm/llvm-project/pull/149657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Diagnose dereferencing a null pointer (PR #149330)

2025-07-19 Thread LLVM Continuous Integration via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-s390x-linux` running on `systemz-1` while building `clang` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/14

[clang] [HIP][Clang][Driver] Move BC preference logic into ROCm detection (PR #149294)

2025-07-19 Thread Yaxun Liu via cfe-commits
@@ -77,6 +79,82 @@ class RocmInstallationDetector { SPACKReleaseStr(SPACKReleaseStr.str()) {} }; + struct CommonBitcodeLibsPreferences { +CommonBitcodeLibsPreferences(const Driver &D, + const llvm::opt::ArgList &DriverArgs, +

[clang] [clang][bytecode] Diagnose dereferencing a null pointer (PR #149330)

2025-07-19 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/149330 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] fed6db4 - [clang][bytecode] Diagnose dereferencing a null pointer (#149330)

2025-07-19 Thread via cfe-commits
Author: Timm Baeder Date: 2025-07-19T21:39:06+02:00 New Revision: fed6db45dfbe10cf1a3dab663e8ceb7e7974d713 URL: https://github.com/llvm/llvm-project/commit/fed6db45dfbe10cf1a3dab663e8ceb7e7974d713 DIFF: https://github.com/llvm/llvm-project/commit/fed6db45dfbe10cf1a3dab663e8ceb7e7974d713.diff L

[clang] [clang][bytecode] Diagnose dereferencing a null pointer (PR #149330)

2025-07-19 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/149330 >From 452950ede23a7a21ca88db3600297d67935ddf51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 17 Jul 2025 17:04:18 +0200 Subject: [PAT

  1   2   3   4   5   6   7   8   9   10   >