[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

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 `clang` at step 7 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/38669 Here is

[clang-tools-extra] [doc] Add documentation for clang-change-namespace (PR #148277)

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

[clang] [clang][deps] Properly capture the global module and '\n' for all module directives (PR #148685)

2025-07-19 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth edited https://github.com/llvm/llvm-project/pull/148685 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-fast` running on `sanitizer-buildbot4` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/13089 Here is the relevant piece

[clang] 6855b9c - [clang][deps] Properly capture the global module and '\n' for all module directives (#148685)

2025-07-19 Thread via cfe-commits
Author: Naveen Seth Hanig Date: 2025-07-19T09:47:37+02:00 New Revision: 6855b9c598b3258e8c0e3edffe5458630a0b0105 URL: https://github.com/llvm/llvm-project/commit/6855b9c598b3258e8c0e3edffe5458630a0b0105 DIFF: https://github.com/llvm/llvm-project/commit/6855b9c598b3258e8c0e3edffe5458630a0b0105.d

[clang] [clang][deps] Properly capture the global module and '\n' for all module directives (PR #148685)

2025-07-19 Thread Naveen Seth Hanig via cfe-commits
naveen-seth wrote: Thank you for reviewing! https://github.com/llvm/llvm-project/pull/148685 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][deps] Properly capture the global module and '\n' for all module directives (PR #148685)

2025-07-19 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth closed https://github.com/llvm/llvm-project/pull/148685 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Cygwin] Enable few conditions that are shared with MinGW (PR #149637)

2025-07-19 Thread Mateusz Mikuła via cfe-commits
mati865 wrote: Thanks for taking care of it; I had thought these changes were already done by somebody. https://github.com/llvm/llvm-project/pull/149637 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/lis

[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/3] Reland [clang][modules-driver] Add scanner to detect

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-bootstrap-msan` running on `sanitizer-buildbot6` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/164/builds/11754 Here is the relev

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

2025-07-19 Thread Hervé Poussineau via cfe-commits
hpoussin wrote: @brad0, ping 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-tools-extra] [doc] Add documentation for clang-change-namespace (PR #148277)

2025-07-19 Thread Eric Li via cfe-commits
@@ -0,0 +1,155 @@ +== +Clang-Change-Namespace +== + +.. contents:: + +.. toctree:: + :maxdepth: 1 + +:program:`clang-change-namespace` can be used to change the surrounding +namespaces of class/function definitions. + +Classes/functions in

[clang] [Mips] Correctly define IntPtrType (PR #145158)

2025-07-19 Thread Hervé Poussineau via cfe-commits
hpoussin wrote: @yingopq, ping https://github.com/llvm/llvm-project/pull/145158 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux-bootstrap-msan` running on `sanitizer-buildbot9` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/94/builds/9047 Here is the releva

[clang] [flang] [llvm] [openmp] [Flang][OpenMP] Move builtin .mod generation into runtimes (PR #137828)

2025-07-19 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur updated https://github.com/llvm/llvm-project/pull/137828 >From 839198d61f9937b5504d5e036c67266b4b84da8e Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Thu, 17 Jul 2025 14:09:57 +0200 Subject: [PATCH 01/11] [Flang][Flang-RT][OpenMP] Move builtin .mod generation

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-19 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: I added a fix for the system-z, however, I believe I still a maintainer to confirm this is not a big-endian related issue. I realize I do not understand the sanitizer failures. I ran the tests with valgrind and it seems happy with it. @vitalybuka what should I do here? https

[clang] [flang] [llvm] [openmp] [Flang][OpenMP] Move builtin .mod generation into runtimes (PR #137828)

2025-07-19 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur ready_for_review https://github.com/llvm/llvm-project/pull/137828 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][NFC] Replace bool by cir::UnaryOpKind in emitComplexPrePostIncDec (PR #149566)

2025-07-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-aarch64-linux` running on `sanitizer-buildbot7` while building `clang` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/51/builds/20125 Here is the relevant piece of the

[clang] [CIR][NFC] Replace bool by cir::UnaryOpKind in emitComplexPrePostIncDec (PR #149566)

2025-07-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-arm-ubuntu` running on `linaro-lldb-arm-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/19241 Here is the relevant piece of the build lo

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

2025-07-19 Thread James Y Knight via cfe-commits
https://github.com/jyknight 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] 193de1a - [clang-repl] Spell out the enum types to appease some bots.

2025-07-19 Thread Vassil Vassilev via cfe-commits
Author: Vassil Vassilev Date: 2025-07-19T11:28:26Z New Revision: 193de1a566aa5a10a6f63f6f7c7fca2e52a7d75b URL: https://github.com/llvm/llvm-project/commit/193de1a566aa5a10a6f63f6f7c7fca2e52a7d75b DIFF: https://github.com/llvm/llvm-project/commit/193de1a566aa5a10a6f63f6f7c7fca2e52a7d75b.diff LO

[clang] [clang-driver] don't always set defaultlib=libcmt and defaultlib=oldnames (PR #149400)

2025-07-19 Thread Chotepud Teo via cfe-commits
https://github.com/AlexRouSg updated https://github.com/llvm/llvm-project/pull/149400 >From 507974354531c542ae015b4297d2a26ffd2a51a1 Mon Sep 17 00:00:00 2001 From: Chotepud Teo Congyu Date: Fri, 18 Jul 2025 04:31:01 +0800 Subject: [PATCH] [clang-driver] don't always set defaultlib=libcmt and d

[clang] [clang] Compiler builtin for deduping a list of types (PR #105817)

2025-07-19 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 closed https://github.com/llvm/llvm-project/pull/105817 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 65bde89 - [CIR] Upstream CompoundLiteralExpr for Scalar (#148943)

2025-07-19 Thread via cfe-commits
Author: Amr Hesham Date: 2025-07-19T15:13:36+02:00 New Revision: 65bde89c9a081eab1e8102b06a46d445e1320bd8 URL: https://github.com/llvm/llvm-project/commit/65bde89c9a081eab1e8102b06a46d445e1320bd8 DIFF: https://github.com/llvm/llvm-project/commit/65bde89c9a081eab1e8102b06a46d445e1320bd8.diff LO

[clang] [CIR] Upstream CompoundLiteralExpr for Scalar (PR #148943)

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

[clang] [llvm] [Clang] Add `__builtin_stack_address` (PR #148281)

2025-07-19 Thread via cfe-commits
https://github.com/moorabbit updated https://github.com/llvm/llvm-project/pull/148281 >From 029d9fce6cdb75ea4819a107c7ed9f074bb36678 Mon Sep 17 00:00:00 2001 From: moorabbit <215698969+moorab...@users.noreply.github.com> Date: Mon, 7 Jul 2025 09:25:46 -0400 Subject: [PATCH 1/4] [Clang] Add `__bu

[clang] [llvm] [Clang] Add `__builtin_stack_address` (PR #148281)

2025-07-19 Thread via cfe-commits
@@ -121,7 +121,7 @@ enum NodeType { /// function calling this intrinsic. SPONENTRY, - /// STACKADDR - Represents the llvm.stackaddr intrinsic. Takes no argument + /// STACKADDR - Represents the llvm.stackaddress intrinsic. Takes no argument moorabbit wro

[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 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] [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 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

[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-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-s390x-linux` running on `systemz-1` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/42/builds/5414 Here is the relevant piece of the build log f

[clang] [clang][deps] Properly capture the global module and '\n' for all module directives (PR #148685)

2025-07-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-windows` running on `linaro-armv8-windows-msvc-05` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/141/builds/10268 Here is the relevant piece of

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-s390x-linux-lnt` running on `systemz-1` while building `clang` at step 7 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/136/builds/4637 Here is the relevant piece of the build

[clang] [OpenMP 6.0] Allow only byref arguments with `need_device_addr` modifier on `adjust_args` clause (PR #149586)

2025-07-19 Thread Alexey Bataev via cfe-commits
alexey-bataev wrote: Update OpenMPSupport.rst and release nodes doc https://github.com/llvm/llvm-project/pull/149586 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] Lay the basic infrastructure for pretty printing of types (PR #148701)

2025-07-19 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: Working on understanding the issues... https://github.com/llvm/llvm-project/pull/148701 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-19 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin created https://github.com/llvm/llvm-project/pull/149648 In #143667, we made constant evaluation fail on `*null_ptr`, as this is UB. However, `&(*(foo*)0)` seems to be a common pattern, which made #143667 too disruptive. So instead of failing the evaluation, we not

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

2025-07-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Corentin Jabot (cor3ntin) Changes In #143667, we made constant evaluation fail on `*null_ptr`, as this is UB. However, `&(*(foo*)0)` seems to be a common pattern, which made #143667 too disruptive. So instead of failing the evaluation, we

[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] [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] [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-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] 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] 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] [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] [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] [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][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 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 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-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] [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] [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] [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] [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-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-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] [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] 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] [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-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,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,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 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,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
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] 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

[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 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
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] 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] [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] 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][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

[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] 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

[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

[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][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

[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

[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-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

[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-tools-extra] [clang-tidy] add modernize-use-constexpr check (PR #146553)

2025-07-19 Thread Sean McBride via cfe-commits
seanm wrote: > Then I will split it up into {[11],[14, 17],[20],[23, 26]} BTW does this support C23? That would be nice to have too. https://github.com/llvm/llvm-project/pull/146553 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://list

[libclc] [libclc] Move CMake for prepare_builtins to a subdirectory (PR #148815)

2025-07-19 Thread Michał Górny via cfe-commits
mgorny wrote: This broke the standalone builds on Gentoo Linux amd64: ``` [1566/1676] cd /var/tmp/portage/llvm-core/libclc-22.0.0./work/libclc_build && -o /var/tmp/portage/llvm-core/libclc-22.0.0./work/libclc_build/clspv--.bc /var/tmp/portage/llvm-core/libclc-22.0.0./work/libclc_b

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

2025-07-19 Thread Michał Górny via cfe-commits
https://github.com/mgorny created https://github.com/llvm/llvm-project/pull/149657 Fix `libclc/utils/CMakeLists.txt` to expose `prepare_builtins_*` variables in parent scope. This was a regression introduced in #148815 where the code was moved into subdirectory, and the variables would no lon

[libclc] [libclc] Move CMake for prepare_builtins to a subdirectory (PR #148815)

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

[clang] [clang] improve consistency with GCC vector comparison (PR #148954)

2025-07-19 Thread Imple Lee via cfe-commits
ImpleLee wrote: Now I make a utility function `getGCCCompatibleIntTypeForBitwidth` for this type preference. It should also be used for `mode` attribute. There is currently no test about this, but I don't know how to or even whether should I write relevant tests. There are many other places i

  1   2   >