[clang-tools-extra] [clang-tidy] fix false negatives with type aliases in `cppcoreguidlines-pro-bounds-pointer-arithmetic` check (PR #139430)

2025-07-03 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/139430 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 5a9e6ba - [clang-tidy] fix false negatives with type aliases in `cppcoreguidlines-pro-bounds-pointer-arithmetic` check (#139430)

2025-07-03 Thread via cfe-commits
Author: Baranov Victor Date: 2025-07-04T09:49:26+03:00 New Revision: 5a9e6babd81f03b020d6dff8f150336aa0dc5a28 URL: https://github.com/llvm/llvm-project/commit/5a9e6babd81f03b020d6dff8f150336aa0dc5a28 DIFF: https://github.com/llvm/llvm-project/commit/5a9e6babd81f03b020d6dff8f150336aa0dc5a28.diff

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

2025-07-03 Thread James Henderson via cfe-commits
@@ -452,6 +457,8 @@ Triple::ArchType Triple::getArchTypeForLLVMName(StringRef Name) { .Case("amdgcn", amdgcn) .Case("riscv32", riscv32) .Case("riscv64", riscv64) +.Case("riscv32be", riscv32be) jh7370 wrote: Here and in the similar case below,

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

2025-07-03 Thread James Henderson via cfe-commits
@@ -2053,6 +2086,8 @@ bool Triple::isLittleEndian() const { case Triple::renderscript64: case Triple::riscv32: case Triple::riscv64: + case Triple::riscv32be: + case Triple::riscv64be: jh7370 wrote: This looks like a mistake. The function is `isLittleE

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

2025-07-03 Thread James Henderson via cfe-commits
@@ -74,8 +74,10 @@ class Triple { ppc64le,// PPC64LE: powerpc64le r600, // R600: AMD GPUs HD2XXX - HD6XXX amdgcn, // AMDGCN: AMD GCN GPUs -riscv32,// RISC-V (32-bit): riscv32 -riscv64,// RISC-V (64-bit): riscv64 +

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

2025-07-03 Thread James Henderson via cfe-commits
https://github.com/jh7370 commented: Some inline comments. P.S. Please use fixup commits, not force pushes, per LLVM policy, to update the PR now that I'm reviewing it. https://github.com/llvm/llvm-project/pull/146913 ___ cfe-commits mailing list cfe

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

2025-07-03 Thread James Henderson via cfe-commits
https://github.com/jh7370 edited https://github.com/llvm/llvm-project/pull/146913 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Fix lazy template loading (PR #133057)

2025-07-03 Thread Jonas Hahnfeld via cfe-commits
hahnjo wrote: I don't think we should merge a partial state of this PR for two reasons: 1. The three patches alone don't actually bring much benefit. When I measured in ROOT, we definitely needed the (currently) problematic one for lazy template loading to become really effective. 2. As commen

[clang] [Serialization] Fix lazy template loading (PR #133057)

2025-07-03 Thread Jonas Hahnfeld via cfe-commits
https://github.com/hahnjo converted_to_draft https://github.com/llvm/llvm-project/pull/133057 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Do not perform error recovery for invalid member using-declaration in C++20+ mode (PR #147003)

2025-07-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yanzuo Liu (zwuis) Changes Previously, Clang tried to perform error recovery for invalid member using-declaration whose nested-name-specifier refers to its own class in C++20+ mode, which causes crash. ```cpp template struc

[clang] [Clang][Sema] Do not perform error recovery for invalid member using-declaration in C++20+ mode (PR #147003)

2025-07-03 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis created https://github.com/llvm/llvm-project/pull/147003 Previously, Clang tried to perform error recovery for invalid member using-declaration whose nested-name-specifier refers to its own class in C++20+ mode, which causes crash. ```cpp template struct V {}; struct

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

2025-07-03 Thread Anthony Tran via cfe-commits
anthonyhatran wrote: Commit #3 (338505e) Update: Apologies for taking a bit on the commit, took a while to fix test cases. I'll list how the 5 test cases were fixed below: 1. {`clang/test/CodeGen/ubsan-trap-debugloc.c`}: Hand written, so I adjusted the unmerged trap checks to expect a syntheti

[clang] [llvm] [Transforms] Add LifetimeMovePass (PR #144319)

2025-07-03 Thread Tomasz Miąsko via cfe-commits
@@ -0,0 +1,341 @@ +//===- LifetimeMove.cpp - Narrowing lifetimes -===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [Mips] Correctly define IntPtrType (PR #145158)

2025-07-03 Thread Hervé Poussineau via cfe-commits
hpoussin wrote: Maybe @yingopq or @wzssyqa can comment on this? https://github.com/llvm/llvm-project/pull/145158 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PAC][clang] Add new features to pauthtest ABI (PR #113150)

2025-07-03 Thread Daniil Kovalev via cfe-commits
kovdan01 wrote: @MaskRay Could you please give a feedback (considering my latest comment above)? https://github.com/llvm/llvm-project/pull/113150 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

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

2025-07-03 Thread Anthony Tran via cfe-commits
https://github.com/anthonyhatran updated https://github.com/llvm/llvm-project/pull/145967 >From b7a68efce92eafcfb05e0fc9763303dc85fb4c78 Mon Sep 17 00:00:00 2001 From: Anthony Tran Date: Thu, 26 Jun 2025 12:40:05 -0700 Subject: [PATCH 1/3] Addressed most of Dan's comments and added remaining te

[clang] [RISCV] Move vendor clang intrinsics tests to seperate directory. NFC. (PR #146862)

2025-07-03 Thread Jim Lin via cfe-commits
https://github.com/tclin914 closed https://github.com/llvm/llvm-project/pull/146862 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 872eac7 - [RISCV] Move vendor clang intrinsics tests to seperate directory. NFC. (#146862)

2025-07-03 Thread via cfe-commits
Author: Jim Lin Date: 2025-07-04T13:27:51+08:00 New Revision: 872eac7af0050813062baba9662beb81093b6b55 URL: https://github.com/llvm/llvm-project/commit/872eac7af0050813062baba9662beb81093b6b55 DIFF: https://github.com/llvm/llvm-project/commit/872eac7af0050813062baba9662beb81093b6b55.diff LOG:

[clang] [Driver][Test] pgo-sample-use-profi.c: Specify targets to fix test (PR #146996)

2025-07-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-s390x-linux` running on `systemz-1` while building `clang` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/13525 Here is the relevant piece of the build log f

[clang] [Driver][Test] pgo-sample-use-profi.c: Specify targets to fix test (PR #146996)

2025-07-03 Thread Nilanjana Basu via cfe-commits
https://github.com/nilanjana87 closed https://github.com/llvm/llvm-project/pull/146996 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0612c4b - [Driver][Test] pgo-sample-use-profi.c: Specify targets to fix test (#146996)

2025-07-03 Thread via cfe-commits
Author: Nilanjana Basu Date: 2025-07-03T22:10:29-07:00 New Revision: 0612c4bbd336dc4e206605fc380ac0af58c2df69 URL: https://github.com/llvm/llvm-project/commit/0612c4bbd336dc4e206605fc380ac0af58c2df69 DIFF: https://github.com/llvm/llvm-project/commit/0612c4bbd336dc4e206605fc380ac0af58c2df69.diff

[clang] [Driver][Test] pgo-sample-use-profi.c: Specify targets to fix test (PR #146996)

2025-07-03 Thread Nilanjana Basu via cfe-commits
https://github.com/nilanjana87 updated https://github.com/llvm/llvm-project/pull/146996 >From 93579c9f09516d2eb5cc58ee321fb3a93b2c2bc4 Mon Sep 17 00:00:00 2001 From: Nilanjana Basu Date: Thu, 3 Jul 2025 21:05:20 -0700 Subject: [PATCH 1/3] [Driver][Test] pgo-sample-use-profi.c: Specify targets t

[clang] [Serialization] Remove an unnecessary cast (NFC) (PR #146986)

2025-07-03 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/146986 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8fe205d - [Serialization] Remove an unnecessary cast (NFC) (#146986)

2025-07-03 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-07-03T22:04:31-07:00 New Revision: 8fe205d31695e43b31f0d5334384cc297e440571 URL: https://github.com/llvm/llvm-project/commit/8fe205d31695e43b31f0d5334384cc297e440571 DIFF: https://github.com/llvm/llvm-project/commit/8fe205d31695e43b31f0d5334384cc297e440571.diff L

[clang] [Driver][Test] pgo-sample-use-profi.c: Specify targets to fix test (PR #146996)

2025-07-03 Thread Nilanjana Basu via cfe-commits
https://github.com/nilanjana87 updated https://github.com/llvm/llvm-project/pull/146996 >From 93579c9f09516d2eb5cc58ee321fb3a93b2c2bc4 Mon Sep 17 00:00:00 2001 From: Nilanjana Basu Date: Thu, 3 Jul 2025 21:05:20 -0700 Subject: [PATCH 1/2] [Driver][Test] pgo-sample-use-profi.c: Specify targets t

[clang] [Serialization] Remove an unnecessary cast (NFC) (PR #146986)

2025-07-03 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata edited https://github.com/llvm/llvm-project/pull/146986 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] add -floop-fuse to clang and flang (PR #142686)

2025-07-03 Thread Madhur Amilkanthwar via cfe-commits
@@ -34,6 +34,7 @@ page](https://llvm.org/releases/). * -floop-interchange is now recognized by flang. * -floop-interchange is enabled by default at -O2 and above. +* -fexperimental-fuse-loops is now recognized by flang. madhur13490 wrote: We should make a sim

[clang] [clang-scan-deps] Fix "unterminated conditional directive" bug (PR #146645)

2025-07-03 Thread Ziqing Luo via cfe-commits
https://github.com/ziqingluo-90 closed https://github.com/llvm/llvm-project/pull/146645 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] afd20aa - [clang-scan-deps] Fix "unterminated conditional directive" bug (#146645)

2025-07-03 Thread via cfe-commits
Author: Ziqing Luo Date: 2025-07-04T12:53:23+08:00 New Revision: afd20aaca5fd89dd14992c3fe2f735c5e16ad986 URL: https://github.com/llvm/llvm-project/commit/afd20aaca5fd89dd14992c3fe2f735c5e16ad986 DIFF: https://github.com/llvm/llvm-project/commit/afd20aaca5fd89dd14992c3fe2f735c5e16ad986.diff LO

[clang] [Driver][Test] pgo-sample-use-profi.c: Specify targets to fix test (PR #146996)

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

[clang] [Driver][Test] pgo-sample-use-profi.c: Specify targets to fix test (PR #146996)

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

[clang] [llvm] [HLSL][RootSignature] Update `setDefaultFlags` to account for Root Signature Version (PR #145828)

2025-07-03 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/145828 >From e616ddee9cfaaaf697e4bd83d18e2d10ea86 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Fri, 27 Jun 2025 16:39:13 + Subject: [PATCH 1/6] update `setDefaultFlags` --- .../clang/Parse/ParseHLSLRootS

[clang] [Driver][Test] pgo-sample-use-profi.c: Specify targets to fix test (PR #146996)

2025-07-03 Thread Nilanjana Basu via cfe-commits
https://github.com/nilanjana87 created https://github.com/llvm/llvm-project/pull/146996 This test reportedly fails for some targets (e.g. AIX). Specifying targets to fix it. >From 93579c9f09516d2eb5cc58ee321fb3a93b2c2bc4 Mon Sep 17 00:00:00 2001 From: Nilanjana Basu Date: Thu, 3 Jul 2025 21:0

[clang] [llvm] [NFC][HLSL][RootSignature] Split up `HLSLRootSignatureUtils` (PR #146124)

2025-07-03 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/146124 >From 91f0a282662bf62e35b6b6254cb96e48a2062162 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Fri, 27 Jun 2025 16:56:24 + Subject: [PATCH 1/7] nfc: move resource range analysis to `HLSLRootSignature` ---

[clang] [llvm] [NFC][HLSL][RootSignature] Split up `HLSLRootSignatureUtils` (PR #146124)

2025-07-03 Thread Finn Plummer via cfe-commits
https://github.com/inbelic updated https://github.com/llvm/llvm-project/pull/146124 >From 91f0a282662bf62e35b6b6254cb96e48a2062162 Mon Sep 17 00:00:00 2001 From: Finn Plummer Date: Fri, 27 Jun 2025 16:56:24 + Subject: [PATCH 1/6] nfc: move resource range analysis to `HLSLRootSignature` ---

[clang] [llvm] [NFC][HLSL][RootSignature] Split up `HLSLRootSignatureUtils` (PR #146124)

2025-07-03 Thread Finn Plummer via cfe-commits
@@ -0,0 +1,56 @@ +//===- RootSignatureMetadata.h - HLSL Root Signature helpers --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

[clang] [llvm] [NFC][HLSL][RootSignature] Split up `HLSLRootSignatureUtils` (PR #146124)

2025-07-03 Thread Finn Plummer via cfe-commits
@@ -103,7 +51,7 @@ class ResourceRange { getOverlapping(const RangeInfo &Info) const; // Return the mapped RangeInfo at X or nullptr if no mapping exists - LLVM_ABI const RangeInfo *lookup(uint32_t X) const; + const RangeInfo *lookup(uint32_t X) const; i

[clang] [Lambda] Remove an unnecessary cast (NFC) (PR #146986)

2025-07-03 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. https://github.com/llvm/llvm-project/pull/146986 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][CodeGen] Add CodeGen support of Zibi experimental extension (PR #146858)

2025-07-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-backend-risc-v Author: Boyao Wang (BoyaoWang430) Changes This adds the CodeGen support of Zibi v0.1 experimental extension, which depends on #127463. The first commit is from the base PR. --- Patch is 32.58 KiB, truncated to

[clang] [llvm] [RISCV][CodeGen] Add CodeGen support of Zibi experimental extension (PR #146858)

2025-07-03 Thread Boyao Wang via cfe-commits
https://github.com/BoyaoWang430 ready_for_review https://github.com/llvm/llvm-project/pull/146858 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang][Sema] Unify getPrototypeLoc helpers in SemaCodeComplete and clangd (PR #143345)

2025-07-03 Thread Younan Zhang via cfe-commits
@@ -93,6 +94,12 @@ class HeuristicResolver { // during simplification, and the operation fails if no pointer type is found. QualType simplifyType(QualType Type, const Expr *E, bool UnwrapPointer); + // Given an expression `Fn` representing the callee in a function call,

[clang] [clang-tools-extra] [clang][Sema] Unify getPrototypeLoc helpers in SemaCodeComplete and clangd (PR #143345)

2025-07-03 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. Thanks, this looks great Though part of me is curious about which bug was caught :) https://github.com/llvm/llvm-project/pull/143345 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://

[clang] [clang-tools-extra] [clang][Sema] Unify getPrototypeLoc helpers in SemaCodeComplete and clangd (PR #143345)

2025-07-03 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 edited https://github.com/llvm/llvm-project/pull/143345 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] [C++] [Modules] Mark P1811 as implemented and add test (PR #146993)

2025-07-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ashwin Kishin Banwari (kish1n) Changes This is already implemented. See godbolt: https://godbolt.org/z/7x3arqj3G --- Full diff: https://github.com/llvm/llvm-project/pull/146993.diff 2 Files Affected: - (added) clang/test/SemaCXX/P1811.c

[clang] [Clang][Driver][SamplePGO] Introduce -fno_sample_profile_use_profi flag for SamplePGO (PR #145957)

2025-07-03 Thread Jake Egan via cfe-commits
jakeegan wrote: Hi, this test is failing on the AIX bot because `error: unsupported option '-fprofile-sample-use=' for target 'powerpc64-ibm-aix7.2.0.0'` https://lab.llvm.org/buildbot/#/builders/64/builds/4573/steps/6/logs/FAIL__Clang__pgo-sample-use-profi_c Could you do a workaround like this

[clang] [NFC] [C++] [Modules] Mark P1811 as implemented and add test (PR #146993)

2025-07-03 Thread Ashwin Kishin Banwari via cfe-commits
https://github.com/kish1n created https://github.com/llvm/llvm-project/pull/146993 This is already implemented. See godbolt: https://godbolt.org/z/7x3arqj3G >From 62f10d478d8d99f3aaf8a3b8dfff299e42ce8557 Mon Sep 17 00:00:00 2001 From: Ashwin Banwari Date: Thu, 3 Jul 2025 20:35:15 -0700 Subject

[clang] [RISCV] Move vendor clang intrinsics tests to seperate directory. NFC. (PR #146862)

2025-07-03 Thread Jim Lin via cfe-commits
tclin914 wrote: Rebased. https://github.com/llvm/llvm-project/pull/146862 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Move vendor clang intrinsics tests to seperate directory. NFC. (PR #146862)

2025-07-03 Thread Jim Lin via cfe-commits
https://github.com/tclin914 updated https://github.com/llvm/llvm-project/pull/146862 >From b187647420e85d0d038a30dcdf477d0cd6bce917 Mon Sep 17 00:00:00 2001 From: Jim Lin Date: Thu, 3 Jul 2025 19:34:49 +0800 Subject: [PATCH] [RISCV] Move vendor clang intrinsics tests to seperate directory. NFC

[clang] [llvm] [RISCV][MC] Add MC support of Zibi experimental extension (PR #127463)

2025-07-03 Thread Boyao Wang via cfe-commits
https://github.com/BoyaoWang430 updated https://github.com/llvm/llvm-project/pull/127463 >From aea8133a1fe38791bad4a45e6dcc53d9fe05f771 Mon Sep 17 00:00:00 2001 From: wangboyao Date: Thu, 3 Jul 2025 16:08:15 +0800 Subject: [PATCH 1/2] [RISCV][MC] Add MC support of Zibi experimental extension T

[clang] [llvm] [RISCV][MC] Add MC support of Zibi experimental extension (PR #127463)

2025-07-03 Thread Pengcheng Wang via cfe-commits
@@ -0,0 +1,44 @@ +//===-- RISCVInstrInfoZibi.td - 'Zibi' instructions *- tablegen -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apa

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

2025-07-03 Thread JJ Marr via cfe-commits
https://github.com/jj-marr updated https://github.com/llvm/llvm-project/pull/146970 >From 3ef4feb748551806c863529306fefb2bd914e5be Mon Sep 17 00:00:00 2001 From: JJ Marr Date: Thu, 3 Jul 2025 17:17:06 -0400 Subject: [PATCH 1/9] AvoidFundamentalIntegerTypesCheck --- .../AvoidFundamentalInteger

[libclc] [libclc] Add generic implementation of some atomic functions in OpenCL spec section 6.15.12.7 (PR #146814)

2025-07-03 Thread Wenju He via cfe-commits
https://github.com/wenju-he updated https://github.com/llvm/llvm-project/pull/146814 >From 6429b5538dcfcd9de262f6f0a49d8283db8f5db9 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Wed, 2 Jul 2025 17:11:56 -0700 Subject: [PATCH 1/2] [libclc] Add generic implementation of some atomic functions in

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

2025-07-03 Thread JJ Marr via cfe-commits
jj-marr wrote: I will add the `float` component of the check tomorrow. https://github.com/llvm/llvm-project/pull/146970 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-03 Thread JJ Marr via cfe-commits
@@ -0,0 +1,181 @@ +//===--- AvoidFundamentalIntegerTypesCheck.cpp - clang-tidy ---===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

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

2025-07-03 Thread JJ Marr via cfe-commits
https://github.com/jj-marr updated https://github.com/llvm/llvm-project/pull/146970 >From 3ef4feb748551806c863529306fefb2bd914e5be Mon Sep 17 00:00:00 2001 From: JJ Marr Date: Thu, 3 Jul 2025 17:17:06 -0400 Subject: [PATCH 1/8] AvoidFundamentalIntegerTypesCheck --- .../AvoidFundamentalInteger

[clang] [llvm] [RISCV] Remove implied extension Zvfhmin for XAndesVPackFPH (PR #146861)

2025-07-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-s390x-linux` running on `systemz-1` while building `clang,llvm` at step 6 "test-openmp". Full details are available at: https://lab.llvm.org/buildbot/#/builders/88/builds/13519 Here is the relevant piece of the build

[clang] [Driver] Use range-based for loops (NFC) (PR #146987)

2025-07-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Note that LLVM Coding Standards discourages std::for_each and llvm::for_each unless the callable object already exists. --- Full diff: https://github.com/llvm/llvm-project/pull/146987.diff 2 Files Af

[clang] [Driver] Use range-based for loops (NFC) (PR #146987)

2025-07-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Kazu Hirata (kazutakahirata) Changes Note that LLVM Coding Standards discourages std::for_each and llvm::for_each unless the callable object already exists. --- Full diff: https://github.com/llvm/llvm-project/pull/146987.diff 2 F

[clang] [Driver] Use range-based for loops (NFC) (PR #146987)

2025-07-03 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146987 Note that LLVM Coding Standards discourages std::for_each and llvm::for_each unless the callable object already exists. >From 9a696b94c3ff9aa8bd64305570f1ef9b6d14be19 Mon Sep 17 00:00:00 2001 From: Kazu

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

2025-07-03 Thread JJ Marr via cfe-commits
https://github.com/jj-marr updated https://github.com/llvm/llvm-project/pull/146970 >From 3ef4feb748551806c863529306fefb2bd914e5be Mon Sep 17 00:00:00 2001 From: JJ Marr Date: Thu, 3 Jul 2025 17:17:06 -0400 Subject: [PATCH 1/6] AvoidFundamentalIntegerTypesCheck --- .../AvoidFundamentalInteger

[clang] [Lambda] Remove an unnecessary cast (NFC) (PR #146986)

2025-07-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-modules Author: Kazu Hirata (kazutakahirata) Changes Lambda is already of CXXRecordDecl *. --- Full diff: https://github.com/llvm/llvm-project/pull/146986.diff 1 Files Affected: - (modified) clang/lib/Serialization/A

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #146985)

2025-07-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes Decl is already of FunctionDecl *. --- Full diff: https://github.com/llvm/llvm-project/pull/146985.diff 1 Files Affected: - (modified) clang/lib/Sema/SemaConcept.cpp (+2-2) ``diff diff --

[clang] [Lambda] Remove an unnecessary cast (NFC) (PR #146986)

2025-07-03 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146986 Lambda is already of CXXRecordDecl *. >From 171b13caff2e97c81d4a5091c6be912abb04c926 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 3 Jul 2025 16:37:23 -0700 Subject: [PATCH] [Lambda] Remove an u

[clang] [Sema] Remove an unnecessary cast (NFC) (PR #146985)

2025-07-03 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/146985 Decl is already of FunctionDecl *. >From 0c026bfa15e41798ea1df03a31d5f4a7a2d691c3 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 3 Jul 2025 16:34:38 -0700 Subject: [PATCH] [Sema] Remove an unnece

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

2025-07-03 Thread Wenju He via cfe-commits
wenju-he wrote: > > Perhaps we need a stripped down OpenCL header, like > > `clc/opencl/opencl-base.h` which includes just the types and macro defs? > > See #146840 for an example of this approach. thanks @frasercrmck I'll update OpenCL headers of this PR after #146840 is landed. https://git

[clang] [llvm] [RISCV][MC] Add MC support of Zibi experimental extension (PR #127463)

2025-07-03 Thread Boyao Wang via cfe-commits
https://github.com/BoyaoWang430 updated https://github.com/llvm/llvm-project/pull/127463 >From aea8133a1fe38791bad4a45e6dcc53d9fe05f771 Mon Sep 17 00:00:00 2001 From: wangboyao Date: Thu, 3 Jul 2025 16:08:15 +0800 Subject: [PATCH 1/2] [RISCV][MC] Add MC support of Zibi experimental extension T

[clang] [llvm] [RISCV][MC] Add MC support of Zibi experimental extension (PR #127463)

2025-07-03 Thread Pengcheng Wang via cfe-commits
wangpc-pp wrote: > > > > This adds the support of Zibi v0.1 experimental extension. > > > > References: > > > > > > > > * > > > > https://lf-riscv.atlassian.net/wiki/spaces/USXX/pages/599261201/Branch+with+Immediate+Zibi+Ratification+Plan > > > > > > > > > I cannot for the life of me find an

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

2025-07-03 Thread JJ Marr via cfe-commits
jj-marr wrote: @vbvictor It makes sense to provide an autofix for `float`/`double`, since I have never heard of them being anything other than IEEE754 32-bit binary floats or IEEE754 64-bit binary floats respectively. `char8_t` will always be `unsigned char` so a fix from `unsigned char` to `

[clang] [clang] Refactor `CodeGenOptions` to specify AST effect as X macro arg (PR #146910)

2025-07-03 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. https://github.com/llvm/llvm-project/pull/146910 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Remove implied extension Zvfhmin for XAndesVPackFPH (PR #146861)

2025-07-03 Thread Jim Lin via cfe-commits
https://github.com/tclin914 closed https://github.com/llvm/llvm-project/pull/146861 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 61529d9 - [RISCV] Remove implied extension Zvfhmin for XAndesVPackFPH (#146861)

2025-07-03 Thread via cfe-commits
Author: Jim Lin Date: 2025-07-04T10:16:20+08:00 New Revision: 61529d9e36fa86782a2458e6bdeedf7f376ef4b5 URL: https://github.com/llvm/llvm-project/commit/61529d9e36fa86782a2458e6bdeedf7f376ef4b5 DIFF: https://github.com/llvm/llvm-project/commit/61529d9e36fa86782a2458e6bdeedf7f376ef4b5.diff LOG:

[clang] [clang] Refactor `LangOptions` to specify AST effect as X macro arg (PR #146766)

2025-07-03 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. https://github.com/llvm/llvm-project/pull/146766 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-cl] Accept `cl`-style output arguments (`/Fo`, `-Fo`) for `--precompile` (PR #121046)

2025-07-03 Thread Chuanqi Xu via cfe-commits
@@ -14,3 +14,11 @@ //--- test.pcm // CPP20WARNING-NOT: clang-cl: warning: argument unused during compilation: '/std:c++20' [-Wunused-command-line-argument] + +// test whether the following outputs %Hello.bmi ChuanqiXu9 wrote: ```suggestion // test whether th

[clang] [clang-cl] Accept `cl`-style output arguments (`/Fo`, `-Fo`) for `--precompile` (PR #121046)

2025-07-03 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 edited https://github.com/llvm/llvm-project/pull/121046 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-cl] Accept `cl`-style output arguments (`/Fo`, `-Fo`) for `--precompile` (PR #121046)

2025-07-03 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. Given the problem is important (I've heard the problem for clang-cl with modules several times) and the author have been active on this direction for years, I think I can trust him even if I can't test it actually. So LGTM. I'll land th

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

2025-07-03 Thread Chuanqi Xu via cfe-commits
@@ -577,6 +577,16 @@ def err_drv_reduced_module_output_overrided : Warning< "please consider use '-fmodule-output=' to specify the output file for reduced BMI explicitly">, InGroup>; +def remark_found_cxx20_module_usage : Remark< + "found C++20 module usage in file '%0'"

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

2025-07-03 Thread Chuanqi Xu via cfe-commits
@@ -790,6 +792,35 @@ class Driver { /// compilation based on which -f(no-)?lto(=.*)? option occurs last. void setLTOMode(const llvm::opt::ArgList &Args); + /// BuildDefaultActions - Constructs the list of actions to perform + /// for the provided arguments, which are onl

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

2025-07-03 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 edited https://github.com/llvm/llvm-project/pull/145220 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-07-03 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 requested changes to this pull request. I still hope we can get a new name. It is important for me to understand if some code may affect C++20 module or not by its name. I feel this can be helpful for other developers too. https://github.com/llvm/llvm-project/pull

[clang] [Serialization] Fix lazy template loading (PR #133057)

2025-07-03 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. BTW, I've landed the 3 patches (excluding the problematic reported by Google) internally and we've used it for months. It looks good. https://github.com/llvm/llvm-project/pull/133057 ___ cfe-co

[clang] [llvm] [RISCV][MC] Add MC support of Zibi experimental extension (PR #127463)

2025-07-03 Thread Jessica Clarke via cfe-commits
jrtc27 wrote: > > > This adds the support of Zibi v0.1 experimental extension. > > > References: > > > > > > * > > > https://lf-riscv.atlassian.net/wiki/spaces/USXX/pages/599261201/Branch+with+Immediate+Zibi+Ratification+Plan > > > > > > I cannot for the life of me find an actual specificatio

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

2025-07-03 Thread JJ Marr via cfe-commits
https://github.com/jj-marr edited https://github.com/llvm/llvm-project/pull/146970 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][MC] Add MC support of Zibi experimental extension (PR #127463)

2025-07-03 Thread Jim Lin via cfe-commits
@@ -0,0 +1,42 @@ +//===-- RISCVInstrInfoZibi.td - 'Zibi' instructions --*- tablegen -*-===// tclin914 wrote: The width of this line is not the same as in the other .td file. https://github.com/llvm/llvm-project/pull/127463 ___

[clang] [llvm] [NFC][HLSL][RootSignature] Split up `HLSLRootSignatureUtils` (PR #146124)

2025-07-03 Thread Finn Plummer via cfe-commits
@@ -0,0 +1,194 @@ +//===- RootSignatureMetadata.h - HLSL Root Signature helpers --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [Clang][Driver][SamplePGO] Enable -fsample-profile-use-profi by default (PR #146795)

2025-07-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Nilanjana Basu (nilanjana87) Changes Since profile inference improves sample coverage, it can be turned on by default. Ref. to part1 of this patch: https://github.com/llvm/llvm-project/pull/145957 Discourse conversation: https://d

[clang] [Clang][Driver][SamplePGO] Enable -fsample-profile-use-profi by default (PR #146795)

2025-07-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nilanjana Basu (nilanjana87) Changes Since profile inference improves sample coverage, it can be turned on by default. Ref. to part1 of this patch: https://github.com/llvm/llvm-project/pull/145957 Discourse conversation: https://discours

[clang] [Clang][Driver][SamplePGO] Enable -fsample-profile-use-profi by default (PR #146795)

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

[libclc] [libclc] Reduce include usage in OpenCL builtins (PR #146840)

2025-07-03 Thread Wenju He via cfe-commits
@@ -6,5 +6,12 @@ // //===--===// +#ifndef __CLC_OPENCL_OPENCL_INTEGER_ABS_H__ wenju-he wrote: ```suggestion #ifndef __CLC_OPENCL_INTEGER_ABS_H__ ``` one OPENCL should be sufficient, right?

[clang] [Modules] fix assert in hasInitWithSideEffects (PR #146468)

2025-07-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-x86_64-win` running on `as-builder-10` while building `clang` at step 8 "test-check-lldb-unit". Full details are available at: https://lab.llvm.org/buildbot/#/builders/211/builds/216 Here is the relevant piece of the bu

[clang] [clang][deps] Stop lexing if hit a failure while loading a PCH/module in a submodule. (PR #146976)

2025-07-03 Thread Volodymyr Sapsai via cfe-commits
@@ -4589,6 +4589,9 @@ bool Lexer::LexDependencyDirectiveToken(Token &Result) { if (Result.is(tok::hash) && Result.isAtStartOfLine()) { PP->HandleDirective(Result); +if (PP->hadModuleLoaderFatalFailure()) + // With a fatal failure in the module loader, we abort p

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

2025-07-03 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] [clang][deps] Stop lexing if hit a failure while loading a PCH/module in a submodule. (PR #146976)

2025-07-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Volodymyr Sapsai (vsapsai) Changes Otherwise we are continuing in an invalid state and can easily crash. It is a follow-up to cde90e68f8123e7abef3f9e18d79980aa19f460a but an important difference is when a failure happens in a submodule. I

[clang] [clang][deps] Stop lexing if hit a failure while loading a PCH/module in a submodule. (PR #146976)

2025-07-03 Thread Volodymyr Sapsai via cfe-commits
https://github.com/vsapsai created https://github.com/llvm/llvm-project/pull/146976 Otherwise we are continuing in an invalid state and can easily crash. It is a follow-up to cde90e68f8123e7abef3f9e18d79980aa19f460a but an important difference is when a failure happens in a submodule. In this

[libclc] [libclc] Make library output directories explicit (PR #146833)

2025-07-03 Thread Wenju He via cfe-commits
https://github.com/wenju-he approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/146833 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

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

[clang] [Modules] fix assert in hasInitWithSideEffects (PR #146468)

2025-07-03 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/20434 Here is the relevant piece of the

[clang] [analyzer] Fix crash on compound literals with bitfields in unions (PR #146418)

2025-07-03 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor edited https://github.com/llvm/llvm-project/pull/146418 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix crash on compound literals with bitfields in unions (PR #146418)

2025-07-03 Thread Baranov Victor via cfe-commits
@@ -2187,7 +2187,10 @@ std::optional RegionStoreManager::getBindingForDerivedDefaultValue( // Lazy bindings are usually handled through getExistingLazyBinding(). // We should unify these two code paths at some point. -if (isa(val)) +// 'nonloc::ConcreteInt' va

[clang] [clang-cl] Accept `cl`-style output arguments (`/Fo`, `-Fo`) for `--precompile` (PR #121046)

2025-07-03 Thread via cfe-commits
h-vetinari wrote: > given how important this it, I hope we can make this for clang21. Thanks! FYI, branching for LLVM v21 is less than [two weeks away](https://discourse.llvm.org/t/llvm-21-x-release-information-and-branching/87065) https://github.com/llvm/llvm-project/pull/121046 __

[clang] [analyzer] Fix crash on compound literals with bitfields in unions (PR #146418)

2025-07-03 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor updated https://github.com/llvm/llvm-project/pull/146418 >From 3611049b862e1738237c0092f1e13c08f409663f Mon Sep 17 00:00:00 2001 From: Victor Baranov Date: Mon, 30 Jun 2025 23:34:33 +0300 Subject: [PATCH 1/2] [analyzer] Fix crash on compound literals with bitfields

  1   2   3   4   5   6   >