[clang] da65685 - [clang][bytecode][NFC] Remove FunctionPointer leftovers (#155761)

2025-08-27 Thread via cfe-commits
Author: Timm Baeder Date: 2025-08-28T08:53:45+02:00 New Revision: da656858936fef99e7e6d7ee6f775aa812d49530 URL: https://github.com/llvm/llvm-project/commit/da656858936fef99e7e6d7ee6f775aa812d49530 DIFF: https://github.com/llvm/llvm-project/commit/da656858936fef99e7e6d7ee6f775aa812d49530.diff L

[clang] [clang][bytecode][NFC] Remove FunctionPointer leftovers (PR #155761)

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

[clang] [flang] [llvm] [mlir] [IR][CodeGen] Remove "approx-func-fp-math" attribute (PR #155740)

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

[clang] [flang] [llvm] [mlir] [IR][CodeGen] Remove "approx-func-fp-math" attribute (PR #155740)

2025-08-27 Thread via cfe-commits
https://github.com/paperchalice updated https://github.com/llvm/llvm-project/pull/155740 >From b7f753a952b75256991f6b1e76088bd23a7b1849 Mon Sep 17 00:00:00 2001 From: PaperChalice Date: Thu, 28 Aug 2025 11:25:39 +0800 Subject: [PATCH 1/4] [IR][CodeGen] Remove "approx-func-fp-math" attribute --

[clang] 02ade22 - [clang][bytecode] Avoid copying APValue into EvaluationResult (#155757)

2025-08-27 Thread via cfe-commits
Author: Timm Baeder Date: 2025-08-28T08:46:06+02:00 New Revision: 02ade22aa824597b31c1eaaa041830ff54e5b71c URL: https://github.com/llvm/llvm-project/commit/02ade22aa824597b31c1eaaa041830ff54e5b71c DIFF: https://github.com/llvm/llvm-project/commit/02ade22aa824597b31c1eaaa041830ff54e5b71c.diff L

[clang-tools-extra] Add WarnOnModificationOfCopiedLoopVariable to performance-for-range-c… (PR #155731)

2025-08-27 Thread Baranov Victor via cfe-commits
vbvictor wrote: As an alternative solution, your Idea can be a separate check but you should file an issue first to gather some initial feedback. https://github.com/llvm/llvm-project/pull/155731 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang][bytecode] Avoid copying APValue into EvaluationResult (PR #155757)

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

[clang] [Driver] Enable outline atomics for OpenBSD/aarch64 (PR #155713)

2025-08-27 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-quick` running on `linaro-clang-aarch64-quick` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/65/builds/21880 Here is the relevant pie

[libunwind] [libunwind] fix pc range condition check bug (PR #154902)

2025-08-27 Thread Wu Yingcong via cfe-commits
https://github.com/yingcong-wu updated https://github.com/llvm/llvm-project/pull/154902 >From 57ebc553828bf696b4bde30789e609ba96e94d6d Mon Sep 17 00:00:00 2001 From: Wu Yingcong Date: Fri, 22 Aug 2025 15:16:47 +0800 Subject: [PATCH 1/5] fix missing by one bug --- libunwind/src/DwarfParser.hpp

[libunwind] [libunwind] fix pc range condition check bug (PR #154902)

2025-08-27 Thread Wu Yingcong via cfe-commits
https://github.com/yingcong-wu updated https://github.com/llvm/llvm-project/pull/154902 >From 57ebc553828bf696b4bde30789e609ba96e94d6d Mon Sep 17 00:00:00 2001 From: Wu Yingcong Date: Fri, 22 Aug 2025 15:16:47 +0800 Subject: [PATCH 1/4] fix missing by one bug --- libunwind/src/DwarfParser.hpp

[clang] [clang][bytecode] Speed up `EvaluationResult::CheckArrayInitialized()` (PR #155756)

2025-08-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/155756 >From bbe785eb324a33b8d43a48439a09c03401595e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Thu, 28 Aug 2025 06:02:54 +0200 Subject: [PATCH] ElementsInitialized --- clang/lib/AST/ByteCod

[libunwind] [libunwind] fix pc range condition check bug (PR #154902)

2025-08-27 Thread Wu Yingcong via cfe-commits
yingcong-wu wrote: Added a e2e regression test. I have to manually mark the .eh_frame_hdr as omitted in order to make libunwind to do the linear seach which will invoke the affected logic. Local test result: ``` zsh$> clang 1.c -lunwind zsh$> ldd a.out linux-vdso.so.1 (0x7ffc3b16b0

[clang] [flang] [llvm] Introduce -fexperimental-loop-fuse to clang and flang (PR #142686)

2025-08-27 Thread Fangrui Song via cfe-commits
@@ -6870,6 +6870,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, options::OPT_fno_unroll_loops); Args.AddLastArg(CmdArgs, options::OPT_floop_interchange, options::OPT_fno_loop_interchange); + Args.AddLastArg(CmdArgs, op

[clang] [clang][bytecode] Avoid copying APValue into EvaluationResult (PR #155757)

2025-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Move the `APValue` into `EvaluationResult` instead. For a large primitive array (`#embed` of the sqlite3 amalgamation), this improves compile times by around 25%. --- Full diff: https://github.com/llvm/llvm

[clang] [clang][bytecode] Avoid copying APValue into EvaluationResult (PR #155757)

2025-08-27 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/155757 Move the `APValue` into `EvaluationResult` instead. For a large primitive array (`#embed` of the sqlite3 amalgamation), this improves compile times by around 25%. >From 19bd8f5e21e06903dfec9b230f308376bd3fa82

[clang] [Driver] Enable outline atomics for OpenBSD/aarch64 (PR #155713)

2025-08-27 Thread Brad Smith via cfe-commits
https://github.com/brad0 closed https://github.com/llvm/llvm-project/pull/155713 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5d774ec - [Driver] Enable outline atomics for OpenBSD/aarch64 (#155713)

2025-08-27 Thread via cfe-commits
Author: Brad Smith Date: 2025-08-28T02:02:25-04:00 New Revision: 5d774ec8d183cbbb243c57f50d891822211d3ec2 URL: https://github.com/llvm/llvm-project/commit/5d774ec8d183cbbb243c57f50d891822211d3ec2 DIFF: https://github.com/llvm/llvm-project/commit/5d774ec8d183cbbb243c57f50d891822211d3ec2.diff LO

[clang] [llvm] [IR][CodeGen] Remove "approx-func-fp-math" attribute (PR #155740)

2025-08-27 Thread Matt Arsenault via cfe-commits
arsenm wrote: flang is also adding it https://github.com/llvm/llvm-project/pull/155740 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] Introduce -fexperimental-loop-fuse to clang and flang (PR #142686)

2025-08-27 Thread Fangrui Song via cfe-commits
MaskRay wrote: You need to click "Re-request review" from folks who have requested changes. https://github.com/llvm/llvm-project/pull/142686 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] Add error check for HeuristicResolver (PR #155561)

2025-08-27 Thread Mythreya Kuricheti via cfe-commits
MythreyaK wrote: Oh sounds good, I'll give that a shot! https://github.com/llvm/llvm-project/pull/155561 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang]: Support `analyzer_noreturn` attribute in `CFG` (PR #150952)

2025-08-27 Thread Andrey Karlov via cfe-commits
https://github.com/negativ updated https://github.com/llvm/llvm-project/pull/150952 >From 417b4e465744f9a1d1704c87da4587626c9f5411 Mon Sep 17 00:00:00 2001 From: Andrey Karlov Date: Mon, 28 Jul 2025 16:23:21 +0300 Subject: [PATCH 1/2] Initial implementation --- .../bugprone/unchecked-optional

[clang] [llvm] [Utils] Adds support for diff based tests to lit's --update-tests (PR #154147)

2025-08-27 Thread Henrik G. Olsson via cfe-commits
hnrklssn wrote: ping :) https://github.com/llvm/llvm-project/pull/154147 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b8aeec1 - [clang][test] Specify triple in test/CodeGen/issue155126.c

2025-08-27 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2025-08-28T07:04:21+02:00 New Revision: b8aeec1626405ba4858732af44743a5dc5bce023 URL: https://github.com/llvm/llvm-project/commit/b8aeec1626405ba4858732af44743a5dc5bce023 DIFF: https://github.com/llvm/llvm-project/commit/b8aeec1626405ba4858732af44743a5dc5bce023.diff LO

[clang] [llvm] [IR][CodeGen] Remove "approx-func-fp-math" attribute (PR #155740)

2025-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: None (paperchalice) Changes Remove "approx-func-fp-math" attribute and related command line option, users should always use afn flag in IR. Resolve FIXME in `TargetMachine::resetTargetOptions` partially. --- Full diff: https://github.co

[clang] [llvm] [IR][CodeGen] Remove "approx-func-fp-math" attribute (PR #155740)

2025-08-27 Thread via cfe-commits
https://github.com/paperchalice ready_for_review https://github.com/llvm/llvm-project/pull/155740 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [IR][CodeGen] Remove "approx-func-fp-math" attribute (PR #155740)

2025-08-27 Thread via cfe-commits
https://github.com/paperchalice edited https://github.com/llvm/llvm-project/pull/155740 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] Introduce -fexperimental-loop-fuse to clang and flang (PR #142686)

2025-08-27 Thread Madhur Amilkanthwar via cfe-commits
madhur13490 wrote: Ping! https://github.com/llvm/llvm-project/pull/142686 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Enable outline atomics for OpenBSD/aarch64 (PR #155713)

2025-08-27 Thread David CARLIER via cfe-commits
https://github.com/devnexen approved this pull request. https://github.com/llvm/llvm-project/pull/155713 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Create PointerToBoolean casts for C casts (PR #155368)

2025-08-27 Thread LLVM Continuous Integration via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-5` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available

[clang] 5a9f103 - [clang] Create PointerToBoolean casts for C casts (#155368)

2025-08-27 Thread via cfe-commits
Author: Timm Baeder Date: 2025-08-28T06:19:59+02:00 New Revision: 5a9f1039c7732920dd1f4374074fdf09b58184ea URL: https://github.com/llvm/llvm-project/commit/5a9f1039c7732920dd1f4374074fdf09b58184ea DIFF: https://github.com/llvm/llvm-project/commit/5a9f1039c7732920dd1f4374074fdf09b58184ea.diff L

[clang] [clang] Create PointerToBoolean casts for C casts (PR #155368)

2025-08-27 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/155368 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang-tools-extra] [clangd] Add Config.Hover.MacroContentsLimit (PR #155105)

2025-08-27 Thread via cfe-commits
github-actions[bot] wrote: @JaagupAverin 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 b

[clang-tools-extra] [clangd] Add Config.Hover.MacroContentsLimit (PR #155105)

2025-08-27 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/155105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] a0cc776 - [clangd] Add Hover.MacroContentsLimit config option (#155105)

2025-08-27 Thread via cfe-commits
Author: Jaagup Averin Date: 2025-08-28T00:19:08-04:00 New Revision: a0cc776732980e792b201e3848c1049dfc3b1836 URL: https://github.com/llvm/llvm-project/commit/a0cc776732980e792b201e3848c1049dfc3b1836 DIFF: https://github.com/llvm/llvm-project/commit/a0cc776732980e792b201e3848c1049dfc3b1836.diff

[clang-tools-extra] [clangd] Add Config.Hover.MacroContentsLimit (PR #155105)

2025-08-27 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 approved this pull request. Looks good to me, thanks! https://github.com/llvm/llvm-project/pull/155105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Handle negative array sizes in constexpr `new` instead of asserting (PR #155737)

2025-08-27 Thread Timm Baeder via cfe-commits
@@ -0,0 +1,15 @@ +// RUN: not %clang_cc1 -std=c++20 -fsyntax-only %s 2>&1 \ +// RUN: | FileCheck %s --implicit-check-not='Assertion `NumElements.isPositive()` failed' + tbaederr wrote: Oh and the test should go into `test/AST/ByteCode/` https://github.com/llv

[clang] [clang][bytecode] Handle negative array sizes in constexpr `new` instead of asserting (PR #155737)

2025-08-27 Thread Timm Baeder via cfe-commits
@@ -0,0 +1,15 @@ +// RUN: not %clang_cc1 -std=c++20 -fsyntax-only %s 2>&1 \ +// RUN: | FileCheck %s --implicit-check-not='Assertion `NumElements.isPositive()` failed' + tbaederr wrote: You don't use `FileCheck` for these kinds of tests, use `-verify`. https:/

[clang-tools-extra] [clangd] Implement simple folding of preprocessor branches (rebased) (PR #121449)

2025-08-27 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Superseded by https://github.com/llvm/llvm-project/pull/140959. https://github.com/llvm/llvm-project/pull/121449 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clangd] Implement simple folding of preprocessor branches (rebased) (PR #121449)

2025-08-27 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/121449 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [IR][CodeGen] Remove "approx-func-fp-math" attribute (PR #155740)

2025-08-27 Thread via cfe-commits
https://github.com/paperchalice updated https://github.com/llvm/llvm-project/pull/155740 >From b7f753a952b75256991f6b1e76088bd23a7b1849 Mon Sep 17 00:00:00 2001 From: PaperChalice Date: Thu, 28 Aug 2025 11:25:39 +0800 Subject: [PATCH] [IR][CodeGen] Remove "approx-func-fp-math" attribute --- c

[clang] [RISCV] Verify vfwmaccbf16 and vfncvtbf16 FRM argument in SemaRISCV::CheckBuiltinFunctionCall. (PR #155710)

2025-08-27 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp approved this pull request. LGTM. Can we add some tests if it doesn't bother you? https://github.com/llvm/llvm-project/pull/155710 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mail

[clang-tools-extra] [clangd] Implement simple folding for preprocessor branches (PR #140959)

2025-08-27 Thread via cfe-commits
github-actions[bot] wrote: @aketchum15 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-tools-extra] [clangd] Implement simple folding for preprocessor branches (PR #140959)

2025-08-27 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 closed https://github.com/llvm/llvm-project/pull/140959 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 8c3daed - [clangd] Implement simple folding for preprocessor branches (#140959)

2025-08-27 Thread via cfe-commits
Author: aketchum15 Date: 2025-08-27T23:59:09-04:00 New Revision: 8c3daed84ce6372fff02383942d3fe1e40ff389e URL: https://github.com/llvm/llvm-project/commit/8c3daed84ce6372fff02383942d3fe1e40ff389e DIFF: https://github.com/llvm/llvm-project/commit/8c3daed84ce6372fff02383942d3fe1e40ff389e.diff LO

[clang-tools-extra] [clangd] Implement simple folding for preprocessor branches (PR #140959)

2025-08-27 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 approved this pull request. https://github.com/llvm/llvm-project/pull/140959 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Handle negative array sizes in constexpr `new` instead of asserting (PR #155737)

2025-08-27 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/155737 >From 0b13b0e77e184666d46450b264e1237e6c41a1de Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Wed, 27 Aug 2025 22:45:25 -0400 Subject: [PATCH 1/3] Enable nullptr handle with negative elemsize in a dynami

[clang] [Clang][LoongArch] Add support for UEFI target (PR #155598)

2025-08-27 Thread Lu Weining via cfe-commits
@@ -594,6 +594,19 @@ TEST(ToolChainTest, UEFICallingConventionTest) { EXPECT_EQ(compiler.getTarget().getCallingConvKind(true), TargetInfo::CallingConvKind::CCK_MicrosoftWin64); + + TrStr = "loongarch64-unknown-uefi"; + Tr.setOS(llvm::Triple::OSType::UEFI); + T

[clang] [Clang][LoongArch] Add support for UEFI target (PR #155598)

2025-08-27 Thread Lu Weining via cfe-commits
@@ -77,3 +77,9 @@ // RUN: not %clang_cl --target=x86-unknown-uefi -o %t.o %s 2> %t.err // RUN: FileCheck --input-file=%t.err -check-prefixes=CHECK-x86 %s // CHECK-x86: error: unknown target triple 'x86-unknown-uefi'{{$}} + +// RUN: not %clang --target=loongarch-unknown-uefi -o

[clang] [clang][bytecode] Handle negative array sizes in constexpr `new` instead of asserting (PR #155737)

2025-08-27 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/155737 >From 0b13b0e77e184666d46450b264e1237e6c41a1de Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Wed, 27 Aug 2025 22:45:25 -0400 Subject: [PATCH 1/2] Enable nullptr handle with negative elemsize in a dynami

[clang] [lldb] [UBSan][BoundsSafety] Implement support for more expressive "trap reasons" (PR #154618)

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

[clang] [clang] Fix crash when `__builtin_function_start` is given an invalid first parameter (PR #155506)

2025-08-27 Thread via cfe-commits
https://github.com/Mr-Anyone updated https://github.com/llvm/llvm-project/pull/155506 >From 09779d0295dffc66b2c7341d71f33c2f0bd49fca Mon Sep 17 00:00:00 2001 From: Vincent Date: Thu, 14 Aug 2025 21:50:47 +0800 Subject: [PATCH 1/2] [clang] Fix crash when __builtin_function_start is given an inv

[clang] [clang][bytecode] Handle negative array sizes in constexpr `new` instead of asserting (PR #155737)

2025-08-27 Thread A. Jiang via cfe-commits
@@ -0,0 +1,15 @@ +// RUN: not %clang_cc1 -std=c++20 -fsyntax-only %s 2>&1 \ +// RUN: | FileCheck %s --implicit-check-not='Assertion `NumElements.isPositive()` failed' + +// In C++20, constexpr dynamic allocation is permitted *only* if valid. +// A negative element count must be

[clang-tools-extra] f0dc266 - [NFC] [clangd] [C++20] [Modules] Improve logging message

2025-08-27 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2025-08-28T10:55:37+08:00 New Revision: f0dc2660997e9dc1dfb017951a1124c5db2e4c23 URL: https://github.com/llvm/llvm-project/commit/f0dc2660997e9dc1dfb017951a1124c5db2e4c23 DIFF: https://github.com/llvm/llvm-project/commit/f0dc2660997e9dc1dfb017951a1124c5db2e4c23.diff LO

[clang] [Headers][X86] Allow integer/fp absolute intrinsics to be used in constexpr (PR #154662)

2025-08-27 Thread Ye Tian via cfe-commits
TianYe717 wrote: > This should have a release note, right? Thanks for pointing that out — happy to add a release note. I’m just wondering though: since this PR is part of the larger [[feature-request]](https://github.com/llvm/llvm-project/issues/30794), should we add a note for each sub-issue

[clang] [clang][bytecode] Handle negative array sizes in constexpr `new` instead of asserting (PR #155737)

2025-08-27 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 edited https://github.com/llvm/llvm-project/pull/155737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Handle negative array sizes in constexpr `new` instead of asserting (PR #155737)

2025-08-27 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 edited https://github.com/llvm/llvm-project/pull/155737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Handle negative array sizes in constexpr `new` instead of asserting (PR #155737)

2025-08-27 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 edited https://github.com/llvm/llvm-project/pull/155737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Enable nullptr handle with negative elemsize in (PR #155737)

2025-08-27 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 created https://github.com/llvm/llvm-project/pull/155737 Fixes https://github.com/llvm/llvm-project/issues/152904 >From 0b13b0e77e184666d46450b264e1237e6c41a1de Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Wed, 27 Aug 2025 22:45:25 -0400 Subject: [PATCH] E

[clang] [clang-tools-extra] [clang] AST: fix getAs canonicalization of leaf types (PR #155028)

2025-08-27 Thread James Y Knight via cfe-commits
jyknight wrote: Heads up, this is breaking modules support in our buildsystem. I'm getting errors now like this: ``` libcxx/include/__atomic/memory_order.h:31:27: error: missing '#include <__atomic/memory_order.h>'; '__memory_order_underlying_t' must be declared before it is used 31 | enum

[clang] [RISCV] Verify vfwmaccbf16 and vfncvtbf16 FRM argument in SemaRISCV::CheckBuiltinFunctionCall. (PR #155710)

2025-08-27 Thread Craig Topper via cfe-commits
https://github.com/topperc updated https://github.com/llvm/llvm-project/pull/155710 >From 41c79fa197820c96637f03c8c2f9cdcaeb3ff5cc Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 27 Aug 2025 15:36:08 -0700 Subject: [PATCH] [RISCV] Verify vfwmaccbf16 and vfncvtbf16 FRM argument in SemaRI

[clang-tools-extra] Add WarnOnModificationOfCopiedLoopVariable to performance-for-range-c… (PR #155731)

2025-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy @llvm/pr-subscribers-clang-tools-extra Author: Julia Hansbrough (flowerhack) Changes …opy. Adds an option to performance-for-range-copy that alerts when a loop variable is copied and modified. This is a bugprone pattern because the programm

[clang-tools-extra] Add WarnOnModificationOfCopiedLoopVariable to performance-for-range-c… (PR #155731)

2025-08-27 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang-tools-extra] Add WarnOnModificationOfCopiedLoopVariable to performance-for-range-c… (PR #155731)

2025-08-27 Thread Julia Hansbrough via cfe-commits
https://github.com/flowerhack created https://github.com/llvm/llvm-project/pull/155731 …opy. Adds an option to performance-for-range-copy that alerts when a loop variable is copied and modified. This is a bugprone pattern because the programmer in this case often assumes they are modifying t

[clang] [OpenACC] Partial Reduction recipe Lowering (PR #155635)

2025-08-27 Thread Razvan Lupusoru via cfe-commits
https://github.com/razvanlupusoru approved this pull request. Impressively thorough testing! Thank you! https://github.com/llvm/llvm-project/pull/155635 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [clang] Update typechecking of builtin elementwise ternary math operators (PR #155620)

2025-08-27 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/155620 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Update typechecking of builtin elementwise ternary math operators (PR #155620)

2025-08-27 Thread via cfe-commits
@@ -15884,6 +15884,58 @@ static bool checkBuiltinVectorMathMixedEnums(Sema &S, Expr *LHS, Expr *RHS, return false; } +/// Check if all arguments have the same type. If the types don't match, emit an +/// error message and return true. Otherwise return false. +/// +/// For

[clang] [clang] Update typechecking of builtin elementwise ternary math operators (PR #155620)

2025-08-27 Thread via cfe-commits
@@ -15884,6 +15884,58 @@ static bool checkBuiltinVectorMathMixedEnums(Sema &S, Expr *LHS, Expr *RHS, return false; } +/// Check if all arguments have the same type. If the types don't match, emit an +/// error message and return true. Otherwise return false. +/// +/// For

[clang] [clang] Update typechecking of builtin elementwise ternary math operators (PR #155620)

2025-08-27 Thread via cfe-commits
https://github.com/Sirraide commented: This still needs a release note. https://github.com/llvm/llvm-project/pull/155620 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Update typechecking of builtin elementwise ternary math operators (PR #155620)

2025-08-27 Thread via cfe-commits
@@ -15884,6 +15884,58 @@ static bool checkBuiltinVectorMathMixedEnums(Sema &S, Expr *LHS, Expr *RHS, return false; } +/// Check if all arguments have the same type. If the types don't match, emit an +/// error message and return true. Otherwise return false. +/// +/// For

[clang] [clang] Update typechecking of builtin elementwise ternary math operators (PR #155620)

2025-08-27 Thread via cfe-commits
@@ -15884,6 +15884,58 @@ static bool checkBuiltinVectorMathMixedEnums(Sema &S, Expr *LHS, Expr *RHS, return false; } +/// Check if all arguments have the same type. If the types don't match, emit an +/// error message and return true. Otherwise return false. +/// +/// For

[clang] [clang] Update typechecking of builtin elementwise ternary math operators (PR #155620)

2025-08-27 Thread via cfe-commits
@@ -15905,13 +15957,11 @@ Sema::BuiltinVectorMath(CallExpr *TheCall, SourceLocation LocA = Args[0]->getBeginLoc(); QualType TyA = Args[0]->getType(); - QualType TyB = Args[1]->getType(); if (checkMathBuiltinElementType(*this, LocA, TyA, ArgTyRestr, 1)) return st

[clang] [clang] Update typechecking of builtin elementwise ternary math operators (PR #155620)

2025-08-27 Thread via cfe-commits
@@ -15948,17 +15998,12 @@ bool Sema::BuiltinElementwiseTernaryMath( return true; } - TheCall->setArg(0, Args[0]); - for (int I = 1; I < 3; ++I) { -if (Args[0]->getType().getCanonicalType() != -Args[I]->getType().getCanonicalType()) { - return Diag(Ar

[clang] [clang] Update typechecking of builtin elementwise ternary math operators (PR #155620)

2025-08-27 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/155620 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] VisitCallExpr constexpr immediate shifts (#154293) (PR #155542)

2025-08-27 Thread Justin Riddell via cfe-commits
Arghnews wrote: > We're putting these tests in the appropriate > llvm-project\clang\test\CodeGen\X86*-builtins.c files - search for > TEST_CONSTEXPR I have been splitting these out as specified, however I've run into an issue. Test files using `-fexperimental-new-constant-interpreter` like `

[clang] [Headers][X86] Allow integer/fp absolute intrinsics to be used in constexpr (PR #154662)

2025-08-27 Thread Ye Tian via cfe-commits
TianYe717 wrote: > @TianYe717 Sorry I missed this - will take a look soon No worries, thank you! https://github.com/llvm/llvm-project/pull/154662 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/c

[clang] [llvm] [libclang][Cygwin] Provide unversioned DLL file alongside versioned one (PR #147132)

2025-08-27 Thread via cfe-commits
https://github.com/jeremyd2019 converted_to_draft https://github.com/llvm/llvm-project/pull/147132 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [NVPTX] Auto-upgrade nvvm.grid_constant to param attribute (PR #155489)

2025-08-27 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,llvm,mlir` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/206/builds/5420 Here is th

[clang] clang/AMDGPU: Add __builtin_amdgcn_inverse_ballot_w{32,64} (PR #155724)

2025-08-27 Thread Nicolai Hähnle via cfe-commits
https://github.com/nhaehnle updated https://github.com/llvm/llvm-project/pull/155724 From cbebbccc6c0638e396ab0c03106aafaf531ec66f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20H=C3=A4hnle?= Date: Wed, 27 Aug 2025 16:08:20 -0700 Subject: [PATCH] clang/AMDGPU: Add __builtin_amdgcn_inverse_b

[clang] clang/AMDGPU: Add __builtin_amdgcn_inverse_ballot_w{32,64} (PR #155724)

2025-08-27 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 origin/main HEAD --extensions cl,cpp -- clang/lib/CodeGen/TargetBuiltins/AMDGPU.cpp

[clang] clang/AMDGPU: Add __builtin_amdgcn_inverse_ballot_w{32,64} (PR #155724)

2025-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Nicolai Hähnle (nhaehnle) Changes Add builtins that expose the underlying llvm.amdgcn.inverse.ballot intrinsic that we've had for a while. This allows more explicitly writing code that selects or branches in terms of lane masks,

[clang] clang/AMDGPU: Add __builtin_amdgcn_inverse_ballot_w{32,64} (PR #155724)

2025-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nicolai Hähnle (nhaehnle) Changes Add builtins that expose the underlying llvm.amdgcn.inverse.ballot intrinsic that we've had for a while. This allows more explicitly writing code that selects or branches in terms of lane masks, which ca

[clang] clang/AMDGPU: Add __builtin_amdgcn_inverse_ballot_w{32,64} (PR #155724)

2025-08-27 Thread Nicolai Hähnle via cfe-commits
https://github.com/nhaehnle created https://github.com/llvm/llvm-project/pull/155724 Add builtins that expose the underlying llvm.amdgcn.inverse.ballot intrinsic that we've had for a while. This allows more explicitly writing code that selects or branches in terms of lane masks, which can lea

[clang] [RISCV] Verify vfwmaccbf16 and vfncvtbf16 FRM argument in SemaRISCV::CheckBuiltinFunctionCall. (PR #155710)

2025-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Craig Topper (topperc) Changes We need to check that the FRM value is an integer constant expression with value 0-4. --- Full diff: https://github.com/llvm/llvm-project/pull/155710.diff 1 Files Affected: - (modified) clang/lib

[clang] [CIR] Add constant record ILE support (PR #155663)

2025-08-27 Thread Andy Kaylor via cfe-commits
@@ -130,6 +132,44 @@ void CIRGenBuilderTy::computeGlobalViewIndicesFromFlatOffset( computeGlobalViewIndicesFromFlatOffset(offset, subType, layout, indices); } +static mlir::Type getAttributeType(mlir::Attribute attr) { + return mlir::cast(attr).getType(); +} + +cir::Record

[clang] [CIR] Add constant record ILE support (PR #155663)

2025-08-27 Thread Andy Kaylor via cfe-commits
@@ -21,20 +20,571 @@ #include "clang/AST/APValue.h" #include "clang/AST/ASTContext.h" #include "clang/AST/Attr.h" +#include "clang/AST/CharUnits.h" #include "clang/AST/OperationKinds.h" #include "clang/AST/RecordLayout.h" #include "clang/AST/StmtVisitor.h" #include "clang/B

[clang] [CIR] Add constant record ILE support (PR #155663)

2025-08-27 Thread Andy Kaylor via cfe-commits
@@ -130,6 +132,44 @@ void CIRGenBuilderTy::computeGlobalViewIndicesFromFlatOffset( computeGlobalViewIndicesFromFlatOffset(offset, subType, layout, indices); } +static mlir::Type getAttributeType(mlir::Attribute attr) { + return mlir::cast(attr).getType(); +} + +cir::Record

[clang] [CIR] Add constant record ILE support (PR #155663)

2025-08-27 Thread Andy Kaylor via cfe-commits
@@ -130,6 +132,44 @@ void CIRGenBuilderTy::computeGlobalViewIndicesFromFlatOffset( computeGlobalViewIndicesFromFlatOffset(offset, subType, layout, indices); } +static mlir::Type getAttributeType(mlir::Attribute attr) { + return mlir::cast(attr).getType(); +} + +cir::Record

[clang] [CIR] Add constant record ILE support (PR #155663)

2025-08-27 Thread Andy Kaylor via cfe-commits
@@ -283,6 +283,16 @@ Type RecordType::getLargestMember(const ::mlir::DataLayout &dataLayout) const { }); } +bool RecordType::isLayoutIdentical(const RecordType &other) { + if (getImpl() == other.getImpl()) +return true; + + if (getPacked() != other.getPacked()) +

[clang] [CIR] Add constant record ILE support (PR #155663)

2025-08-27 Thread Andy Kaylor via cfe-commits
@@ -130,6 +132,44 @@ void CIRGenBuilderTy::computeGlobalViewIndicesFromFlatOffset( computeGlobalViewIndicesFromFlatOffset(offset, subType, layout, indices); } +static mlir::Type getAttributeType(mlir::Attribute attr) { + return mlir::cast(attr).getType(); +} + +cir::Record

[clang] [Driver] Enable outline atomics for OpenBSD/aarch64 (PR #155713)

2025-08-27 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/155713 >From 13c3479ac3b8b13b2d2829c6ad9b77e736e77b9f Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 27 Aug 2025 18:50:41 -0400 Subject: [PATCH] [Driver] Enable outline atomics for OpenBSD/aarch64 --- clang/lib/D

[clang] [clang][OpenMP] 6.0: detect privatization of array section/assumed-size array (PR #152786)

2025-08-27 Thread David Pagan via cfe-commits
@@ -5177,6 +5190,17 @@ static std::pair getPrivateItem(Sema &S, Expr *&RefExpr, IsArrayExpr = ArraySubscript; } else if (auto *OASE = dyn_cast_or_null(RefExpr)) { Expr *Base = OASE->getBase()->IgnoreParenImpCasts(); + if (S.getLangOpts().OpenMP >= 60 && !A

[clang] [Driver] Enable outline atomics for OpenBSD/aarch64 (PR #155713)

2025-08-27 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Brad Smith (brad0) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/155713.diff 2 Files Affected: - (modified) clang/lib/Driver/ToolChains/OpenBSD.h (+5) - (modified) clang/test/Driver

[clang] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-08-27 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt edited https://github.com/llvm/llvm-project/pull/148914 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Enable outline atomics for OpenBSD/aarch64 (PR #155713)

2025-08-27 Thread Brad Smith via cfe-commits
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/155713 None >From b7f1d3166b0be2d774382a1c7531a1c46c14d8a0 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 27 Aug 2025 18:50:41 -0400 Subject: [PATCH] [Driver] Enable outline atomics for OpenBSD/aarch64 --- clang

[clang] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-08-27 Thread Justin Stitt via cfe-commits
JustinStitt wrote: @efriedma-quic thanks for your review. I've tried to address the concerns you brought up and marked the review points as resolved. If I didn't properly fix the issues then please un-resolve the messages. I'm happy to iterate :) https://github.com/llvm/llvm-project/pull/14891

[clang] [llvm] [mlir] [NVPTX] Auto-upgrade nvvm.grid_constant to param attribute (PR #155489)

2025-08-27 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B approved this pull request. Nice. LGTM. https://github.com/llvm/llvm-project/pull/155489 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [NVPTX] Auto-upgrade nvvm.grid_constant to param attribute (PR #155489)

2025-08-27 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B edited https://github.com/llvm/llvm-project/pull/155489 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-08-27 Thread Justin Stitt via cfe-commits
@@ -199,6 +233,19 @@ static bool CanElideOverflowCheck(const ASTContext &Ctx, const BinOpInfo &Op) { if (!Op.mayHaveIntegerOverflow()) return true; + const UnaryOperator *UO = dyn_cast(Op.E); + if (UO && Ctx.isUnaryOverflowPatternExcluded(UO)) +return true; + + c

[clang] [clang-format] Add option AllowShortRecordOnASingleLine (PR #154580)

2025-08-27 Thread Tomáš Slanina via cfe-commits
@@ -1553,6 +1563,7 @@ FormatStyle getLLVMStyle(FormatStyle::LanguageKind Language) { LLVMStyle.AllowShortFunctionsOnASingleLine = FormatStyle::SFS_All; LLVMStyle.AllowShortIfStatementsOnASingleLine = FormatStyle::SIS_Never; LLVMStyle.AllowShortLambdasOnASingleLine = Form

[clang] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

2025-08-27 Thread Justin Stitt via cfe-commits
@@ -3189,16 +3227,21 @@ ScalarExprEmitter::EmitScalarPrePostIncDec(const UnaryOperator *E, LValue LV, // Note that signed integer inc/dec with width less than int can't // overflow because of promotion rules; we're just eliding a few steps // here. -} els

  1   2   3   4   >