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

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

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-07-25 Thread Craig Topper via cfe-commits
@@ -0,0 +1,39 @@ +// REQUIRES: riscv-registered-target + +// RUN: %clang_cc1 -triple riscv32 -target-feature +v \ +// RUN: -mvscale-min=2 -mvscale-max=2 -O2 -emit-llvm %s -o - \ +// RUN: | FileCheck %s +// RUN: %clang_cc1 -triple riscv64 -target-feature +v \ +// RUN: -

[clang-tools-extra] [clang-tidy] Add portability-avoid-platform-specific-fundamental-types (PR #146970)

2025-07-25 Thread JJ Marr via cfe-commits
jj-marr wrote: I broke my Gentoo installation during a system update so I haven't been able to work on this PR. TBD on when it'll be fixed. https://github.com/llvm/llvm-project/pull/146970 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https

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

2025-07-25 Thread via cfe-commits
@@ -1,22 +1,22 @@ -// RUN: %clang_cc1 -triple spir64-unknown-unknown-sycldevice -fsycl-is-device -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s -// CHECK: @[[LAMBDA_KERNEL3:[^\w]+]] = private unnamed_addr addrspace(1) constant [[LAMBDA_K3_SIZE:\[[0-9]+ x i8\]]] c"_ZTSZ4m

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-07-25 Thread Brandon Wu via cfe-commits
4vtomat wrote: > Please can you add a LLVM IR test for `llc`? Yeah sure! > I don't think I know enough about the "fixed vectors in scalable vectors" > lowering to know if `splitValueIntoRegisterParts` and > `joinRegisterPartsIntoValue` are correct but they don't seem so wrong at a > glance.

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-07-25 Thread Brandon Wu via cfe-commits
@@ -0,0 +1,39 @@ +// REQUIRES: riscv-registered-target + +// RUN: %clang_cc1 -triple riscv32 -target-feature +v \ +// RUN: -mvscale-min=2 -mvscale-max=2 -O2 -emit-llvm %s -o - \ +// RUN: | FileCheck %s +// RUN: %clang_cc1 -triple riscv64 -target-feature +v \ +// RUN: -

[clang] [clang] Forbid reinterpret_cast of function pointers in constexpr. (PR #150557)

2025-07-25 Thread Timm Baeder via cfe-commits
@@ -3,8 +3,8 @@ // RUN: %clang_cc1 -x c -fsyntax-only %s -verify=c -std=c11 -fexperimental-new-constant-interpreter // RUN: %clang_cc1 -x c -fsyntax-only %s -pedantic -verify=c-pedantic -std=c11 -fexperimental-new-constant-interpreter // -// RUN: %clang_cc1 -x c++ -fsyntax-on

[clang] [HIP] Move HIP to the new driver by default (PR #123359)

2025-07-25 Thread Joseph Huber via cfe-commits
@@ -74,30 +74,6 @@ // O0-CGO2-SAME: "-O0" // O0-CGO2-NOT: "--lto-CGO2" -// ALL-NOT: "{{.*}}opt" jhuber6 wrote: Ideally we can remove it later, mostly was just trying to avoid duplicating all the tests. I guess I could just force this to use the old driver si

[clang] [HIP] Move HIP to the new driver by default (PR #123359)

2025-07-25 Thread Matt Arsenault via cfe-commits
@@ -74,30 +74,6 @@ // O0-CGO2-SAME: "-O0" // O0-CGO2-NOT: "--lto-CGO2" -// ALL-NOT: "{{.*}}opt" arsenm wrote: If the old driver isn't being removed, the tests should have run lines with the new and old version https://github.com/llvm/llvm-project/pull/1233

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-07-25 Thread Brandon Wu via cfe-commits
@@ -24097,12 +24122,17 @@ SDValue RISCVTargetLowering::joinRegisterPartsIntoValue( return Val; } - if (ValueVT.isScalableVector() && PartVT.isScalableVector()) { + if ((ValueVT.isScalableVector() || ValueVT.isFixedLengthVector()) && + PartVT.isScalableVector()) {

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-07-25 Thread Sam Elliott via cfe-commits
https://github.com/lenary commented: Please can you add a LLVM IR test for `llc`? I don't think I know enough about the "fixed vectors in scalable vectors" lowering to know if `splitValueIntoRegisterParts` and `joinRegisterPartsIntoValue` are correct but they don't seem so wrong at a glance.

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-07-25 Thread Craig Topper via cfe-commits
https://github.com/topperc edited https://github.com/llvm/llvm-project/pull/150724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `clang,llvm` at step 3 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/24106 Here is the relevant piece of the build l

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-07-25 Thread Craig Topper via cfe-commits
@@ -23146,10 +23152,24 @@ RISCVTargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI, &RISCV::VRN2M4NoV0RegClass}) { if (TRI->isTypeLegalForClass(*RC, VT.SimpleTy)) return std::make_pair(0U, RC); + + if (VT.isFixedLengthVector(

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-07-25 Thread Craig Topper via cfe-commits
@@ -0,0 +1,39 @@ +// REQUIRES: riscv-registered-target + +// RUN: %clang_cc1 -triple riscv32 -target-feature +v \ +// RUN: -mvscale-min=2 -mvscale-max=2 -O2 -emit-llvm %s -o - \ +// RUN: | FileCheck %s +// RUN: %clang_cc1 -triple riscv64 -target-feature +v \ +// RUN: -

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-07-25 Thread Craig Topper via cfe-commits
@@ -23146,10 +23152,24 @@ RISCVTargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI, &RISCV::VRN2M4NoV0RegClass}) { if (TRI->isTypeLegalForClass(*RC, VT.SimpleTy)) return std::make_pair(0U, RC); + + if (VT.isFixedLengthVector(

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-07-25 Thread Craig Topper via cfe-commits
@@ -24097,12 +24122,17 @@ SDValue RISCVTargetLowering::joinRegisterPartsIntoValue( return Val; } - if (ValueVT.isScalableVector() && PartVT.isScalableVector()) { + if ((ValueVT.isScalableVector() || ValueVT.isFixedLengthVector()) && + PartVT.isScalableVector()) {

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

2025-07-25 Thread Derek Schuff via cfe-commits
https://github.com/dschuff closed https://github.com/llvm/llvm-project/pull/150201 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 15b0368 - [WebAssembly,clang] Add __builtin_wasm_test_function_pointer_signature (#150201)

2025-07-25 Thread via cfe-commits
Author: Hood Chatham Date: 2025-07-25T16:52:39-07:00 New Revision: 15b03687ff655e2e64afb8554645457d2e4cabd7 URL: https://github.com/llvm/llvm-project/commit/15b03687ff655e2e64afb8554645457d2e4cabd7 DIFF: https://github.com/llvm/llvm-project/commit/15b03687ff655e2e64afb8554645457d2e4cabd7.diff

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-07-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brandon Wu (4vtomat) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/150724.diff 2 Files Affected: - (added) clang/test/CodeGen/RISCV/riscv-inline-asm-fixed-length-vector.c (+39) - (modified) llvm/lib/Target/RISCV/RIS

[clang] [llvm] [RISCV][llvm] Support fixed-length vector inline assembly constraints (PR #150724)

2025-07-25 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/150724 None >From 689addb5c3aeffeac70abc69af0ac3b6b48439b8 Mon Sep 17 00:00:00 2001 From: Brandon Wu Date: Fri, 25 Jul 2025 16:49:54 -0700 Subject: [PATCH] [RISCV][llvm] Support fixed-length vector inline assembly co

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

2025-07-25 Thread Anthony Tran via cfe-commits
https://github.com/anthonyhatran updated https://github.com/llvm/llvm-project/pull/145967 >From 50e28ef37cbc120a41a1a6d570758f7f7563291b Mon Sep 17 00:00:00 2001 From: Anthony Tran Date: Thu, 26 Jun 2025 12:40:05 -0700 Subject: [PATCH] Emit trap reasons for UBSan checks --- clang/docs/Release

[clang] [llvm] [ObjCARC] Completely remove ObjCARCAPElimPass (PR #150717)

2025-07-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: AZero13 (AZero13) Changes ObjCARCAPElimPass has been made obsolete now that we remove unused autorelease pools. --- Full diff: https://github.com/llvm/llvm-project/pull/150717.diff 7 Files Affected: - (modified) clang/lib/CodeGen/Backe

[clang] [llvm] [ObjCARC] Completely remove ObjCARCAPElimPass (PR #150717)

2025-07-25 Thread via cfe-commits
https://github.com/AZero13 created https://github.com/llvm/llvm-project/pull/150717 ObjCARCAPElimPass has been made obsolete now that we remove unused autorelease pools. >From 85d32f0a84881412ed782aedda8cea6f1fa17cd8 Mon Sep 17 00:00:00 2001 From: Rose Date: Fri, 25 Jul 2025 19:01:43 -0400 Su

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

2025-07-25 Thread Derek Schuff via cfe-commits
https://github.com/dschuff approved this pull request. https://github.com/llvm/llvm-project/pull/150201 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

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

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

2025-07-25 Thread Derek Schuff via cfe-commits
https://github.com/dschuff updated https://github.com/llvm/llvm-project/pull/150201 >From 6c3c8a1d43b3b06c6b38e8e3d2e00ef2dc5fbc4e Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Mon, 7 Jul 2025 22:50:08 +0200 Subject: [PATCH 01/13] [WebAssembly,clang] Add __builtin_wasm_test_function_pointe

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

2025-07-25 Thread Derek Schuff via cfe-commits
https://github.com/dschuff updated https://github.com/llvm/llvm-project/pull/150201 >From 6c3c8a1d43b3b06c6b38e8e3d2e00ef2dc5fbc4e Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Mon, 7 Jul 2025 22:50:08 +0200 Subject: [PATCH 01/12] [WebAssembly,clang] Add __builtin_wasm_test_function_pointe

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

2025-07-25 Thread Derek Schuff via cfe-commits
https://github.com/dschuff edited https://github.com/llvm/llvm-project/pull/150201 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-25 Thread Derek Schuff via cfe-commits
https://github.com/dschuff approved this pull request. https://github.com/llvm/llvm-project/pull/150201 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP] Move HIP to the new driver by default (PR #123359)

2025-07-25 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 edited https://github.com/llvm/llvm-project/pull/123359 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add proper handling for no prototype function calls (PR #150553)

2025-07-25 Thread Andy Kaylor via cfe-commits
@@ -1729,6 +1783,34 @@ cir::FuncOp CIRGenModule::getOrCreateCIRFunction( invalidLoc ? theModule->getLoc() : getLoc(funcDecl->getSourceRange()), mangledName, mlir::cast(funcType), funcDecl); + // If we already created a function with the same mangled name (but diff

[clang] [clang][Modules] Respect -fno-cxx-modules as a driver flag (PR #150349)

2025-07-25 Thread Cyndy Ishida via cfe-commits
https://github.com/cyndyishida closed https://github.com/llvm/llvm-project/pull/150349 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5ebdfe3 - [clang][Modules] Respect -fno-cxx-modules as a driver flag (#150349)

2025-07-25 Thread via cfe-commits
Author: Cyndy Ishida Date: 2025-07-25T13:17:09-07:00 New Revision: 5ebdfe386e3bb9f959719f76a9ad689f843c2164 URL: https://github.com/llvm/llvm-project/commit/5ebdfe386e3bb9f959719f76a9ad689f843c2164 DIFF: https://github.com/llvm/llvm-project/commit/5ebdfe386e3bb9f959719f76a9ad689f843c2164.diff

[clang] 3e1392f - [OpenACC] Allow sub-arrays in declare/use_device as an extension

2025-07-25 Thread via cfe-commits
Author: erichkeane Date: 2025-07-25T13:16:34-07:00 New Revision: 3e1392fb4b6afa4e1b212d04fb4881656d846736 URL: https://github.com/llvm/llvm-project/commit/3e1392fb4b6afa4e1b212d04fb4881656d846736 DIFF: https://github.com/llvm/llvm-project/commit/3e1392fb4b6afa4e1b212d04fb4881656d846736.diff LO

[clang-tools-extra] [clang-doc] add throws comments to comment template (PR #150649)

2025-07-25 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/150649 >From 35762dd1ecd9a5544bbcc85ab83eb6706aaf6e10 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Thu, 24 Jul 2025 22:10:51 -0700 Subject: [PATCH] [clang-doc] add throws comments to comment template Serialize thr

[clang-tools-extra] [clang-doc] add throws comments to comment template (PR #150649)

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

[clang-tools-extra] [clang-doc] add code comments to comment template (PR #150648)

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

[clang-tools-extra] 4df8f72 - [clang-doc] add code comments to comment template (#150648)

2025-07-25 Thread via cfe-commits
Author: Erick Velez Date: 2025-07-25T13:10:15-07:00 New Revision: 4df8f726087c68d6e654a76839c544b18e4ca70e URL: https://github.com/llvm/llvm-project/commit/4df8f726087c68d6e654a76839c544b18e4ca70e DIFF: https://github.com/llvm/llvm-project/commit/4df8f726087c68d6e654a76839c544b18e4ca70e.diff L

[clang-tools-extra] [clang-doc] add code comments to comment template (PR #150648)

2025-07-25 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/150648 >From 53a7b3dca56a8b040d82c7b00136f74f408112c7 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 23 Jul 2025 12:49:01 -0700 Subject: [PATCH 1/2] [clang-doc] precommit code comments --- .../test/clang-doc/b

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

2025-07-25 Thread Hood Chatham via cfe-commits
hoodmane wrote: @dschuff would appreciate it if you could merge assuming you have no further comments and the addition of the GC feature looks okay. https://github.com/llvm/llvm-project/pull/150201 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

[clang] [flang] [llvm] [IR] Remove size argument from lifetime intrinsics (PR #150248)

2025-07-25 Thread Florian Mayer via cfe-commits
@@ -1462,6 +1462,7 @@ void HWAddressSanitizer::instrumentStack(memtag::StackInfo &SInfo, Value *AICast = IRB.CreatePointerCast(AI, PtrTy); auto HandleLifetime = [&](IntrinsicInst *II) { + // FIXME: Remove this code entirely. fmayer wrote: I just

[clang] [llvm] Trying to fix undefined symbol error caused by iterator variable (PR #141507)

2025-07-25 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: > The reproducer is passing with clang. See https://godbolt.org/z/adnjMndGq The testcase is using -femit-all-decls. I assumed that was just to avoid including some irrelevant bits in the testcase. I guess there could be some interaction with -femit-all-decls specifically

[clang-tools-extra] [clang-doc] add code comments to comment template (PR #150648)

2025-07-25 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/150648 >From 69317a3408c12a8dca4cc40b818dbc8d13517dd1 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 23 Jul 2025 12:49:01 -0700 Subject: [PATCH 1/2] [clang-doc] precommit code comments --- .../test/clang-doc/b

[clang-tools-extra] [clang-doc] add code comments to comment template (PR #150648)

2025-07-25 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/150648 >From ada0fda5da0ad09e1b8baa3c7e17f9820d555764 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 23 Jul 2025 12:49:01 -0700 Subject: [PATCH 1/2] [clang-doc] precommit code comments --- .../test/clang-doc/b

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

2025-07-25 Thread Jonas Hahnfeld via cfe-commits
hahnjo wrote: > Currently running all regression tests to make sure nothing else breaks. Yes, all seems to work fine. > Historically, I believe we may have hit the same problem and our proposal was > to have additional functions to iterate over already loaded specializations: > https://review

[clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

2025-07-25 Thread Paul Kirth via cfe-commits
ilovepi wrote: I ran into a similar problem, and Nikita had to cancel the whole thing (IIRC by closing the PR and then reopening). It was not great, so I normally just merge them one at a time now. https://github.com/llvm/llvm-project/pull/150647 ___

[clang] [CIR] Add support for array cleanups (PR #150499)

2025-07-25 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/150499 >From 13c8a3d27a92808485ed594d7f4f57c3597ee884 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Wed, 23 Jul 2025 11:56:44 -0700 Subject: [PATCH 1/2] [CIR] Initial support for array cleanups This adds initial

[clang] [clang] Forbid reinterpret_cast of function pointers in constexpr. (PR #150557)

2025-07-25 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic updated https://github.com/llvm/llvm-project/pull/150557 >From f111a98680ba2301ee93a45a3c30630c71925562 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Thu, 24 Jul 2025 17:22:27 -0700 Subject: [PATCH 1/3] [clang] Forbid reinterpret_cast of function pointers in

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

2025-07-25 Thread via cfe-commits
ronlieb wrote: Suppressed 5449 warnings (5449 in non-user code). Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well. PLEASE submit a bug report to https://github.com/ROCm/aomp and include the crash backtrace. #0

[clang] [CIR] Add support for -ffine-grained-bitfield-accesses (PR #150687)

2025-07-25 Thread via cfe-commits
https://github.com/Andres-Salamanca edited https://github.com/llvm/llvm-project/pull/150687 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

2025-07-25 Thread Erick Velez via cfe-commits
evelez7 wrote: > @evelez7 Do you have more details on what exactly you did within Graphite? > Did you try to merge multiple PRs in a stack or just the bottom one? I started a stack merge of 3 PRs starting with #150570 and this was supposed to be the 2nd one. The third PR is currently waiting f

[clang] Fine bits (PR #150687)

2025-07-25 Thread via cfe-commits
https://github.com/Andres-Salamanca created https://github.com/llvm/llvm-project/pull/150687 This PR adds support for `-ffine-grained-bitfield-accesses`. I reused the tests from classic CodeGen, available here: [https://github.com/llvm/llvm-project/blob/c2c881fcc85e0c2d7a050b0199d4dadf8f556b9e/

[clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

2025-07-25 Thread Aiden Grossman via cfe-commits
boomanaiden154 wrote: @evelez7 Do you have more details on what exactly you did within Graphite? Did you try to merge multiple PRs in a stack or just the bottom one? https://github.com/llvm/llvm-project/pull/150647 ___ cfe-commits mailing list cfe-com

[clang] [clang] Forbid reinterpret_cast of function pointers in constexpr. (PR #150557)

2025-07-25 Thread Eli Friedman via cfe-commits
@@ -3,8 +3,8 @@ // RUN: %clang_cc1 -x c -fsyntax-only %s -verify=c -std=c11 -fexperimental-new-constant-interpreter // RUN: %clang_cc1 -x c -fsyntax-only %s -pedantic -verify=c-pedantic -std=c11 -fexperimental-new-constant-interpreter // -// RUN: %clang_cc1 -x c++ -fsyntax-on

[clang] [clang] Forbid reinterpret_cast of function pointers in constexpr. (PR #150557)

2025-07-25 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic updated https://github.com/llvm/llvm-project/pull/150557 >From f111a98680ba2301ee93a45a3c30630c71925562 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Thu, 24 Jul 2025 17:22:27 -0700 Subject: [PATCH 1/2] [clang] Forbid reinterpret_cast of function pointers in

[clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

2025-07-25 Thread Aiden Grossman via cfe-commits
boomanaiden154 wrote: > Not sure if you know anything about this but maybe you can point me to > someone who does. I think the newly required CI rules don't play nice with > Graphite auto-merging. Graphites constantly rebases the branch when trying to > merge, which will cause CI to trigger ag

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

2025-07-25 Thread Eli Friedman via cfe-commits
https://github.com/efriedma-quic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/150164 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] add code comments to comment template (PR #150648)

2025-07-25 Thread via cfe-commits
graphite-app[bot] wrote: ### Merge activity * **Jul 25, 7:34 PM UTC**: [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/150648) rebased this pull request, because this pull request is set to merge when ready. https://github.com/llvm/llvm-project/pull/150648 ___

[clang-tools-extra] [clang-doc] add code comments to comment template (PR #150648)

2025-07-25 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/150648 >From 46cb1cd5806aeea6b6f4ad331414a829f9ee2c55 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 23 Jul 2025 12:49:01 -0700 Subject: [PATCH 1/2] [clang-doc] precommit code comments --- .../test/clang-doc/b

[clang-tools-extra] [clang-doc] add code comments to comment template (PR #150648)

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

[clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

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

[clang-tools-extra] 63c2b8a - [clang-doc] add return comments to comment template (#150647)

2025-07-25 Thread via cfe-commits
Author: Erick Velez Date: 2025-07-25T12:32:04-07:00 New Revision: 63c2b8a5b35f552e00f5458307f04ce9a6f4cfff URL: https://github.com/llvm/llvm-project/commit/63c2b8a5b35f552e00f5458307f04ce9a6f4cfff DIFF: https://github.com/llvm/llvm-project/commit/63c2b8a5b35f552e00f5458307f04ce9a6f4cfff.diff L

[clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

2025-07-25 Thread Erick Velez via cfe-commits
evelez7 wrote: The CI was green before I started a stack merge via Graphite. Now it's stuck in this terrible loop so I'm going to bypass the rule and force it to merge. @boomanaiden154 Not sure if you know anything about this but maybe you can point me to someone who does. I think the newly re

[clang] [CIR] Add support for array cleanups (PR #150499)

2025-07-25 Thread Andy Kaylor via cfe-commits
@@ -658,10 +693,38 @@ void CIRGenFunction::emitNullabilityCheck(LValue lhs, mlir::Value rhs, /// elements void CIRGenFunction::emitDestroy(Address addr, QualType type, Destroyer *destroyer) { - if (getContext().getAsArrayType(type)) -cgm

[clang] [clang-format] fix typo in docs (PR #150658)

2025-07-25 Thread via cfe-commits
github-actions[bot] wrote: @haveheartt 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] [clang-format] fix typo in docs (PR #150658)

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

[clang] e772304 - [clang-format] fix typo in docs (#150658)

2025-07-25 Thread via cfe-commits
Author: gui martins Date: 2025-07-25T21:30:25+02:00 New Revision: e77230424fec932b49f54165775e188be70ee75f URL: https://github.com/llvm/llvm-project/commit/e77230424fec932b49f54165775e188be70ee75f DIFF: https://github.com/llvm/llvm-project/commit/e77230424fec932b49f54165775e188be70ee75f.diff L

[clang] [llvm] [DirectX] Validate registers are bound to root signature (PR #146785)

2025-07-25 Thread via cfe-commits
@@ -84,8 +128,150 @@ static void reportOverlappingBinding(Module &M, DXILResourceMap &DRM) { } } +static void reportRegNotBound(Module &M, + llvm::hlsl::rootsig::RangeInfo Unbound) { + SmallString<128> Message; + raw_svector_ostream OS(Message

[clang] [CIR] Add support for array cleanups (PR #150499)

2025-07-25 Thread Andy Kaylor via cfe-commits
@@ -649,6 +649,41 @@ void CIRGenFunction::emitNullabilityCheck(LValue lhs, mlir::Value rhs, assert(!cir::MissingFeatures::sanitizers()); } +/// Destroys all the elements of the given array, beginning from last to first. +/// The array cannot be zero-length. +/// +/// \param

[clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

2025-07-25 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/150647 >From 0236ad0d1d62c35fe7d49c755d537c7c26db4051 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 23 Jul 2025 11:25:05 -0700 Subject: [PATCH 1/2] [clang-doc] precommit return comments test --- .../clang-doc

[clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

2025-07-25 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/150647 >From f6cd98ca40ad539ef586a44c2d17b575df0c8727 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 23 Jul 2025 11:25:05 -0700 Subject: [PATCH 1/2] [clang-doc] precommit return comments test --- .../clang-doc

[clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

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

[clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

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

[clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

2025-07-25 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/150647 >From d793f82c2f86568dbdb9005e18d4835158ac3c85 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 23 Jul 2025 11:25:05 -0700 Subject: [PATCH 1/2] [clang-doc] precommit return comments test --- .../clang-doc

[clang] [clang] Fix issue with FoldingSet and DependentTemplateSpecialization… (PR #150559)

2025-07-25 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman closed https://github.com/llvm/llvm-project/pull/150559 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8b7dc4c - [clang] Fix issue with FoldingSet and DependentTemplateSpecialization… (#150559)

2025-07-25 Thread via cfe-commits
Author: premanandrao Date: 2025-07-25T15:21:30-04:00 New Revision: 8b7dc4cadb622e2b4a13155bffa5cec8c8fb6b8b URL: https://github.com/llvm/llvm-project/commit/8b7dc4cadb622e2b4a13155bffa5cec8c8fb6b8b DIFF: https://github.com/llvm/llvm-project/commit/8b7dc4cadb622e2b4a13155bffa5cec8c8fb6b8b.diff

[clang] [flang] [llvm] [IR] Remove size argument from lifetime intrinsics (PR #150248)

2025-07-25 Thread Nikita Popov via cfe-commits
nikic wrote: I've added a release note. > Also, can we try to land some of the changes separately? I mean, some things > can't land separately, or it would be a pain in the neck to land them > separately because of test changes, but we can at least merge the > SelectionDAG bits and the analys

[clang] [CIR] Implement LValueBitcast for ComplexType (PR #150668)

2025-07-25 Thread Amr Hesham via cfe-commits
@@ -1208,6 +1208,16 @@ cir::GlobalOp CIRGenModule::getGlobalForStringLiteral(const StringLiteral *s, return gv; } +void CIRGenModule::emitExplicitCastExprType(const ExplicitCastExpr *e, +CIRGenFunction *cgf) { + // Bind VLAs in t

[clang] [CIR] Implement LValueBitcast for ComplexType (PR #150668)

2025-07-25 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/150668 >From 2858cdcc7f217e59a5ebf6e6b6afbd3e9bdc6deb Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Fri, 25 Jul 2025 19:49:11 +0200 Subject: [PATCH 1/2] [CIR] Implement LValueBitcast for ComplexType --- clan

[clang] [flang] [llvm] [IR] Remove size argument from lifetime intrinsics (PR #150248)

2025-07-25 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Probably should release note, yes. Also, can we try to land some of the changes separately? I mean, some things can't land separately, or it would be a pain in the neck to land them separately because of test changes, but we can at least merge the SelectionDAG bits and t

[clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

2025-07-25 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/150647 >From 8e02cb5be5a006631177c76ced0f246b82b16745 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 23 Jul 2025 11:25:05 -0700 Subject: [PATCH 1/2] [clang-doc] precommit return comments test --- .../clang-doc

[clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

2025-07-25 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/150647 >From b3aed4f0786a7084908473985d796f21caf58436 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 23 Jul 2025 11:25:05 -0700 Subject: [PATCH 1/2] [clang-doc] precommit return comments test --- .../clang-doc

[clang] [clang-format] fix typo in docs (PR #150658)

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

[clang] [CIR] Implement LValueBitcast for ComplexType (PR #150668)

2025-07-25 Thread Andy Kaylor via cfe-commits
@@ -923,4 +923,129 @@ CIRGenFunction::emitArrayLength(const clang::ArrayType *origArrayType, return builder.getConstInt(*currSrcLoc, SizeTy, countFromCLAs); } +// TODO(cir): most part of this function can be shared between CIRGen andykaylor wrote: ```sugge

[clang] [CIR] Implement LValueBitcast for ComplexType (PR #150668)

2025-07-25 Thread Andy Kaylor via cfe-commits
@@ -923,4 +923,129 @@ CIRGenFunction::emitArrayLength(const clang::ArrayType *origArrayType, return builder.getConstInt(*currSrcLoc, SizeTy, countFromCLAs); } +// TODO(cir): most part of this function can be shared between CIRGen +// and traditional LLVM codegen +void CIRGe

[clang] [CIR] Implement LValueBitcast for ComplexType (PR #150668)

2025-07-25 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor approved this pull request. Looks good, with a few nits. https://github.com/llvm/llvm-project/pull/150668 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Implement LValueBitcast for ComplexType (PR #150668)

2025-07-25 Thread Andy Kaylor via cfe-commits
@@ -1208,6 +1208,16 @@ cir::GlobalOp CIRGenModule::getGlobalForStringLiteral(const StringLiteral *s, return gv; } +void CIRGenModule::emitExplicitCastExprType(const ExplicitCastExpr *e, +CIRGenFunction *cgf) { + // Bind VLAs in t

[clang] [CIR] Implement LValueBitcast for ComplexType (PR #150668)

2025-07-25 Thread Andy Kaylor via cfe-commits
@@ -923,4 +923,129 @@ CIRGenFunction::emitArrayLength(const clang::ArrayType *origArrayType, return builder.getConstInt(*currSrcLoc, SizeTy, countFromCLAs); } +// TODO(cir): most part of this function can be shared between CIRGen +// and traditional LLVM codegen +void CIRGe

[clang] [CIR] Implement LValueBitcast for ComplexType (PR #150668)

2025-07-25 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor edited https://github.com/llvm/llvm-project/pull/150668 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

2025-07-25 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/150647 >From da2b2b0c5b86e7b59d76e51c9fab8b7190d5c885 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 23 Jul 2025 11:25:05 -0700 Subject: [PATCH 1/2] [clang-doc] precommit return comments test --- .../clang-doc

[clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

2025-07-25 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/150647 >From 3c794a9cb237a4236bf72e2307c8a378912e87ef Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 23 Jul 2025 11:25:05 -0700 Subject: [PATCH 1/2] [clang-doc] precommit return comments test --- .../clang-doc

[clang] [CIR] Add support for C++ initializer lists (PR #150681)

2025-07-25 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/150681 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for C++ initializer lists (PR #150681)

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

[clang] [Clang][Driver] Revise Cygwin ToolChain to call linker directly (PR #147960)

2025-07-25 Thread via cfe-commits
jeremyd2019 wrote: > > That said, I also encountered the same issue with BFD-ld (when building > > libc++ with @tyan0's patches from cygwin-packages), so I should try to > > reproduce it again to be sure. It may take a few days to rebuild and > > investigate... > > What I saw is probably a bu

[clang] [CIR] Add support for C++ initializer lists (PR #150681)

2025-07-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes This adds basic support for using C++ initializer lists to initialize fields of a record. --- Full diff: https://github.com/llvm/llvm-project/pull/150681.diff 2 Files Affected: - (modified) clang/lib/CI

[clang] [CIR] Add support for C++ initializer lists (PR #150681)

2025-07-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Andy Kaylor (andykaylor) Changes This adds basic support for using C++ initializer lists to initialize fields of a record. --- Full diff: https://github.com/llvm/llvm-project/pull/150681.diff 2 Files Affected: - (modified) clang/lib/

[clang] [CIR] Add support for C++ initializer lists (PR #150681)

2025-07-25 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/150681 This adds basic support for using C++ initializer lists to initialize fields of a record. >From 37662e274d664c34b09b909c62de943913ee2164 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Thu, 24 Jul 2025 18:

[clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

2025-07-25 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/150647 >From d8b18cba18f13e6842be7adbf96146b438cde0a1 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 23 Jul 2025 11:25:05 -0700 Subject: [PATCH 1/2] [clang-doc] precommit return comments test --- .../clang-doc

[clang-tools-extra] [clang-doc] add return comments to comment template (PR #150647)

2025-07-25 Thread Erick Velez via cfe-commits
https://github.com/evelez7 updated https://github.com/llvm/llvm-project/pull/150647 >From e36ed44bd1780ded258fcc86ea34e82c17a77a24 Mon Sep 17 00:00:00 2001 From: Erick Velez Date: Wed, 23 Jul 2025 11:25:05 -0700 Subject: [PATCH 1/2] [clang-doc] precommit return comments test --- .../clang-doc

  1   2   3   4   >