[clang] [Preprocessor] Do not expand macros if the input is already preprocessed (PR #137665)

2025-07-21 Thread Jacob Lambert via cfe-commits
Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?= , Juan Manuel Martinez =?utf-8?q?Caama=C3=B1o?= Message-ID: In-Reply-To: lamb-j wrote: @cor3ntin @AaronBallman any thoughts on this PR? Aiming to land soon if there are no other objections https://github.com/llvm/llvm-project/pull/137665

[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

2025-07-21 Thread Timothy Herchen via cfe-commits
https://github.com/anematode updated https://github.com/llvm/llvm-project/pull/149745 >From d36dcec834f1846f050b89650b31bee4e138ddc3 Mon Sep 17 00:00:00 2001 From: Timothy Herchen Date: Sun, 20 Jul 2025 16:11:22 -0700 Subject: [PATCH 1/2] [clang] [Sema] Check argument range for prefetchi* intr

[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

2025-07-21 Thread Timothy Herchen via cfe-commits
anematode wrote: Sorry about that, should work now... https://github.com/llvm/llvm-project/pull/149745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Activate primitive fields before initializing them (PR #149963)

2025-07-21 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/149963 >From 7fa404e88e104eea07f26f4959cf4d6e1768dc14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 21 Jul 2025 16:56:27 +0200 Subject: [PAT

[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

2025-07-21 Thread Timothy Herchen via cfe-commits
https://github.com/anematode updated https://github.com/llvm/llvm-project/pull/149745 >From d36dcec834f1846f050b89650b31bee4e138ddc3 Mon Sep 17 00:00:00 2001 From: Timothy Herchen Date: Sun, 20 Jul 2025 16:11:22 -0700 Subject: [PATCH 1/2] [clang] [Sema] Check argument range for prefetchi* intr

[clang] [clang][bytecode] Activate primitive fields before initializing them (PR #149963)

2025-07-21 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/149963 >From 08399fdaa0468d9e272a9fdc49871d57a9691529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Mon, 21 Jul 2025 16:56:27 +0200 Subject: [PAT

[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

2025-07-21 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,11 @@ +// RUN: %clang_cc1 %s -ffreestanding -triple=i686-unknown-unknown -target-feature +sm3 -fsyntax-only -verify + +#include + +__m128i test_mm_sm3rnds2_epi32(__m128i __A, __m128i __B, __m128i __C) { + return _mm_sm3rnds2_epi32(__A, __B, __C, 256); // expected-er

[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

2025-07-21 Thread Timothy Herchen via cfe-commits
https://github.com/anematode updated https://github.com/llvm/llvm-project/pull/149745 >From d36dcec834f1846f050b89650b31bee4e138ddc3 Mon Sep 17 00:00:00 2001 From: Timothy Herchen Date: Sun, 20 Jul 2025 16:11:22 -0700 Subject: [PATCH 1/2] [clang] [Sema] Check argument range for prefetchi* intr

[clang] [PATCH 1/7] [clang] Improve nested name specifier AST representation (PR #147835)

2025-07-21 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/147835 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PATCH 1/7] [clang] Improve nested name specifier AST representation (PR #147835)

2025-07-21 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/147835 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PATCH 1/7] [clang] Improve nested name specifier AST representation (PR #147835)

2025-07-21 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/147835 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

2025-07-21 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang requested changes to this pull request. Please check test failures. https://github.com/llvm/llvm-project/pull/149745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

2025-07-21 Thread Phoebe Wang via cfe-commits
@@ -14,3 +14,7 @@ void test_m_prefetch_it1(void *p) { // CHECK-LABEL: define{{.*}} void @test_m_prefetch_it1 // CHECK: call void @llvm.prefetch.p0(ptr {{.*}}, i32 0, i32 2, i32 0) } + +void test_invalid_prefetchi(void* p) { + return __builtin_ia32_prefetchi(p, 1); // expec

[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

2025-07-21 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang edited https://github.com/llvm/llvm-project/pull/149745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

2025-07-21 Thread Timothy Herchen via cfe-commits
anematode wrote: h why did it fail https://github.com/llvm/llvm-project/pull/149745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Driver] Add a new member for CLANG_DEFAULT_LINKER to clang::driver::Driver (NFC) (PR #149784)

2025-07-21 Thread Fangrui Song via cfe-commits
@@ -450,6 +454,11 @@ class Driver { return ClangExecutable.c_str(); } + StringRef getPreferredLinker() const { return PreferredLinker; } + void setPreferredLinker(std::string Value) { MaskRay wrote: If #149786 will use `setPreferredLinker`, this `setP

[clang] [clang][Driver] Add a new member for CLANG_DEFAULT_LINKER to clang::driver::Driver (NFC) (PR #149784)

2025-07-21 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/149784 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

2025-07-21 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/149745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

2025-07-21 Thread Timothy Herchen via cfe-commits
https://github.com/anematode updated https://github.com/llvm/llvm-project/pull/149745 >From d36dcec834f1846f050b89650b31bee4e138ddc3 Mon Sep 17 00:00:00 2001 From: Timothy Herchen Date: Sun, 20 Jul 2025 16:11:22 -0700 Subject: [PATCH 1/2] [clang] [Sema] Check argument range for prefetchi* intr

[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

2025-07-21 Thread Timothy Herchen via cfe-commits
https://github.com/anematode updated https://github.com/llvm/llvm-project/pull/149745 >From d36dcec834f1846f050b89650b31bee4e138ddc3 Mon Sep 17 00:00:00 2001 From: Timothy Herchen Date: Sun, 20 Jul 2025 16:11:22 -0700 Subject: [PATCH 1/2] [clang] [Sema] Check argument range for prefetchi* intr

[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

2025-07-21 Thread Timothy Herchen via cfe-commits
https://github.com/anematode updated https://github.com/llvm/llvm-project/pull/149745 >From d36dcec834f1846f050b89650b31bee4e138ddc3 Mon Sep 17 00:00:00 2001 From: Timothy Herchen Date: Sun, 20 Jul 2025 16:11:22 -0700 Subject: [PATCH 1/2] [clang] [Sema] Check argument range for prefetchi* intr

[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

2025-07-21 Thread Timothy Herchen via cfe-commits
anematode wrote: done :) https://github.com/llvm/llvm-project/pull/149745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] [Sema] Check argument range for prefetchi* intrinsics (PR #149745)

2025-07-21 Thread Timothy Herchen via cfe-commits
https://github.com/anematode updated https://github.com/llvm/llvm-project/pull/149745 >From d36dcec834f1846f050b89650b31bee4e138ddc3 Mon Sep 17 00:00:00 2001 From: Timothy Herchen Date: Sun, 20 Jul 2025 16:11:22 -0700 Subject: [PATCH 1/2] [clang] [Sema] Check argument range for prefetchi* intr

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

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

[clang] [llvm] Make sanitizer special case list slash-agnostic (PR #149886)

2025-07-21 Thread Fangrui Song via cfe-commits
MaskRay wrote: GlobPattern is also used in binary utilities' symbol/section name matching where we want to be rigid. While I do not oppose to this change, I think it should be opt-in if we add it. https://github.com/llvm/llvm-project/pull/149886 ___

[clang] [clang][bytecode] Activate primitive fields before initializing them (PR #149963)

2025-07-21 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 The initializer itself might need the field to be active. --- Full diff: https://github.com/llvm/llvm-project/pull/149963.diff 4 Files Affected: - (modifi

[clang] [clang][bytecode] Activate primitive fields before initializing them (PR #149963)

2025-07-21 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/149963 The initializer itself might need the field to be active. >From 08399fdaa0468d9e272a9fdc49871d57a9691529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A

[clang] [clang][RISCV] Fix crash on VLS calling convention (PR #145489)

2025-07-21 Thread Craig Topper via cfe-commits
@@ -244,6 +244,15 @@ ABIInfo::getOptimalVectorMemoryType(llvm::FixedVectorType *T, return T; } +llvm::Value *ABIInfo::CreateCoercedLoad(Address SrcAddr, const ABIArgInfo &AI, +CodeGenFunction &CGF) const { + return nullptr; +} +void

[clang] Adding Loongarch64 to OpenBSD parts (PR #149737)

2025-07-21 Thread Brad Smith via cfe-commits
https://github.com/brad0 approved this pull request. https://github.com/llvm/llvm-project/pull/149737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Adding Loongarch64 to OpenBSD parts (PR #149737)

2025-07-21 Thread Slava nerfur Voronzoff via cfe-commits
https://github.com/nerfur updated https://github.com/llvm/llvm-project/pull/149737 >From 6b9eedcc624316a565cfc4d5eb8c87c67442378f Mon Sep 17 00:00:00 2001 From: "Slava \"nerfur\" Voronzoff" Date: Tue, 1 Jul 2025 20:01:34 +0300 Subject: [PATCH 1/9] OpenBSD in Targets.cpp --- clang/lib/Basic/Ta

[clang] Adding Loongarch64 to OpenBSD parts (PR #149737)

2025-07-21 Thread Brad Smith via cfe-commits
brad0 wrote: Clean up the space added on line 169 in OpenBSD.cpp. https://github.com/llvm/llvm-project/pull/149737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Adding Loongarch64 to OpenBSD parts (PR #149737)

2025-07-21 Thread Slava nerfur Voronzoff via cfe-commits
nerfur wrote: Did I get your suggestions right? https://github.com/llvm/llvm-project/pull/149737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Adding Loongarch64 to OpenBSD parts (PR #149737)

2025-07-21 Thread Slava nerfur Voronzoff via cfe-commits
https://github.com/nerfur updated https://github.com/llvm/llvm-project/pull/149737 >From 6b9eedcc624316a565cfc4d5eb8c87c67442378f Mon Sep 17 00:00:00 2001 From: "Slava \"nerfur\" Voronzoff" Date: Tue, 1 Jul 2025 20:01:34 +0300 Subject: [PATCH 1/8] OpenBSD in Targets.cpp --- clang/lib/Basic/Ta

[clang] Adding Loongarch64 to OpenBSD parts (PR #149737)

2025-07-21 Thread Slava nerfur Voronzoff via cfe-commits
https://github.com/nerfur updated https://github.com/llvm/llvm-project/pull/149737 >From 6b9eedcc624316a565cfc4d5eb8c87c67442378f Mon Sep 17 00:00:00 2001 From: "Slava \"nerfur\" Voronzoff" Date: Tue, 1 Jul 2025 20:01:34 +0300 Subject: [PATCH 1/6] OpenBSD in Targets.cpp --- clang/lib/Basic/Ta

[clang] [Clang] Add elementwise maximumnum/minimumnum builtin functions (PR #149775)

2025-07-21 Thread Wenju He via cfe-commits
@@ -4108,6 +4108,22 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID, return RValue::get(Result); } + case Builtin::BI__builtin_elementwise_maximumnum: { +Value *Op0 = EmitScalarExpr(E->getArg(0)); wenju-he wrote:

[clang] [PATCH 1/6] [clang] Improve nested name specifier AST representation (PR #147835)

2025-07-21 Thread via cfe-commits
@@ -181,14 +181,14 @@ template class DynamicRecursiveASTVisitorBase { /// /// \returns false if the visitation was terminated early, true /// otherwise (including when the argument is a Null type). - virtual bool TraverseType(QualType T); + virtual bool TraverseType(Q

[clang] [Clang] Add elementwise maximumnum/minimumnum builtin functions (PR #149775)

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

[clang] [Clang] Add elementwise maximumnum/minimumnum builtin functions (PR #149775)

2025-07-21 Thread Erich Keane via cfe-commits
@@ -4108,6 +4108,22 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID, return RValue::get(Result); } + case Builtin::BI__builtin_elementwise_maximumnum: { +Value *Op0 = EmitScalarExpr(E->getArg(0)); erichkeane wrote

[clang] [PATCH 1/6] [clang] Improve nested name specifier AST representation (PR #147835)

2025-07-21 Thread Matheus Izvekov via cfe-commits
@@ -181,14 +181,14 @@ template class DynamicRecursiveASTVisitorBase { /// /// \returns false if the visitation was terminated early, true /// otherwise (including when the argument is a Null type). - virtual bool TraverseType(QualType T); + virtual bool TraverseType(Q

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

2025-07-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-flang-rhel-clang` running on `ppc64le-flang-rhel-test` while building `clang` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/157/builds/34484 Here is the rele

[clang] 4d48996 - [clang-format][NFC] Clean up around StringRef initializations (#149765)

2025-07-21 Thread via cfe-commits
Author: Owen Pan Date: 2025-07-21T19:11:17-07:00 New Revision: 4d48996ff05305d4a5774f3e232c2ee4a06c3d2a URL: https://github.com/llvm/llvm-project/commit/4d48996ff05305d4a5774f3e232c2ee4a06c3d2a DIFF: https://github.com/llvm/llvm-project/commit/4d48996ff05305d4a5774f3e232c2ee4a06c3d2a.diff LOG:

[clang] [clang-format][NFC] Clean up around StringRef initializations (PR #149765)

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

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

2025-07-21 Thread Owen Pan via cfe-commits
owenca wrote: > > Can you add a link to the relevant section of the style guide? > > The new policy is not yet published, but I added a link to the section which > will be changed. This patch looks good now, but IMO we should wait until the new style is published. https://github.com/llvm/llv

[clang] [Clang] add wraps and no_wraps attributes (PR #115094)

2025-07-21 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt closed https://github.com/llvm/llvm-project/pull/115094 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] add wraps and no_wraps attributes (PR #115094)

2025-07-21 Thread Justin Stitt via cfe-commits
JustinStitt wrote: superseded by https://github.com/llvm/llvm-project/pull/148914. closing this. https://github.com/llvm/llvm-project/pull/115094 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [API Notes] Attach API notes to forward declarations of tags (PR #149951)

2025-07-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Doug Gregor (DougGregor) Changes Forward declarations can still have useful API notes applied to them. When the use of the tag is not a definition, apply the API notes immediately. Fixes rdar://156288588. --- Full diff: https://github.co

[clang] [API Notes] Attach API notes to forward declarations of tags (PR #149951)

2025-07-21 Thread Doug Gregor via cfe-commits
https://github.com/DougGregor created https://github.com/llvm/llvm-project/pull/149951 Forward declarations can still have useful API notes applied to them. When the use of the tag is not a definition, apply the API notes immediately. Fixes rdar://156288588. >From 00c5c51eb4bc359d45f22377b6d9

[clang-tools-extra] [clang-doc] refactor JSON for better Mustache compatibility (PR #149588)

2025-07-21 Thread Erick Velez via cfe-commits
@@ -777,7 +778,10 @@ static void populateSymbolInfo(SymbolInfo &I, const T *D, const FullComment *C, Mangler->mangleCXXVTable(CXXD, MangledStream); else MangledStream << D->getNameAsString(); - I.MangledName = MangledName; + if (MangledName.size() > 255) +I.Man

[clang] Suppress noreturn warning if last statement in a function is a throw (PR #145166)

2025-07-21 Thread Alexander Kornienko via cfe-commits
alexfh wrote: > Is the proposed plan of action marking the functions `[[noreturn]]` ? As per > [#145166 > (comment)](https://github.com/llvm/llvm-project/pull/145166#issuecomment-3004769089) > , marking the functions ``[[noreturn]]` was discouraged. There are two problems here: 1. the problem

[clang] [PATCH 1/6] [clang] Improve nested name specifier AST representation (PR #147835)

2025-07-21 Thread Yanzuo Liu via cfe-commits
@@ -181,14 +181,14 @@ template class DynamicRecursiveASTVisitorBase { /// /// \returns false if the visitation was terminated early, true /// otherwise (including when the argument is a Null type). - virtual bool TraverseType(QualType T); + virtual bool TraverseType(Q

[clang-tools-extra] [clang-doc] refactor JSON for better Mustache compatibility (PR #149588)

2025-07-21 Thread Paul Kirth via cfe-commits
@@ -777,7 +778,10 @@ static void populateSymbolInfo(SymbolInfo &I, const T *D, const FullComment *C, Mangler->mangleCXXVTable(CXXD, MangledStream); else MangledStream << D->getNameAsString(); - I.MangledName = MangledName; + if (MangledName.size() > 255) +I.Man

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

2025-07-21 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur edited 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] [flang] [llvm] [openmp] [Flang][OpenMP] Move builtin .mod generation into runtimes (PR #137828)

2025-07-21 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur edited 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] [flang] [llvm] [openmp] [Flang][OpenMP] Move builtin .mod generation into runtimes (PR #137828)

2025-07-21 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur edited 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] 08ac781 - [Clang][NFC] Fix linting warnings after #125556

2025-07-21 Thread Joseph Huber via cfe-commits
Author: Joseph Huber Date: 2025-07-21T18:57:52-05:00 New Revision: 08ac7815960bb9fc56701f307729144a3d0c94f2 URL: https://github.com/llvm/llvm-project/commit/08ac7815960bb9fc56701f307729144a3d0c94f2 DIFF: https://github.com/llvm/llvm-project/commit/08ac7815960bb9fc56701f307729144a3d0c94f2.diff

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

2025-07-21 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur edited 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] [Clang] Rework creating offloading toolchains (PR #125556)

2025-07-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64-aix` running on `aix-ppc64` while building `clang` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/64/builds/4943 Here is the relevant piece of the build lo

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

2025-07-21 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur edited 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] [flang] [llvm] [openmp] [Flang][OpenMP] Move builtin .mod generation into runtimes (PR #137828)

2025-07-21 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur edited 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] [flang] [llvm] [openmp] [Flang][OpenMP] Move builtin .mod generation into runtimes (PR #137828)

2025-07-21 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur edited 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] [flang] [llvm] [openmp] [Flang][OpenMP] Move builtin .mod generation into runtimes (PR #137828)

2025-07-21 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur edited 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] [flang] [llvm] [openmp] [Flang][OpenMP] Move builtin .mod generation into runtimes (PR #137828)

2025-07-21 Thread Michael Kruse via cfe-commits
@@ -6,8 +6,8 @@ !- ! FRONTEND FLANG DRIVER (flang -fc1) !- -! RUN: %flang_fc1 -fsyntax-only %s 2>&1 | FileCheck %s --allow-empty --check-prefix=WITHOUT -! RUN: not %flang_fc1 -fsyntax-only -fintri

[clang] [Clang] Rework creating offloading toolchains (PR #125556)

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

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

2025-07-21 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/149676 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Rework creating offloading toolchains (PR #125556)

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

[clang] AMDGPU: Remove "gws" from the “read-only” target feature list (PR #148141)

2025-07-21 Thread Changpeng Fang via cfe-commits
changpeng wrote: Thanks @yxsamliu and @arsenm for the suggestions. Now we mark these features as read-only if and only if the target supports them. The "ReadOnly" logic still works as it is supposed to. https://github.com/llvm/llvm-project/pull/148141 __

[clang] AMDGPU: Remove "gws" from the “read-only” target feature list (PR #148141)

2025-07-21 Thread Changpeng Fang via cfe-commits
https://github.com/changpeng updated https://github.com/llvm/llvm-project/pull/148141 >From c9cf9873e35205f9715acd545680713c0dd912aa Mon Sep 17 00:00:00 2001 From: Changpeng Fang Date: Fri, 11 Jul 2025 01:04:04 -0700 Subject: [PATCH 1/4] =?UTF-8?q?AMDGPU:=20Remove=20"gws"=20from=20the=20?= =?U

[clang-tools-extra] f0bbe73 - [clang-tidy] Proofread Contributing.rst (#149831)

2025-07-21 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-07-21T14:59:35-07:00 New Revision: f0bbe73cf101b82a9b02b8466f562e3173d25523 URL: https://github.com/llvm/llvm-project/commit/f0bbe73cf101b82a9b02b8466f562e3173d25523 DIFF: https://github.com/llvm/llvm-project/commit/f0bbe73cf101b82a9b02b8466f562e3173d25523.diff L

[clang] [LifetimeSafety] Add per-program-point lattice tracking (PR #149199)

2025-07-21 Thread Utkarsh Saxena via cfe-commits
usx95 wrote: ### Merge activity * **Jul 21, 9:57 PM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/149199). https://github.com/llvm/llvm-project/pull/149199 __

[clang-tools-extra] [clang-tidy] Proofread Contributing.rst (PR #149831)

2025-07-21 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: > > > I'm not sure on the false positive > > > > > > It's an adjective in this case: false-positive **rate**, so I believe it's > > correct, even though English is not my native language. ChatGPT also claims > > it's correct > > Adjective seems legit, but e.g. > [Wikip

[clang] [clang] Add a CodeGen option to ignore compilation directories (PR #149897)

2025-07-21 Thread Steven Wu via cfe-commits
https://github.com/cachemeifyoucan updated https://github.com/llvm/llvm-project/pull/149897 >From 4d04ba492459fa8979148390183f4ffe825d3b5d Mon Sep 17 00:00:00 2001 From: Steven Wu Date: Mon, 21 Jul 2025 13:34:06 -0700 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=

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

2025-07-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `amdgpu-offload-rhel-8-cmake-build-only` running on `rocm-docker-rhel-8` while building `clang` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/204/builds/16253 Here is the relev

[clang-tools-extra] [clang-doc] refactor JSON for better Mustache compatibility (PR #149588)

2025-07-21 Thread Paul Kirth via cfe-commits
@@ -234,10 +267,12 @@ static void serializeArray(const Container &Records, Object &Obj, json::Value RecordsArray = Array(); auto &RecordsArrayRef = *RecordsArray.getAsArray(); RecordsArrayRef.reserve(Records.size()); - for (const auto &Item : Records) { + for (size_t I

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

2025-07-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `hip-third-party-libs-test` running on `ext_buildbot_hw_05-hip-docker` while building `clang` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/206/builds/3628 Here is the relevant

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

2025-07-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-arm64-windows-msvc` running on `linaro-armv8-windows-msvc-01` while building `clang` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/207/builds/4313 Here is the

[clang] One more fix for P3144R2 implementation (PR #149406)

2025-07-21 Thread Eli Friedman via cfe-commits
@@ -595,6 +595,10 @@ struct GH99278_2 { } f; }; GH99278_2 e; +void GH99278_3(int(*p)[]) { + delete p; + // expected-warning@-1 {{'delete' applied to a pointer-to-array type 'int (*)[]' treated as 'delete[]'}} +}; efriedma-quic wrote: Maybe also test delet

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

2025-07-21 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-sles-build-only` running on `rocm-worker-hw-04-sles` while building `clang` at step 5 "compile-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/140/builds/27383 Here is the rel

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

2025-07-21 Thread Slava Zakharin via cfe-commits
@@ -6,8 +6,8 @@ !- ! FRONTEND FLANG DRIVER (flang -fc1) !- -! RUN: %flang_fc1 -fsyntax-only %s 2>&1 | FileCheck %s --allow-empty --check-prefix=WITHOUT -! RUN: not %flang_fc1 -fsyntax-only -fintri

[clang] [CIR] Add support for array constructors (PR #149142)

2025-07-21 Thread Andy Kaylor via cfe-commits
@@ -0,0 +1,70 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fclangir -emit-cir %s -o %t.cir +// RUN: FileCheck --input-file=%t.cir %s -check-prefix=CIR +// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -Wno-unused-value -fclangir -emit-llvm %s -o

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

2025-07-21 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/12] [Flang][Flang-RT][OpenMP] Move builtin .mod generation

[clang] [llvm] Make sanitizer special case list slash-agnostic (PR #149886)

2025-07-21 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-support Author: Devon Loehr (DKLoehr) Changes This changes the glob matcher for the sanitizer special case format so that it treats `/` as matching both forward and back slashes. When dealing with cross-compiles or build systems that don't normali

[clang] [llvm] Make sanitizer special case list slash-agnostic (PR #149886)

2025-07-21 Thread Devon Loehr via cfe-commits
https://github.com/DKLoehr created https://github.com/llvm/llvm-project/pull/149886 This changes the glob matcher for the sanitizer special case format so that it treats `/` as matching both forward and back slashes. When dealing with cross-compiles or build systems that don't normalize slashe

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

2025-07-21 Thread Michael Kruse via cfe-commits
@@ -6,8 +6,8 @@ !- ! FRONTEND FLANG DRIVER (flang -fc1) !- -! RUN: %flang_fc1 -fsyntax-only %s 2>&1 | FileCheck %s --allow-empty --check-prefix=WITHOUT -! RUN: not %flang_fc1 -fsyntax-only -fintri

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

2025-07-21 Thread Fazlay Rabbi via cfe-commits
mdfazlay wrote: > Update OpenMPSupport.rst and release nodes doc I updated the OpenMPSupport.rst file. Please take a look. I was wondering which release note document you are referring to. https://github.com/llvm/llvm-project/pull/149586 ___ cfe-comm

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

2025-07-21 Thread Ayush Pareek via cfe-commits
ayushpareek2003 wrote: According to my understanding, this issue happens because when a standard library header like uses a function-local lambda, the compiler generates a closure type for that lambda sometimes this closure type gets added to the debug info without including its captured vari

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

2025-07-21 Thread Fazlay Rabbi via cfe-commits
https://github.com/mdfazlay updated https://github.com/llvm/llvm-project/pull/149586 >From f0d0bfd20fe598937ff0945dc3b54688e374cdd3 Mon Sep 17 00:00:00 2001 From: Fazlay Rabbi Date: Fri, 18 Jul 2025 13:32:46 -0700 Subject: [PATCH] [OpenMP 6.0] Allow only byref arguments with `need_device_addr`

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

2025-07-21 Thread Matheus Izvekov via cfe-commits
@@ -876,6 +876,15 @@ class ASTContext : public RefCountedBase { QualType getIntTypeForBitwidth(unsigned DestWidth, unsigned Signed) const; + /// getGCCCompatibleIntTypeForBitwidth - + /// sets integer QualTy according to specified details:

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

2025-07-21 Thread Matheus Izvekov via cfe-commits
@@ -12901,25 +12901,9 @@ QualType Sema::GetSignedVectorType(QualType V) { return Context.getExtVectorType(Context.LongLongTy, VTy->getNumElements()); } - if (TypeSize == Context.getTypeSize(Context.Int128Ty)) -return Context.getVectorType(Context.Int128Ty, VTy->getN

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

2025-07-21 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov approved this pull request. LGTM sans the nits already pointed out. Thanks! https://github.com/llvm/llvm-project/pull/148954 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/li

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

2025-07-21 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/148954 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Only implicitly start lifetime of trivially-default-constructible union members (PR #149835)

2025-07-21 Thread Timm Baeder via cfe-commits
@@ -25,11 +25,18 @@ using APSInt = llvm::APSInt; namespace clang { namespace interp { +static bool hasTrivialDefaultCtorParent(const FieldDecl *FD) { + assert(FD); + assert(FD->getParent()->isUnion()); + const auto *CXXRD = dyn_cast(FD->getParent()); + return !CXXRD || CXX

[clang] [PowerPC][CLANG] DMF VSX Vector float GER 2x (rank-2 update) (PR #147383)

2025-07-21 Thread Lei Huang via cfe-commits
@@ -1116,6 +1116,14 @@ UNALIASED_CUSTOM_MMA_BUILTIN(mma_xvbf16ger2, "vW512*VV", "mma,paired-vector-memops") lei137 wrote: will update to use new sub target feature. https://github.com/llvm/llvm-project/pull/147383 __

[clang] [Clang][Driver][ARM] Forward `-Os` and `-Oz` as multilib flags (PR #149819)

2025-07-21 Thread William Huynh via cfe-commits
https://github.com/saturn691 approved this pull request. LGTM, would probably wait for someone who knows more about Clang Driver. https://github.com/llvm/llvm-project/pull/149819 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang] [CIR] Upstream Cast kinds for ComplexType (PR #149717)

2025-07-21 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/149717 >From 8a3e3e87ef31fd347eb70f853a112af5d3c11630 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sun, 20 Jul 2025 16:58:13 +0200 Subject: [PATCH 1/4] [CIR] Upstream Cast kinds for ComplexType --- clang/in

[clang] [Clang] [Driver] Canoncalise `-internal-isystem` include paths (PR #148745)

2025-07-21 Thread via cfe-commits
Sirraide wrote: > The Windows failures look annoying. > > Taking one failure, Driver/aarch64-multilib-pauthabi.c. It contains: > > `// CHECK: "-internal-externc-isystem" > "{{.*}}/usr/include/aarch64-linux-pauthtest"` > > However, on Windows, this has been canonicalized to > `"C:\\_work\\llv

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

2025-07-21 Thread Matheus Izvekov via cfe-commits
@@ -5525,6 +5525,8 @@ static TemplateDeductionResult CheckDeductionConsistency( // FIXME: A substitution can be incomplete on a non-structural part of the // type. Use the canonical type for now, until the TemplateInstantiator can // deal with that. + if (auto *Injected

[clang] Suppress noreturn warning if last statement in a function is a throw (PR #145166)

2025-07-21 Thread Samarth Narang via cfe-commits
snarang181 wrote: > @snarang181 how soon will you be able to address this? This diagnostic keeps > being broken at HEAD, and we need to decide whether this change should be > reverted until you have time to get back to this. I'll prepare a revert for > now and will proceed with it, if I don't

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

2025-07-21 Thread Changpeng Fang via cfe-commits
https://github.com/changpeng closed https://github.com/llvm/llvm-project/pull/149684 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-07-21 Thread Danila Malyutin via cfe-commits
https://github.com/danilaml edited https://github.com/llvm/llvm-project/pull/145059 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

2025-07-21 Thread Danila Malyutin via cfe-commits
https://github.com/danilaml edited https://github.com/llvm/llvm-project/pull/145059 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   >