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

2025-07-09 Thread Corentin Jabot via cfe-commits
@@ -4417,6 +4424,174 @@ void Driver::handleArguments(Compilation &C, DerivedArgList &Args, } } +static void skipWhitespace(const char *&Ptr) { + while (isWhitespace(*Ptr)) +++Ptr; +} + +// Returns the length of EOL, either 0 (no end-of-line), 1 (\n) or 2 (\r\n). +stati

[clang] [CIR] Implement AddOp for ComplexType (PR #147578)

2025-07-09 Thread Henrich Lauko via cfe-commits
@@ -2521,6 +2521,32 @@ def ComplexImagOp : CIR_Op<"complex.imag", [Pure]> { let hasFolder = 1; } +//===--===// +// ComplexAddOp +//===--===

[clang] [NFC][PowerPC][clang] Update clang/test/Driver/aix-default-target-triple.c for AIX specific targets (PR #147584)

2025-07-09 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast approved this pull request. Confirming LGTM; thanks! https://github.com/llvm/llvm-project/pull/147584 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] [llvm] [RISCV] Implement Clang Builtins for XAndesPerf Extension (PR #147018)

2025-07-09 Thread Jim Lin via cfe-commits
https://github.com/tclin914 updated https://github.com/llvm/llvm-project/pull/147018 >From 4ee3cbce0032f57c30692654be160e2745955f04 Mon Sep 17 00:00:00 2001 From: Jim Lin Date: Mon, 5 May 2025 13:58:59 +0800 Subject: [PATCH 1/3] [RISCV] Implement Clang Builtins for XAndesPerf Extension This pa

[clang] [CIR] Implement AddOp for ComplexType (PR #147578)

2025-07-09 Thread Henrich Lauko via cfe-commits
@@ -2521,6 +2521,32 @@ def ComplexImagOp : CIR_Op<"complex.imag", [Pure]> { let hasFolder = 1; } +//===--===// +// ComplexAddOp +//===--===

[clang] [CIR] Implement AddOp for ComplexType (PR #147578)

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

[clang] [CIR] Implement AddOp for ComplexType (PR #147578)

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

[clang-tools-extra] [clangd] Add tweak to override pure virtuals (PR #139348)

2025-07-09 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet approved this pull request. thanks and sorry for not getting back to this for so long. i don't think i'll get to follow up and looks like others are also busy. i have some usability concerns like: - Generating method bodies in class definitions instead of out-of-line

[clang-tools-extra] [clangd] Add tweak to override pure virtuals (PR #139348)

2025-07-09 Thread kadir çetinkaya via cfe-commits
@@ -70,6 +70,16 @@ Code completion Code actions +- New ``clangd`` code action: "Override pure virtual methods". When invoked on a + class definition, this action automatically generates C++ ``override`` + declarations for all pure virtual methods inherited from

[clang-tools-extra] [clangd] Add tweak to override pure virtuals (PR #139348)

2025-07-09 Thread kadir çetinkaya via cfe-commits
https://github.com/kadircet edited https://github.com/llvm/llvm-project/pull/139348 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Add tweak to override pure virtuals (PR #139348)

2025-07-09 Thread kadir çetinkaya via cfe-commits
@@ -70,6 +70,16 @@ Code completion Code actions +- New ``clangd`` code action: "Override pure virtual methods". When invoked on a kadircet wrote: nit: i'd drop `clangd`, it's already under clangd section. https://github.com/llvm/llvm-project/pu

[clang] [clang-format] Split line comments separated by backslashes (PR #147648)

2025-07-09 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/147648 >From 3efb5ca11d67ad36c4cbb1ea78220a1ca69a8339 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Tue, 8 Jul 2025 21:16:12 -0700 Subject: [PATCH 1/2] [clang-format] Split line comments separated by backslashes Fixes

[libcxx] [libcxxabi] [libunwind] [llvm] [libcxxabi][libunwind] Support for using LLVM libc (PR #134893)

2025-07-09 Thread Petr Hosek via cfe-commits
@@ -311,7 +313,7 @@ endif() add_library(cxxabi_static STATIC) if (LIBCXXABI_USE_LLVM_UNWINDER AND NOT LIBCXXABI_STATICALLY_LINK_UNWINDER_IN_STATIC_LIBRARY) - target_link_libraries(cxxabi_static PUBLIC unwind_static) + target_link_libraries(cxxabi_static PUBLIC unwind_static

[libunwind] 9d3b60d - [libcxxabi][libunwind] Support for using LLVM libc (#134893)

2025-07-09 Thread via cfe-commits
Author: Petr Hosek Date: 2025-07-09T00:48:50-07:00 New Revision: 9d3b60dea7ad81f6cb0d9f2e51bb6c80c03fa2d4 URL: https://github.com/llvm/llvm-project/commit/9d3b60dea7ad81f6cb0d9f2e51bb6c80c03fa2d4 DIFF: https://github.com/llvm/llvm-project/commit/9d3b60dea7ad81f6cb0d9f2e51bb6c80c03fa2d4.diff LO

[clang] [CIR] Fold ComplexRealOp from ComplexCreateOp (PR #147592)

2025-07-09 Thread Henrich Lauko via cfe-commits
@@ -1,4 +1,4 @@ -// RUN: cir-opt %s -cir-canonicalize -o - | FileCheck %s +// RUN: cir-opt %s -cir-canonicalize -o - -split-input-file | FileCheck %s xlauko wrote: ```suggestion // RUN: cir-opt %s -cir-canonicalize -o - -split-input-file | FileCheck %s ``` http

[clang] [CIR] Fold ComplexRealOp from ComplexCreateOp (PR #147592)

2025-07-09 Thread Henrich Lauko via cfe-commits
xlauko wrote: I don't see real use of not allowing this by default, as this is essentially identity folding, not really optimization? And applying folds is way cheaper then rewrite patterns later. Though yes, I agree we should have discussion where is the borderline, for instance `UnaryOp::fol

[clang] [CIR] Fold ComplexRealOp from ComplexCreateOp (PR #147592)

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

[libcxx] [libcxxabi] [libunwind] [llvm] [libcxxabi][libunwind] Support for using LLVM libc (PR #134893)

2025-07-09 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek closed https://github.com/llvm/llvm-project/pull/134893 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4581e5a - [clang][bytecode][NFC] Don't push anything in OffsetHelper (#147550)

2025-07-09 Thread via cfe-commits
Author: Timm Baeder Date: 2025-07-09T09:53:16+02:00 New Revision: 4581e5ad0f32d4c371b90c677d4c70b8a4019ac5 URL: https://github.com/llvm/llvm-project/commit/4581e5ad0f32d4c371b90c677d4c70b8a4019ac5 DIFF: https://github.com/llvm/llvm-project/commit/4581e5ad0f32d4c371b90c677d4c70b8a4019ac5.diff L

[clang] [clang][bytecode][NFC] Don't push anything in OffsetHelper (PR #147550)

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

[clang] 755b8f9 - [NFC][PowerPC][clang] Update clang/test/Driver/aix-default-target-triple.c for AIX specific targets (#147584)

2025-07-09 Thread via cfe-commits
Author: Tony Varghese Date: 2025-07-09T13:27:23+05:30 New Revision: 755b8f914b8aa4159e76c0e3490e1887623512a6 URL: https://github.com/llvm/llvm-project/commit/755b8f914b8aa4159e76c0e3490e1887623512a6 DIFF: https://github.com/llvm/llvm-project/commit/755b8f914b8aa4159e76c0e3490e1887623512a6.diff

[clang] [NFC][PowerPC][clang] Update clang/test/Driver/aix-default-target-triple.c for AIX specific targets (PR #147584)

2025-07-09 Thread Tony Varghese via cfe-commits
https://github.com/tonykuttai closed https://github.com/llvm/llvm-project/pull/147584 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Diagnose constexpr-unknown dummy pointers differently (PR #147660)

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

[clang] [clang-format] Split line comments separated by backslashes (PR #147648)

2025-07-09 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/147648 >From 3efb5ca11d67ad36c4cbb1ea78220a1ca69a8339 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Tue, 8 Jul 2025 21:16:12 -0700 Subject: [PATCH 1/2] [clang-format] Split line comments separated by backslashes Fixes

[clang] [llvm] [llvm-objcopy][libObject] Add RISC-V big-endian support (PR #146913)

2025-07-09 Thread James Henderson via cfe-commits
https://github.com/jh7370 approved this pull request. Looks good from my point of view, once the remaining formatting comments have been addressed. Probably should have a separate person with RISC-V knowledge take a look at this too though. https://github.com/llvm/llvm-project/pull/146913

[libclc] [libclc] Declare workitem built-ins in clc, move ptx-nvidiacl workitem built-ins into clc (PR #144333)

2025-07-09 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck approved this pull request. https://github.com/llvm/llvm-project/pull/144333 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] disallow # operators in attribute argument lists (PR #147308)

2025-07-09 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/147308 >From 8f1c383f8f84fb636af4a78e0ff504830f9272f5 Mon Sep 17 00:00:00 2001 From: Oleksandr Tarasiuk Date: Mon, 7 Jul 2025 17:20:48 +0300 Subject: [PATCH 1/5] [Clang] disallow operator in attribute argument list

[clang] ecac4e8 - [analyzer][NFC] Remove irrelevant overcomplicated test (#147536)

2025-07-09 Thread via cfe-commits
Author: Donát Nagy Date: 2025-07-09T10:37:44+02:00 New Revision: ecac4e807b4dfd6e7efab1fe942d65763a2a1a89 URL: https://github.com/llvm/llvm-project/commit/ecac4e807b4dfd6e7efab1fe942d65763a2a1a89 DIFF: https://github.com/llvm/llvm-project/commit/ecac4e807b4dfd6e7efab1fe942d65763a2a1a89.diff LO

[clang] [llvm] [clang][AArch64] Parse more features in getHostCPUFeatures (PR #146323)

2025-07-09 Thread Ricardo Jesus via cfe-commits
https://github.com/rj-jesus approved this pull request. Thanks, LGTM. https://github.com/llvm/llvm-project/pull/146323 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer][NFC] Remove irrelevant overcomplicated test (PR #147536)

2025-07-09 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat closed https://github.com/llvm/llvm-project/pull/147536 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenCL] Remove image dimensionality comments; NFC (PR #147312)

2025-07-09 Thread Sven van Haastregt via cfe-commits
https://github.com/svenvh closed https://github.com/llvm/llvm-project/pull/147312 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d45d20e - [OpenCL] Remove image dimensionality comments; NFC (#147312)

2025-07-09 Thread via cfe-commits
Author: Sven van Haastregt Date: 2025-07-09T10:27:30+02:00 New Revision: d45d20e871fa745c63d5c920482874502230772d URL: https://github.com/llvm/llvm-project/commit/d45d20e871fa745c63d5c920482874502230772d DIFF: https://github.com/llvm/llvm-project/commit/d45d20e871fa745c63d5c920482874502230772d.

[clang] [Clang][CodeGen] Emit “trap reasons” on UBSan traps (PR #145967)

2025-07-09 Thread Michael Buch via cfe-commits
@@ -4051,6 +4141,14 @@ void CodeGenFunction::EmitTrapCheck(llvm::Value *Checked, llvm::BasicBlock *&TrapBB = TrapBBs[CheckHandlerID]; + llvm::DILocation *TrapLocation = Builder.getCurrentDebugLocation(); + llvm::StringRef TrapMessage = GetUBSanTrapForHandler(CheckHandlerI

[clang-tools-extra] [clang-tidy][NFC] concat static-analyzer name at compilation time (PR #147406)

2025-07-09 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/147406 >From 779dd600a1190b36c1343343e139f6579fa5190b Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Mon, 7 Jul 2025 14:14:44 -0700 Subject: [PATCH 1/3] [clang-tidy][NFC] Do more work at compile time --- c

[clang-tools-extra] b041a58 - [clang-tidy][NFC] concat static-analyzer name at compilation time (#147406)

2025-07-09 Thread via cfe-commits
Author: Victor Chernyakin Date: 2025-07-09T20:05:42+08:00 New Revision: b041a589891e07fc4c6fe38e12faed17e2633c55 URL: https://github.com/llvm/llvm-project/commit/b041a589891e07fc4c6fe38e12faed17e2633c55 DIFF: https://github.com/llvm/llvm-project/commit/b041a589891e07fc4c6fe38e12faed17e2633c55.d

[clang-tools-extra] [clang-tidy][NFC] concat static-analyzer name at compilation time (PR #147406)

2025-07-09 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/147406 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] concat static-analyzer name at compilation time (PR #147406)

2025-07-09 Thread via cfe-commits
github-actions[bot] wrote: @localspook Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a bui

[clang] [llvm] [Clang-Repl] Add pipe-based redirection and fetch PID of launched executor (PR #147478)

2025-07-09 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/7] pipes for redirection in oop jit --- .../clang/Interpreter/Remote

[clang] [Clang] fixed false positive redeclaration error for using enum in nested scopes (PR #147711)

2025-07-09 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk created https://github.com/llvm/llvm-project/pull/147711 Fixes #147495 --- This patch addresses the issue of false-positive redeclaration errors that occur for `using enum` declarations in nested class scopes ```cpp struct S { enum class E { A }; using enu

[clang] [Clang] fixed false positive redeclaration error for using enum in nested scopes (PR #147711)

2025-07-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Oleksandr T. (a-tarasyuk) Changes Fixes #147495 --- This patch addresses the issue of false-positive redeclaration errors that occur for `using enum` declarations in nested class scopes ```cpp struct S { enum class E { A }; using

[clang] [Clang] fixed false positive redeclaration error for using enum in nested scopes (PR #147711)

2025-07-09 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk ready_for_review https://github.com/llvm/llvm-project/pull/147711 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [libclc] Change symlinks to copies on Windows (PR #147759)

2025-07-09 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck created https://github.com/llvm/llvm-project/pull/147759 This mirrors how other LLVM libraries handle symlinks >From 584407d144611dbee80f84b4dd3128420aebe7fb Mon Sep 17 00:00:00 2001 From: Fraser Cormack Date: Wed, 9 Jul 2025 15:03:57 +0100 Subject: [PATCH] [libc

[clang] [analyzer] Remove redundant bug type DoubleDelete (PR #147542)

2025-07-09 Thread Donát Nagy via cfe-commits
@@ -412,7 +412,7 @@ class DerefClass{ void testDoubleDeleteClassInstance() { DerefClass *foo = new DerefClass(); delete foo; - delete foo; // newdelete-warning {{Attempt to delete released memory}} + delete foo; // newdelete-warning {{Attempt to free released memory}} ---

[clang] [analyzer] Remove redundant bug type DoubleDelete (PR #147542)

2025-07-09 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/147542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement AddOp for ComplexType (PR #147578)

2025-07-09 Thread Bruno Cardoso Lopes via cfe-commits
@@ -2521,6 +2521,32 @@ def ComplexImagOp : CIR_Op<"complex.imag", [Pure]> { let hasFolder = 1; } +//===--===// +// ComplexAddOp +//===--===

[clang] [analyzer] Remove redundant bug type DoubleDelete (PR #147542)

2025-07-09 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/147542 From 21d04521ec866b1d7850e2d7b758ceaa891359da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Tue, 8 Jul 2025 16:44:04 +0200 Subject: [PATCH 1/4] [analyzer] Remove redundant bug type DoubleD

[clang] Propose new ClangIR Maintainer (PR #147365)

2025-07-09 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes closed https://github.com/llvm/llvm-project/pull/147365 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC][NFC] Define new alias for mma accumulate builtins (PR #147382)

2025-07-09 Thread Maryam Moghadas via cfe-commits
@@ -1148,14 +1078,33 @@ UNALIASED_CUSTOM_BUILTIN(mma_dmxvi8gerx4pp, "vW1024*W256V", true, "mma,paired-vector-memops") UNALIASED_CUSTOM_BUILTIN(mma_pmdmxvi8gerx4pp, "vW1024*W256Vi255i15i15", true, "mma,paired-vector-memops") -UN

[clang] [CIR] Implement AddOp for ComplexType (PR #147578)

2025-07-09 Thread Bruno Cardoso Lopes via cfe-commits
@@ -2521,6 +2521,32 @@ def ComplexImagOp : CIR_Op<"complex.imag", [Pure]> { let hasFolder = 1; } +//===--===// +// ComplexAddOp +//===--===

[clang] [analyzer] Remove redundant bug type DoubleDelete (PR #147542)

2025-07-09 Thread Balazs Benics via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: @@ -412,7 +412,7 @@ class DerefClass{ void testDoubleDeleteClassInstance() { DerefClass *foo = new DerefClass(); delete foo; - delete foo; // newdelete-warning {{Attempt to

[clang] [analyzer] Remove redundant bug type DoubleDelete (PR #147542)

2025-07-09 Thread Balazs Benics via cfe-commits
=?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy , =?utf-8?q?Don=C3=A1t?= Nagy Message-ID: In-Reply-To: https://github.com/steakhal approved this pull request. https://github.com/llvm/llvm-project/pull/147542 ___ cfe-commits mailing list cf

[libclc] [libclc] Change symlinks to copies on Windows (PR #147759)

2025-07-09 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/147759 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Remove redundant bug type DoubleDelete (PR #147542)

2025-07-09 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/147542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Remove redundant bug type DoubleDelete (PR #147542)

2025-07-09 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/147542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Devirtualize calls during con- and destruction (PR #147685)

2025-07-09 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/147685 When compiliung compiling a ctor or dtor, we need to devirtualize the virtual function calls so we always call the implementation of the current class. >From f90b3cc2aecf0d882b3a93719ad05ddfceadc513 Mon Sep 17

[clang] [clang][bytecode] Devirtualize calls during con- and destruction (PR #147685)

2025-07-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes When compiliung compiling a ctor or dtor, we need to devirtualize the virtual function calls so we always call the implementation of the current class. --- Full diff: https://github.com/llvm/llvm-project/pul

[clang] [Clang][AArch64] Add missing builtins for __ARM_FEATURE_SME2p1. (PR #147362)

2025-07-09 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm edited https://github.com/llvm/llvm-project/pull/147362 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][AArch64] Add missing builtins for __ARM_FEATURE_SME2p1. (PR #147362)

2025-07-09 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm closed https://github.com/llvm/llvm-project/pull/147362 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen] Emit “trap reasons” on UBSan traps (PR #145967)

2025-07-09 Thread Dan Liew via cfe-commits
https://github.com/delcypher edited https://github.com/llvm/llvm-project/pull/145967 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Include [[clang::require_explicit_initialization]] warnings in system headers (PR #141133)

2025-07-09 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/141133 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Include [[clang::require_explicit_initialization]] warnings in system headers (PR #141133)

2025-07-09 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > Hi all! So given the discussion above and that @erichkeane also okayed this, > can we finally proceed with this PR? I'd like to note that after discussing > it for the past month and a half, it still seems like we have no idea what > the ideal solution to the more-general

[clang] [cir-translate] Fix crash issue where the data layout string is missing (PR #147209)

2025-07-09 Thread Bruno Cardoso Lopes via cfe-commits
@@ -82,12 +85,17 @@ llvm::LogicalResult prepareCIRModuleDataLayout(mlir::ModuleOp mod, // Data layout is fully determined by the target triple. Here we only pass the // triple to get the data layout. + llvm::IntrusiveRefCntPtr diagID( + new clang::DiagnosticIDs); +

[clang] [include-cleaner] Support multi-header symbols in mapping generator (PR #147720)

2025-07-09 Thread Ildikó Cseri via cfe-commits
cseriildi wrote: Hi @kadircet, this might be of interest to you. https://github.com/llvm/llvm-project/pull/147720 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream __builtin_creal for ComplexType (PR #146927)

2025-07-09 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/146927 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [cir-translate] Fix crash issue where the data layout string is missing (PR #147209)

2025-07-09 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM pending my last comment https://github.com/llvm/llvm-project/pull/147209 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[clang] [cir-translate] Fix crash issue where the data layout string is missing (PR #147209)

2025-07-09 Thread Bruno Cardoso Lopes via cfe-commits
@@ -82,12 +85,17 @@ llvm::LogicalResult prepareCIRModuleDataLayout(mlir::ModuleOp mod, // Data layout is fully determined by the target triple. Here we only pass the // triple to get the data layout. + llvm::IntrusiveRefCntPtr diagID( + new clang::DiagnosticIDs); +

[clang] 18ea6fc - Propose new ClangIR Maintainer (#147365)

2025-07-09 Thread via cfe-commits
Author: Bruno Cardoso Lopes Date: 2025-07-09T11:15:23-03:00 New Revision: 18ea6fcb23ff77362008a8e1ae8671d5d6f019fe URL: https://github.com/llvm/llvm-project/commit/18ea6fcb23ff77362008a8e1ae8671d5d6f019fe DIFF: https://github.com/llvm/llvm-project/commit/18ea6fcb23ff77362008a8e1ae8671d5d6f019fe

[clang] [Clang][attr] Add 'kcfi_salt' attribute (PR #141846)

2025-07-09 Thread Bill Wendling via cfe-commits
https://github.com/bwendling edited https://github.com/llvm/llvm-project/pull/141846 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [llvm-objcopy][libObject] Add RISC-V big-endian support (PR #146913)

2025-07-09 Thread Djordje Todorovic via cfe-commits
@@ -63,6 +63,10 @@ StringRef Triple::getArchTypeName(ArchType Kind) { case renderscript64: return "renderscript64"; case riscv32:return "riscv32"; case riscv64:return "riscv64"; + case riscv32be: djtodoro wrote: Indeed... https://githu

[clang] [CIR] Add test for parsing bitfield_info attribute (PR #147628)

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

[clang] [Clang] Consider default template arguments when synthesizing CTAD guides (PR #147675)

2025-07-09 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. This seems reasonable/right to me, but please give @mizvekov a chance to double-check, he's more familiar with deduction than I am. https://github.com/llvm/llvm-project/pull/147675 ___ cfe-comm

[clang] [analyzer] Remove redundant bug type DoubleDelete (PR #147542)

2025-07-09 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/147542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][AST] Fix positioning of preserve cconv attributes in TypePrinter (PR #147285)

2025-07-09 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/29790

[clang] [analyzer] Remove redundant bug type DoubleDelete (PR #147542)

2025-07-09 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat updated https://github.com/llvm/llvm-project/pull/147542 From 21d04521ec866b1d7850e2d7b758ceaa891359da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Don=C3=A1t=20Nagy?= Date: Tue, 8 Jul 2025 16:44:04 +0200 Subject: [PATCH 1/3] [analyzer] Remove redundant bug type DoubleD

[clang] [include-cleaner] Support multi-header symbols in mapping generator (PR #147720)

2025-07-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ildikó Cseri (cseriildi) Changes This PR improves the mapping for standard library symbols by: - Adding support for symbols with multiple headers, which were previously skipped with a FIXME - Preventing duplicates - Including `macro.html

[clang] include-cleaner] Support multi-header symbols in mapping generator (PR #147720)

2025-07-09 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] [analyzer] Remove redundant bug type DoubleDelete (PR #147542)

2025-07-09 Thread Donát Nagy via cfe-commits
@@ -3324,7 +3298,7 @@ void MallocChecker::checkUseZeroAllocated(SymbolRef Sym, CheckerContext &C, bool MallocChecker::checkDoubleDelete(SymbolRef Sym, CheckerContext &C) const { if (isReleased(Sym, C)) { -HandleDoubleDelete(C, Sym); +HandleDoubleFree(C, SourceRange(

[clang] [include-cleaner] Support multi-header symbols in mapping generator (PR #147720)

2025-07-09 Thread Ildikó Cseri via cfe-commits
https://github.com/cseriildi edited https://github.com/llvm/llvm-project/pull/147720 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 380954b - Fix test failure introduced in ab187bb

2025-07-09 Thread via cfe-commits
Author: erichkeane Date: 2025-07-09T06:18:49-07:00 New Revision: 380954b26f64cb31da028d355941a394a3d0dacc URL: https://github.com/llvm/llvm-project/commit/380954b26f64cb31da028d355941a394a3d0dacc DIFF: https://github.com/llvm/llvm-project/commit/380954b26f64cb31da028d355941a394a3d0dacc.diff LO

[clang] [include-cleaner] Update generated include mappings (PR #144751)

2025-07-09 Thread Ildikó Cseri via cfe-commits
https://github.com/cseriildi closed https://github.com/llvm/llvm-project/pull/144751 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[clang][AST] Fix positioning of preserve cconv attributes in TypePrinter" (PR #147724)

2025-07-09 Thread Andreas C. Osowski via cfe-commits
https://github.com/th0br0 created https://github.com/llvm/llvm-project/pull/147724 Reverts llvm/llvm-project#147285 Looks like I need to limit the test's target triple. >From 07dc90502cb1686f904f2f0722567438f088083e Mon Sep 17 00:00:00 2001 From: "Andreas C. Osowski" Date: Wed, 9 Jul 2025 15

[clang] Revert "[clang][AST] Fix positioning of preserve cconv attributes in TypePrinter" (PR #147724)

2025-07-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andreas C. Osowski (th0br0) Changes Reverts llvm/llvm-project#147285 Looks like I need to limit the test's target triple. --- Full diff: https://github.com/llvm/llvm-project/pull/147724.diff 5 Files Affected: - (modified) clang/lib/AS

[clang] [clang][AST] Fix positioning of preserve cconv attributes in TypePrinter (PR #147285)

2025-07-09 Thread Erich Keane via cfe-commits
erichkeane wrote: > LLVM Buildbot has detected a new failure on builder > `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while > building `clang` at step 6 "test-build-unified-tree-check-all". > > Full details are available at: > https://lab.llvm.org/buildbot/#/builders/144

[clang] Revert "[clang][AST] Fix positioning of preserve cconv attributes in TypePrinter" (PR #147724)

2025-07-09 Thread Andreas C. Osowski via cfe-commits
https://github.com/th0br0 closed https://github.com/llvm/llvm-project/pull/147724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[clang][AST] Fix positioning of preserve cconv attributes in TypePrinter" (PR #147724)

2025-07-09 Thread Andreas C. Osowski via cfe-commits
th0br0 wrote: Nevermind, thanks, @erichkeane ! https://github.com/llvm/llvm-project/pull/147724 ___ 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 portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-09 Thread Baranov Victor via cfe-commits
vbvictor wrote: > > Please remove unnecessary comments that tell the same as code itself, > > speaking mostly about comments in `registerMatchers`. They mostly don't > > give any more information that matchers themselves. > > To be honest, this is because I coded 98% of this with AI (except fo

[clang] [llvm] [clang][AArch64] Parse more features in getHostCPUFeatures (PR #146323)

2025-07-09 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm approved this pull request. https://github.com/llvm/llvm-project/pull/146323 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] f676014 - [Clang][AArch64] Fix feature guards for SVE2p1 builtins available in SME{2}. (#147086)

2025-07-09 Thread via cfe-commits
Author: Paul Walker Date: 2025-07-09T11:05:51+01:00 New Revision: f6760149556b0a092e1cdd047c84b03b5c5df116 URL: https://github.com/llvm/llvm-project/commit/f6760149556b0a092e1cdd047c84b03b5c5df116 DIFF: https://github.com/llvm/llvm-project/commit/f6760149556b0a092e1cdd047c84b03b5c5df116.diff L

[clang] [llvm] [llvm-objcopy][libObject] Add RISC-V big-endian support (PR #146913)

2025-07-09 Thread Djordje Todorovic via cfe-commits
https://github.com/djtodoro updated https://github.com/llvm/llvm-project/pull/146913 >From a3b50d1a95f4ae76af98e25502a7bdb950592d38 Mon Sep 17 00:00:00 2001 From: Djordje Todorovic Date: Thu, 3 Jul 2025 14:03:14 +0200 Subject: [PATCH 1/6] [llvm-objcopy][libObject] Add RISC-V big-endian support

[clang] [Clang][AArch64] Fix feature guards for SVE2p1 builtins available in SME{2}. (PR #147086)

2025-07-09 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm closed https://github.com/llvm/llvm-project/pull/147086 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [llvm-objcopy][libObject] Add RISC-V big-endian support (PR #146913)

2025-07-09 Thread Djordje Todorovic via cfe-commits
@@ -63,6 +63,10 @@ StringRef Triple::getArchTypeName(ArchType Kind) { case renderscript64: return "renderscript64"; case riscv32:return "riscv32"; case riscv64:return "riscv64"; + case riscv32be: djtodoro wrote: Let me try, but I think t

[clang] [Clang] disallow # operators in attribute argument lists (PR #147308)

2025-07-09 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/147308 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Respect MS layout attributes during CUDA/HIP device compilation (PR #146620)

2025-07-09 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/146620 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Respect MS layout attributes during CUDA/HIP device compilation (PR #146620)

2025-07-09 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > LGTM, but it would be great to get someone familiar with MS side of things to > take a look. > > @rnk is there anything else we need to worry about? @rnk is out on vacation, so I'd say we're good to go. https://github.com/llvm/llvm-project/pull/146620 ___

[clang] [Clang] fix crash in codegen caused by deferred asm diagnostics under -fopenmp (PR #147163)

2025-07-09 Thread Aaron Ballman via cfe-commits
AaronBallman wrote: > My understanding is that "recoverable" in this context means we can actually > generate sensible IR for the construct. So no errors, except for warnings > promoted to errors (or certain errors which don't impact IRGen/CFG analysis). > And if that isn't what isUnrecoverabl

[clang] [CIR] Add bit reverse and byte reverse operations (PR #147200)

2025-07-09 Thread Sirui Mu via cfe-commits
https://github.com/Lancern updated https://github.com/llvm/llvm-project/pull/147200 >From cf2bf0bf66f22e8fdc35baf8d4176aa5af6588d2 Mon Sep 17 00:00:00 2001 From: Sirui Mu Date: Mon, 7 Jul 2025 00:45:48 +0800 Subject: [PATCH] [CIR] Add bit reverse and byte reverse operations --- clang/include/

[clang] [CIR] Add bit reverse and byte reverse operations (PR #147200)

2025-07-09 Thread Sirui Mu via cfe-commits
@@ -2661,6 +2661,55 @@ def BitPopcountOp : CIR_BitOpBase<"bit.popcnt", }]; } +def BitReverseOp : CIR_BitOpBase<"bit.reverse", CIR_UIntOfWidths<[8, 16, 32, 64]>> { + let summary = "Reverse the bit pattern of the operand integer"; + let description = [{ +The `cir.bit.re

[clang] [PowerPC][NFC] Define new alias for mma accumulate builtins (PR #147382)

2025-07-09 Thread Lei Huang via cfe-commits
https://github.com/lei137 updated https://github.com/llvm/llvm-project/pull/147382 >From 36d2b8fc61ab67b8d8010e8b33e3e871f8e1c4f2 Mon Sep 17 00:00:00 2001 From: Lei Huang Date: Fri, 4 Jul 2025 14:53:15 -0500 Subject: [PATCH 1/6] define new alias for accumulate builtins --- clang/include/clang

[clang] [clang][bytecode] Check new/delete mismatch earlier (PR #147732)

2025-07-09 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/147732 This fixes a mismatch in diagnostic output with the current intepreter. >From 5d9464124dc09bde2b697d7bfc0f224b030a0bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 9 Jul 2025 15:17:2

[clang] [clang][bytecode] Check new/delete mismatch earlier (PR #147732)

2025-07-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes This fixes a mismatch in diagnostic output with the current intepreter. --- Full diff: https://github.com/llvm/llvm-project/pull/147732.diff 2 Files Affected: - (modified) clang/lib/AST/ByteCode/Interp.cpp

  1   2   3   4   >