[clang] [clang-format] Improve QualifierAlignment in guessing macros (PR #145468)

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

[clang] [clang-tools-extra] [clang-tidy] [Modules] Skip checking decls in clang-tidy (PR #145630)

2025-06-25 Thread Baranov Victor via cfe-commits
vbvictor wrote: If modules are considered as system headers in clang-tidy, there was work in https://github.com/llvm/llvm-project/pull/128150 to reduce scope of traversal to match only in user code (I suppose it would affect modules too). But that PR had to be reverted due to appeared issues w

[clang] Cap IntRange::Width to MaxWidth (PR #145356)

2025-06-25 Thread Akira Hatanaka via cfe-commits
https://github.com/ahatanak edited https://github.com/llvm/llvm-project/pull/145356 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [clang-tidy] [Modules] Skip checking decls in clang-tidy (PR #145630)

2025-06-25 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > If modules are considered as system headers in clang-tidy, there was work in > #128150 to reduce scope of traversal to match only in user code (I suppose it > would affect modules too). But that PR had to be reverted due to appeared > issues with downstream users. Hopefully

[clang] 01b288f - [clang-format] Improve QualifierAlignment in guessing macros (#145468)

2025-06-25 Thread via cfe-commits
Author: Owen Pan Date: 2025-06-25T00:01:06-07:00 New Revision: 01b288fe6a1e627954329198ed5641f2bf55ee8d URL: https://github.com/llvm/llvm-project/commit/01b288fe6a1e627954329198ed5641f2bf55ee8d DIFF: https://github.com/llvm/llvm-project/commit/01b288fe6a1e627954329198ed5641f2bf55ee8d.diff LOG:

[clang] [llvm] [RISCV] Add Support of RISCV Zibimm Experimental Extension (PR #127463)

2025-06-25 Thread Boyao Wang via cfe-commits
https://github.com/BoyaoWang430 updated https://github.com/llvm/llvm-project/pull/127463 >From e740d8cfb8b689d766841396c5a6ab9a1d389ec7 Mon Sep 17 00:00:00 2001 From: wangboyao Date: Mon, 17 Feb 2025 17:35:52 +0800 Subject: [PATCH 1/3] [RISCV] Add Support of RISCV Zibimm Experimental Extension

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

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-mc Author: UmeshKalappa (ukalappa-mips) Changes the extension enabled with xmipscop. Please refer "MIPS RV64 P8700/P8700-F Multiprocessing System Programmer’s Guide" for more info on the extension at https://mips.com/wp-cont

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

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: UmeshKalappa (ukalappa-mips) Changes the extension enabled with xmipscop. Please refer "MIPS RV64 P8700/P8700-F Multiprocessing System Programmer’s Guide" for more info on the extension at https://mips.com/wp-content/uploads/202

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

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-mips Author: UmeshKalappa (ukalappa-mips) Changes the extension enabled with xmipscop. Please refer "MIPS RV64 P8700/P8700-F Multiprocessing System Programmer’s Guide" for more info on the extension at https://mips.com/wp-content/uploads/2025/

[clang] [RISCV] Implement intrinsics for XAndesVBFHCVT (PR #145634)

2025-06-25 Thread Jianjian Guan via cfe-commits
https://github.com/jacquesguan approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/145634 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix crash when modelling 'getline' function in checkers (PR #145229)

2025-06-25 Thread Arseniy Zaostrovnykh via cfe-commits
@@ -0,0 +1,127 @@ +// RUN: %clang_analyze_cc1 -analyzer-checker=core,unix -verify %s -DTEST_CORRECT +// RUN: %clang_analyze_cc1 -analyzer-checker=core,unix -verify %s -DTEST_GETLINE_1 +// RUN: %clang_analyze_cc1 -analyzer-checker=core,unix -verify %s -DTEST_GETLINE_2 +// RUN: %

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-25 Thread Balázs Benics via cfe-commits
balazs-benics-sonarsource wrote: Just rebased the PR to exclude the refactor change of `classof`. I'll schedule a measurement now. https://github.com/llvm/llvm-project/pull/144327 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.l

[clang] [Serialization] Fix source location data loss during decoding. (PR #145529)

2025-06-25 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > > The design is, the higher 32 bits are used for module file index and the > > lower bits are used for offsets. Could you give a concrete example why the > > current implementation is problematic? > > I don’t have a concrete failure case, but I noticed this while working on

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

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

[clang] [llvm] [EarlyCSE] Add support for writeonly call CSE (PR #145474)

2025-06-25 Thread Nikita Popov via cfe-commits
https://github.com/nikic updated https://github.com/llvm/llvm-project/pull/145474 >From 295dc3520fb98c4a94263f1926f2e97764c8f442 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Tue, 24 Jun 2025 10:08:40 +0200 Subject: [PATCH 1/3] [EarlyCSE] Add tests for writeonly --- llvm/test/Transforms/E

[clang] [llvm] [PowerPC] Support for Packed BCD conversion builtins (PR #142723)

2025-06-25 Thread Tony Varghese via cfe-commits
https://github.com/tonykuttai updated https://github.com/llvm/llvm-project/pull/142723 >From ccaa61d070ba3df59a75945d4e8c3275c71500a9 Mon Sep 17 00:00:00 2001 From: himadhith Date: Wed, 4 Jun 2025 06:13:13 + Subject: [PATCH] [PowerPC] Support for Packed BCD conversion builtins --- clang/i

[clang] [RISCV] Decrease the capacity of SmallVector to 6. NFC. (PR #145650)

2025-06-25 Thread Jim Lin via cfe-commits
https://github.com/tclin914 created https://github.com/llvm/llvm-project/pull/145650 The maximum usage of these SmallVectors is only 6 elements. >From 233cb3f6c7bfa26d2c9010bb3d6108229a5002fc Mon Sep 17 00:00:00 2001 From: Jim Lin Date: Wed, 25 Jun 2025 16:04:07 +0800 Subject: [PATCH] [RISCV]

[clang] [RISCV] Decrease the capacity of SmallVector to 6. NFC. (PR #145650)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Jim Lin (tclin914) Changes The maximum usage of these SmallVectors is only 6 elements. --- Full diff: https://github.com/llvm/llvm-project/pull/145650.diff 1 Files Affected: - (modified) clang/include/clang/Basic/riscv_vector.t

[clang] [RISCV] Decrease the capacity of SmallVector to 6. NFC. (PR #145650)

2025-06-25 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp approved this pull request. https://github.com/llvm/llvm-project/pull/145650 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Allow vanilla C function symbol name to be used in __attribute__((alias)) when -funique-internal-linkage-names is specified (PR #145652)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-clang-codegen Author: None (HighW4y2H3ll) Changes `-funique-internal-linkage-names` mangles function symbols even for C functions. When using `__attribute__((alias()))`, it's a bit counter-intuitive to specify a C++ mangled s

[clang] [Clang] Allow the use of [[gnu::visibility]] with #pragma clang attribute (PR #145653)

2025-06-25 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 created https://github.com/llvm/llvm-project/pull/145653 I don't see any reason this shouldn't be allowed. AFAICT this is only disabled due to the heuristics used to determine whether it makes sense to allow the use of an attribute with `#pragma clang attribute`.

[clang] [Clang] Allow the use of [[gnu::visibility]] with #pragma clang attribute (PR #145653)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Nikolas Klauser (philnik777) Changes I don't see any reason this shouldn't be allowed. AFAICT this is only disabled due to the heuristics used to determine whether it makes sense to allow the use of an attribute with `#pragma clang attrib

[clang] [win][clang] Align scalar deleting destructors with MSABI (PR #139566)

2025-06-25 Thread Tom Honermann via cfe-commits
@@ -1590,25 +1590,70 @@ namespace { void EmitConditionalDtorDeleteCall(CodeGenFunction &CGF, tahonermann wrote: Thanks, the new comment looks great. https://github.com/llvm/llvm-project/pull/139566 ___ cfe-commits m

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-25 Thread Balázs Benics via cfe-commits
https://github.com/balazs-benics-sonarsource updated https://github.com/llvm/llvm-project/pull/144327 From 2c32b9f6dfa9a236cea5679b6613e567cd8dfc2b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Benics?= <108414871+balazs-benics-sonarsou...@users.noreply.github.com> Date: Tue, 24 Jun 20

[clang] [llvm] [WPD]: Apply speculative WPD in non-lto mode. (PR #145031)

2025-06-25 Thread Hassnaa Hamdi via cfe-commits
hassnaaHamdi wrote: Hi @teresajohnson @pcc I’d be grateful for your feedback. https://github.com/llvm/llvm-project/pull/145031 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for function linkage and visibility (PR #145600)

2025-06-25 Thread Sirui Mu via cfe-commits
@@ -1737,25 +1737,51 @@ def GetMemberOp : CIR_Op<"get_member"> { def FuncOp : CIR_Op<"func", [ AutomaticAllocationScope, CallableOpInterface, FunctionOpInterface, + DeclareOpInterfaceMethods, IsolatedFromAbove ]> { let summary = "Declare or define a function"; let

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

2025-06-25 Thread via cfe-commits
https://github.com/ukalappa-mips created https://github.com/llvm/llvm-project/pull/145647 the extension enabled with xmipscop. Please refer "MIPS RV64 P8700/P8700-F Multiprocessing System Programmer’s Guide" for more info on the extension at https://mips.com/wp-content/uploads/2025/06/P8700_P

[clang] [docs][coroutines] Revamp "Debugging C++ coroutines" (PR #142651)

2025-06-25 Thread Chuanqi Xu via cfe-commits
@@ -8,470 +8,966 @@ Debugging C++ Coroutines Introduction -For performance and other architectural reasons, the C++ Coroutines feature in -the Clang compiler is implemented in two parts of the compiler. Semantic -analysis is performed in Clang, and Coroutine cons

[clang] 4efb618 - [C++20] [Modules] Handling template declare with debug info

2025-06-25 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2025-06-25T17:51:50+08:00 New Revision: 4efb61850b590941a8da51057d3a63782864f44c URL: https://github.com/llvm/llvm-project/commit/4efb61850b590941a8da51057d3a63782864f44c DIFF: https://github.com/llvm/llvm-project/commit/4efb61850b590941a8da51057d3a63782864f44c.diff LO

[clang] [clang-format] Added AlignConsecutiveTableGenBreakingDAGArgColons option. (PR #86150)

2025-06-25 Thread Björn Schäpers via cfe-commits
HazardyKnusperkeks wrote: I don't actually understand your problem. Can you open an issue and give the input, the output and the expected output, along with your `.clang-format`? You can tag me and I'll have a look at it. https://github.com/llvm/llvm-project/pull/86150

[clang] [Serialization] Fix source location data loss during decoding. (PR #145529)

2025-06-25 Thread Haojian Wu via cfe-commits
hokein wrote: > > Yeah, the current situation conflicts with 64-bit source location. We > > discussed this. The conclusion is, if we need large source location space, > > use 48 bits and leave upper 16 bits for module file index. 48 bits should > > be enough for most cases. Thanks, this makes

[clang] [Clang] Fix replaceability/relocatability computation (PR #145655)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Corentin Jabot (cor3ntin) Changes for eligible classes with user provided constructor or `operator=` Fixes #144232 --- Full diff: https://github.com/llvm/llvm-project/pull/145655.diff 2 Files Affected: - (modified) clang/lib/Sema/SemaT

[clang] [Clang][SPIRV][AMDGPU] Override `supportsLibCall` for AMDGCNSPIRV (PR #143814)

2025-06-25 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx edited https://github.com/llvm/llvm-project/pull/143814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][AArch64] Add mfloat8_t variants of Neon load intrinsics (PR #145666)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: None (amilendra) Changes Add mfloat8_t support for the following Neon load intrinsics. - VLD1 - VLD1_X2 - VLD1_X3 - VLD1_X4 - VLD1_LANE - VLD1_DUP - VLD2 - VLD3 - VLD4 - VLD2_DUP - VLD3_DUP - VLD4_DUP - VLD2_LANE - VLD3_LANE - VL

[clang] [Clang][AArch64] Add mfloat8_t variants of Neon load intrinsics (PR #145666)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (amilendra) Changes Add mfloat8_t support for the following Neon load intrinsics. - VLD1 - VLD1_X2 - VLD1_X3 - VLD1_X4 - VLD1_LANE - VLD1_DUP - VLD2 - VLD3 - VLD4 - VLD2_DUP - VLD3_DUP - VLD4_DUP - VLD2_LANE - VLD3_LANE - VLD4_LANE -

[clang] [llvm] [PowerPC] Add BCDCOPYSIGN and BCDSETSIGN Instruction Support (PR #144874)

2025-06-25 Thread Aditi Medhane via cfe-commits
https://github.com/AditiRM updated https://github.com/llvm/llvm-project/pull/144874 >From 8e287c19723361b0141c7bf9d1de34b145b9782c Mon Sep 17 00:00:00 2001 From: Aditi-Medhane Date: Thu, 19 Jun 2025 11:04:12 + Subject: [PATCH 1/2] [PowerPC] Add BCDCOPYSIGN and BCDSETSIGN Instruction Suppor

[clang] [Clang][AArch64] Add mfloat8_t variants of Neon load intrinsics (PR #145666)

2025-06-25 Thread via cfe-commits
https://github.com/amilendra created https://github.com/llvm/llvm-project/pull/145666 Add mfloat8_t support for the following Neon load intrinsics. - VLD1 - VLD1_X2 - VLD1_X3 - VLD1_X4 - VLD1_LANE - VLD1_DUP - VLD2 - VLD3 - VLD4 - VLD2_DUP - VLD3_DUP - VLD4_DUP - VLD2_LANE - VLD3_LANE - VLD4_LA

[clang] [CIR] Add support for function linkage and visibility (PR #145600)

2025-06-25 Thread Sirui Mu via cfe-commits
https://github.com/Lancern approved this pull request. https://github.com/llvm/llvm-project/pull/145600 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [REAPPLY][Clang-Repl] Add support for out-of-process execution. #110418 (PR #144064)

2025-06-25 Thread via cfe-commits
https://github.com/SahilPatidar updated https://github.com/llvm/llvm-project/pull/144064 >From 05943c9542cd89ae672ddc0f14514e0c7b1e0bd7 Mon Sep 17 00:00:00 2001 From: SahilPatidar Date: Tue, 3 Dec 2024 15:07:56 +0530 Subject: [PATCH 1/5] Re-Land: [Clang-Repl] Add support for out-of-process exe

[clang] [Serialization] Remove delta encoding optimization (PR #145670)

2025-06-25 Thread Timm Baeder via cfe-commits
@@ -733,16 +731,14 @@ class ASTWriter : public ASTDeserializationListener, void AddFileID(FileID FID, RecordDataImpl &Record); /// Emit a source location. - void AddSourceLocation(SourceLocation Loc, RecordDataImpl &Record, - LocSeq *Seq = nullptr)

[clang] [CIR] Add support for function linkage and visibility (PR #145600)

2025-06-25 Thread Sirui Mu via cfe-commits
@@ -1534,6 +1567,27 @@ void CIRGenModule::setGVPropertiesAux(mlir::Operation *op, assert(!cir::MissingFeatures::opGlobalPartition()); } +void CIRGenModule::setFunctionAttributes(GlobalDecl globalDecl, + cir::FuncOp func, +

[clang] [llvm] Add support for flag output operand "=@cc" for SystemZ. (PR #125970)

2025-06-25 Thread Ulrich Weigand via cfe-commits
@@ -8781,8 +8961,445 @@ static bool combineCCMask(SDValue &CCReg, int &CCValid, int &CCMask) { return false; } -SDValue SystemZTargetLowering::combineBR_CCMASK( -SDNode *N, DAGCombinerInfo &DCI) const { +// Combine (select_cc_a (select_cc_b)), where select_cc_a has one

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

2025-06-25 Thread Rainer Orth via cfe-commits
https://github.com/rorth updated https://github.com/llvm/llvm-project/pull/142948 >From e57e53c7e5abdb4c390a04b4ce9084dec9e71dd5 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Thu, 5 Jun 2025 13:40:26 +0200 Subject: [PATCH 1/3] [clang][python][test] Move python binding tests to lit framework

[clang] [Clang][SPIRV][AMDGPU] Override `supportsLibCall` for AMDGCNSPIRV (PR #143814)

2025-06-25 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx closed https://github.com/llvm/llvm-project/pull/143814 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 992f0d1 - [Clang][SPIRV][AMDGPU] Override `supportsLibCall` for AMDGCNSPIRV (#143814)

2025-06-25 Thread via cfe-commits
Author: Alex Voicu Date: 2025-06-25T11:22:59+01:00 New Revision: 992f0d12255a4a9ae18e45f09700097cbd3739b5 URL: https://github.com/llvm/llvm-project/commit/992f0d12255a4a9ae18e45f09700097cbd3739b5 DIFF: https://github.com/llvm/llvm-project/commit/992f0d12255a4a9ae18e45f09700097cbd3739b5.diff LO

[clang] [Serialization] Remove delta encoding optimization (PR #145670)

2025-06-25 Thread Haojian Wu via cfe-commits
https://github.com/hokein updated https://github.com/llvm/llvm-project/pull/145670 >From d2cac7f56f5adf2ddfe084e684562a56f5c5dc65 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Wed, 25 Jun 2025 12:30:18 +0200 Subject: [PATCH 1/2] [Serialization] Remove delta encoding. --- clang/include/clang

[libclc] [libclc] Avoid out-of-range float-to-int. (PR #145698)

2025-06-25 Thread Harald van Dijk via cfe-commits
https://github.com/hvdijk created https://github.com/llvm/llvm-project/pull/145698 For a kernel such as kernel void foo(__global double3 *z) { double3 x = {0.6631661088,0.6612268107,0.1513627528}; int3 y = {-1980459213,-660855407,615708204}; *z = pown(x, y); } we were not stori

[clang] [Clang] Implement diagnostics for why `std::is_standard_layout` is false (PR #144161)

2025-06-25 Thread Samarth Narang via cfe-commits
@@ -2285,6 +2286,139 @@ static void DiagnoseNonTriviallyCopyableReason(Sema &SemaRef, SemaRef.Diag(D->getLocation(), diag::note_defined_here) << D; } +static bool hasMultipleDataBaseClassesWithFields(const CXXRecordDecl *D) { + int NumBasesWithFields = 0; + for (const CXX

[clang] [clang-c] introduce queries on GCC-style inline assembly statements (PR #143424)

2025-06-25 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM! The precommit CI failures appear to be unrelated. https://github.com/llvm/llvm-project/pull/143424 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] [Clang] Implement diagnostics for why `std::is_standard_layout` is false (PR #144161)

2025-06-25 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/144161 >From 7f11d3392e3f3ead823c8af2ea9a3b1f9ef9e0c9 Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Fri, 13 Jun 2025 23:22:18 +0200 Subject: [PATCH 1/9] Implement diagnostics for why `std::is_standard_layout`

[clang] [Clang][Driver] Warn on complex number range incompatibility with GCC (PR #144468)

2025-06-25 Thread Aaron Ballman via cfe-commits
@@ -520,6 +520,9 @@ def warn_drv_math_errno_enabled_after_veclib: Warning< "math errno enabled by '%0' after it was implicitly disabled by '%1'," " this may limit the utilization of the vector library">, InGroup; +def warn_drv_gcc_incompatible_complex_range_override: Warn

[clang] [llvm] [HLSL][SPRIV] Handle signed RWBuffer correctly (PR #144774)

2025-06-25 Thread Steven Perron via cfe-commits
https://github.com/s-perron updated https://github.com/llvm/llvm-project/pull/144774 >From 7d3d8bb30863dd860183f7b9635aa34b72a9c3ae Mon Sep 17 00:00:00 2001 From: Steven Perron Date: Wed, 18 Jun 2025 09:19:45 -0400 Subject: [PATCH 1/3] [HLSL][SPRIV] Handle sign RWBuffer correctly MIME-Version:

[clang] [llvm] Triple: Forward declare Twine and remove include (PR #145685)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-binary-utilities @llvm/pr-subscribers-clang Author: Matt Arsenault (arsenm) Changes It turns out real Twine usage is scarce, and seems to only be used from clang. Add a few overloads for the common cases, and introduce a string&& case as the base ca

[clang] [clang][dataflow] Expose simple access to child StorageLocation presence. (PR #145520)

2025-06-25 Thread Samira Bakon via cfe-commits
bazuzi wrote: No underlying bug, but I was able to simplify my approach out-of-tree and avoid exposing this function that doesn't capture the intended semantics. I'll revert this. https://github.com/llvm/llvm-project/pull/145520 ___ cfe-commits maili

[clang] [llvm] [LLVM][AArch64] Relax SVE/SME codegen predicates for crypto and bitperm instructions. (PR #145696)

2025-06-25 Thread Paul Walker via cfe-commits
https://github.com/paulwalker-arm created https://github.com/llvm/llvm-project/pull/145696 Adds sve-sha3 to reference FEAT_SVE_SHA3 without specifically enabling SVE2. The SVE2 requirement for AES, SHA3 and Bitperm is replaced with SVE for non-streaming function. >From 565d4f767f2abee3d626900

[clang] Revert "[clang][dataflow] Expose simple access to child StorageLocation presence." (PR #145710)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Samira Bakon (bazuzi) Changes Reverts llvm/llvm-project#145520 Exposed function is no longer needed and side-stepped the intended contract that the present children are the same set returned by `getModeledFields()` and presence

[clang] Revert "[clang][dataflow] Expose simple access to child StorageLocation presence." (PR #145710)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Samira Bakon (bazuzi) Changes Reverts llvm/llvm-project#145520 Exposed function is no longer needed and side-stepped the intended contract that the present children are the same set returned by `getModeledFields()` and presence shouldn't

[clang] [clang] NFC: Add alias for std::pair used in SourceLocation (PR #145711)

2025-06-25 Thread Haojian Wu via cfe-commits
https://github.com/hokein created https://github.com/llvm/llvm-project/pull/145711 Introduce a type alias for the commonly used `std::pair` to improve code readability, and make it easier for future updates (64-bit source locations). >From 2bd778b5b5c5ffc0a36cf0e0e71034fe16c48ad0 Mon Sep 17 0

[clang] [clang] NFC: Add alias for std::pair used in SourceLocation (PR #145711)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes Introduce a type alias for the commonly used `std::pair` to improve code readability, and make it easier for future updates (64-bit source locations). --- Patch is 52.91 KiB, truncated to 20

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

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

[clang] Revert "[clang][dataflow] Expose simple access to child StorageLocation presence." (PR #145710)

2025-06-25 Thread Samira Bakon via cfe-commits
bazuzi wrote: This reverts a simple change added <24 hours ago and reverting has been discussed directly with original change reviewers. Merging without additional review. https://github.com/llvm/llvm-project/pull/145710 ___ cfe-commits mailing list

[clang] [clang][analyzer] Correctly handle lambda-converted function pointers (PR #144906)

2025-06-25 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clangd-ubuntu-tsan` running on `clangd-ubuntu-clang` while building `clang` at step 6 "test-build-clangd-clangd-index-server-clangd-in...". Full details are available at: https://lab.llvm.org/buildbot/#/builders/134/builds/21

[clang] e64f5dd - Revert "[clang][dataflow] Expose simple access to child StorageLocation presence." (#145710)

2025-06-25 Thread via cfe-commits
Author: Samira Bakon Date: 2025-06-25T10:24:29-04:00 New Revision: e64f5dd948478505a790e339525847c71eb1eb24 URL: https://github.com/llvm/llvm-project/commit/e64f5dd948478505a790e339525847c71eb1eb24 DIFF: https://github.com/llvm/llvm-project/commit/e64f5dd948478505a790e339525847c71eb1eb24.diff

[clang] [clang-tools-extra] [clang-tidy] [Modules] Skip checking decls in clang-tidy (PR #145630)

2025-06-25 Thread Balazs Benics via cfe-commits
https://github.com/steakhal commented: I also believe that the nodes from modules should not be traversed by default, but there should be an option to allow traversing those - just like it's implemented. https://github.com/llvm/llvm-project/pull/145630 _

[clang] [clang-tools-extra] [clang-tidy] [Modules] Skip checking decls in clang-tidy (PR #145630)

2025-06-25 Thread Balazs Benics via cfe-commits
@@ -1469,6 +1470,12 @@ bool MatchASTVisitor::TraverseDecl(Decl *DeclNode) { return true; } + if (Options.SkipDeclsInModules && DeclNode->isFromASTFile()) { +auto *M = DeclNode->getOwningModule(); +if (M && (M->isInterfaceOrPartition() || M->isGlobalModule())) +

[clang] b8e8ff3 - [Clang] Implement diagnostics for why is_empty is false (#145044)

2025-06-25 Thread via cfe-commits
Author: Samarth Narang Date: 2025-06-25T10:34:51-04:00 New Revision: b8e8ff3dd6698335a73ff808e39021ec5d1478ea URL: https://github.com/llvm/llvm-project/commit/b8e8ff3dd6698335a73ff808e39021ec5d1478ea DIFF: https://github.com/llvm/llvm-project/commit/b8e8ff3dd6698335a73ff808e39021ec5d1478ea.diff

[clang] a945fb1 - [clang] NFC, move the SourceLocationEncoding.h header guard to the begining of the file

2025-06-25 Thread Haojian Wu via cfe-commits
Author: Haojian Wu Date: 2025-06-25T16:26:40+02:00 New Revision: a945fb1481e01f9631fde5f6174276532c33fc98 URL: https://github.com/llvm/llvm-project/commit/a945fb1481e01f9631fde5f6174276532c33fc98 DIFF: https://github.com/llvm/llvm-project/commit/a945fb1481e01f9631fde5f6174276532c33fc98.diff LO

[clang] [Clang] Implement diagnostics for why is_empty is false (PR #145044)

2025-06-25 Thread Samarth Narang via cfe-commits
https://github.com/snarang181 updated https://github.com/llvm/llvm-project/pull/145044 >From 29de582dd07ceb89ead7ecf24be6c19004edd46e Mon Sep 17 00:00:00 2001 From: Samarth Narang Date: Fri, 20 Jun 2025 10:51:04 -0400 Subject: [PATCH 1/3] Explain why 'is_empty' evaluates to false Add tests for

[clang] [llvm] Test 142948, please ignore (PR #144873)

2025-06-25 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum closed https://github.com/llvm/llvm-project/pull/144873 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Add support for function linkage and visibility (PR #145600)

2025-06-25 Thread Sirui Mu via cfe-commits
@@ -1737,25 +1737,51 @@ def GetMemberOp : CIR_Op<"get_member"> { def FuncOp : CIR_Op<"func", [ AutomaticAllocationScope, CallableOpInterface, FunctionOpInterface, + DeclareOpInterfaceMethods, IsolatedFromAbove ]> { let summary = "Declare or define a function"; let

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

2025-06-25 Thread Jannick Kremer via cfe-commits
DeinAlptraum wrote: I agree, this might be the easier way. Sounds good to me. Could you resolve the conflict so we can also confirm that the CI runs as usual? https://github.com/llvm/llvm-project/pull/142948 ___ cfe-commits mailing list cfe-commits@lis

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

2025-06-25 Thread Rainer Orth via cfe-commits
rorth wrote: > I still don't entirely understand how lit works exactly, but it seems to me > that completely removing the cmake target for this is not necessary, no? So > at least this wouldn't require the CI changes on top of the other changes. > Happy to hear your thoughts on this though @ro

[clang] [clang-tools-extra] [clang-tidy] [Modules] Skip checking decls in clang-tidy (PR #145630)

2025-06-25 Thread Carlos Galvez via cfe-commits
carlosgalvezp wrote: I think this patch can be orthogonal to the system headers one, the original one from @njames93 contained similar logic I believe (but I chose to not include it for simplicity). It's probably good to apply this change now before modules become mainstream and we have debt

[clang] [Serialization] Fix source location data loss during decoding. (PR #145529)

2025-06-25 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: Yeah, and for what it worth, maybe you want to take a look at: https://discourse.llvm.org/t/rfc-c-modules-stop-using-abbrev-and-drop-the-maintainance/87063/2 https://github.com/llvm/llvm-project/pull/145529 ___ cfe-commits mailing li

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

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: UmeshKalappa (ukalappa-mips) Changes the extension enabled with xmipscop. Please refer "MIPS RV64 P8700/P8700-F Multiprocessing System Programmer’s Guide" for more info on the extension at https://mips.com/wp-content/uploads/2025/

[clang] [Serialization] Remove delta encoding optimization (PR #145670)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Haojian Wu (hokein) Changes See the discussion in https://github.com/llvm/llvm-project/pull/145529. This will slightly increase the PCM size (~5%), some data (in-memory preamble size in clangd): - SemaExpr.cpp: 77MB -> 80MB - Fi

[clang] [Serialization] Remove delta encoding optimization (PR #145670)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Haojian Wu (hokein) Changes See the discussion in https://github.com/llvm/llvm-project/pull/145529. This will slightly increase the PCM size (~5%), some data (in-memory preamble size in clangd): - SemaExpr.cpp: 77MB -> 80MB - FindTarget

[clang] [Serialization] Remove delta encoding optimization (PR #145670)

2025-06-25 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. LGTM. Maintainability is important given the limited dev resources right now. https://github.com/llvm/llvm-project/pull/145670 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lis

[clang] [HLSL] Implement `SpirvType` and `SpirvOpaqueType` (PR #134034)

2025-06-25 Thread Aaron Ballman via cfe-commits
@@ -4855,6 +4857,17 @@ LinkageInfo LinkageComputer::computeTypeLinkageInfo(const Type *T) { return computeTypeLinkageInfo(cast(T) ->getContainedType() ->getCanonicalTypeInternal()); + case Type::H

[clang] [analyzer] Enforce not making overly complicated symbols (PR #144327)

2025-06-25 Thread Balázs Benics via cfe-commits
https://github.com/balazs-benics-sonarsource updated https://github.com/llvm/llvm-project/pull/144327 From bc7dfc2b4f143c2caa1189db096bf9e4ea76f053 Mon Sep 17 00:00:00 2001 From: Balazs Benics Date: Mon, 16 Jun 2025 12:14:06 +0200 Subject: [PATCH] [analyzer] Enforce not making overly complicate

[clang] [Clang][SPIRV][AMDGPU] Override `supportsLibCall` for AMDGCNSPIRV (PR #143814)

2025-06-25 Thread Alex Voicu via cfe-commits
https://github.com/AlexVlx commented: > Well, I'm not sure if my review is gating here, if "AMDGPU does not support > any libcalls at the moment" - it is what it is, no objections from my side. Since I am modifying the shared CodeGenInfo bit, it made sense to ask:) Also, I wasn't entirely cer

[clang] [flang] [flang][OpenMP] Remove experimental warning (PR #144915)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver Author: Tom Eccles (tblah) Changes RFC: https://discourse.llvm.org/t/rfc-removing-the-openmp-experimental-warning-for-llvm-21/86455 Fixes: #110008 There are a handful of open issues still to resolve before this can go out of draft. See t

[clang] [flang] [flang][OpenMP] Remove experimental warning (PR #144915)

2025-06-25 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver @llvm/pr-subscribers-clang Author: Tom Eccles (tblah) Changes RFC: https://discourse.llvm.org/t/rfc-removing-the-openmp-experimental-warning-for-llvm-21/86455 Fixes: #110008 There are a handful of open issues still to resolve before this

[clang] [clang] Mark GlobalAllocationFunctionVisibility as benign. (PR #145654)

2025-06-25 Thread Takuto Ikuta via cfe-commits
https://github.com/atetubou created https://github.com/llvm/llvm-project/pull/145654 This is similar PR to https://github.com/llvm/llvm-project/pull/131569, but for GlobalAllocationFunctionVisibility. >From 74514982213e31702469c1dc08c1e17008c840e6 Mon Sep 17 00:00:00 2001 From: Takuto Ikuta D

[clang] Remove unneeded checks for null; NFC (PR #145686)

2025-06-25 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/145686 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenMP] Add directive spellings introduced in spec v6.0 (PR #141772)

2025-06-25 Thread Krzysztof Parzyszek via cfe-commits
https://github.com/kparzysz closed https://github.com/llvm/llvm-project/pull/141772 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [NFC][libclc] Refactor _CLC_*_VECTORIZE macros to functions in .inc files (PR #145678)

2025-06-25 Thread Fraser Cormack via cfe-commits
@@ -0,0 +1,121 @@ +//===--===// +// +// 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

[libclc] [NFC][libclc] Refactor _CLC_*_VECTORIZE macros to functions in .inc files (PR #145678)

2025-06-25 Thread Fraser Cormack via cfe-commits
https://github.com/frasercrmck edited https://github.com/llvm/llvm-project/pull/145678 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-c] introduce queries on GCC-style inline assembly statements (PR #143424)

2025-06-25 Thread via cfe-commits
dingxiangfei2009 wrote: @AaronBallman Yes, please. I don't have the merge right, so I would like to ask for your assistance. Many thanks! https://github.com/llvm/llvm-project/pull/143424 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://

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

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

[clang] [Clang][WIP] Normalize constraints before checking for satisfaction (PR #141776)

2025-06-25 Thread Corentin Jabot via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/141776 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Add support for Windows Secure Hot-Patching (redo) (PR #145565)

2025-06-25 Thread Rainer Orth via cfe-commits
rorth wrote: Both the original patch and the redo break the [Solaris/amd64 buildbot](https://lab.llvm.org/staging/#/builders/120/builds/9897). I wonder if somehow the fact that the source lives in `/opt/llvm-buildbot` somehow interferes with Windows command line parsing? https://github.com/l

[clang] [Clang] Allow the use of [[gnu::visibility]] with #pragma clang attribute (PR #145653)

2025-06-25 Thread Nikolas Klauser via cfe-commits
philnik777 wrote: @AaronBallman Are any of these concerns specific to `[[gnu::visibility]]`? The exact same concerns seem to apply to any other attribute that applies to functions. https://github.com/llvm/llvm-project/pull/145653 ___ cfe-commits mail

[clang] [llvm] Add support for Windows Secure Hot-Patching (redo) (PR #145565)

2025-06-25 Thread Alexandre Ganea via cfe-commits
aganea wrote: > Both the original patch and the redo break the [Solaris/amd64 > buildbot](https://lab.llvm.org/staging/#/builders/120/builds/9897). I wonder > if somehow the fact that the source lives in `/opt/llvm-buildbot` somehow > interferes with Windows command line parsing? Yes, the fil

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

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

[clang] b8bda9d - [clang][analyzer] Correctly handle lambda-converted function pointers (#144906)

2025-06-25 Thread via cfe-commits
Author: flovent Date: 2025-06-25T16:15:01+02:00 New Revision: b8bda9d446e756f1ec722a06d604a654b472e581 URL: https://github.com/llvm/llvm-project/commit/b8bda9d446e756f1ec722a06d604a654b472e581 DIFF: https://github.com/llvm/llvm-project/commit/b8bda9d446e756f1ec722a06d604a654b472e581.diff LOG:

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

2025-06-25 Thread Samarth Narang via cfe-commits
snarang181 wrote: > > > I feel like this is a solution that can grow out of hand very easily. IMO > > > the better solution would be to have `-Wmissing-noreturn` place a > > > `[[noreturn]]` into the AST to avoid incorrect follow-up diagnostics. > > > > > > I agree, in principle I would expe

[clang] [llvm] Add support for Windows Secure Hot-Patching (redo) (PR #145565)

2025-06-25 Thread via cfe-commits
sivadeilra wrote: Looking at this now. Would it be sufficient to change the `/Fo...` argument to `-Fo...` ? Also, why was this not caught during the CI jobs for the PR? Can something be changed so that it would be caught during CI? https://github.com/llvm/llvm-project/pull/145565 ___

[clang] [clang][analyzer] Correctly handle lambda-converted function pointers (PR #144906)

2025-06-25 Thread Balazs Benics via cfe-commits
https://github.com/steakhal closed https://github.com/llvm/llvm-project/pull/144906 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

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

  1   2   3   4   5   6   >