[clang-tools-extra] 3d24efd - [clang-tidy][NFC] Add empty '.clang-tidy' file in tests dir to silent warnings in IDE (#171029)

2025-12-07 Thread via cfe-commits
Author: Baranov Victor Date: 2025-12-08T10:33:35+03:00 New Revision: 3d24efd85a62e22115a8582aea147f208bf8095f URL: https://github.com/llvm/llvm-project/commit/3d24efd85a62e22115a8582aea147f208bf8095f DIFF: https://github.com/llvm/llvm-project/commit/3d24efd85a62e22115a8582aea147f208bf8095f.diff

[clang-tools-extra] [clang-tidy][NFC] Add empty '.clang-tidy' file in tests dir to silent warnings in IDE (PR #171029)

2025-12-07 Thread Baranov Victor via cfe-commits
https://github.com/vbvictor closed https://github.com/llvm/llvm-project/pull/171029 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [openmp] [Clang][OpenMP] Switch to __kmpc_parallel_60 with strict parameter (PR #171082)

2025-12-07 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 166857 tests passed * 2914 tests skipped * 1 test failed ## Failed Tests (click on a test name to see its output) ### LLVM-Unit LLVM-Unit.Frontend/_/LLVMFrontendTests/OpenMPIRBuilderTest/ParallelSimpleGPU ``` Script: -- /home/g

[clang] [llvm] [RISCV] Update P extension to the 018 version of the spec. (PR #170399)

2025-12-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-debian-cpp20` running on `clang-debian-cpp20` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/108/builds/20636 Here is

[clang-tools-extra] [clang-tidy] Rename 'google-build-namespaces' check to 'misc-anonymous-namespace-in-header' and keep initial as alias. (PR #170986)

2025-12-07 Thread Ondřej Štorc via cfe-commits
https://github.com/ostorc updated https://github.com/llvm/llvm-project/pull/170986 From 69583481e4bb1df710dd8596ac2eea74219ba00c Mon Sep 17 00:00:00 2001 From: Ondrej Storc Date: Sat, 6 Dec 2025 17:00:45 +0100 Subject: [PATCH 1/5] [clang-tidy] Rename 'google-build-namespaces' check to 'misc-an

[clang] [llvm] [RISCV] Update P extension to the 018 version of the spec. (PR #170399)

2025-12-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu` running on `sie-linux-worker3` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/174/builds/28545

[clang] [llvm] [RISCV] Update P extension to the 018 version of the spec. (PR #170399)

2025-12-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `fuchsia-x86_64-linux` running on `fuchsia-debian-64-us-central1-b-1` while building `clang,llvm` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/11/builds/29459 Here is the rele

[clang] [llvm] [RISCV] Update P extension to the 018 version of the spec. (PR #170399)

2025-12-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lld-x86_64-ubuntu-fast` running on `as-builder-4` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/33/builds/27636 Here is th

[clang] [llvm] [RISCV] Update P extension to the 018 version of the spec. (PR #170399)

2025-12-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-expensive-checks-ubuntu` running on `as-builder-4` while building `clang,llvm` at step 7 "test-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/187/builds/14352 Here is t

[clang] [llvm] [RISCV] Update P extension to the 018 version of the spec. (PR #170399)

2025-12-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ml-opt-dev-x86-64` running on `ml-opt-dev-x86-64-b1` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/137/builds/30240 Here i

[clang] [llvm] [RISCV] Update P extension to the 018 version of the spec. (PR #170399)

2025-12-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ml-opt-rel-x86-64` running on `ml-opt-rel-x86-64-b1` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/185/builds/30001 Here i

[clang] [llvm] [RISCV] Update P extension to the 018 version of the spec. (PR #170399)

2025-12-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ml-opt-devrel-x86-64` running on `ml-opt-devrel-x86-64-b1` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/175/builds/29984

[clang] [LifetimeSafety] Infer [[clang::lifetimebound]] annotation (PR #171081)

2025-12-07 Thread Utkarsh Saxena via cfe-commits
https://github.com/usx95 edited https://github.com/llvm/llvm-project/pull/171081 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Update P extension to the 018 version of the spec. (PR #170399)

2025-12-07 Thread Craig Topper via cfe-commits
https://github.com/topperc closed https://github.com/llvm/llvm-project/pull/170399 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 46341d5 - [RISCV] Update P extension to the 018 version of the spec. (#170399)

2025-12-07 Thread via cfe-commits
Author: Craig Topper Date: 2025-12-07T22:57:39-08:00 New Revision: 46341d5938a060834f92da6e507fcd5fddf0155b URL: https://github.com/llvm/llvm-project/commit/46341d5938a060834f92da6e507fcd5fddf0155b DIFF: https://github.com/llvm/llvm-project/commit/46341d5938a060834f92da6e507fcd5fddf0155b.diff

[clang] [llvm] [openmp] [Clang][OpenMP] Switch to __kmpc_parallel_60 with strict parameter (PR #171082)

2025-12-07 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 cpp,c -- clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp clan

[clang] [llvm] [openmp] [Clang][OpenMP] Switch to __kmpc_parallel_60 with strict parameter (PR #171082)

2025-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Kevin Sala Penades (kevinsala) Changes This commit switches the `__kmpc_parallel_51` to `__kmpc_parallel_60`, and adds the strict value for the number of threads. This will be used by #163565. --- Patch is 538.23 KiB, truncated

[clang] Infer [[clang::lifetimebound]] annotation #170418 (PR #171081)

2025-12-07 Thread Kashika Akhouri via cfe-commits
https://github.com/kashika0112 created https://github.com/llvm/llvm-project/pull/171081 Adding Annotation Inference in Lifetime Analysis. This PR implicitly adds lifetime bound annotations to the AST which is then used by functions which are parsed later to detect UARs etc. Example: ``` std::

[clang] Infer [[clang::lifetimebound]] annotation #170418 (PR #171081)

2025-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-temporal-safety Author: Kashika Akhouri (kashika0112) Changes Adding Annotation Inference in Lifetime Analysis. This PR implicitly adds lifetime bound annotations to the AST which is then used by functions which are par

[clang] Infer [[clang::lifetimebound]] annotation #170418 (PR #171081)

2025-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Kashika Akhouri (kashika0112) Changes Adding Annotation Inference in Lifetime Analysis. This PR implicitly adds lifetime bound annotations to the AST which is then used by functions which are parsed later to detect UARs etc. Exam

[clang] [clang-format] Add ObjCSpaceBeforeMethodDeclColon option to control space before Objective-C method return type (PR #170579)

2025-12-07 Thread via cfe-commits
@@ -15623,6 +15623,22 @@ TEST_F(FormatTest, FormatForObjectiveCMethodDecls) { verifyGoogleFormat("- foo:(int)foo;"); } +TEST_F(FormatTest, SpaceBeforeObjCMethodDeclColon) { + FormatStyle Style = getLLVMStyle(); + verifyFormat("- (void)method;", "-(void)method;", Style); +

[clang] [clang-format] Add ObjCSpaceBeforeMethodDeclColon option to control space before Objective-C method return type (PR #170579)

2025-12-07 Thread via cfe-commits
@@ -15623,6 +15623,22 @@ TEST_F(FormatTest, FormatForObjectiveCMethodDecls) { verifyGoogleFormat("- foo:(int)foo;"); } +TEST_F(FormatTest, SpaceBeforeObjCMethodDeclColon) { + FormatStyle Style = getLLVMStyle(); + verifyFormat("- (void)method;", "-(void)method;", Style); +

[clang] [clang-format] Add ObjCSpaceBeforeMethodDeclColon option to control space before Objective-C method return type (PR #170579)

2025-12-07 Thread via cfe-commits
https://github.com/owenca requested changes to this pull request. Please link a public style guide that wants no space after the +/- prefix. See https://clang.llvm.org/docs/ClangFormatStyleOptions.html#adding-additional-style-options. Also, add a `CHECK_PARSE_BOOL` test. https://github.com/llv

[clang] [clang-format] Add ObjCSpaceBeforeMethodDeclColon option to control space before Objective-C method return type (PR #170579)

2025-12-07 Thread via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/170579 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add ObjCSpaceBeforeMethodDeclColon option to control space before Objective-C method return type (PR #170579)

2025-12-07 Thread via cfe-commits
@@ -3936,6 +3936,16 @@ struct FormatStyle { /// \version 3.7 bool ObjCSpaceAfterProperty; + /// Add or remove a space between the '-'/'+' and the return type in + /// Objective-C method declarations. i.e + /// \code{.objc} + ///false: true: +

[clang-tools-extra] [clang-tidy] Enable C99 in `implicit-bool-conversion` and avoid FP with `bool` operands in C23 (PR #171070)

2025-12-07 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/171070 >From 4ccd199ffecced16cfff596c771088ccbdc1c85f Mon Sep 17 00:00:00 2001 From: mtx Date: Thu, 4 Dec 2025 22:50:39 +0800 Subject: [PATCH 1/4] [clang-tidy] Fix implicit-bool-conversion false positives with C23 logic

[clang] [llvm] [PowerPC] Add Support for BCDSHIFT, BCDSHIFTR, BCDTRUNC, BCDUTRUNC, and BCDUSHIFT instruction support (PR #154715)

2025-12-07 Thread Aditi Medhane via cfe-commits
AditiRM wrote: ## Prototypes ```c vector unsigned char __builtin_bcdshift(vector unsigned char, int, unsigned char); vector unsigned char __builtin_bcdshiftround(vector unsigned char, int, unsigned char); vector unsigned char __builtin_bcdtruncate(vector unsigned char, int, unsigned char); ve

[clang] [llvm] [PowerPC] Add Support for BCDSHIFT, BCDSHIFTR, BCDTRUNC, BCDUTRUNC, and BCDUSHIFT instruction support (PR #154715)

2025-12-07 Thread Aditi Medhane via cfe-commits
https://github.com/AditiRM edited https://github.com/llvm/llvm-project/pull/154715 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Update P extension to the 018 version of the spec. (PR #170399)

2025-12-07 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat approved this pull request. LGTM~ https://github.com/llvm/llvm-project/pull/170399 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Apply alignment attr for make.buffer.rsrc (PR #166914)

2025-12-07 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 `llvm` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/169/builds/17785 Here is the relevant piece o

[clang] [Clang] Add TimeTraceScope to Sema::CheckConstraintSatisfaction (PR #170264)

2025-12-07 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 approved this pull request. https://github.com/llvm/llvm-project/pull/170264 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add TimeTraceScope to Sema::CheckConstraintSatisfaction (PR #170264)

2025-12-07 Thread Younan Zhang via cfe-commits
@@ -1182,6 +1183,10 @@ bool Sema::CheckConstraintSatisfaction( const MultiLevelTemplateArgumentList &TemplateArgsLists, SourceRange TemplateIDRange, ConstraintSatisfaction &OutSatisfaction, const ConceptReference *TopLevelConceptId, Expr **ConvertedExpr) { + llvm::

[clang] [llvm] [mlir] [AMDGPU] add clamp immediate operand to WMMA iu8 intrinsic (PR #171069)

2025-12-07 Thread Shilei Tian via cfe-commits
@@ -483,14 +483,19 @@ v_wmma_i32_16x16x64_iu8 v[16:23], v[0:7], v[8:15], v[16:23] neg_lo:[0,1,0] // GFX1250: v_wmma_i32_16x16x64_iu8 v[16:23], v[0:7], v[8:15], v[16:23] neg_lo:[0,1,0] ; encoding: [0x10,0x00,0x72,0xcc,0x00,0x11,0x42,0x5c] // WAVESIZE-ERR: :[[@LINE-3]]:1: error:

[clang] [llvm] [mlir] [AMDGPU] add clamp immediate operand to WMMA iu8 intrinsic (PR #171069)

2025-12-07 Thread Muhammad Abdul via cfe-commits
https://github.com/0xzre updated https://github.com/llvm/llvm-project/pull/171069 >From df40111bf084022085b4facd555c03fd42c2827d Mon Sep 17 00:00:00 2001 From: 0xzre Date: Mon, 8 Dec 2025 07:32:45 +0700 Subject: [PATCH 1/2] [AMDGPU] add clamp immediate operand to WMMA iu8 intrinsic --- clang

[clang] [clang-format] Make ignored files unformatted instead of empty. (PR #170416)

2025-12-07 Thread via cfe-commits
@@ -701,9 +711,8 @@ int main(int argc, const char **argv) { } if (FileNames.empty()) { -if (isIgnored(AssumeFileName)) - return 0; -return clang::format::format("-", FailOnIncompleteFormat); +return clang::format::format("-", FailOnIncompleteFormat, +

[clang] [clang-format] Make ignored files unformatted instead of empty. (PR #170416)

2025-12-07 Thread via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/170416 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Apply alignment attr for make.buffer.rsrc (PR #166914)

2025-12-07 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-mlir-rhel-clang` running on `ppc64le-mlir-rhel-test` while building `llvm` at step 2 "checkout". Full details are available at: https://lab.llvm.org/buildbot/#/builders/129/builds/34534 Here is the relevant piece of

[clang] [llvm] Clang: Add nsz to llvm.minnum and llvm.maxnum emitted from fmin and fmax (PR #113133)

2025-12-07 Thread YunQiang Su via cfe-commits
@@ -4002,8 +4012,11 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID, Result = Builder.CreateBinaryIntrinsic( Ty->isSignedIntegerType() ? Intrinsic::smin : Intrinsic::umin, Op0, Op1, nullptr, "elt.min"); -} else -

[clang] [llvm] Clang: Add nsz to llvm.minnum and llvm.maxnum emitted from fmin and fmax (PR #113133)

2025-12-07 Thread YunQiang Su via cfe-commits
https://github.com/wzssyqa edited https://github.com/llvm/llvm-project/pull/113133 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Clang: Add nsz to llvm.minnum and llvm.maxnum emitted from fmin and fmax (PR #113133)

2025-12-07 Thread YunQiang Su via cfe-commits
@@ -4002,8 +4012,11 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID, Result = Builder.CreateBinaryIntrinsic( Ty->isSignedIntegerType() ? Intrinsic::smin : Intrinsic::umin, Op0, Op1, nullptr, "elt.min"); -} else -

[clang] [llvm] [AMDGPU] Apply alignment attr for make.buffer.rsrc (PR #166914)

2025-12-07 Thread via cfe-commits
https://github.com/Shoreshen closed https://github.com/llvm/llvm-project/pull/166914 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver][Hurd] Remove llvm_unreachable (PR #171077)

2025-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Brad Smith (brad0) Changes Remove the llvm_unreachable from getDynamicLinker(). The code path is reachable. In the case of an unsupported architecture we're not worrying about trying to actually determine the dynamic linker, and I don't thi

[clang] [Driver][Hurd] Remove llvm_unreachable (PR #171077)

2025-12-07 Thread Brad Smith via cfe-commits
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/171077 Remove the llvm_unreachable from getDynamicLinker(). The code path is reachable. In the case of an unsupported architecture we're not worrying about trying to actually determine the dynamic linker, and I don't thin

[clang] [llvm] [llvm] Introduce MoveEntryAllocaInit pass (PR #164882)

2025-12-07 Thread Nimit Sachdeva via cfe-commits
https://github.com/nimit25 updated https://github.com/llvm/llvm-project/pull/164882 >From a05e8f9ca277e3ca6bcb6869a6adcf3bceeb4b7b Mon Sep 17 00:00:00 2001 From: Nimit Sachdeva Date: Thu, 23 Oct 2025 15:58:35 -0400 Subject: [PATCH 1/4] #150120 Introduce MoveEntryAllocaInit pass --- .../llvm/T

[clang] [llvm] [llvm] Introduce MoveEntryAllocaInit pass (PR #164882)

2025-12-07 Thread Nimit Sachdeva via cfe-commits
https://github.com/nimit25 updated https://github.com/llvm/llvm-project/pull/164882 >From a05e8f9ca277e3ca6bcb6869a6adcf3bceeb4b7b Mon Sep 17 00:00:00 2001 From: Nimit Sachdeva Date: Thu, 23 Oct 2025 15:58:35 -0400 Subject: [PATCH 1/4] #150120 Introduce MoveEntryAllocaInit pass --- .../llvm/T

[clang] [Clang][OpenCL][AMDGPU] Allow _Float16 and half vector type compatibility (PR #170605)

2025-12-07 Thread Wenju He via cfe-commits
https://github.com/wenju-he approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/170605 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Flang][FIR] Introduce FIRToCoreMLIR pass. (PR #168703)

2025-12-07 Thread Ming Yan via cfe-commits
NexMing wrote: ping https://github.com/llvm/llvm-project/pull/168703 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [Flang][FIR] Introduce FIRToCoreMLIR pass. (PR #168703)

2025-12-07 Thread Ming Yan via cfe-commits
https://github.com/NexMing updated https://github.com/llvm/llvm-project/pull/168703 >From 5417db4aeb59ed70dd5ee9c0383a5961d4c7ab43 Mon Sep 17 00:00:00 2001 From: yanming Date: Thu, 13 Nov 2025 13:37:15 +0800 Subject: [PATCH 01/15] [FIR][Lowering] Add FIRToMLIR pass. --- .../include/flang/Opti

[clang-tools-extra] [clang-tidy][NFC] Refactor `fuchsia-multiple-inheritance` (PR #171059)

2025-12-07 Thread via cfe-commits
https://github.com/zeyi2 approved this pull request. https://github.com/llvm/llvm-project/pull/171059 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenCL] Add missing Intel extensions to OpenCLExtensions.def (PR #169875)

2025-12-07 Thread Wenju He via cfe-commits
https://github.com/wenju-he edited https://github.com/llvm/llvm-project/pull/169875 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenCL] Add missing Intel extensions to OpenCLExtensions.def (PR #169875)

2025-12-07 Thread Wenju He via cfe-commits
https://github.com/wenju-he edited https://github.com/llvm/llvm-project/pull/169875 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenCL] Add missing Intel subgroup extensions to OpenCLExtensions.def (PR #169875)

2025-12-07 Thread Wenju He via cfe-commits
https://github.com/wenju-he updated https://github.com/llvm/llvm-project/pull/169875 >From 67f4256f00246bd6d05444647351162e19197db4 Mon Sep 17 00:00:00 2001 From: Wenju He Date: Fri, 28 Nov 2025 07:10:47 +0100 Subject: [PATCH 1/2] [OpenCL] Add missing Intel subgroup extensions to OpenCLExtensi

[clang] [llvm] [RISCV] Add Propeller support for RISC-V (PR #170992)

2025-12-07 Thread Craig Topper via cfe-commits
@@ -89,6 +89,15 @@ RISCVInstrInfo::RISCVInstrInfo(const RISCVSubtarget &STI) #define GET_INSTRINFO_HELPERS #include "RISCVGenInstrInfo.inc" +void RISCVInstrInfo::insertNoop(MachineBasicBlock &MBB, +MachineBasicBlock::iterator MI) const { + Debu

[clang] [llvm] [mlir] [AMDGPU] add clamp immediate operand to WMMA iu8 intrinsic (PR #171069)

2025-12-07 Thread Shilei Tian via cfe-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/171069 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [AMDGPU] add clamp immediate operand to WMMA iu8 intrinsic (PR #171069)

2025-12-07 Thread Shilei Tian via cfe-commits
https://github.com/shiltian commented: The LLVM changes look good to me. https://github.com/llvm/llvm-project/pull/171069 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add Propeller support for RISC-V (PR #170992)

2025-12-07 Thread Craig Topper via cfe-commits
@@ -6128,6 +6128,13 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, << A->getAsString(Args) << A->getValue(); else A->render(Args, CmdArgs); +} else if (Triple.isRISCV() && Triple.isOSBinFormatELF()) { + // Add RISC-V support

[clang-tools-extra] [clang-tidy][NFC] Refactor `fuchsia-multiple-inheritance` (PR #171059)

2025-12-07 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/171059 >From c53880940787c9c2f81b0466f82e41831b87b407 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sun, 7 Dec 2025 01:38:48 -0800 Subject: [PATCH 01/21] Inline `addNodeToInterfaceMap` --- .../clang-tidy/

[clang] [llvm] [AMDGPU] Apply alignment attr for make.buffer.rsrc (PR #166914)

2025-12-07 Thread via cfe-commits
https://github.com/Shoreshen updated https://github.com/llvm/llvm-project/pull/166914 >From 4d3d6e41cb347572b69cd84705218786a01a7b4e Mon Sep 17 00:00:00 2001 From: shore <[email protected]> Date: Fri, 7 Nov 2025 17:52:32 +0800 Subject: [PATCH 01/11] Apply alignment attr for make.buffer.rsrc ---

[clang] [llvm] [RISCV] Add Propeller support for RISC-V (PR #170992)

2025-12-07 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp commented: Thanks! We are interested in this work! There are some suggestions: 1. Please add some tests for these driver changes. 3. Can you describe what we are missing for the support of Propeller in the middle/back ends? For example, I don't know the relationshi

[clang] [llvm] [CoroEarly] Infer presplitcoroutine attribute for Switch-Resumed ABI (PR #169866)

2025-12-07 Thread Weibo He via cfe-commits
NewSigma wrote: Hi @ChuanqiXu9, I noticed fixing the failing test breaks the behavior introduced in #49264. Specifically, there are two inconsistencies: 1. The O0 pipeline schedules AlwaysInliner before CoroEarly, while others schedule CoroEarly before Always

[libunwind] [libunwind][NFC] fix typo and wrong debug log. (PR #163314)

2025-12-07 Thread Wu Yingcong via cfe-commits
@@ -81,159 +81,158 @@ enum { // DWARF expressions enum { - DW_OP_addr = 0x03, // constant address (size target specific) - DW_OP_deref = 0x06, yingcong-wu wrote: I didn't do that, but the git-clang-format thinks otherwise. https

[clang] [llvm] [llvm][Triple] Add libc-less variants of some environments (PR #168042)

2025-12-07 Thread Lu Weining via cfe-commits
SixWeining wrote: RISC-V has a module flag called `target-abi`. Can the Zig language utilize it? https://github.com/llvm/llvm-project/pull/168042 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[clang-tools-extra] [clang-tidy] Rename google-readability-casting to modernize-avoid-c-style-cast (PR #171058)

2025-12-07 Thread via cfe-commits
https://github.com/zeyi2 edited https://github.com/llvm/llvm-project/pull/171058 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add fine-grained `__has_feature()` cutout (PR #170822)

2025-12-07 Thread via cfe-commits
j39m wrote: CC @fmayer (for general observation from afar) https://github.com/llvm/llvm-project/pull/170822 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR][CIRGen][Builtin][X86] Masked compress Intrinsics (PR #169582)

2025-12-07 Thread via cfe-commits
Bhuvan1527 wrote: > The checks look good. I have just a few comments. Addressed those comments in the latest commit. Let me if there is anything needed for this to be merged. https://github.com/llvm/llvm-project/pull/169582 ___ cfe-commits mailing li

[clang-tools-extra] [clang-tidy] Rename google-readability-casting to modernize-avoid-c-style-cast (PR #171058)

2025-12-07 Thread via cfe-commits
zeyi2 wrote: IMO this file should be renamed to `AvoidCStyleCastCheck.h` to better align with the check name: `modernize-avoid-c-style-cast`, same as the `.cpp` and the related files. https://github.com/llvm/llvm-project/pull/171058 __

[clang-tools-extra] [clang-tidy] Rename google-readability-casting to modernize-avoid-c-style-cast (PR #171058)

2025-12-07 Thread via cfe-commits
@@ -0,0 +1,14 @@ +.. title:: clang-tidy - modernize-avoid-c-style-cast + +modernize-avoid-c-style-cast + + +Finds usages of C-style casts. + +https://google.github.io/styleguide/cppguide.html#Casting zeyi2 wrote: I think this should be

[clang-tools-extra] [clang-tidy] Rename google-readability-casting to modernize-avoid-c-style-cast (PR #171058)

2025-12-07 Thread via cfe-commits
https://github.com/zeyi2 requested changes to this pull request. https://github.com/llvm/llvm-project/pull/171058 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Rename google-readability-casting to modernize-avoid-c-style-cast (PR #171058)

2025-12-07 Thread via cfe-commits
@@ -3,12 +3,4 @@ google-readability-casting == -Finds usages of C-style casts. - -https://google.github.io/styleguide/cppguide.html#Casting - -Corresponding cpplint.py check name: `readability/casting`. - -This check is similar to ``-Wold-style-cast``,

[clang-tools-extra] [clang-tidy] Enable C99 in `implicit-bool-conversion` and avoid FP with `bool` operands in C23 (PR #171070)

2025-12-07 Thread via cfe-commits
https://github.com/zeyi2 updated https://github.com/llvm/llvm-project/pull/171070 >From 4ccd199ffecced16cfff596c771088ccbdc1c85f Mon Sep 17 00:00:00 2001 From: mtx Date: Thu, 4 Dec 2025 22:50:39 +0800 Subject: [PATCH 1/2] [clang-tidy] Fix implicit-bool-conversion false positives with C23 logic

[clang-tools-extra] [clang-tidy] Enable C99 in `implicit-bool-conversion` and avoid FP with `bool` operands in C23 (PR #171070)

2025-12-07 Thread via cfe-commits
@@ -27,7 +27,9 @@ AST_MATCHER(Stmt, isMacroExpansion) { return SM.isMacroBodyExpansion(Loc) || SM.isMacroArgExpansion(Loc); } -AST_MATCHER(Stmt, isC23) { return Finder->getASTContext().getLangOpts().C23; } +AST_MATCHER(Stmt, isC) { + return !Finder->getASTContext().getLangO

[clang-tools-extra] [clang-tidy][NFC] Add empty '.clang-tidy' file in tests dir to silent warnings in IDE (PR #171029)

2025-12-07 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook approved this pull request. https://github.com/llvm/llvm-project/pull/171029 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Enable C99 in `implicit-bool-conversion` and avoid FP with `bool` operands in C23 (PR #171070)

2025-12-07 Thread via cfe-commits
@@ -75,20 +75,10 @@ void implicitConversionFromBoolInComplexBoolExpressions() { bool anotherBoolean = false; int integer = boolean && anotherBoolean; - // CHECK-MESSAGES: :[[@LINE-1]]:17: warning: implicit conversion 'bool' -> 'int' - // CHECK-MESSAGES: :[[@LINE-2]]:28:

[clang-tools-extra] [clang-tidy] Enable C99 in `implicit-bool-conversion` and avoid FP with `bool` operands in C23 (PR #171070)

2025-12-07 Thread via cfe-commits
@@ -27,7 +27,9 @@ AST_MATCHER(Stmt, isMacroExpansion) { return SM.isMacroBodyExpansion(Loc) || SM.isMacroArgExpansion(Loc); } -AST_MATCHER(Stmt, isC23) { return Finder->getASTContext().getLangOpts().C23; } +AST_MATCHER(Stmt, isC) { + return !Finder->getASTContext().getLangO

[clang-tools-extra] [clang-tidy] Enable C99 in `implicit-bool-conversion` and avoid FP with `bool` operands in C23 (PR #171070)

2025-12-07 Thread via cfe-commits
@@ -543,7 +543,8 @@ Changes in existing checks - Improved :doc:`readability-implicit-bool-conversion ` check by correctly adding parentheses when the inner expression are implicitly converted - multiple times. + multiple times, enabling the check in C99, and avoiding fal

[clang-tools-extra] [clang-tidy][NFC] Refactor `fuchsia-multiple-inheritance` (PR #171059)

2025-12-07 Thread Yanzuo Liu via cfe-commits
@@ -17,105 +17,61 @@ namespace clang::tidy::fuchsia { namespace { AST_MATCHER(CXXRecordDecl, hasBases) { - if (Node.hasDefinition()) -return Node.getNumBases() > 0; - return false; + return Node.hasDefinition() && Node.getNumBases() > 0; } } // namespace -// Adds a

[clang-tools-extra] [clang-tidy][NFC] Refactor `fuchsia-multiple-inheritance` (PR #171059)

2025-12-07 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis approved this pull request. https://github.com/llvm/llvm-project/pull/171059 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Refactor `fuchsia-multiple-inheritance` (PR #171059)

2025-12-07 Thread Yanzuo Liu via cfe-commits
@@ -17,105 +17,61 @@ namespace clang::tidy::fuchsia { namespace { AST_MATCHER(CXXRecordDecl, hasBases) { - if (Node.hasDefinition()) -return Node.getNumBases() > 0; - return false; + return Node.hasDefinition() && Node.getNumBases() > 0; } } // namespace -// Adds a

[clang-tools-extra] [clang-tidy][NFC] Refactor `fuchsia-multiple-inheritance` (PR #171059)

2025-12-07 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis edited https://github.com/llvm/llvm-project/pull/171059 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy] Enable C99 in `implicit-bool-conversion` and avoid FP with `bool` operands in C23 (PR #171070)

2025-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: mitchell (zeyi2) Changes Closes [#170596](https://github.com/llvm/llvm-project/issues/170596) --- Full diff: https://github.com/llvm/llvm-project/pull/171070.diff 5 Files Affected: - (modified) clang-tools-extra/clang-tidy/

[clang-tools-extra] [clang-tidy] Enable C99 in `implicit-bool-conversion` and avoid FP with `bool` operands in C23 (PR #171070)

2025-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: mitchell (zeyi2) Changes Closes [#170596](https://github.com/llvm/llvm-project/issues/170596) --- Full diff: https://github.com/llvm/llvm-project/pull/171070.diff 5 Files Affected: - (modified) clang-tools-extra/clang-tidy/readabi

[clang-tools-extra] [clang-tidy] Enable C99 in `implicit-bool-conversion` and avoid FP with `bool` operands in C23 (PR #171070)

2025-12-07 Thread via cfe-commits
https://github.com/zeyi2 created https://github.com/llvm/llvm-project/pull/171070 Closes [#170596](https://github.com/llvm/llvm-project/issues/170596) >From 4ccd199ffecced16cfff596c771088ccbdc1c85f Mon Sep 17 00:00:00 2001 From: mtx Date: Thu, 4 Dec 2025 22:50:39 +0800 Subject: [PATCH] [clang-

[clang-tools-extra] [clang-tidy][NFC] Add empty '.clang-tidy' file in tests dir to silent warnings in IDE (PR #171029)

2025-12-07 Thread via cfe-commits
https://github.com/EugeneZelenko approved this pull request. https://github.com/llvm/llvm-project/pull/171029 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [AMDGPU] add clamp immediate operand to WMMA iu8 intrinsic (PR #171069)

2025-12-07 Thread via cfe-commits
github-actions[bot] wrote: # :penguin: Linux x64 Test Results * 166853 tests passed * 2914 tests skipped * 4 tests failed ## Failed Tests (click on a test name to see its output) ### LLVM LLVM.CodeGen/AMDGPU/wmma-coececution-valu-hazards.mir ``` Exit Code: 2 Command Output (stdout): -- # R

[clang] [llvm] [AMDGPU] Apply alignment attr for make.buffer.rsrc (PR #166914)

2025-12-07 Thread via cfe-commits
https://github.com/Shoreshen updated https://github.com/llvm/llvm-project/pull/166914 >From 4d3d6e41cb347572b69cd84705218786a01a7b4e Mon Sep 17 00:00:00 2001 From: shore <[email protected]> Date: Fri, 7 Nov 2025 17:52:32 +0800 Subject: [PATCH 01/11] Apply alignment attr for make.buffer.rsrc ---

[clang] [llvm] [mlir] [AMDGPU] add clamp immediate operand to WMMA iu8 intrinsic (PR #171069)

2025-12-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Muhammad Abdul (0xzre) Changes Fixes #166989 - Adds a clamp immediate operand to the AMDGPU WMMA iu8 intrinsic and threads it through LLVM IR, MIR lowering, Clang builtins/tests, and MLIR ROCDL dialect so all layers agree on the new

[clang] [llvm] [mlir] [AMDGPU] add clamp immediate operand to WMMA iu8 intrinsic (PR #171069)

2025-12-07 Thread Muhammad Abdul via cfe-commits
https://github.com/0xzre created https://github.com/llvm/llvm-project/pull/171069 Fixes #166989 - Adds a clamp immediate operand to the AMDGPU WMMA iu8 intrinsic and threads it through LLVM IR, MIR lowering, Clang builtins/tests, and MLIR ROCDL dialect so all layers agree on the new operand

[clang] [clang-format] Make ignored files unformatted instead of empty. (PR #170416)

2025-12-07 Thread via cfe-commits
https://github.com/matts1 edited https://github.com/llvm/llvm-project/pull/170416 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Make ignored files unformatted instead of empty. (PR #170416)

2025-12-07 Thread via cfe-commits
@@ -701,9 +711,8 @@ int main(int argc, const char **argv) { } if (FileNames.empty()) { -if (isIgnored(AssumeFileName)) - return 0; -return clang::format::format("-", FailOnIncompleteFormat); +return clang::format::format("-", FailOnIncompleteFormat, +

[clang] [llvm] [InferAddressSpaces] Support address space inference from load values (PR #171019)

2025-12-07 Thread via cfe-commits
https://github.com/actinks updated https://github.com/llvm/llvm-project/pull/171019 >From f1ca224d2ca9f0cabfdbf636cee4ed5cda23b82a Mon Sep 17 00:00:00 2001 From: actink Date: Sun, 7 Dec 2025 11:25:08 +0800 Subject: [PATCH 1/3] precommit --- .../InferAddressSpaces/NVPTX/load-ptr.ll | 240

[clang] [CodeGen][ObjC] Try/Catch support for WebAssembly (PR #171038)

2025-12-07 Thread Hendrik Hübner via cfe-commits
https://github.com/HendrikHuebner edited https://github.com/llvm/llvm-project/pull/171038 ___ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] [docs] Clarify the issue with compiler-rt on Windows/MSVC (PR #106875)

2025-12-07 Thread via cfe-commits
h-vetinari wrote: > See e.g. > https://discourse.llvm.org/t/improve-autolinking-of-compiler-rt-and-libc-on-windows-with-lld-link/71392 > for a discussion on how to improve this situation. Xref https://github.com/llvm/llvm-project/issues/63827 https://github.com/llvm/llvm-project/pull/106875

[clang] [Clang] Fix visibility macros for c-index-test (PR #171054)

2025-12-07 Thread via cfe-commits
kkent030315 wrote: Apparently `-DCLANG_LINK_CLANG_DYLIB=ON` is still a lot of mess right now, couldn't get it built on main. ``` RuntimeLibcallInfo.h:37:3: error: attribute 'dllexport' cannot be applied to member of 'dllexport' class 37 | LLVM_ABI static AnalysisKey Key; ``` https://gith

[clang] [NFC][HIP] Disable device-side kernel launches for HIP (PR #171043)

2025-12-07 Thread via cfe-commits
@@ -504,7 +504,8 @@ RValue CodeGenFunction::EmitCUDAKernelCallExpr(const CUDAKernelCallExpr *E, ReturnValueSlot ReturnValue, llvm::CallBase **CallOrInvoke) { // Emit as a device ker

[clang-tools-extra] [clang-tidy][NFC] Refactor `fuchsia-multiple-inheritance` (PR #171059)

2025-12-07 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/171059 >From c53880940787c9c2f81b0466f82e41831b87b407 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sun, 7 Dec 2025 01:38:48 -0800 Subject: [PATCH 01/20] Inline `addNodeToInterfaceMap` --- .../clang-tidy/

[clang-tools-extra] [clang-tidy][NFC] Refactor `fuchsia-multiple-inheritance` (PR #171059)

2025-12-07 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/171059 >From c53880940787c9c2f81b0466f82e41831b87b407 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sun, 7 Dec 2025 01:38:48 -0800 Subject: [PATCH 01/19] Inline `addNodeToInterfaceMap` --- .../clang-tidy/

[clang-tools-extra] [clang-tidy][NFC] Refactor `fuchsia-multiple-inheritance` (PR #171059)

2025-12-07 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/171059 >From c53880940787c9c2f81b0466f82e41831b87b407 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Sun, 7 Dec 2025 01:38:48 -0800 Subject: [PATCH 01/18] Inline `addNodeToInterfaceMap` --- .../clang-tidy/

[clang-tools-extra] [clang-tidy][NFC] Refactor `fuchsia-multiple-inheritance` (PR #171059)

2025-12-07 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 cpp,h -- clang-tools-extra/clang-tidy/fuchsia/MultipleI

[clang-tools-extra] [clang-tidy][NFC] Refactor `fuchsia-multiple-inheritance` (PR #171059)

2025-12-07 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook created https://github.com/llvm/llvm-project/pull/171059 I've structured this PR as a series of independent commits, so it's probably easiest to review commit-by-commit. There's some subjectivity involved with refactoring, so if you think any of the changes is a d

[clang] [Clang] Fix visibility macros for c-index-test (PR #171054)

2025-12-07 Thread via cfe-commits
kkent030315 wrote: > I believe this breaks dylib builds (`-DCLANG_LINK_CLANG_DYLIB=ON`), which is > still in progress. `__declspec(dllimport)` is essential for that. How so? Can you be more specific how this would break dylib builds, and what exactly is in the progress? As mentioned in the co

  1   2   3   >