[clang] [clang]Fix Handle structs exceeding 1EB size limit (PR #146032)

2025-06-26 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff HEAD~1 HEAD --extensions c,cpp -- clang/test/AST/absurdly_big_struct.cpp clang/lib/AS

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

2025-06-26 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat edited https://github.com/llvm/llvm-project/pull/145489 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-06-26 Thread Brandon Wu via cfe-commits
@@ -143,52 +143,82 @@ void __attribute__((riscv_vls_cc)) test_too_large(int32x64_t arg) {} // CHECK-LLVM: define dso_local riscv_vls_cc(256) void @test_too_large_256( noundef %arg.coerce) void __attribute__((riscv_vls_cc(256))) test_too_large_256(int32x64_t arg) {} -// CHECK

[clang] [clang]Fix Handle structs exceeding 1EB size limit (PR #146032)

2025-06-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: kd0608 (Karthikdhondi) Changes When declaring multiple arrays of 1 ExaByte in a struct, the offset can exceed 2EB, causing incorrect struct size reporting (only 1EB). This fix ensures an error is thrown, preventing the generation of incor

[clang] [clang]Fix Handle structs exceeding 1EB size limit (PR #146032)

2025-06-26 Thread via cfe-commits
https://github.com/Karthikdhondi created https://github.com/llvm/llvm-project/pull/146032 When declaring multiple arrays of 1 ExaByte in a struct, the offset can exceed 2EB, causing incorrect struct size reporting (only 1EB). This fix ensures an error is thrown, preventing the generation of in

[clang] [llvm] [mlir] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)

2025-06-26 Thread Adrian Vogelsgesang via cfe-commits
https://github.com/vogelsgesang updated https://github.com/llvm/llvm-project/pull/141937 >From 8fe2bd74609cf0c14466ff82a9c966c07eecd6c8 Mon Sep 17 00:00:00 2001 From: Adrian Vogelsgesang Date: Tue, 27 May 2025 19:36:42 + Subject: [PATCH 1/5] [debuginfo][coro] Emit debug info labels for coro

[clang] [Clang][ByteCode][NFC] Misc minor performance fixes (PR #145988)

2025-06-26 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr approved this pull request. https://github.com/llvm/llvm-project/pull/145988 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)

2025-06-26 Thread Adrian Vogelsgesang via cfe-commits
vogelsgesang wrote: Could you review clang and the coroutine-specific pieces? I think the DWARF and `DILabel` aspects @dwblaikie might be able to give feedback? https://github.com/llvm/llvm-project/pull/141937 ___ cfe-commits mailing list cfe-commits@

[clang] [llvm] [RISCV] Added the MIPS prefetch extensions for MIPS RV64 P8700. (PR #145647)

2025-06-26 Thread via cfe-commits
https://github.com/ukalappa-mips updated https://github.com/llvm/llvm-project/pull/145647 >From 8a1f98820b280b02f0662c7129a078680d67497f Mon Sep 17 00:00:00 2001 From: Umesh Kalappa Date: Wed, 25 Jun 2025 06:58:37 + Subject: [PATCH 1/4] Added prefetch extensions for MIPS RV64 P8700 and enab

[clang] [llvm] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)

2025-06-26 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > @ChuanqiXu9 @dwblaikie please let me know if you feel comfortable reviewing > this change or if we also need input from others 🙂 I like the work but my knowledge to dwarf is limited. But I'd like to approve this if no one gives feedbacks. I do think it is better to move on.

[clang] [llvm] [RISCV] Added the MIPS prefetch extensions for MIPS RV64 P8700. (PR #145647)

2025-06-26 Thread via cfe-commits
https://github.com/ukalappa-mips updated https://github.com/llvm/llvm-project/pull/145647 >From 8a1f98820b280b02f0662c7129a078680d67497f Mon Sep 17 00:00:00 2001 From: Umesh Kalappa Date: Wed, 25 Jun 2025 06:58:37 + Subject: [PATCH 1/4] Added prefetch extensions for MIPS RV64 P8700 and enab

[clang] d829636 - [C++20] [Modules] Don't mark namespace decl as module local declaration

2025-06-26 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2025-06-27T13:35:09+08:00 New Revision: d829636f5d71d8a3771d9f96f22f1fe7507a32ec URL: https://github.com/llvm/llvm-project/commit/d829636f5d71d8a3771d9f96f22f1fe7507a32ec DIFF: https://github.com/llvm/llvm-project/commit/d829636f5d71d8a3771d9f96f22f1fe7507a32ec.diff LO

[clang] [llvm] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)

2025-06-26 Thread Adrian Vogelsgesang via cfe-commits
https://github.com/vogelsgesang updated https://github.com/llvm/llvm-project/pull/141937 >From 8fe2bd74609cf0c14466ff82a9c966c07eecd6c8 Mon Sep 17 00:00:00 2001 From: Adrian Vogelsgesang Date: Tue, 27 May 2025 19:36:42 + Subject: [PATCH 1/4] [debuginfo][coro] Emit debug info labels for coro

[clang] [llvm] AMDGPU: Add MC layer support for load transpose instructions for gfx1250 (PR #146024)

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

[clang] 4729242 - AMDGPU: Add MC layer support for load transpose instructions for gfx1250 (#146024)

2025-06-26 Thread via cfe-commits
Author: Changpeng Fang Date: 2025-06-26T22:30:31-07:00 New Revision: 47292428785fe1b19f5253f1d4d0f229ce18d69a URL: https://github.com/llvm/llvm-project/commit/47292428785fe1b19f5253f1d4d0f229ce18d69a DIFF: https://github.com/llvm/llvm-project/commit/47292428785fe1b19f5253f1d4d0f229ce18d69a.diff

[clang] [llvm] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)

2025-06-26 Thread Adrian Vogelsgesang via cfe-commits
https://github.com/vogelsgesang edited https://github.com/llvm/llvm-project/pull/141937 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)

2025-06-26 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 commented: I love this really. https://github.com/llvm/llvm-project/pull/141937 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)

2025-06-26 Thread Adrian Vogelsgesang via cfe-commits
https://github.com/vogelsgesang updated https://github.com/llvm/llvm-project/pull/141937 >From 8fe2bd74609cf0c14466ff82a9c966c07eecd6c8 Mon Sep 17 00:00:00 2001 From: Adrian Vogelsgesang Date: Tue, 27 May 2025 19:36:42 + Subject: [PATCH 1/5] [debuginfo][coro] Emit debug info labels for coro

[clang] [clang] Use a new constructor of ArrayRef (NFC) (PR #146007)

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

[clang] [llvm] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)

2025-06-26 Thread Adrian Vogelsgesang via cfe-commits
https://github.com/vogelsgesang edited https://github.com/llvm/llvm-project/pull/141937 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)

2025-06-26 Thread Adrian Vogelsgesang via cfe-commits
https://github.com/vogelsgesang updated https://github.com/llvm/llvm-project/pull/141937 >From 8fe2bd74609cf0c14466ff82a9c966c07eecd6c8 Mon Sep 17 00:00:00 2001 From: Adrian Vogelsgesang Date: Tue, 27 May 2025 19:36:42 + Subject: [PATCH 1/4] [debuginfo][coro] Emit debug info labels for coro

[clang] [llvm] AMDGPU: Add MC layer support for load transpose instructions for gfx1250 (PR #146024)

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

[clang] [SystemZ][z/OS] Implement #pragma export (PR #141671)

2025-06-26 Thread Sean Perry via cfe-commits
https://github.com/perry-ca updated https://github.com/llvm/llvm-project/pull/141671 >From 33413248f61e899f6d4dbbddec9c1cec7bf0e44a Mon Sep 17 00:00:00 2001 From: Sean Perry Date: Fri, 23 May 2025 04:36:46 + Subject: [PATCH 1/4] #pragma export support --- clang/docs/ReleaseNotes.rst

[clang] [llvm] [RISCV] Added the MIPS prefetch extensions for MIPS RV64 P8700. (PR #145647)

2025-06-26 Thread via cfe-commits
@@ -1523,6 +1524,10 @@ bool RISCVAsmParser::matchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode, return generateImmOutOfRangeError( Operands, ErrorInfo, 0, (1 << 8) - 8, "immediate must be a multiple of 8 bytes in the range"); + case Match_InvalidUImm9:

[clang] [llvm] [RISCV] Added the MIPS prefetch extensions for MIPS RV64 P8700. (PR #145647)

2025-06-26 Thread via cfe-commits
@@ -103,9 +109,41 @@ class SWPFormat let Inst{6-0} = OPC_CUSTOM_0.Value; } +// Prefetch format. +let hasSideEffects = 0, mayLoad = 1, mayStore = 1 in +class Mips_prefetch_ri +: RVInst { + bits<9> imm9; + bits<5> rs1; + bits<5> hint; + + let Inst{31-29} = 0b000; + le

[clang] [llvm] [RISCV] Added the MIPS prefetch extensions for MIPS RV64 P8700. (PR #145647)

2025-06-26 Thread via cfe-commits
https://github.com/ukalappa-mips edited https://github.com/llvm/llvm-project/pull/145647 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Added the MIPS prefetch extensions for MIPS RV64 P8700. (PR #145647)

2025-06-26 Thread via cfe-commits
@@ -2925,6 +2925,49 @@ bool RISCVDAGToDAGISel::SelectAddrRegImm(SDValue Addr, SDValue &Base, return true; } +/// Similar to SelectAddrRegImm, except that the offset restricted for +/// unsinged nine bits. +bool RISCVDAGToDAGISel::SelectAddrRegImm9(SDValue Addr, SDValue &Bas

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

2025-06-26 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/145166 >From 602b472aadebe365cb9f499ce85687a5e31605b8 Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Sat, 21 Jun 2025 08:42:00 -0400 Subject: [PATCH 1/7] Suppress noreturn warning if last statement in a functio

[clang] [clang-format][NFC] Remove `\brief` from comments (PR #145853)

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

[clang] f2f17e5 - [clang-format][NFC] Remove `\brief` from comments (#145853)

2025-06-26 Thread via cfe-commits
Author: Owen Pan Date: 2025-06-26T19:14:34-07:00 New Revision: f2f17e563df9d79bd3319c12d95bab5c66fc34d8 URL: https://github.com/llvm/llvm-project/commit/f2f17e563df9d79bd3319c12d95bab5c66fc34d8 DIFF: https://github.com/llvm/llvm-project/commit/f2f17e563df9d79bd3319c12d95bab5c66fc34d8.diff LOG:

[clang] [clang-format] Fix an off-by-1 bug with -length option (PR #143302)

2025-06-26 Thread Owen Pan via cfe-commits
@@ -296,12 +296,16 @@ static bool fillRanges(MemoryBuffer *Code, } if (!EmptyLengths) Length = Lengths[I]; +if (Length == 0) { + errs() << "error: length should be at least 1\n"; + return true; +} if (Offset + Length > CodeSize) { err

[clang] [llvm] [AMDGPU] Add alignment attr & propagate alignment through make.buffer.rsrc inst (PR #145278)

2025-06-26 Thread via cfe-commits
https://github.com/Shoreshen updated https://github.com/llvm/llvm-project/pull/145278 >From 888df5412b37bd3f232bdb38c9f89786d042fe75 Mon Sep 17 00:00:00 2001 From: shore <372660...@qq.com> Date: Mon, 23 Jun 2025 14:12:15 +0800 Subject: [PATCH 1/5] Add alignment attr & propagate alignment through

[clang] [llvm] Non constant size and offset in DWARF (PR #141106)

2025-06-26 Thread Nathan Chancellor via cfe-commits
nathanchance wrote: I am seeing an assertion failure when building the Linux kernel for aarch64 with LTO enabled. `cvise` spits out: ``` $ cat hda_bind.i void snd_hda_codec_shutdown(); void hda_codec_driver_shutdown() { snd_hda_codec_shutdown(); } $ cat hda_codec.i struct { int mfg; } hda_se

[clang] [ExtractAPI] Include tilde in destructor name (PR #146001)

2025-06-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Prajwal Nadig (snprajwal) Changes The subheading for a destructor contained only the identifier. The tilde must also be included as it is necessary to differentiate the destructor from any constructors present. rdar://129587608 --- Full

[clang] [ExtractAPI] Include tilde in destructor name (PR #146001)

2025-06-26 Thread Prajwal Nadig via cfe-commits
https://github.com/snprajwal created https://github.com/llvm/llvm-project/pull/146001 The subheading for a destructor contained only the identifier. The tilde must also be included as it is necessary to differentiate the destructor from any constructors present. rdar://129587608 >From a1d27f

[clang] [llvm] [RISCV] Added the MIPS prefetch extensions for MIPS RV64 P8700. (PR #145647)

2025-06-26 Thread Min-Yih Hsu via cfe-commits
@@ -2925,6 +2925,49 @@ bool RISCVDAGToDAGISel::SelectAddrRegImm(SDValue Addr, SDValue &Base, return true; } +/// Similar to SelectAddrRegImm, except that the offset restricted for +/// unsinged nine bits. +bool RISCVDAGToDAGISel::SelectAddrRegImm9(SDValue Addr, SDValue &Bas

[clang] [llvm] [RISCV] Added the MIPS prefetch extensions for MIPS RV64 P8700. (PR #145647)

2025-06-26 Thread Min-Yih Hsu via cfe-commits
@@ -0,0 +1,32 @@ +; RUN: llc -mtriple=riscv32 -mattr=+xmipscbop -mattr=+m -verify-machineinstrs < %s \ mshockwave wrote: Though this is a small test, I would still recommend to use UTC (utils/update_llc_test_checks.py) to generate the FileCheck CHECKS https://

[clang] [llvm] [RISCV] Added the MIPS prefetch extensions for MIPS RV64 P8700. (PR #145647)

2025-06-26 Thread Min-Yih Hsu via cfe-commits
@@ -0,0 +1,32 @@ +; RUN: llc -mtriple=riscv32 -mattr=+xmipscbop -mattr=+m -verify-machineinstrs < %s \ +; RUN: | FileCheck %s -check-prefix=RV32XMIPSPREFETCH +; RUN: llc -mtriple=riscv64 -mattr=+xmipscbop -mattr=+m -verify-machineinstrs < %s \ +; RUN: | FileCheck %s -check-p

[clang] [Clang][AArch64] _interlockedbittestand{set,reset}64_{acq,rel,nf} support for AArch64 (PR #145980)

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

[clang] [clang][docs] Fix typo in -fapinotes-modules option. (PR #145907)

2025-06-26 Thread Ryan Mansfield via cfe-commits
rjmansfield wrote: Thank you. Please merge on my behalf. https://github.com/llvm/llvm-project/pull/145907 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][AArch64] _interlockedbittestand{set,reset}64_{acq,rel,nf} support for AArch64 (PR #145980)

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

[clang] [CIR] Add support for retrieving bitfield member (PR #145971)

2025-06-26 Thread via cfe-commits
Andres-Salamanca wrote: I initially split this out because I also need to introduce a BitfieldInfoAttr, and combining everything in one patch would make it quite long. That said, I was already working on this in another branch, so I’ll go ahead and bring that code over and include get_bitfield

[clang] Reland [Driver] Add support for GCC installation detection in Baremetal toolchain (PR #145390)

2025-06-26 Thread Garvit Gupta via cfe-commits
quic-garvgupt wrote: > > Triggering a force build will help verify that the fix is effective and > > does not cause any further buildbot failures. Please ensure that PR #145390 > > and PR #144649 are applied in sequence to avoid any merge conflicts > > I couldn't apply the patch for 144649 aft

[clang] [Clang] [CodeGen] UBSan Trap Reasons (PR #145967)

2025-06-26 Thread Anthony Tran via cfe-commits
https://github.com/anthonyhatran 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] Reland [Driver] Add support for crtbegin.o, crtend.o and libgloss lib to BareMetal toolchain object (PR #144649)

2025-06-26 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt updated https://github.com/llvm/llvm-project/pull/144649 >From 296df79cb9e9696daa926267c8a9a853930fdc46 Mon Sep 17 00:00:00 2001 From: Garvit Gupta Date: Tue, 17 Jun 2025 21:43:17 +0530 Subject: [PATCH 1/2] Reland [Driver] Add support for GCC installation detec

[clang] [CIR] Add support for retrieving bitfield member (PR #145971)

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

[clang] [Clang] [CodeGen] UBSan Trap Reasons (PR #145967)

2025-06-26 Thread Anthony Tran via cfe-commits
https://github.com/anthonyhatran 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] [CIR] Get Lvalue for bit-field (PR #145971)

2025-06-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (Andres-Salamanca) Changes This PR adds support for retrieving a bitfield member. It obtains the member in which the bitfield is packed but does not emit the load operation, as the address will be computed later using the get_bitfiel

[clang] [CIR] Get Lvalue for bit-field (PR #145971)

2025-06-26 Thread via cfe-commits
https://github.com/Andres-Salamanca created https://github.com/llvm/llvm-project/pull/145971 This PR adds support for retrieving a bitfield member. It obtains the member in which the bitfield is packed but does not emit the load operation, as the address will be computed later using the get_bi

[clang] [Clang] [CodeGen] UBSan Trap Reasons (PR #145967)

2025-06-26 Thread Anthony Tran via cfe-commits
anthonyhatran wrote: Anyways, to address Dan's comments, I changed all test cases so that they utilize `clang_cc1` instead of `clang`. This also meant that I had to change any `-fsanitize=undefined` and `-fsanitize-trap=undefined` to the specific check since `undefined` is a check grouping and

[clang] Gsoc ubsan trap reason v2 (PR #145967)

2025-06-26 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

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

2025-06-26 Thread Louis Dionne 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

[clang] Reland [Driver] Add support for crtbegin.o, crtend.o and libgloss lib to BareMetal toolchain object (PR #144649)

2025-06-26 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt updated https://github.com/llvm/llvm-project/pull/144649 >From 296df79cb9e9696daa926267c8a9a853930fdc46 Mon Sep 17 00:00:00 2001 From: Garvit Gupta Date: Tue, 17 Jun 2025 21:43:17 +0530 Subject: [PATCH 1/2] Reland [Driver] Add support for GCC installation detec

[clang] [Clang] [CodeGen] UBSan Trap Reasons (PR #145967)

2025-06-26 Thread Anthony Tran via cfe-commits
https://github.com/anthonyhatran 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] Gsoc ubsan trap reason v2 (PR #145967)

2025-06-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: Anthony Tran (anthonyhatran) Changes --- Patch is 25.66 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/145967.diff 26 Files Affected: - (modified) clang/lib/CodeGen/CGExpr.cpp (+98-

[clang] Gsoc ubsan trap reason v2 (PR #145967)

2025-06-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Anthony Tran (anthonyhatran) Changes --- Patch is 25.66 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/145967.diff 26 Files Affected: - (modified) clang/lib/CodeGen/CGExpr.cpp (+98-2) - (a

[clang] Gsoc ubsan trap reason v2 (PR #145967)

2025-06-26 Thread Anthony Tran via cfe-commits
https://github.com/anthonyhatran created https://github.com/llvm/llvm-project/pull/145967 None >From 7bdb672ef70687575b93d099ccfe261eec66d006 Mon Sep 17 00:00:00 2001 From: Anthony Tran Date: Thu, 26 Jun 2025 12:40:05 -0700 Subject: [PATCH 1/2] Addressed most of Dan's comments and added remain

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

2025-06-26 Thread Louis Dionne via cfe-commits
https://github.com/ldionne approved this pull request. 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] [SystemZ][z/OS] Implement #pragma export (PR #141671)

2025-06-26 Thread Sean Perry via cfe-commits
https://github.com/perry-ca updated https://github.com/llvm/llvm-project/pull/141671 >From 33413248f61e899f6d4dbbddec9c1cec7bf0e44a Mon Sep 17 00:00:00 2001 From: Sean Perry Date: Fri, 23 May 2025 04:36:46 + Subject: [PATCH 1/3] #pragma export support --- clang/docs/ReleaseNotes.rst

[clang] Reland [Driver] Add support for crtbegin.o, crtend.o and libgloss lib to BareMetal toolchain object (PR #144649)

2025-06-26 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt updated https://github.com/llvm/llvm-project/pull/144649 >From e22e920750fa4c5ca98172c2f390640bc42d16ea Mon Sep 17 00:00:00 2001 From: Garvit Gupta Date: Tue, 17 Jun 2025 21:43:17 +0530 Subject: [PATCH 1/2] Reland [Driver] Add support for GCC installation detec

[clang] Reland [Driver] Add support for crtbegin.o, crtend.o and libgloss lib to BareMetal toolchain object (PR #144649)

2025-06-26 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt updated https://github.com/llvm/llvm-project/pull/144649 >From e22e920750fa4c5ca98172c2f390640bc42d16ea Mon Sep 17 00:00:00 2001 From: Garvit Gupta Date: Tue, 17 Jun 2025 21:43:17 +0530 Subject: [PATCH 1/2] Reland [Driver] Add support for GCC installation detec

[clang-tools-extra] [clang-doc] refactor BitcodeReader::readSubBlock (PR #145835)

2025-06-26 Thread Paul Kirth via cfe-commits
@@ -800,11 +800,37 @@ llvm::Error ClangDocBitcodeReader::readBlock(unsigned ID, T I) { } } -// TODO: Create a helper that can receive a function to reduce repetition for -// most blocks. +template +llvm::Error ClangDocBitcodeReader::handleSubBlock(unsigned ID, T Parent, +

[clang] Reland [Driver] Add support for crtbegin.o, crtend.o and libgloss lib to BareMetal toolchain object (PR #144649)

2025-06-26 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt updated https://github.com/llvm/llvm-project/pull/144649 >From 22fca1c6a0a9fd26509720800a0244e824effc41 Mon Sep 17 00:00:00 2001 From: Garvit Gupta Date: Tue, 17 Jun 2025 22:49:55 +0530 Subject: [PATCH] [Driver] Add support for crtbegin.o, crtend.o and libgloss

[clang] [clang] ms-abi: member pointer inheritance model lock-down fix (PR #145958)

2025-06-26 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov closed https://github.com/llvm/llvm-project/pull/145958 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a9ed84b - [clang] ms-abi: member pointer inheritance model lock-down fix (#145958)

2025-06-26 Thread via cfe-commits
Author: Matheus Izvekov Date: 2025-06-26T17:30:43-03:00 New Revision: a9ed84b61808f208bfdd7fa3b96d7f8d3f8928bb URL: https://github.com/llvm/llvm-project/commit/a9ed84b61808f208bfdd7fa3b96d7f8d3f8928bb DIFF: https://github.com/llvm/llvm-project/commit/a9ed84b61808f208bfdd7fa3b96d7f8d3f8928bb.dif

[clang] Reland [Driver] Add support for crtbegin.o, crtend.o and libgloss lib to BareMetal toolchain object (PR #144649)

2025-06-26 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt updated https://github.com/llvm/llvm-project/pull/144649 >From 36f8e160dfad059fdada0a00b5cdc20dde0076c0 Mon Sep 17 00:00:00 2001 From: Garvit Gupta Date: Tue, 17 Jun 2025 22:49:55 +0530 Subject: [PATCH] [Driver] Add support for crtbegin.o, crtend.o and libgloss

[clang] d699fbd - [OpenACC][Docs] Add a release note for Clang 21 (#145938)

2025-06-26 Thread via cfe-commits
Author: Erich Keane Date: 2025-06-26T13:17:22-07:00 New Revision: d699fbd2033e291e8d658777d76b3b9ae1652f44 URL: https://github.com/llvm/llvm-project/commit/d699fbd2033e291e8d658777d76b3b9ae1652f44 DIFF: https://github.com/llvm/llvm-project/commit/d699fbd2033e291e8d658777d76b3b9ae1652f44.diff L

[clang] [OpenACC][Docs] Add a release note for Clang 21 (PR #145938)

2025-06-26 Thread Erich Keane via cfe-commits
https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/145938 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] ms-abi: member pointer inheritance model lock-down fix (PR #145958)

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

[clang] [llvm] Fix Windows EH IP2State tables (remove +1 bias) (PR #144745)

2025-06-26 Thread via cfe-commits
@@ -0,0 +1,182 @@ +// REQUIRES: x86-registered-target + +// RUN: %clang_cl -c --target=x86_64-windows-msvc /EHa -O2 /GS- \ +// RUN: -Xclang=-import-call-optimization \ +// RUN: /clang:-S /clang:-o- %s 2>&1 \ +// RUN: | FileCheck %s + +#ifdef __clang__ +#define NO_TAIL __attr

[clang] [clang] ms-abi: member pointer inheritance model lock-down fix (PR #145958)

2025-06-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matheus Izvekov (mizvekov) Changes Lock down the inheritance model for member pointers even when converting from nullptr. This fixes a regression introduced in https://github.com/llvm/llvm-project/pull/131966 There are no release notes,

[clang] [clang] ms-abi: member pointer inheritance model lock-down fix (PR #145958)

2025-06-26 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov created https://github.com/llvm/llvm-project/pull/145958 Lock down the inheritance model for member pointers even when converting from nullptr. This fixes a regression introduced in https://github.com/llvm/llvm-project/pull/131966 There are no release notes, since

[clang] [llvm] [NFC][analyzer] Remove Z3-as-constraint-manager hacks from lit test code (PR #145731)

2025-06-26 Thread Balazs Benics via cfe-commits
=?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy , =?utf-8?q?Donát?= Nagy Message-ID: In-Reply-To: steakhal wrote: @mgorny I'm no longer available. Could you or anyone revert this or disable the failing tests using an "UNSPUPPORTED: *"? https://github.com/llvm/llvm-pr

[clang] Reland [Driver] Add support for GCC installation detection in Baremetal toolchain (PR #145390)

2025-06-26 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt updated https://github.com/llvm/llvm-project/pull/145390 >From 296df79cb9e9696daa926267c8a9a853930fdc46 Mon Sep 17 00:00:00 2001 From: Garvit Gupta Date: Tue, 17 Jun 2025 21:43:17 +0530 Subject: [PATCH] Reland [Driver] Add support for GCC installation detection

[clang] [Clang][Driver][SamplePGO] Enable -fsample-profile-use-profi for SamplePGO (PR #145957)

2025-06-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nilanjana Basu (nilanjana87) Changes - Enable -fsample-profile-use-profi flag by default for SamplePGO - Add -fno_sample_profile_use_profi flag for opting out Discourse conversation: https://discourse.llvm.org/t/turn-on-fsample-profile-us

[clang] [Clang][Driver][SamplePGO] Enable -fsample-profile-use-profi for SamplePGO (PR #145957)

2025-06-26 Thread Nilanjana Basu via cfe-commits
https://github.com/nilanjana87 ready_for_review https://github.com/llvm/llvm-project/pull/145957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Driver][SamplePGO] Enable -fsample-profile-use-profi for SamplePGO (PR #145957)

2025-06-26 Thread Nilanjana Basu via cfe-commits
https://github.com/nilanjana87 edited https://github.com/llvm/llvm-project/pull/145957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add basic support for operator new (PR #145802)

2025-06-26 Thread Andy Kaylor via cfe-commits
@@ -95,6 +95,7 @@ CIRGenModule::CIRGenModule(mlir::MLIRContext &mlirContext, // TODO(CIR): Should be updated once TypeSizeInfoAttr is upstreamed const unsigned sizeTypeSize = astContext.getTypeSize(astContext.getSignedSizeType()); + SizeSizeInBytes = astContext.toCha

[clang] [SystemZ][z/OS] Implement #pragma export (PR #141671)

2025-06-26 Thread Sean Perry via cfe-commits
perry-ca wrote: > I only made it through the first bit of hte implementation, but parsing > doesn't seem right to me, it doesn't recovery nicely as far as I can tell. > > AS far as the design here, it isn't clear to me how this manages all of the > C++ lookup/scoping/etc, and I don't see how t

[clang] Reland [Driver] Add support for GCC installation detection in Baremetal toolchain (PR #145390)

2025-06-26 Thread Garvit Gupta via cfe-commits
https://github.com/quic-garvgupt updated https://github.com/llvm/llvm-project/pull/145390 >From 20b2dca466710dc44afacd91ea691f3b02137736 Mon Sep 17 00:00:00 2001 From: Garvit Gupta Date: Tue, 17 Jun 2025 21:43:17 +0530 Subject: [PATCH] Reland [Driver] Add support for GCC installation detection

[clang] [SystemZ][z/OS] Implement _Export keyword (PR #140944)

2025-06-26 Thread Abhina Sree via cfe-commits
https://github.com/abhina-sree approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/140944 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] refactor BitcodeReader::readSubBlock (PR #145835)

2025-06-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Erick Velez (evelez7) Changes Reduce boilerplate code in readSubBlock by creating a callable from a higher-order lambda based on the block's add need. --- Full diff: https://github.com/llvm/llvm-project/pull/145835.diff 2 Fi

[clang] [Clang][Driver][SamplePGO] Enable -fsample-profile-use-profi for SamplePGO (PR #145957)

2025-06-26 Thread Nilanjana Basu via cfe-commits
https://github.com/nilanjana87 created https://github.com/llvm/llvm-project/pull/145957 - Enable -fsample-profile-use-profi flag by default for SamplePGO - Add -fno_sample_profile_use_profi flag for opting out >From f0893f3b64661fc5a6ab39e7bdcc86a9142221a1 Mon Sep 17 00:00:00 2001 From: Nilanja

[clang-tools-extra] [clang-doc] refactor BitcodeReader::readSubBlock (PR #145835)

2025-06-26 Thread Erick Velez via cfe-commits
https://github.com/evelez7 ready_for_review https://github.com/llvm/llvm-project/pull/145835 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Fix Windows EH IP2State tables (remove +1 bias) (PR #144745)

2025-06-26 Thread via cfe-commits
@@ -0,0 +1,182 @@ +// REQUIRES: x86-registered-target + +// RUN: %clang_cl -c --target=x86_64-windows-msvc /EHa -O2 /GS- \ +// RUN: -Xclang=-import-call-optimization \ +// RUN: /clang:-S /clang:-o- %s 2>&1 \ sivadeilra wrote: Added `--` https://github.com/ll

[clang] [llvm] Fix Windows EH IP2State tables (remove +1 bias) (PR #144745)

2025-06-26 Thread via cfe-commits
@@ -151,6 +151,8 @@ class LLVM_LIBRARY_VISIBILITY X86AsmPrinter : public AsmPrinter { MCSymbol *LazyPointer) override; void emitCallInstruction(const llvm::MCInst &MCI); + bool needsNopAfterCallForWindowsEH(const MachineInstr *MI); + vo

[clang] [SystemZ][z/OS] Implement #pragma export (PR #141671)

2025-06-26 Thread Sean Perry via cfe-commits
@@ -568,6 +574,11 @@ void Parser::initializePragmaHandlers() { MaxTokensTotalPragmaHandler = std::make_unique(); PP.AddPragmaHandler("clang", MaxTokensTotalPragmaHandler.get()); + if (getLangOpts().ZOSExt) { perry-ca wrote: This pragma duplicates on a l

[clang] [llvm] Fix Windows EH IP2State tables (remove +1 bias) (PR #144745)

2025-06-26 Thread via cfe-commits
https://github.com/sivadeilra updated https://github.com/llvm/llvm-project/pull/144745 >From 96a38d322c48eac1b40221c71c6542cf565143bb Mon Sep 17 00:00:00 2001 From: Arlie Davis Date: Fri, 13 Jun 2025 12:45:34 -0700 Subject: [PATCH] Fix IP2State tables style: revert one change Adjust tests ad

[clang] [SystemZ][z/OS] Implement _Export keyword (PR #140944)

2025-06-26 Thread Sean Perry via cfe-commits
perry-ca wrote: gentle ping. Thanks https://github.com/llvm/llvm-project/pull/140944 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [SystemZ][zOS] disable _Float16 support on z/OS (PR #145532)

2025-06-26 Thread Sean Perry via cfe-commits
https://github.com/perry-ca closed https://github.com/llvm/llvm-project/pull/145532 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] a0c5f19 - [SystemZ][zOS] disable _Float16 support on z/OS (#145532)

2025-06-26 Thread via cfe-commits
Author: Sean Perry Date: 2025-06-26T15:21:04-04:00 New Revision: a0c5f1992d2188dd58987445aa00a55edad2357f URL: https://github.com/llvm/llvm-project/commit/a0c5f1992d2188dd58987445aa00a55edad2357f DIFF: https://github.com/llvm/llvm-project/commit/a0c5f1992d2188dd58987445aa00a55edad2357f.diff LO

[clang-tools-extra] [clang-doc] refactor BitcodeReader::readSubBlock (PR #145835)

2025-06-26 Thread Erick Velez via cfe-commits
@@ -800,11 +800,37 @@ llvm::Error ClangDocBitcodeReader::readBlock(unsigned ID, T I) { } } -// TODO: Create a helper that can receive a function to reduce repetition for -// most blocks. +template +llvm::Error ClangDocBitcodeReader::handleSubBlock(unsigned ID, T Parent, +

[clang] [llvm] [clang][python][test] Move python binding tests to lit framework (PR #145855)

2025-06-26 Thread Rainer Orth via cfe-commits
rorth wrote: I'm tired of this constant churn: couldn't you have waited a bit longer? This is just spare-time work, not a paid job. https://github.com/llvm/llvm-project/pull/145855 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists

[clang-tools-extra] [clang-doc] refactor BitcodeReader::readSubBlock (PR #145835)

2025-06-26 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi edited https://github.com/llvm/llvm-project/pull/145835 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] refactor BitcodeReader::readSubBlock (PR #145835)

2025-06-26 Thread Paul Kirth via cfe-commits
@@ -800,11 +800,37 @@ llvm::Error ClangDocBitcodeReader::readBlock(unsigned ID, T I) { } } -// TODO: Create a helper that can receive a function to reduce repetition for -// most blocks. +template +llvm::Error ClangDocBitcodeReader::handleSubBlock(unsigned ID, T Parent, +

[clang-tools-extra] [clang-doc] refactor BitcodeReader::readSubBlock (PR #145835)

2025-06-26 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi approved this pull request. LGTM, modulo the one Q. https://github.com/llvm/llvm-project/pull/145835 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [clang][python][test] Move python binding tests to lit framework (PR #145855)

2025-06-26 Thread via cfe-commits
dyung wrote: Apologies @rorth, I've reverted your change in b0500f56c8b6b8dd21c4689cc6aa90d4d5ed7cfb to get the bot back to green. If you need some help testing a revised solution, please do let me know. https://github.com/llvm/llvm-project/pull/145855 _

[clang] [llvm] Revert "[clang][python][test] Move python binding tests to lit framework" (PR #145951)

2025-06-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (dyung) Changes Reverts llvm/llvm-project#145855 The test added is XPASS-ing on a bot: https://lab.llvm.org/buildbot/#/builders/144/builds/28623 --- Full diff: https://github.com/llvm/llvm-project/pull/145951.diff 40 Files Affecte

[clang] [llvm] Revert "[clang][python][test] Move python binding tests to lit framework" (PR #145951)

2025-06-26 Thread via cfe-commits
https://github.com/dyung closed https://github.com/llvm/llvm-project/pull/145951 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b0500f5 - Revert "[clang][python][test] Move python binding tests to lit framework" (#145951)

2025-06-26 Thread via cfe-commits
Author: dyung Date: 2025-06-26T15:02:14-04:00 New Revision: b0500f56c8b6b8dd21c4689cc6aa90d4d5ed7cfb URL: https://github.com/llvm/llvm-project/commit/b0500f56c8b6b8dd21c4689cc6aa90d4d5ed7cfb DIFF: https://github.com/llvm/llvm-project/commit/b0500f56c8b6b8dd21c4689cc6aa90d4d5ed7cfb.diff LOG: Re

  1   2   3   4   5   >