[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] [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
@@ -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 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] 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] 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 `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-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] [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] [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-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 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 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 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] [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] [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 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] [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] [DebugInfo] Init DwarfVersion of MCOptions like the other. (PR #146666)

2025-07-03 Thread Eli Friedman via cfe-commits
@@ -51,6 +51,16 @@ // RUN: not %clang -target powerpc64-ibm-aix-xcoff -gdwarf-5 -S -emit-llvm -o - %s 2>&1| \ // RUN: FileCheck %s --check-prefix=UNSUPPORTED-VER5 +// Check what version of dwarf is used to emit debug info when compiling ir with clang. +// RUN: %clang -targ

[clang-tools-extra] [clang-doc] add namespace references to VarInfo (PR #146964)

2025-07-03 Thread Erick Velez via cfe-commits
evelez7 wrote: ### Merge activity * **Jul 3, 10:49 PM UTC**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/146964). https://github.com/llvm/llvm-project/pull/146964

[clang-tools-extra] [clang-tidy] Add new check: `modernize-use-concise-preprocessor-directives` (PR #146830)

2025-07-03 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook ready_for_review https://github.com/llvm/llvm-project/pull/146830 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[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][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] [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 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

[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] [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

[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] 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] [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] 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 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] [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] [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] 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] [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-tools-extra] [clang-tidy] Add modernize-avoid-fundamental-integer-types (PR #146970)

2025-07-03 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 h,cpp -- clang-tools-extra/clang-tidy/modernize/AvoidFundame

[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] [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
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
@@ -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] [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] [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] [NFC][HLSL][DirectX] Let `HLSLRootSignature` reuse the `dxbc` defined enums (PR #145986)

2025-07-03 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-m68k-linux-cross` running on `suse-gary-m68k-cross` while building `clang,llvm` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/27/builds/12518 Here is the relevant p

[clang-tools-extra] [clang-tidy] Add modernize-avoid-fundamental-integer-types (PR #146970)

2025-07-03 Thread Baranov Victor via cfe-commits
vbvictor wrote: > Decide whether to provide an autofix. I have chosen not to, because it will > depend on the context one is using a type in. I don't think we need any fixes for this check - it's a tricky field, and we should let the user decide how to resolve these warnings. > Decide whether

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

2025-07-03 Thread Michael Spencer via cfe-commits
https://github.com/Bigcheese approved this pull request. With the last bit this looks fine to me, but you should wait for Chuanqi and see if the naming should be changed. https://github.com/llvm/llvm-project/pull/145220 ___ cfe-commits mailing list cf

[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] [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] [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 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] [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] [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][modules-driver] Add scanner to detect C++20 module presence (PR #145220)

2025-07-03 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth updated https://github.com/llvm/llvm-project/pull/145220 >From 2574e28fd8dd33d4042f169576d9927ae0649ff5 Mon Sep 17 00:00:00 2001 From: Naveen Seth Hanig Date: Fri, 13 Jun 2025 09:19:21 +0200 Subject: [PATCH 1/4] [clang][modules-driver] Add scanner to detect C++20

[clang-tools-extra] [clang-tidy] Add new check: `modernize-use-concise-preprocessor-directives` (PR #146830)

2025-07-03 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/146830 >From 9eb58438d2b4061ad7a6bdbd1db82a5fd4043948 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Thu, 3 Jul 2025 00:19:52 -0700 Subject: [PATCH 1/5] [clang-tidy] Add new check: `modernize-use-concise-pr

[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-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-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-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

[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
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

[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] [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] [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] 2910c24 - [Modules] Record side effect info in EvaluatedStmt (#146468)

2025-07-03 Thread via cfe-commits
Author: Henrik G. Olsson Date: 2025-07-03T15:37:55-07:00 New Revision: 2910c24638fcbc3dec02be072e6026d01012d946 URL: https://github.com/llvm/llvm-project/commit/2910c24638fcbc3dec02be072e6026d01012d946 DIFF: https://github.com/llvm/llvm-project/commit/2910c24638fcbc3dec02be072e6026d01012d946.di

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

2025-07-03 Thread Henrik G. Olsson via cfe-commits
https://github.com/hnrklssn closed https://github.com/llvm/llvm-project/pull/146468 ___ 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 modernize-avoid-fundamental-integer-types (PR #146970)

2025-07-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: JJ Marr (jj-marr) Changes The fundamental types are widely recognized to be flawed because they're of implementation-defined sizes without a common purpose. For example, `long int` is a footgun since its 32 bits on Windows and 64 bit

[clang-tools-extra] [clang-tidy] Add modernize-avoid-fundamental-integer-types (PR #146970)

2025-07-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: JJ Marr (jj-marr) Changes The fundamental types are widely recognized to be flawed because they're of implementation-defined sizes without a common purpose. For example, `long int` is a footgun since its 32 bits on Windows and

[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] [clang][modules-driver] Add scanner to detect C++20 module presence (PR #145220)

2025-07-03 Thread Naveen Seth Hanig via cfe-commits
https://github.com/naveen-seth updated https://github.com/llvm/llvm-project/pull/145220 >From 2574e28fd8dd33d4042f169576d9927ae0649ff5 Mon Sep 17 00:00:00 2001 From: Naveen Seth Hanig Date: Fri, 13 Jun 2025 09:19:21 +0200 Subject: [PATCH 1/5] [clang][modules-driver] Add scanner to detect C++20

[clang] [llvm] AMDGPU: Implement tensor load and store instructions for gfx1250 (PR #146636)

2025-07-03 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-buildbot4` while building `clang,llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/12796 Here is the relevant p

[clang-tools-extra] [clang-tidy] Add modernize-avoid-fundamental-integer-types (PR #146970)

2025-07-03 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor 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-tools-extra] [clang-tidy] Add modernize-avoid-fundamental-integer-types (PR #146970)

2025-07-03 Thread Baranov Victor 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 modernize-avoid-fundamental-integer-types (PR #146970)

2025-07-03 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor requested changes to this pull request. For me, It's 100% portability check, but you could postpone changes until others share opinions. Matchers needs some rework. https://github.com/llvm/llvm-project/pull/146970 ___ cfe-

[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] [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] [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] [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
@@ -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
@@ -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
@@ -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
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] [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] [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] [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] [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] [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] [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] [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] [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

<    1   2   3   4   5   6   >