[clang] [PAC][clang] Handle pauthtest environment and ABI in Linux-specific code (PR #113151)

2025-09-15 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 updated https://github.com/llvm/llvm-project/pull/113151 >From 89e975db84dea437417fa443429df017a30d6d3c Mon Sep 17 00:00:00 2001 From: Daniil Kovalev Date: Mon, 21 Oct 2024 12:00:19 +0300 Subject: [PATCH 1/2] [PAC][clang] Handle pauthtest environment and ABI in Linu

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

2025-09-15 Thread Congcong Cai 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] [PAC][clang] Add new features to pauthtest ABI (PR #113150)

2025-09-15 Thread Daniil Kovalev via cfe-commits
https://github.com/kovdan01 closed https://github.com/llvm/llvm-project/pull/113150 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 5b7f928 - [PAC][clang] Add new features to pauthtest ABI (#113150)

2025-09-15 Thread via cfe-commits
Author: Daniil Kovalev Date: 2025-09-16T06:51:20Z New Revision: 5b7f92863a44a58e5ffab694a8e6733d9519b976 URL: https://github.com/llvm/llvm-project/commit/5b7f92863a44a58e5ffab694a8e6733d9519b976 DIFF: https://github.com/llvm/llvm-project/commit/5b7f92863a44a58e5ffab694a8e6733d9519b976.diff LOG

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

2025-09-15 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 commented: What's the differences between this check and `modernize-pass-by-value`? Although the names are different, they are essentially checking similar things. https://github.com/llvm/llvm-project/pull/139525 ___ cfe

[clang] [flang] [llvm] Introduce -fexperimental-loop-fuse to clang and flang (PR #142686)

2025-09-15 Thread Madhur Amilkanthwar via cfe-commits
@@ -65,6 +65,9 @@ class PipelineTuningOptions { /// false. bool LoopInterchange; + /// Tuning option to enable/disable loop fusion. Its default value is false. + bool LoopFusion; madhur13490 wrote: In `ThinLTOCodeGenerator.cpp`, I need to do `PTO.LoopFu

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

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

[clang-tools-extra] [llvm] [WIP] Formatting suggestions in CI (PR #158779)

2025-09-15 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/158779 >From f77b63dc50a4257a36319f5a85f64068896ccfd8 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Mon, 15 Sep 2025 22:31:15 -0700 Subject: [PATCH] [WIP] Formatting suggestions in CI --- .github/workflow

[clang] [compiler-rt] [clang-repl] Reimplement value printing using MemoryAccess to support in-process and out-of-process (PR #156649)

2025-09-15 Thread via cfe-commits
@@ -92,119 +99,456 @@ class QualType; X(double, Double) \ X(long double, LongDouble) -class REPL_EXTERNAL_VISIBILITY Value { - union Storage { -#define X(type, name) type m_##name; +class Value; + +/// \struct Va

[clang] [clang][ExprConst] Reject unary vector shuffles (PR #158589)

2025-09-15 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/158589 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://list

[clang] c8b5b6e - [clang][ExprConst] Reject unary vector shuffles (#158589)

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

[clang-tools-extra] [llvm] [WIP] Formatting suggestions in CI (PR #158779)

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/ClangTidy.cpp `

[clang-tools-extra] [llvm] [WIP] Formatting suggestions in CI (PR #158779)

2025-09-15 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/158779 >From 10fcc7b2653247142c44365bf3d9ff7c8a35f40b Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Mon, 15 Sep 2025 22:31:15 -0700 Subject: [PATCH] [WIP] Formatting suggestions in CI --- .github/workflow

[clang] [compiler-rt] [clang-repl] Reimplement value printing using MemoryAccess to support in-process and out-of-process (PR #156649)

2025-09-15 Thread via cfe-commits
@@ -92,119 +99,456 @@ class QualType; X(double, Double) \ X(long double, LongDouble) -class REPL_EXTERNAL_VISIBILITY Value { - union Storage { -#define X(type, name) type m_##name; +class Value; + +/// \struct Va

[clang-tools-extra] [WIP] Formatting suggestions in CI (PR #158779)

2025-09-15 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/158779 >From d339d85900df5e19da6212cb18c9b0240b565156 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Mon, 15 Sep 2025 22:31:15 -0700 Subject: [PATCH] [WIP] Formatting suggestions in CI --- clang-tools-extr

[clang-tools-extra] [llvm] [WIP] Formatting suggestions in CI (PR #158779)

2025-09-15 Thread Victor Chernyakin via cfe-commits
https://github.com/localspook updated https://github.com/llvm/llvm-project/pull/158779 >From efd515aeaa7004fb74844145b36f6a9febb8d5e5 Mon Sep 17 00:00:00 2001 From: Victor Chernyakin Date: Mon, 15 Sep 2025 22:31:15 -0700 Subject: [PATCH] [WIP] Formatting suggestions in CI --- .github/workflow

[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-tools-extra] [clang-tidy] Support find for string-like classes in readability-container-contains (PR #157243)

2025-09-15 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank updated https://github.com/llvm/llvm-project/pull/157243 >From 8ae7dd75aaa7d62bb9926e822fda01d2173f3799 Mon Sep 17 00:00:00 2001 From: Nicolas van Kempen Date: Mon, 8 Sep 2025 15:06:29 -0400 Subject: [PATCH] [clang-tidy] Support find for string-like classes in reada

[clang] [clang] fix clang_cmake_builddir (PR #155844)

2025-09-15 Thread Nathan Gauër via cfe-commits
Keenuts wrote: (@rjodinchr FYI) Hi, so to understand, is it when you do something like `cmake -DCMAKE_INSTALL_DIR=some/privileged/location` then this writes to the INSTALL_DIR when doing `ninja -C build` (so before the installation step?) https://github.com/llvm/llvm-project/pull/155844 _

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

2025-09-15 Thread via cfe-commits
Author: David Pagan Date: 2025-09-15T11:07:05-07:00 New Revision: f4eab92ea2b6ebc6a3af70016d7b578809f8270c URL: https://github.com/llvm/llvm-project/commit/f4eab92ea2b6ebc6a3af70016d7b578809f8270c DIFF: https://github.com/llvm/llvm-project/commit/f4eab92ea2b6ebc6a3af70016d7b578809f8270c.diff L

[clang-tools-extra] [clang-tidy][NFC] Enable 'readability-named-parameter' check (PR #158774)

2025-09-15 Thread via cfe-commits
https://github.com/capitan-davide updated https://github.com/llvm/llvm-project/pull/158774 >From b481e9d6f59ffe03a2581c60188e656824c9ac72 Mon Sep 17 00:00:00 2001 From: Davide Cunial Date: Tue, 16 Sep 2025 06:53:45 +0200 Subject: [PATCH] [clang-tidy][NFC] Enable 'readability-named-parameter' ch

[clang] [flang] [llvm] Revert "Introduce -fexperimental-loop-fuse to clang and flang (#142686)" (PR #158764)

2025-09-15 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: CC @alazarev https://github.com/llvm/llvm-project/pull/158764 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2025-09-15 Thread Prabhu Rajasekaran via cfe-commits
@@ -1866,20 +1875,39 @@ static StringRef getMIMnemonic(const MachineInstr &MI, MCStreamer &Streamer) { return Name; } -void AsmPrinter::emitIndirectCalleeLabels( +void AsmPrinter::emitCallsiteLabelsForCallgraph( FunctionInfo &FuncInfo, const MachineFunction::CallS

[clang] [Clang][HIP][CUDA] Add `__cluster_dims__` and `__no_cluster__` attribute (PR #156686)

2025-09-15 Thread Shilei Tian via cfe-commits
@@ -1562,6 +1562,23 @@ def HIPManaged : InheritableAttr { let Documentation = [HIPManagedAttrDocs]; } +def CUDAClusterDims : InheritableAttr { + let Spellings = [GNU<"cluster_dims">, Declspec<"__cluster_dims__">]; + let Args = [ExprArgument<"X">, ExprArgument<"Y", 1>, Expr

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

2025-09-15 Thread via cfe-commits
github-actions[bot] wrote: @capitan-davide Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a

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

2025-09-15 Thread via cfe-commits
Author: capitan-davide Date: 2025-09-16T08:01:49+03:00 New Revision: 28373708280a52ecd3181591f7c3935ffceafbcc URL: https://github.com/llvm/llvm-project/commit/28373708280a52ecd3181591f7c3935ffceafbcc DIFF: https://github.com/llvm/llvm-project/commit/28373708280a52ecd3181591f7c3935ffceafbcc.diff

[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 closed 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] [llvm] [llvm][AsmPrinter] Add direct calls to callgraph section (PR #155706)

2025-09-15 Thread Prabhu Rajasekaran via cfe-commits
Prabhuk wrote: > so, you emit a label at every call site, right? and then you write out the > address of the label w/ each callee symbol? > > So if I have a hundred calls to foo in my function, I get 100 entries? Am I > understanding that right? Yes. That is correct. https://github.com/llvm/

[clang-tools-extra] [clang-tidy][NFC] Enable 'readability-named-parameter' check (PR #158774)

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/ClangTidyOptions.cp

[clang-tools-extra] [clang-tidy][NFC] Enable 'readability-named-parameter' check (PR #158774)

2025-09-15 Thread via cfe-commits
https://github.com/capitan-davide updated https://github.com/llvm/llvm-project/pull/158774 >From 5ea20be3b73e1f87049986c206daa2672cf60e47 Mon Sep 17 00:00:00 2001 From: Davide Cunial Date: Tue, 16 Sep 2025 06:53:45 +0200 Subject: [PATCH] [clang-tidy][NFC] Enable 'readability-named-parameter' ch

[clang] [Mips] Convert -mnan=legacy to nan2008 when architecture support nan2008 (PR #153777)

2025-09-15 Thread via cfe-commits
@@ -620,6 +620,10 @@ def warn_target_unsupported_nan2008 : Warning< def warn_target_unsupported_nanlegacy : Warning< "ignoring '-mnan=legacy' option because the '%0' architecture does not support it">, InGroup; +def warn_target_unsupported_convertnanlegacytonan2008 : Warni

[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] [C++20][Modules] Fix merging of anonymous members of class templates. (PR #155948)

2025-09-15 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > > How these decls get merged if: > > ``` > > // a.h > > template > > struct S { union { T x; }; }; > > > > // b.h > > import "a.h"; > > inline void f(S s = {}) { s.x; } > > > > // main.cpp > > import "a.h"; > > void g(S) {} > > > > import "b.h"; > > void h() { f(); } > > `

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

2025-09-15 Thread Prabhu Rajasekaran via cfe-commits
@@ -1866,20 +1875,39 @@ static StringRef getMIMnemonic(const MachineInstr &MI, MCStreamer &Streamer) { return Name; } -void AsmPrinter::emitIndirectCalleeLabels( +void AsmPrinter::emitCallsiteLabelsForCallgraph( FunctionInfo &FuncInfo, const MachineFunction::CallS

[clang] [llvm] [HLSL] Use static create methods to initialize individual resources (PR #156544)

2025-09-15 Thread Helena Kotas via cfe-commits
@@ -48,6 +49,14 @@ static FunctionDecl *lookupBuiltinFunction(Sema &S, StringRef Name) { "Since this is a builtin it should always resolve!"); return cast(R.getFoundDecl()); } + +CXXConstructorDecl *lookupCopyConstructor(QualType ResTy) { + assert(ResTy->isRecordTy

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

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

[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] 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][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] 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] 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][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] [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] [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] [flang] [llvm] Revert "Introduce -fexperimental-loop-fuse to clang and flang (#142686)" (PR #158764)

2025-09-15 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka closed https://github.com/llvm/llvm-project/pull/158764 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] cedceeb - Revert "Introduce -fexperimental-loop-fuse to clang and flang (#142686)" (#158764)

2025-09-15 Thread via cfe-commits
Author: Vitaly Buka Date: 2025-09-16T02:30:18Z New Revision: cedceeb8002c112b33ff0974f04082849e6e202d URL: https://github.com/llvm/llvm-project/commit/cedceeb8002c112b33ff0974f04082849e6e202d DIFF: https://github.com/llvm/llvm-project/commit/cedceeb8002c112b33ff0974f04082849e6e202d.diff LOG: R

[clang-tools-extra] [clang-tidy] Rename 'cert-dcl50-cpp' to 'modernize-avoid-variadic-functions' (PR #157737)

2025-09-15 Thread Baranov Victor via cfe-commits
@@ -1,11 +1,10 @@ .. title:: clang-tidy - cert-dcl50-cpp +.. meta:: + :http-equiv=refresh: 5;URL=../modernize/avoid-variadic-functions.html cert-dcl50-cpp == -This check flags all function definitions (but not declarations) of C-style -variadic functions. - -T

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

2025-09-15 Thread Younan Zhang via cfe-commits
@@ -51,6 +51,27 @@ class FixedPointSemantics; struct fltSemantics; template class SmallPtrSet; +template <> struct DenseMapInfo { zyn0217 wrote: Maybe split it into an NFC PR? I'm not sure if downstream users want it https://github.com/llvm/llvm-project/pul

[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] [flang] [llvm] Revert "Introduce -fexperimental-loop-fuse to clang and flang (#142686)" (PR #158764)

2025-09-15 Thread Ryotaro Kasuga via cfe-commits
https://github.com/kasuga-fj approved this pull request. (As for one of the reviewers of PR #142686) LGTM, thanks! https://github.com/llvm/llvm-project/pull/158764 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] [Clang] Permit implicit conversion from integral to boolean vectors (PR #158369)

2025-09-15 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. This seems reasonable. https://github.com/llvm/llvm-project/pull/158369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Make sure global resources and resource arrays cannot be assigned to (PR #157772)

2025-09-15 Thread Ashley Coleman via cfe-commits
https://github.com/V-FEXrt approved this pull request. https://github.com/llvm/llvm-project/pull/157772 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [APINotes] Support annotating safety of APIs (PR #157506)

2025-09-15 Thread Gábor Horváth via cfe-commits
https://github.com/Xazax-hun closed https://github.com/llvm/llvm-project/pull/157506 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [AIX] Implement the ifunc attribute. (PR #153049)

2025-09-15 Thread Wael Yehia via cfe-commits
@@ -1078,6 +1078,7 @@ void SlotTracker::processModule() { for (const GlobalIFunc &I : TheModule->ifuncs()) { if (!I.hasName()) CreateModuleSlot(&I); +processGlobalObjectMetadata(I); w2yehia wrote: supporting metadata on ifuncs is it's own PR no

[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
@@ -3543,7 +3592,20 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, case X86::BI__builtin_ia32_selectpd_256: case X86::BI__builtin_ia32_selectpd_512: return interp__builtin_select(S, OpPC, Call); - + case X86::BI__builtin_ia32_pternlogd128

[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
@@ -3543,7 +3592,20 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, case X86::BI__builtin_ia32_selectpd_256: case X86::BI__builtin_ia32_selectpd_512: return interp__builtin_select(S, OpPC, Call); - + case X86::BI__builtin_ia32_pternlogd128

[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] 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] Add unique_ptr accesses to -Wunsafe-buffer-usage (PR #156773)

2025-09-15 Thread Florian Mayer via cfe-commits
fmayer wrote: nit: commit message should be [-Wunsafe-buffer-usage] Add unique_ptr accesses for consistency with other commits https://github.com/llvm/llvm-project/pull/156773 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llv

[clang] [clang][bytecode] Fix bit casts to IntAP types (PR #158509)

2025-09-15 Thread David Spickett via cfe-commits
DavidSpickett wrote: The above failure is because the bot is 32-bit Armv8-a, I expect this would fail on x86 32-bit as well. I think you could use the lit feature `clang-target-64-bits` along with `%if{ ... }` to make the host triple line conditional. I don't completely understand what `clang-

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

2025-09-15 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon approved this pull request. 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] [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] [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-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] 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] [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] [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] [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] [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-format] Add BreakFunctionDeclarationParameters option (PR #158745)

2025-09-15 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Fanteria (Fanteria) Changes Add a new clang-format option `BreakFunctionDeclarationParameters` to control whether parameters in function declarations can be broken onto new lines, similar to the existing `BreakFunctionDefinitionPar

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

2025-09-15 Thread via cfe-commits
https://github.com/Fanteria created https://github.com/llvm/llvm-project/pull/158745 Add a new clang-format option `BreakFunctionDeclarationParameters` to control whether parameters in function declarations can be broken onto new lines, similar to the existing `BreakFunctionDefinitionParameter

[clang] [clang-tools-extra] [lldb] [clang] Initialize the file system explicitly (PR #158381)

2025-09-15 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 updated https://github.com/llvm/llvm-project/pull/158381 >From a9a1c7df3a529bcae6c6d33fdf93adab8d572cff Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Fri, 12 Sep 2025 14:44:02 -0700 Subject: [PATCH 1/5] [clang] Initialize the file system explicitly --- .../i

[clang] [clang-tools-extra] [lldb] [clang] Initialize the file system explicitly (PR #158381)

2025-09-15 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 updated https://github.com/llvm/llvm-project/pull/158381 >From a9a1c7df3a529bcae6c6d33fdf93adab8d572cff Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Fri, 12 Sep 2025 14:44:02 -0700 Subject: [PATCH 1/4] [clang] Initialize the file system explicitly --- .../i

[clang] [llvm] [HLSL] Use static create methods to initialize individual resources (PR #156544)

2025-09-15 Thread Chris B via cfe-commits
https://github.com/llvm-beanz approved this pull request. This all looks reasonable a couple small comments. https://github.com/llvm/llvm-project/pull/156544 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[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] 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-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-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] [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] [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] [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] [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 `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] [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-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-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][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][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] a32d88b - [HLSL][DirectX] Fix resource lowering when using structs with `select` (#158361)

2025-09-15 Thread via cfe-commits
Author: Kaitlin Peng Date: 2025-09-15T12:54:11-07:00 New Revision: a32d88b79abaaab46cb1580d75df7422d0a9e4d3 URL: https://github.com/llvm/llvm-project/commit/a32d88b79abaaab46cb1580d75df7422d0a9e4d3 DIFF: https://github.com/llvm/llvm-project/commit/a32d88b79abaaab46cb1580d75df7422d0a9e4d3.diff

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

[libcxx] [libcxxabi] [libunwind] [libcxx][CI] Use lld for everything in the ARM picolib builds (PR #158320)

2025-09-15 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `sanitizer-ppc64le-linux` running on `ppc64le-sanitizer` while building `libcxx,libcxxabi,libunwind` at step 2 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/72/builds/15071 Here is the r

[clang] [libclc] [Clang] Rename elementwise builtins to `clzg` and `ctzg` (PR #157128)

2025-09-15 Thread Nikolas Klauser via cfe-commits
https://github.com/philnik777 commented: FWIW I'm in favour of the renaming. Having consistent naming for the `__builtin_elementwise_*` and `__builtin_*` functions is IMO much more valuable than being consistent with compiler-internal naming. https://github.com/llvm/llvm-project/pull/157128 __

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

  1   2   3   4   5   >