[clang] [flang] [flang][driver] Support -gdwarf-N option. (PR #158314)

2025-09-15 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu commented: Thanks for the clarification. Just one suggestion https://github.com/llvm/llvm-project/pull/158314 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[clang] [NFC] Fix Parens on assertion from 147514 (PR #158635)

2025-09-15 Thread Erich Keane via cfe-commits
https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/158635 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][clang] replace a C-array with std::array (PR #158047)

2025-09-15 Thread Erich Keane via cfe-commits
Nathan =?utf-8?q?Gau=C3=ABr?= Message-ID: In-Reply-To: https://github.com/erichkeane approved this pull request. https://github.com/llvm/llvm-project/pull/158047 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/

[clang] [libclang/python] Add missing enum variants (PR #143264)

2025-09-15 Thread Jannick Kremer via cfe-commits
@@ -44,8 +46,53 @@ def test_from_id(self): def test_duplicate_ids(self): """Check that no two kinds have the same id""" -# for enum in self.enums: for enum in self.enums: num_declared_variants = len(enum._member_map_.keys())

[clang] [flang] [flang][driver] Support -gdwarf-N option. (PR #158314)

2025-09-15 Thread Tarun Prabhu via cfe-commits
@@ -0,0 +1,27 @@ +// RUN: %flang -### -S %s -g -gdwarf-5 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF5 %s +// RUN: %flang -### -S %s -g1 -gdwarf-5 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-WITH-G1-DWARF5 %s +// RUN: %flang -### -S

[clang] [libclang/python] Add missing enum variants (PR #143264)

2025-09-15 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum edited https://github.com/llvm/llvm-project/pull/143264 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Add missing enum variants (PR #143264)

2025-09-15 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum edited https://github.com/llvm/llvm-project/pull/143264 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[compiler-rt] [libcxx] [libcxxabi] [libunwind] [runtimes][PAC] Harden unwinding when possible (PR #143230)

2025-09-15 Thread Daniil Kovalev via cfe-commits
@@ -126,6 +130,36 @@ _LIBUNWIND_HIDDEN int __unw_set_reg(unw_cursor_t *cursor, unw_regnum_t regNum, // First, get the FDE for the old location and then update it. co->getInfo(&info); co->setInfoBasedOnIPRegister(false); + +#if __has_feature(ptrauth_calls) +

[clang] [clang][ARM] Include arm_acle.h in intrin.h on supported platforms (PR #144172)

2025-09-15 Thread Nick Sarnie via cfe-commits
sarnex wrote: Ah sorry, investigating now. https://github.com/llvm/llvm-project/pull/144172 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [compiler-rt] [Clang] [Sema] Make `-Wincompatible-pointer-types` an error by default (PR #157364)

2025-09-15 Thread via cfe-commits
https://github.com/Sirraide auto_merge_enabled https://github.com/llvm/llvm-project/pull/157364 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Sema] Diagnose by-value copy constructors in template instantiations (PR #130866)

2025-09-15 Thread Shafik Yaghmour via cfe-commits
shafik wrote: @avikivity https://lists.isocpp.org/core/2025/03/17665.php https://github.com/llvm/llvm-project/pull/130866 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-09-15 Thread Tomáš Slanina via cfe-commits
https://github.com/itzexpoexpo updated https://github.com/llvm/llvm-project/pull/154580 From 877d155b65a054a240490d3c7e2015673f964466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Slanina?= Date: Wed, 20 Aug 2025 19:28:23 +0200 Subject: [PATCH 01/19] [clang-format] Add option Allo

[clang] [lldb] [Clang][PowerPC] Add __dmr2048 type and DMF crypto builtins (PR #157152)

2025-09-15 Thread Lei Huang via cfe-commits
@@ -1123,6 +1123,13 @@ UNALIASED_CUSTOM_MMA_BUILTIN(mma_xvbf16ger2, "vW512*VV", UNALIASED_CUSTOM_MMA_BUILTIN(mma_pmxvbf16ger2, "vW512*VVi15i15i3", "mma,paired-vector-memops") +UNALIASED_CUSTOM_BUILTIN(mma_dmsha2hash, "vW1024*W1024*Ii", true, +

[clang] [lldb] [Clang][PowerPC] Add __dmr2048 type and DMF crypto builtins (PR #157152)

2025-09-15 Thread Lei Huang via cfe-commits
https://github.com/lei137 commented: I see a lot of tests to identify when this type is not valid I think it would be good to add to the PR description where/how this new type can be used. https://github.com/llvm/llvm-project/pull/157152 ___ cfe-commi

[clang] [lldb] [Clang][PowerPC] Add __dmr2048 type and DMF crypto builtins (PR #157152)

2025-09-15 Thread Lei Huang via cfe-commits
https://github.com/lei137 edited https://github.com/llvm/llvm-project/pull/157152 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][nfc] Fix tests to avoid writing output to unreachable location, which might cause them to fail (PR #158698)

2025-09-15 Thread Vy Nguyen via cfe-commits
https://github.com/oontvoo closed https://github.com/llvm/llvm-project/pull/158698 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][sema] Add nonnull attribute to builtin format functions (PR #158626)

2025-09-15 Thread via cfe-commits
@@ -0,0 +1,74 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -Wnonnull -Wno-format-security %s + +#include +#include Sirraide wrote: ```suggestion typedef __SIZE_TYPE__ size_t; ``` Clang tests should generally never include stdlib headers. If you need definition

[clang] [clang][sema] Add nonnull attribute to builtin format functions (PR #158626)

2025-09-15 Thread via cfe-commits
@@ -17097,6 +17097,15 @@ void Sema::AddKnownFunctionAttributes(FunctionDecl *FD) { } } +SmallVector Indxs; +if (Context.BuiltinInfo.IsNonNull(BuiltinID, Indxs) && +!FD->hasAttr()) { + llvm::SmallVector ParamIndxs; + for (int I : Indxs) +

[clang] [clang][sema] Add nonnull attribute to builtin format functions (PR #158626)

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

[clang] [clang][sema] Add nonnull attribute to builtin format functions (PR #158626)

2025-09-15 Thread via cfe-commits
@@ -392,6 +392,10 @@ class Context { bool performsCallback(unsigned ID, llvm::SmallVectorImpl &Encoding) const; + /// Return true if this builtin has parameters at fixed positions + /// that must be non-null. + bool IsNonNull(unsigned ID, llvm::Sma

[clang] [clang][sema] Add nonnull attribute to builtin format functions (PR #158626)

2025-09-15 Thread via cfe-commits
@@ -67,6 +67,7 @@ // The third value provided to the macro specifies information about attributes // of the function. These must be kept in sync with the predicates in the // Builtin::Context class. Currently we have: +// N -> nonnull Sirraide wrote: This s

[clang] [clang][sema] Add nonnull attribute to builtin format functions (PR #158626)

2025-09-15 Thread via cfe-commits
@@ -293,6 +293,34 @@ bool Builtin::Context::isScanfLike(unsigned ID, unsigned &FormatIdx, return isLike(ID, FormatIdx, HasVAListArg, "sS"); } +bool Builtin::Context::IsNonNull(unsigned ID, + llvm::SmallVectorImpl &Indxs) const { + + const ch

[clang] [clang][sema] Add nonnull attribute to builtin format functions (PR #158626)

2025-09-15 Thread via cfe-commits
@@ -0,0 +1,74 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -Wnonnull -Wno-format-security %s + +#include +#include + +typedef struct _FILE FILE; + +int printf(char const* restrict, ...); +int __builtin_printf(char const* restrict, ...); +int fprintf(FILE* restrict, char const* r

[clang] [clang] WIP: remove workaround for SubstNonTypeTemplateParmExpr transform (PR #158541)

2025-09-15 Thread Matheus Izvekov via cfe-commits
@@ -2446,40 +2446,14 @@ TemplateInstantiator::TransformSubstNonTypeTemplateParmExpr( SubstReplacement = TransformExpr(E->getReplacement()); if (SubstReplacement.isInvalid()) return true; - QualType SubstType = TransformType(E->getParameterType(getSema().Context)); -

[clang] [flang] [flang][driver] Support -gdwarf-N option. (PR #158314)

2025-09-15 Thread Abid Qadeer via cfe-commits
https://github.com/abidh updated https://github.com/llvm/llvm-project/pull/158314 >From 520cecd2e77273d302432561eaa9dd5cfc6ee0bd Mon Sep 17 00:00:00 2001 From: Abid Qadeer Date: Thu, 11 Sep 2025 18:02:26 +0100 Subject: [PATCH 1/3] [flang][driver] Support -gdwarf-N option. This PR adds the supp

[clang] Revert "[HIP][Clang] Remove __AMDGCN_WAVEFRONT_SIZE macros" (PR #158566)

2025-09-15 Thread Fabian Ritter via cfe-commits
https://github.com/ritter-x2a created https://github.com/llvm/llvm-project/pull/158566 Reverts llvm/llvm-project#157463 The PR breaks buildbots with old ROCm versions, so revert it and reapply when buildbots are updated. >From 31a757f2a38c493da868bf97f557c2e30bf24cca Mon Sep 17 00:00:00 2001 F

[clang] [clang] remove workaround for SubstNonTypeTemplateParmExpr transform (PR #158541)

2025-09-15 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov updated https://github.com/llvm/llvm-project/pull/158541 >From 65d24f0b573f2250bf4f99759ecc33f5d6d9ac3a Mon Sep 17 00:00:00 2001 From: Matheus Izvekov Date: Mon, 15 Sep 2025 01:58:01 -0300 Subject: [PATCH] [clang] remove workaround for SubstNonTypeTemplateParmExpr t

[clang] [clang] [CUDA] Support calling consteval function between different target. (PR #158688)

2025-09-15 Thread Tang Jiajun via cfe-commits
https://github.com/tangjj11 edited https://github.com/llvm/llvm-project/pull/158688 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 06f671e - [clang][nfc] Fix tests to avoid writing output to unreachable location, which might cause them to fail (#158698)

2025-09-15 Thread via cfe-commits
Author: Vy Nguyen Date: 2025-09-15T13:48:51-04:00 New Revision: 06f671e57a574ba1c5127038eff8e8773273790e URL: https://github.com/llvm/llvm-project/commit/06f671e57a574ba1c5127038eff8e8773273790e DIFF: https://github.com/llvm/llvm-project/commit/06f671e57a574ba1c5127038eff8e8773273790e.diff LOG

[clang] [clang][nfc] Fix tests to avoid writing output to unreachable location, which might cause them to fail (PR #158698)

2025-09-15 Thread Vy Nguyen via cfe-commits
oontvoo wrote: P.S: Tested locally so merging now https://github.com/llvm/llvm-project/pull/158698 ___ 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 check performance-lost-std-move (PR #139525)

2025-09-15 Thread Vasiliy Kulikov via cfe-commits
@@ -0,0 +1,32 @@ +.. title:: clang-tidy - performance-lost-std-move + +performance-lost-std-move += + +Warns if copy constructor is used instead of std::move() and suggests a fix. +It honours cycles, lambdas, and unspecified call order in compound expressio

[clang] [clang-tools-extra] [compiler-rt] [lldb] [Clang] [Sema] Make `-Wincompatible-pointer-types` an error by default (PR #157364)

2025-09-15 Thread Alex Bradbury via cfe-commits
asb wrote: > Looks like this is causing errors in llvm-testsuite, but I’m candidly not > sure how this is usually handled: > https://lab.llvm.org/buildbot/#/builders/210/builds/2746 I think we'll want to add `-Wno-incompatible-pointer-types` to the relevant CMakeLists.txt. As an example, we c

[clang] [clang-tools-extra] [compiler-rt] [lldb] [Clang] [Sema] Make `-Wincompatible-pointer-types` an error by default (PR #157364)

2025-09-15 Thread via cfe-commits
Sirraide wrote: > I think we'll want to add `-Wno-incompatible-pointer-types` to the relevant > CMakeLists.txt. Thanks; I’ll look into it. https://github.com/llvm/llvm-project/pull/157364 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:

[clang] [clang][nfc] Fix tests to avoid writing output to unreachable location, which might cause them to fail (PR #158698)

2025-09-15 Thread Vy Nguyen via cfe-commits
https://github.com/oontvoo updated https://github.com/llvm/llvm-project/pull/158698 >From f64b31960be277ba2633273c1f81d34d408ed852 Mon Sep 17 00:00:00 2001 From: Vy Nguyen Date: Mon, 15 Sep 2025 13:43:12 -0400 Subject: [PATCH] [clang][nfc] Fix tests to avoid writing output to unreachable locat

[clang] e0a33cb - [clang] Allow attributes on first constructor argument in pre-C++11 (#157300)

2025-09-15 Thread via cfe-commits
Author: camc Date: 2025-09-15T21:04:45+08:00 New Revision: e0a33cb599f8614b3d897ad2bd2f9fa8e1acbac5 URL: https://github.com/llvm/llvm-project/commit/e0a33cb599f8614b3d897ad2bd2f9fa8e1acbac5 DIFF: https://github.com/llvm/llvm-project/commit/e0a33cb599f8614b3d897ad2bd2f9fa8e1acbac5.diff LOG: [cl

[clang] [clang][nfc] Fix tests to avoid writing output to unreachable location, which might cause them to fail (PR #158698)

2025-09-15 Thread Vy Nguyen via cfe-commits
https://github.com/oontvoo created https://github.com/llvm/llvm-project/pull/158698 [clang][nfc] Fix tests to avoid writing output to unreachable location, which might cause them to fail >From f64b31960be277ba2633273c1f81d34d408ed852 Mon Sep 17 00:00:00 2001 From: Vy Nguyen Date: Mon, 15 Sep

[clang] [clang][sema] Add nonnull attribute to builtin format functions (PR #158626)

2025-09-15 Thread Erich Keane via cfe-commits
erichkeane wrote: > I’m not sure it’s defined anywhere whether `nullptr` is a valid argument to > `printf`, but if GCC diagnoses this then it should be fine for us to do so as > well. I agree with all you've said in the review. Quite a few of the functions listed state that it is UB if they g

[clang] [OpenMP] Fix table indentation in clang documentation (PR #158724)

2025-09-15 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 approved this pull request. https://github.com/llvm/llvm-project/pull/158724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 64d5e6c - [NFC][clang] replace a C-array with std::array (#158047)

2025-09-15 Thread via cfe-commits
Author: Nathan Gauër Date: 2025-09-15T15:52:27+02:00 New Revision: 64d5e6c4b35be1840bfffe57a24db2b9d18d65fe URL: https://github.com/llvm/llvm-project/commit/64d5e6c4b35be1840bfffe57a24db2b9d18d65fe DIFF: https://github.com/llvm/llvm-project/commit/64d5e6c4b35be1840bfffe57a24db2b9d18d65fe.diff

[clang] [os_log] Fix a CodeGen crash that occurs when arguments of struct, class, or complex types are passed to _builtin_os_log_format (PR #158744)

2025-09-15 Thread Akira Hatanaka via cfe-commits
https://github.com/ahatanak created https://github.com/llvm/llvm-project/pull/158744 This change fixes a crash in clang's CodeGen by ensuring that those arguments are ignored. rdar://139824423 >From 2100dca9ad30277bbdb53384358245fd1566a9cb Mon Sep 17 00:00:00 2001 From: Akira Hatanaka Date:

[clang] [llvm] [Clang] Add `__builtin_stack_address` (PR #148281)

2025-09-15 Thread via cfe-commits
@@ -0,0 +1,9 @@ +; RUN: not llc < %s -mtriple nvptx 2>&1 | FileCheck %s + +declare ptr @llvm.stackaddress.p0() + +define ptr @test() { +; CHECK: STACKADDRESS is not supported on this target. moorabbit wrote: Ping. https://github.com/llvm/llvm-project/pull/148281

[clang] [clang-tools-extra] [compiler-rt] [lldb] [Clang] [Sema] Make `-Wincompatible-pointer-types` an error by default (PR #157364)

2025-09-15 Thread Med Ismail Bennani via cfe-commits
medismailben wrote: Thanks, feel free to merge whenever https://github.com/llvm/llvm-project/pull/157364 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] VectorExprEvaluator::VisitCallExpr / InterpretBuiltin - add AVX512 VPTERNLOGD/VPTERNLOGQ intrinsics to be used in constexpr (PR #158703)

2025-09-15 Thread Timm Baeder via cfe-commits
@@ -2903,6 +2903,55 @@ static bool interp__builtin_elementwise_triop( return true; } +static bool interp__builtin_pternlog(InterpState &S, CodePtr OpPC, + const CallExpr *Call, bool MaskZ) { + assert(Call->getNumArgs() == 5); + + const V

[clang] [clang][DebugInfo] Re-enable VTable debug info on COFF platforms (PR #158450)

2025-09-15 Thread Tomohiro Kashiwada via cfe-commits
kikairoya wrote: > To confirm my understanding, the test strategy here is checking that > everything behaves just like linux-itanium, except for scenarios with > optimisations which will cause the vtable to be external, and in those cases > vtable-debug-locations shouldn't be emitted. (Am I ri

[clang] Improve HeuristicResolver further so it can replace most of getApproximateType() in SemaCodeComplete (PR #156282)

2025-09-15 Thread Nathan Ridge via cfe-commits
HighCommander4 wrote: Review ping https://github.com/llvm/llvm-project/pull/156282 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add BreakFunctionDeclarationParameters option (PR #158745)

2025-09-15 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] 6dde349 - [clang][sema][NFC] Clean up builtin arg checking functions (#158615)

2025-09-15 Thread via cfe-commits
Author: Timm Baeder Date: 2025-09-16T04:55:20+02:00 New Revision: 6dde34969e108090d58a64ce0b25c78b42df6367 URL: https://github.com/llvm/llvm-project/commit/6dde34969e108090d58a64ce0b25c78b42df6367 DIFF: https://github.com/llvm/llvm-project/commit/6dde34969e108090d58a64ce0b25c78b42df6367.diff L

[clang] [clang][sema][NFC] Clean up builtin arg checking functions (PR #158615)

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

[clang] c46cf1e - [clang][bytecode][NFC] Remove BlockScope (#158656)

2025-09-15 Thread via cfe-commits
Author: Timm Baeder Date: 2025-09-16T05:10:13+02:00 New Revision: c46cf1ea3bfaba58da7e046db7450d7dd6769100 URL: https://github.com/llvm/llvm-project/commit/c46cf1ea3bfaba58da7e046db7450d7dd6769100 DIFF: https://github.com/llvm/llvm-project/commit/c46cf1ea3bfaba58da7e046db7450d7dd6769100.diff L

[clang] [clang][bytecode][NFC] Remove BlockScope (PR #158656)

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

[clang] [clang-tools-extra] [compiler-rt] [lldb] [Clang] [Sema] Make `-Wincompatible-pointer-types` an error by default (PR #157364)

2025-09-15 Thread via cfe-commits
Sirraide wrote: > > This seems to have broken several tests several tests in the LLDB test > > suite: > > https://green.lab.llvm.org/job/llvm.org/view/LLDB/job/as-lldb-cmake/33215/ > > Weird, I’m pretty sure I ran the LLDB tests locally and didn’t observe any > errors; I’m looking into it. S

[clang] [llvm] [llvm][AsmPrinter] Add direct calls to callgraph section (PR #155706)

2025-09-15 Thread Prabhu Rajasekaran via cfe-commits
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/155706 >From eb26a3bdf9bfba33531d9c48f6080946b148f03a Mon Sep 17 00:00:00 2001 From: prabhukr Date: Wed, 27 Aug 2025 22:11:28 + Subject: [PATCH 1/9] [llvm][AsmPrinter] Add direct calls to callgraph section Extend

[clang] [clang][sema][NFC] Clean up builtin arg checking functions (PR #158615)

2025-09-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes Always take an `unsigned` for the argument index, pull some locals in the closest scope and use `APInt::isPowerOf2()`. --- Full diff: https://github.com/llvm/llvm-project/pull/158615.diff 2 Files Affected:

[clang] [analyzer] Prevent triplicate warnings for `sarif-html` (PR #158112)

2025-09-15 Thread Rashmi Mudduluru via cfe-commits
https://github.com/t-rasmud approved this pull request. Can we have a test case for `plist-html` as well? Otherwise LGTM! https://github.com/llvm/llvm-project/pull/158112 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cg

[clang] [OpenMP] Fix table indentation in clang documentation (PR #158724)

2025-09-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (CatherineMoore) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/158724.diff 1 Files Affected: - (modified) clang/docs/OpenMPSupport.rst (+3) ``diff diff --git a/clang/docs/OpenMPSupport.rst b/clang/doc

[clang] [OpenMP] Fix table indentation in clang documentation (PR #158724)

2025-09-15 Thread via cfe-commits
CatherineMoore wrote: @jhuber6: Please review and commit https://github.com/llvm/llvm-project/pull/158724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenMP] Fix table indentation in clang documentation (PR #158724)

2025-09-15 Thread via cfe-commits
https://github.com/CatherineMoore created https://github.com/llvm/llvm-project/pull/158724 None >From 0674046d492b56bcc967f79d04637f28fd71a8a3 Mon Sep 17 00:00:00 2001 From: Catherine Moore Date: Mon, 15 Sep 2025 14:46:01 -0500 Subject: [PATCH] Fix Table Indentation. --- clang/docs/OpenMPSup

[clang] [clang] Don't fail `clang::ExecuteCompilerInvocation()` for unrelated errors (PR #158695)

2025-09-15 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 updated https://github.com/llvm/llvm-project/pull/158695 >From 827307ddefb5e25c41406e736574a230a396b9cc Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Mon, 15 Sep 2025 09:55:11 -0700 Subject: [PATCH 1/2] [clang] Don't fail `clang::ExecuteCompilerInvocation()`

[clang] [llvm] [X86][KCFI] Do not emit a type prefix for nocf_check functions (PR #158133)

2025-09-15 Thread Sami Tolvanen via cfe-commits
samitolvanen wrote: > I modified the `nocf_check` attribute handler to check for either > `-cf-protection` or `-fsanitize=kcfi` being enabled. Looking at this a bit closer, the `nocf_check` attribute also applies to function pointers with `-fcf-protection`, and disables tracking for indirect

[clang-tools-extra] [clang-tidy] Add check performance-lost-std-move (PR #139525)

2025-09-15 Thread via cfe-commits
@@ -0,0 +1,47 @@ +.. title:: clang-tidy - performance-lost-std-move + +performance-lost-std-move += + +Warns if copy constructor is used instead of ``std::move()`` and suggests a fix. +It honours cycles, lambdas, and unspecified call order in compound expr

[clang-tools-extra] [clang-tidy] Add check performance-lost-std-move (PR #139525)

2025-09-15 Thread via cfe-commits
@@ -176,6 +176,12 @@ New checks Finds uses of ``long double`` and suggests against their use due to lack of portability. +- New :doc:`performance-lost-std-move EugeneZelenko wrote: Please keep alphabetical order (by check name) in this section. https://g

[clang] Fix __builtin_object_size calculation for references of unknown origin in C++23 (PR #157778)

2025-09-15 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Try the following with -std=c++23 -Winvalid-constexpr: ``` constexpr int f(int &a) { return 1 / (__builtin_object_size(&a, 0) - 4); } int a[2]; static_assert(f(a[0]) == 0); ``` https://github.com/llvm/llvm-project/pull/157778 __

[clang] [clang-format] add option to control bin-packing keyworded parameters (PR #131605)

2025-09-15 Thread Eugene Shalygin via cfe-commits
zeule wrote: Thanks you, @owenca, this code is of course much simpler, but it has little to do with what I wanted to implement. Could, you, please, commit that with your authorship? I guess the tests from this PR can be re-used. https://github.com/llvm/llvm-project/pull/131605 ___

[clang] [OpenMP] Fix table indentation in clang documentation (PR #158724)

2025-09-15 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 auto_merge_enabled https://github.com/llvm/llvm-project/pull/158724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-09-15 Thread Anton Korobeynikov via cfe-commits
https://github.com/asl approved this pull request. I believe these are fine. The options are already here, this does not add new ones, it just forwards the existing ones to the pauth on ELF logic (the other existing uses were in Darwin part of the driver) https://github.com/llvm/llvm-project/p

[clang] [Clang][docs] Modify generator for HLSL semantics documentation (PR #157841)

2025-09-15 Thread Nathan Gauër via cfe-commits
Keenuts wrote: Adding Erich Keans, might be a more accurate reviewer since this touches attributes https://github.com/llvm/llvm-project/pull/157841 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] [HLSL][DirectX] Fix resource lowering when using structs with `select` (PR #158361)

2025-09-15 Thread Kaitlin Peng via cfe-commits
https://github.com/kmpeng edited https://github.com/llvm/llvm-project/pull/158361 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][NFC] Fix a couple of suspicious StringRef::data() usages (PR #158480)

2025-09-15 Thread Baranov Victor via cfe-commits
@@ -99,7 +99,10 @@ void yamlize(IO &IO, ClangTidyOptions::OptionMap &Val, bool, for (auto &Option : SortedOptions) { bool UseDefault = false; void *SaveInfo = nullptr; + // NOLINTBEGIN(bugprone-suspicious-stringview-data-usage): Requires + // 'llvm::ya

[clang-tools-extra] [clang-tidy][NFC] Fix a couple of suspicious StringRef::data() usages (PR #158480)

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

[clang-tools-extra] [clang-tidy] Enable 'readability-simplify-boolean-expr' check (PR #158706)

2025-09-15 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 -- clang-tools-extra/clang-tidy/bugprone/EasilySwap

[clang-tools-extra] [clang-tidy] Enable 'readability-simplify-boolean-expr' check (PR #158706)

2025-09-15 Thread Baranov Victor via cfe-commits
vbvictor wrote: We generally include "NFC" in the title if it is a non-functional change to users. So the full PR name should be `[clang-tidy][NFC] Enable 'readability-simplify-boolean-expr' check` https://github.com/llvm/llvm-project/pull/158706 ___

[clang] [llvm] [FMV][AArch64] Allow user to override version priority. (PR #150267)

2025-09-15 Thread Eli Friedman via cfe-commits
@@ -348,6 +350,76 @@ entry: ret i32 %call } +declare i32 @test_explicit_priority._Mmops() #18 +declare i32 @test_explicit_priority._Msve2() #19 +declare i32 @test_explicit_priority._Msve() #20 +declare i32 @test_explicit_priority.default() #0 + +define weak_odr ptr @test_exp

[clang] [clang] Don't fail `clang::ExecuteCompilerInvocation()` for caller errors (PR #158695)

2025-09-15 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 edited https://github.com/llvm/llvm-project/pull/158695 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][DirectX] Fix resource lowering when using structs with `select` (PR #158361)

2025-09-15 Thread Kaitlin Peng via cfe-commits
https://github.com/kmpeng closed https://github.com/llvm/llvm-project/pull/158361 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Don't fail `ExecuteCompilerInvocation()` due to caller errors (PR #158695)

2025-09-15 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 edited https://github.com/llvm/llvm-project/pull/158695 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Headers][X86] Allow SSE2/AVX2/AVX512F/AVX512BW/AVX512DQ integer arithmetic intrinsics to be used in constexpr (PR #157582)

2025-09-15 Thread via cfe-commits
https://github.com/donneypr updated https://github.com/llvm/llvm-project/pull/157582 >From f0f99274e8b5d48ac12fafbc70b99cbf3b4fdf99 Mon Sep 17 00:00:00 2001 From: donneypr Date: Mon, 8 Sep 2025 19:54:43 -0400 Subject: [PATCH 1/7] [clang][x86][headers] Make SSE2 add/sub intrinsics constexpr --

[clang] [CIR] Implement Type promotion for VectorType (PR #158715)

2025-09-15 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/158715 This change adds support for type promotion for VectorType >From 042cb66c6b6dd177b0e2ba7f2e846dd24c9b13c8 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Mon, 15 Sep 2025 20:52:56 +0200 Subject: [PATCH]

[clang] [clang] Allow attributes on first constructor argument in pre-C++11 (PR #157300)

2025-09-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-arm-ubuntu` running on `linaro-lldb-arm-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/18/builds/21179 Here is the relevant piece of the build lo

[clang] [flang] [flang][driver] Support -gdwarf-N option. (PR #158314)

2025-09-15 Thread Abid Qadeer via cfe-commits
https://github.com/abidh updated https://github.com/llvm/llvm-project/pull/158314 >From 520cecd2e77273d302432561eaa9dd5cfc6ee0bd Mon Sep 17 00:00:00 2001 From: Abid Qadeer Date: Thu, 11 Sep 2025 18:02:26 +0100 Subject: [PATCH 1/4] [flang][driver] Support -gdwarf-N option. This PR adds the supp

[clang] [OpenMP 5.2] New syntax for 'uses_allocators' clause (PR #157025)

2025-09-15 Thread Urvi Rav via cfe-commits
https://github.com/ravurvi20 updated https://github.com/llvm/llvm-project/pull/157025 >From 1efc6c0d9418d5aa4299595b5008b4b580e556b1 Mon Sep 17 00:00:00 2001 From: urvi-rav Date: Thu, 4 Sep 2025 04:47:06 -0500 Subject: [PATCH 1/6] Implement new syntax for uses_allocators clause --- .../clang/

[clang] [analyzer] Show element count in ArrayBound underflow reports (PR #158639)

2025-09-15 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat created https://github.com/llvm/llvm-project/pull/158639 The underflow reports of checker security.ArrayBound already displayed the (negative) byte offset of the accessed location; but those numbers were sometimes a bit hard to decipher, so I'm extending the messag

[clang] [flang] [flang][driver] Support -gdwarf-N option. (PR #158314)

2025-09-15 Thread Abid Qadeer via cfe-commits
@@ -0,0 +1,27 @@ +// RUN: %flang -### -S %s -g -gdwarf-5 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF5 %s +// RUN: %flang -### -S %s -g1 -gdwarf-5 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-WITH-G1-DWARF5 %s +// RUN: %flang -### -S

[clang] [libclang/python] Add missing enum variants (PR #143264)

2025-09-15 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum updated https://github.com/llvm/llvm-project/pull/143264 >From be61f911f07e5c5a497f942e530bd0f86f19478f Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Sat, 7 Jun 2025 21:57:17 +0900 Subject: [PATCH 1/8] [libclang/python] Add missing enum variants Add tests

[clang] [analyzer] Show element count in ArrayBound underflow reports (PR #158639)

2025-09-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Donát Nagy (NagyDonat) Changes The underflow reports of checker security.ArrayBound already displayed the (negative) byte offset of the accessed location; but those numbers were sometimes a bit hard to decipher, so I'm e

[clang] 92dcbf4 - [NFC] Fix commas on assertion from 147514 (#158635)

2025-09-15 Thread via cfe-commits
Author: Erich Keane Date: 2025-09-15T13:53:08Z New Revision: 92dcbf4092059b0c61865a3eac9520d7b5440951 URL: https://github.com/llvm/llvm-project/commit/92dcbf4092059b0c61865a3eac9520d7b5440951 DIFF: https://github.com/llvm/llvm-project/commit/92dcbf4092059b0c61865a3eac9520d7b5440951.diff LOG: [

[clang] [libclang/python] Add missing enum variants (PR #143264)

2025-09-15 Thread Jannick Kremer via cfe-commits
@@ -2482,6 +2529,13 @@ def spelling(self): FLOAT128 = 30 HALF = 31 FLOAT16 = 32 +SHORTACCUM = 33 +ACCUM = 34 +LONGACCUM = 35 +USHORTACCUM = 36 +UACCUM = 37 +ULONGACCUM = 38 +BFLOAT16 = 39 IBM128 = 40 DeinAlptraum wro

[clang] [clang][OpenMP] 6.0: Add defaultmap implicit-behavior 'storage' (PR #158336)

2025-09-15 Thread Alexey Bataev via cfe-commits
https://github.com/alexey-bataev approved this pull request. https://github.com/llvm/llvm-project/pull/158336 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [mlir] [AArch64][SME] Improve codegen for aarch64.sme.cnts* when not in streaming mode (PR #154761)

2025-09-15 Thread Kerry McLaughlin via cfe-commits
@@ -937,6 +940,21 @@ bool AArch64DAGToDAGISel::SelectRDVLImm(SDValue N, SDValue &Imm) { return false; } +// Returns a suitable RDSVL multiplier from a left shift. +template +bool AArch64DAGToDAGISel::SelectRDSVLShiftImm(SDValue N, SDValue &Imm) { + if (!isa(N)) +retur

[clang] [llvm] [clang][OMPIRBuilder] Use default target AS to create types (PR #158152)

2025-09-15 Thread Nick Sarnie via cfe-commits
sarnex wrote: Thanks Tom! In my case I'm never going through mlir yet, but it should work, so I will make a separate PR quickly after this to fix MLIR and add you as a reviewer. https://github.com/llvm/llvm-project/pull/158152 ___ cfe-commits mailing

[clang] [libclang/python] Add missing enum variants (PR #143264)

2025-09-15 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum updated https://github.com/llvm/llvm-project/pull/143264 >From be61f911f07e5c5a497f942e530bd0f86f19478f Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Sat, 7 Jun 2025 21:57:17 +0900 Subject: [PATCH 1/8] [libclang/python] Add missing enum variants Add tests

[clang] [flang] [flang][driver] Support -gdwarf-N option. (PR #158314)

2025-09-15 Thread Abid Qadeer via cfe-commits
@@ -0,0 +1,27 @@ +// RUN: %flang -### -S %s -g -gdwarf-5 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DWARF5 %s +// RUN: %flang -### -S %s -g1 -gdwarf-5 2>&1 \ +// RUN: | FileCheck --check-prefix=CHECK-WITH-G1-DWARF5 %s +// RUN: %flang -### -S

[clang] [Clang][OpenMP] Add an additional class to hold data that will be shared between all loop transformations (PR #155849)

2025-09-15 Thread Michael Kruse via cfe-commits
https://github.com/Meinersbur approved this pull request. https://github.com/llvm/llvm-project/pull/155849 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-09-15 Thread Tomáš Slanina via cfe-commits
https://github.com/itzexpoexpo updated https://github.com/llvm/llvm-project/pull/154580 From 877d155b65a054a240490d3c7e2015673f964466 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Slanina?= Date: Wed, 20 Aug 2025 19:28:23 +0200 Subject: [PATCH 01/18] [clang-format] Add option Allo

[clang] [flang] [flang][driver] Support -gdwarf-N option. (PR #158314)

2025-09-15 Thread Anchu Rajendran S via cfe-commits
anchuraj wrote: > functionality Sounds great. Please skip my warning suggestion. https://github.com/llvm/llvm-project/pull/158314 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9f06b28 - [AIX] Disable -gsplit-dwarf as it is unsupported at the moment on AIX (#158199)

2025-09-15 Thread via cfe-commits
Author: Aditya Chaudhary Date: 2025-09-15T11:46:56-04:00 New Revision: 9f06b28f87bf170cde4000afac1e3221b0418f28 URL: https://github.com/llvm/llvm-project/commit/9f06b28f87bf170cde4000afac1e3221b0418f28 DIFF: https://github.com/llvm/llvm-project/commit/9f06b28f87bf170cde4000afac1e3221b0418f28.di

[clang] [AIX] Disable -gsplit-dwarf as it is unsupported at the moment on AIX (PR #158199)

2025-09-15 Thread David Tenty via cfe-commits
https://github.com/daltenty closed https://github.com/llvm/llvm-project/pull/158199 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC] fix float ABI selection on ppcle (PR #154773)

2025-09-15 Thread via cfe-commits
https://github.com/DanilaZhebryakov updated https://github.com/llvm/llvm-project/pull/154773 >From 542f85b55be08712622fd84c5b40de4fe24bcefb Mon Sep 17 00:00:00 2001 From: Danila Zhebryakov Date: Fri, 8 Aug 2025 14:16:30 +0300 Subject: [PATCH] [PowerPC] fix float ABI selection on ppcle --- cla

[clang] [llvm] [mlir] [AArch64][SME] Improve codegen for aarch64.sme.cnts* when not in streaming mode (PR #154761)

2025-09-15 Thread Simon Pilgrim via cfe-commits
@@ -937,6 +940,21 @@ bool AArch64DAGToDAGISel::SelectRDVLImm(SDValue N, SDValue &Imm) { return false; } +// Returns a suitable RDSVL multiplier from a left shift. +template +bool AArch64DAGToDAGISel::SelectRDSVLShiftImm(SDValue N, SDValue &Imm) { + if (!isa(N)) +retur

[clang] 50bcf68 - [X86][bytecode] Allow SSE/AVX BLEND imm intrinsics to be used in constexpr (#157776)

2025-09-15 Thread via cfe-commits
Author: Brandon Date: 2025-09-15T09:21:05Z New Revision: 50bcf6818e045a39eb21201f7c512e514476385e URL: https://github.com/llvm/llvm-project/commit/50bcf6818e045a39eb21201f7c512e514476385e DIFF: https://github.com/llvm/llvm-project/commit/50bcf6818e045a39eb21201f7c512e514476385e.diff LOG: [X86]

[clang] [llvm] [x86][AVX-VNNI] Fix VPDPBUSD Argument Types (PR #155194)

2025-09-15 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/155194 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   >