[clang] [webkit.RefCntblBaseVirtualDtor] ThreadSafeRefCounted still generates warnings (PR #108656)

2024-09-17 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime` running on `omp-vega20-0` while building `clang` at step 7 "Add check check-offload". Full details are available at: https://lab.llvm.org/buildbot/#/builders/30/builds/6407 Here is the relevan

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-09-17 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: Regarding test case 2, that further reduces to: ```C++ template class Q {}; template void F(Q); template void F(Q) = delete; void test() { F(Q()); } ``` The problem is that we consider the parenthesized expression significant in terms of forming a distinct type. You can s

[clang] fd21b79 - [webkit.RefCntblBaseVirtualDtor] ThreadSafeRefCounted still generates warnings (#108656)

2024-09-17 Thread via cfe-commits
Author: Ryosuke Niwa Date: 2024-09-17T22:23:27-07:00 New Revision: fd21b7911fbdddc80db2d3971ff10ee70a49b7e3 URL: https://github.com/llvm/llvm-project/commit/fd21b7911fbdddc80db2d3971ff10ee70a49b7e3 DIFF: https://github.com/llvm/llvm-project/commit/fd21b7911fbdddc80db2d3971ff10ee70a49b7e3.diff

[clang] [webkit.RefCntblBaseVirtualDtor] ThreadSafeRefCounted still generates warnings (PR #108656)

2024-09-17 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa closed https://github.com/llvm/llvm-project/pull/108656 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Fix evaluation of the unsigned enumeration values, #108766 (PR #108769)

2024-09-17 Thread Dmitry Fursov via cfe-commits
fursov wrote: @DeinAlptraum, thank you for the review. The findings are fixed now. Could you say if the fix to be backported to other relelases, like 18.x or 19rc? If yes, how this is done? https://github.com/llvm/llvm-project/pull/108769 ___ cfe-comm

[clang] [HLSL][NFC] Remove RegisterBindingFlags struct (PR #108924)

2024-09-17 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/108924 >From 1dd552dfb6217804ba5e84a35e59e348622df581 Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Mon, 16 Sep 2024 20:54:23 -0700 Subject: [PATCH 1/5] [HLSL][NFC] Remove RegisterBindingFlags struct When diagnosin

[clang] [clang-tools-extra] [llvm] [Clang] Add __builtin_type_pack_dedup template to deduplicate types in template arguments (PR #106730)

2024-09-17 Thread Matheus Izvekov via cfe-commits
@@ -309,7 +309,10 @@ enum BuiltinTemplateKind : int { BTK__make_integer_seq, /// This names the __type_pack_element BuiltinTemplateDecl. - BTK__type_pack_element + BTK__type_pack_element, + + /// This names the __type_list_dedup BuiltinTemplateDecl. + BTK__type_list_de

[clang] [llvm] Thin4 (PR #109081)

2024-09-17 Thread Kyungwoo Lee via cfe-commits
https://github.com/kyulee-com created https://github.com/llvm/llvm-project/pull/109081 None >From c1a0219457a3c162d7fa6b9d70750ba7a040d9f2 Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Fri, 26 Apr 2024 20:02:52 -0700 Subject: [PATCH 1/3] [ThinLTO][NFC] Prep for two-codegen rounds --- cla

[clang] ddbe6c4 - [clang-format[NFC] Clean up FormatTestBase and Proto/TextProto tests (#108334)

2024-09-17 Thread via cfe-commits
Author: Owen Pan Date: 2024-09-17T21:15:44-07:00 New Revision: ddbe6c412bab3fe7a3ffaf6f42c49849a518b4c6 URL: https://github.com/llvm/llvm-project/commit/ddbe6c412bab3fe7a3ffaf6f42c49849a518b4c6 DIFF: https://github.com/llvm/llvm-project/commit/ddbe6c412bab3fe7a3ffaf6f42c49849a518b4c6.diff LOG:

[clang] [clang-format[NFC] Clean up FormatTestBase and Proto/TextProto tests (PR #108334)

2024-09-17 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/108334 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7153a4b - [clang-format] Reimplement InsertNewlineAtEOF (#108513)

2024-09-17 Thread via cfe-commits
Author: Owen Pan Date: 2024-09-17T21:16:20-07:00 New Revision: 7153a4bbf6d46e58ce32d59220515c5ab9f35691 URL: https://github.com/llvm/llvm-project/commit/7153a4bbf6d46e58ce32d59220515c5ab9f35691 DIFF: https://github.com/llvm/llvm-project/commit/7153a4bbf6d46e58ce32d59220515c5ab9f35691.diff LOG:

[clang] [clang-tools-extra] [llvm] [Clang] Add __builtin_type_pack_dedup template to deduplicate types in template arguments (PR #106730)

2024-09-17 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov requested changes to this pull request. https://github.com/llvm/llvm-project/pull/106730 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [llvm] [Clang] Add __builtin_type_pack_dedup template to deduplicate types in template arguments (PR #106730)

2024-09-17 Thread Matheus Izvekov via cfe-commits
@@ -3158,6 +3161,33 @@ checkBuiltinTemplateIdType(Sema &SemaRef, BuiltinTemplateDecl *BTD, int64_t N = Index.getExtValue(); return Ts.getPackAsArray()[N].getAsType(); } + case BTK__type_pack_dedup: { +assert(Converted.size() == 2 && "__builtin_type_pack_dedup sh

[clang] [PAC] Re-sign a pointer to a noexcept member function when it is converted to a pointer to a member function without noexcept (PR #109056)

2024-09-17 Thread Anton Korobeynikov via cfe-commits
https://github.com/asl approved this pull request. This looks good to me, thanks! https://github.com/llvm/llvm-project/pull/109056 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CGData][ThinLTO] Global Outlining with Two-CodeGen Rounds (PR #90933)

2024-09-17 Thread Nuri Amari via cfe-commits
@@ -1558,6 +1562,60 @@ class InProcessThinBackend : public ThinBackendProc { return BackendThreadPool.getMaxConcurrency(); } }; + +/// This Backend will run ThinBackend process but throw away all the output from +/// the codegen. This class facilitates the first codegen

[clang] a8dd8f6 - [clang-format] Fix a bug in SpacesInParens InConditionalStatements (#108797)

2024-09-17 Thread via cfe-commits
Author: Owen Pan Date: 2024-09-17T21:17:30-07:00 New Revision: a8dd8f6302e5fd405de7ed2bbfe195f305279bf8 URL: https://github.com/llvm/llvm-project/commit/a8dd8f6302e5fd405de7ed2bbfe195f305279bf8 DIFF: https://github.com/llvm/llvm-project/commit/a8dd8f6302e5fd405de7ed2bbfe195f305279bf8.diff LOG:

[clang] [clang-format] Fix a bug in SpacesInParens InConditionalStatements (PR #108797)

2024-09-17 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/108797 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Reimplement InsertNewlineAtEOF (PR #108513)

2024-09-17 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/108513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Handle C-style cast of qualified type (PR #108929)

2024-09-17 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/108929 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4d18ce1 - [clang-format] Handle C-style cast of qualified type (#108929)

2024-09-17 Thread via cfe-commits
Author: Owen Pan Date: 2024-09-17T21:19:56-07:00 New Revision: 4d18ce1dd2640829c3ad9cbb31e6ff92e2e29438 URL: https://github.com/llvm/llvm-project/commit/4d18ce1dd2640829c3ad9cbb31e6ff92e2e29438 DIFF: https://github.com/llvm/llvm-project/commit/4d18ce1dd2640829c3ad9cbb31e6ff92e2e29438.diff LOG:

[clang] [llvm] [CGData][ThinLTO] Global Outlining with Two-CodeGen Rounds (PR #90933)

2024-09-17 Thread Nuri Amari via cfe-commits
@@ -1558,6 +1562,60 @@ class InProcessThinBackend : public ThinBackendProc { return BackendThreadPool.getMaxConcurrency(); } }; + +/// This Backend will run ThinBackend process but throw away all the output from +/// the codegen. This class facilitates the first codegen

[clang] [analyzer] Indicate UnarySymExpr is not supported by Z3 (PR #108900)

2024-09-17 Thread Mikael Holmén via cfe-commits
@@ -278,6 +278,13 @@ class SMTConstraintManager : public clang::ento::SimpleConstraintManager { if (const SymbolCast *SC = dyn_cast(Sym)) return canReasonAbout(SVB.makeSymbolVal(SC->getOperand())); +// If a UnarySymExpr is encountered, the Z3 +// wrapper doe

[clang] [llvm] Thin4 (PR #109081)

2024-09-17 Thread Kyungwoo Lee via cfe-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/109081 >From c1a0219457a3c162d7fa6b9d70750ba7a040d9f2 Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Fri, 26 Apr 2024 20:02:52 -0700 Subject: [PATCH 1/4] [ThinLTO][NFC] Prep for two-codegen rounds --- clang/lib

[clang] [llvm] [CGData][ThinLTO] Global Outlining with Two-CodeGen Rounds (PR #90933)

2024-09-17 Thread Kyungwoo Lee via cfe-commits
https://github.com/kyulee-com updated https://github.com/llvm/llvm-project/pull/90933 >From c1a0219457a3c162d7fa6b9d70750ba7a040d9f2 Mon Sep 17 00:00:00 2001 From: Kyungwoo Lee Date: Fri, 26 Apr 2024 20:02:52 -0700 Subject: [PATCH 1/4] [ThinLTO][NFC] Prep for two-codegen rounds --- clang/lib/

[clang] [RISCV][FMV] Support target_version (PR #99040)

2024-09-17 Thread Piyou Chen via cfe-commits
https://github.com/BeMg updated https://github.com/llvm/llvm-project/pull/99040 >From 54b5d6833a52271dfd1ca3912d5d9e886b1970c2 Mon Sep 17 00:00:00 2001 From: Piyou Chen Date: Tue, 19 Mar 2024 02:02:35 -0700 Subject: [PATCH 1/5] [RISCV][FMV] Support target_version --- clang/lib/AST/ASTContext.c

[clang] [llvm] [X86][AVX10.2] Support AVX10.2 MOVZXC new Instructions. (PR #108537)

2024-09-17 Thread via cfe-commits
https://github.com/mahesh-attarde updated https://github.com/llvm/llvm-project/pull/108537 >From d06ba3b08ddf7282da9e53705a4ca9b27f0c1c4d Mon Sep 17 00:00:00 2001 From: mattarde Date: Fri, 13 Sep 2024 03:26:14 -0700 Subject: [PATCH 1/6] update clr --- clang/lib/Headers/CMakeLists.txt

[clang] [RISCV][FMV] Support target_version (PR #99040)

2024-09-17 Thread Piyou Chen via cfe-commits
@@ -11027,13 +11029,27 @@ static bool CheckMultiVersionValue(Sema &S, const FunctionDecl *FD) { } if (TVA) { -llvm::SmallVector Feats; -TVA->getFeatures(Feats); -for (const auto &Feat : Feats) { - if (!TargetInfo.validateCpuSupports(Feat)) { -S.Di

[clang] [Clang][Sema] Fix templated array size calculation. (PR #96464)

2024-09-17 Thread via cfe-commits
https://github.com/awson updated https://github.com/llvm/llvm-project/pull/96464 >From 096b999120cc28844d780acbc16f8308b3a54160 Mon Sep 17 00:00:00 2001 From: awson Date: Mon, 24 Jun 2024 10:34:51 +0300 Subject: [PATCH 1/3] [Clang][Sema] don't handle ArraySize/AllocType early. --- clang/lib/Se

[clang] [Clang][Sema] Fix templated array size calculation. (PR #96464)

2024-09-17 Thread via cfe-commits
awson wrote: > It seems reasonable to me, but I want @cor3ntin to review this, he's the one > who got his foot stuck in array bounds for a while :D > > However, this patch needs a few changes: > > 1- A better patch title, perhaps improved commit message 2- Release note 1. Partially (patch tit

[clang] [llvm] [Utils] Add new --update-tests flag to llvm-lit (PR #108425)

2024-09-17 Thread Nicolai Hähnle via cfe-commits
https://github.com/nhaehnle commented: Thank you. This pretty much LGTM, but it just occurred to me that there's a docs/CommandGuide/lit.rst which should be updated to document the new option. https://github.com/llvm/llvm-project/pull/108425 ___ cfe-c

[clang] [llvm] [AMDGPU] Change CF intrinsics lowering to reconverge on predecessors (PR #108596)

2024-09-17 Thread Nicolai Hähnle via cfe-commits
nhaehnle wrote: Thank you for going into a bit more detail. It does seem like distinguishing between SGPR reloads and VGPR reloads would help. Hmm, what about a case where we run out of VGPRs to spill SGPRs into? What do we actually do in that case today? https://github.com/llvm/llvm-project/

[clang] [clang][bytecode] Fix definining extern variables (PR #108940)

2024-09-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/108940 At the point of defintion of the variable, a function might already refert to the variable by its index. Replace the index with the new one. >From db26626c766426d6d848f459d4a243319f9badbe Mon Sep 17 00:00:00 2

[clang] [llvm] [HLSL] Implement elementwise popcount (PR #108121)

2024-09-17 Thread Simon Pilgrim via cfe-commits
https://github.com/RKSimon approved this pull request. LGTM after @farzonl minors have been addressed - once this is committed I'm intending to use `__builtin_elementwise_popcount` to simplify a number of C++ target intrinsics that do the same thing. https://github.com/llvm/llvm-project/pull/1

[clang] [clang][bytecode] Fix definining extern variables (PR #108940)

2024-09-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) Changes At the point of defintion of the variable, a function might already refert to the variable by its index. Replace the index with the new one. --- Full diff: https://github.com/llvm/llvm-project/pull/108940.di

[clang] [clang][bytecode] Fix definining extern variables (PR #108940)

2024-09-17 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/108940 >From bdfe4454f2f2ad0b710b0e9036768d311a77f965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 17 Sep 2024 08:49:55 +0200 Subject: [PATCH] [clang][bytecode] Fix defining extern variables

[clang] [llvm] [X86][AVX10.2] Support AVX10.2 MOVZXC new Instructions. (PR #108537)

2024-09-17 Thread Phoebe Wang via cfe-commits
@@ -2139,9 +2139,9 @@ define <8 x i16> @pr59628_xmm(i16 %arg) { ; X86-LABEL: pr59628_xmm: ; X86: # %bb.0: ; X86-NEXT:movzwl {{[0-9]+}}(%esp), %eax -; X86-NEXT:vxorps %xmm0, %xmm0, %xmm0 +; X86-NEXT:vpxor %xmm0, %xmm0, %xmm0 ; X86-NEXT:vpbroadcastw %eax, %

[clang-tools-extra] [clang-tidy] Add user-defined functions to `bugprone-unsafe-functions` check (PR #106350)

2024-09-17 Thread via cfe-commits
https://github.com/Discookie updated https://github.com/llvm/llvm-project/pull/106350 >From c4e05bdb36e270cbf0557f38fad7c04edf011905 Mon Sep 17 00:00:00 2001 From: Viktor Date: Wed, 28 Aug 2024 08:47:20 + Subject: [PATCH 01/10] [clang-tidy] Add user-defined functions to bugprone-unsafe-fun

[clang-tools-extra] 6357781 - [clang-tidy] fix nullptr dereference in bugprone-forwarding-reference (#106856)

2024-09-17 Thread via cfe-commits
Author: Julian Schmidt Date: 2024-09-17T10:42:07+02:00 New Revision: 6357781e3f9fbc5a14a794b8769b451c863c65c7 URL: https://github.com/llvm/llvm-project/commit/6357781e3f9fbc5a14a794b8769b451c863c65c7 DIFF: https://github.com/llvm/llvm-project/commit/6357781e3f9fbc5a14a794b8769b451c863c65c7.diff

[clang-tools-extra] [clang-tidy] fix nullptr dereference in bugprone-forwarding-reference (PR #106856)

2024-09-17 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti closed https://github.com/llvm/llvm-project/pull/106856 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 50320ec - [NFC][clang-tidy] reword diagnostic note in definitions-in-headers (#106862)

2024-09-17 Thread via cfe-commits
Author: Julian Schmidt Date: 2024-09-17T10:42:23+02:00 New Revision: 50320ec967a2c6546e53998225dddb76c4016dc5 URL: https://github.com/llvm/llvm-project/commit/50320ec967a2c6546e53998225dddb76c4016dc5 DIFF: https://github.com/llvm/llvm-project/commit/50320ec967a2c6546e53998225dddb76c4016dc5.diff

[clang-tools-extra] [NFC][clang-tidy] reword diagnostic note in definitions-in-headers (PR #106862)

2024-09-17 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti closed https://github.com/llvm/llvm-project/pull/106862 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 605a9ad - [clang-tidy] fix false positive in modernize-min-max-use-initializer-list (#107649)

2024-09-17 Thread via cfe-commits
Author: Julian Schmidt Date: 2024-09-17T10:43:40+02:00 New Revision: 605a9adb4340b347f480a95a6eef3c9045e8416f URL: https://github.com/llvm/llvm-project/commit/605a9adb4340b347f480a95a6eef3c9045e8416f DIFF: https://github.com/llvm/llvm-project/commit/605a9adb4340b347f480a95a6eef3c9045e8416f.diff

[clang-tools-extra] [clang-tidy] fix false positive in modernize-min-max-use-initializer-list (PR #107649)

2024-09-17 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti closed https://github.com/llvm/llvm-project/pull/107649 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] caaac84 - [clang-tidy] only diagnose definitions in readability-enum-initial-value (#107652)

2024-09-17 Thread via cfe-commits
Author: Julian Schmidt Date: 2024-09-17T10:44:22+02:00 New Revision: caaac84ab2ef3f56e5204c9fae5cddf7b6e9a1c0 URL: https://github.com/llvm/llvm-project/commit/caaac84ab2ef3f56e5204c9fae5cddf7b6e9a1c0 DIFF: https://github.com/llvm/llvm-project/commit/caaac84ab2ef3f56e5204c9fae5cddf7b6e9a1c0.diff

[clang-tools-extra] [clang-tidy] only diagnose definitions in readability-enum-initial-value (PR #107652)

2024-09-17 Thread Julian Schmidt via cfe-commits
https://github.com/5chmidti closed https://github.com/llvm/llvm-project/pull/107652 ___ 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 user-defined functions to `bugprone-unsafe-functions` check (PR #106350)

2024-09-17 Thread via cfe-commits
https://github.com/Discookie updated https://github.com/llvm/llvm-project/pull/106350 >From c4e05bdb36e270cbf0557f38fad7c04edf011905 Mon Sep 17 00:00:00 2001 From: Viktor Date: Wed, 28 Aug 2024 08:47:20 + Subject: [PATCH 01/11] [clang-tidy] Add user-defined functions to bugprone-unsafe-fun

[clang] [llvm] riscv: Support -mstack-protector-guard=tls (PR #108942)

2024-09-17 Thread Keith Packard via cfe-commits
https://github.com/keith-packard created https://github.com/llvm/llvm-project/pull/108942 Add support for using a thread-local variable with a specified offsetfor holding the stack guard canary value. >From 7822a1ee2eed923a3014577668bdd8f1c8145d4c Mon Sep 17 00:00:00 2001 From: Keith Packard

[clang] [llvm] riscv: Support -mstack-protector-guard=tls (PR #108942)

2024-09-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Keith Packard (keith-packard) Changes Add support for using a thread-local variable with a specified offsetfor holding the stack guard canary value. --- Full diff: https://github.com/llvm/llvm-project/pull/108942.diff 5 Files Affected:

[clang] [llvm] riscv: Support -mstack-protector-guard=tls (PR #108942)

2024-09-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Keith Packard (keith-packard) Changes Add support for using a thread-local variable with a specified offsetfor holding the stack guard canary value. --- Full diff: https://github.com/llvm/llvm-project/pull/108942.diff 5 Files Aff

[clang] [clang-format] Fix a bug in annotating angles containing FatArrow (PR #108671)

2024-09-17 Thread kadir çetinkaya via cfe-commits
@@ -243,14 +244,16 @@ class AnnotatingParser { // operator that was misinterpreted because we are parsing template // parameters. // FIXME: This is getting out of hand, write a decent parser. - if (InExpr && !Line.startsWith(tok::kw_template) && + if

[clang] 88a9bca - [clang][NFC] Update `cxx_dr_status.html`

2024-09-17 Thread Vlad Serebrennikov via cfe-commits
Author: Vlad Serebrennikov Date: 2024-09-17T12:12:49+03:00 New Revision: 88a9bcaf7074d21aa818cfa3952300dc9547be77 URL: https://github.com/llvm/llvm-project/commit/88a9bcaf7074d21aa818cfa3952300dc9547be77 DIFF: https://github.com/llvm/llvm-project/commit/88a9bcaf7074d21aa818cfa3952300dc9547be77.

[clang] [Clang] Reject `this void` explicit object parameters (CWG2915) (PR #108817)

2024-09-17 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: > @Endilll: I've removed the other changes from `cxx_dr_status.html` manually > from this commit. Can you create the separate patch to add the new cwg > issues? Thanks! Pushed 331d65d0e271d22da9f496f2bb628b93ab515725 https://github.com/llvm/llvm-project/pull/108817

[clang] [Clang] Reject `this void` explicit object parameters (CWG2915) (PR #108817)

2024-09-17 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: > @Endilll: I've removed the other changes from `cxx_dr_status.html` manually > from this commit. Can you create the separate patch to add the new cwg > issues? Thanks! Pushed 88a9bcaf7074d21aa818cfa3952300dc9547be77 https://github.com/llvm/llvm-project/pull/108817

[clang-tools-extra] [clang-tidy] Create bugprone-bit-cast-pointers check (PR #108083)

2024-09-17 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp updated https://github.com/llvm/llvm-project/pull/108083 >From d7eacb7d6614b374a959c33a7394f2652df32982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20G=C3=A1lvez?= Date: Tue, 10 Sep 2024 13:46:51 + Subject: [PATCH] [clang-tidy] Create bugprone-bit-cast-p

[clang-tools-extra] [clang-tidy] Create bugprone-bit-cast-pointers check (PR #108083)

2024-09-17 Thread Carlos Galvez via cfe-commits
https://github.com/carlosgalvezp updated https://github.com/llvm/llvm-project/pull/108083 >From c9e69b58e6c3e27fc6dd529783c02fec8fafbd9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20G=C3=A1lvez?= Date: Tue, 10 Sep 2024 13:46:51 + Subject: [PATCH] [clang-tidy] Create bugprone-bit-cast-p

[clang] [flang] [flang][Driver] Support -nostdlib and -nodefaultlibs (PR #108868)

2024-09-17 Thread Tom Eccles via cfe-commits
https://github.com/tblah approved this pull request. LGTM, thanks https://github.com/llvm/llvm-project/pull/108868 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][bytecode] Implement arithmetic, bitwise and compound assignment operator (PR #108949)

2024-09-17 Thread via cfe-commits
https://github.com/yronglin created https://github.com/llvm/llvm-project/pull/108949 Implement `+`, `-`, `*`, `/` , `%`, `&`, `|`, `^`, `<<`, `>>` and compound assignment operator. >From 3601f708847f70485fae640c5b5d96fed965e7c3 Mon Sep 17 00:00:00 2001 From: yronglin Date: Tue, 17 Sep 2024 17

[clang] [clang][bytecode] Implement arithmetic, bitwise and compound assignment operator (PR #108949)

2024-09-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (yronglin) Changes Implement `+`, `-`, `*`, `/` , `%`, `&`, `|`, `^`, `<<`, `>>` and compound assignment operator. --- Patch is 35.67 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/108949

[clang] [llvm] [X86][AVX10.2] Support AVX10.2 MOVZXC new Instructions. (PR #108537)

2024-09-17 Thread via cfe-commits
https://github.com/mahesh-attarde updated https://github.com/llvm/llvm-project/pull/108537 >From d8e76ea27679df40d0c796a5e8e5bc31433b6bff Mon Sep 17 00:00:00 2001 From: mattarde Date: Fri, 13 Sep 2024 03:26:14 -0700 Subject: [PATCH 1/6] update clr --- clang/lib/Headers/CMakeLists.txt

[clang] [llvm] [SPIR-V] Add SPIR-V structurizer (PR #107408)

2024-09-17 Thread Vyacheslav Levytskyy via cfe-commits
Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Nathan =?utf-8?q?Gauër?= , Na

[clang] b1d7694 - [AArch64] Add missing ACLE predefined macros and update __ARM_ACLE. (#108857)

2024-09-17 Thread via cfe-commits
Author: Alexandros Lamprineas Date: 2024-09-17T11:07:07+01:00 New Revision: b1d7694c128fd200a23f4494530aa3ae50fa76ce URL: https://github.com/llvm/llvm-project/commit/b1d7694c128fd200a23f4494530aa3ae50fa76ce DIFF: https://github.com/llvm/llvm-project/commit/b1d7694c128fd200a23f4494530aa3ae50fa76

[clang] [AArch64] Add missing ACLE predefined macros and update __ARM_ACLE. (PR #108857)

2024-09-17 Thread Alexandros Lamprineas via cfe-commits
https://github.com/labrinea closed https://github.com/llvm/llvm-project/pull/108857 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [mlir] [clang][flang][mlir] Support -frecord-command-line option (PR #102975)

2024-09-17 Thread Tarun Prabhu via cfe-commits
https://github.com/tarunprabhu updated https://github.com/llvm/llvm-project/pull/102975 >From 4a37cec543f30bb122bf14573fdec8302a0afa3e Mon Sep 17 00:00:00 2001 From: Tarun Prabhu Date: Mon, 12 Aug 2024 14:32:08 -0600 Subject: [PATCH 1/5] [clang][flang][mlir] Support -frecord-command-line option

[clang] [flang] [mlir] [clang][flang][mlir] Support -frecord-command-line option (PR #102975)

2024-09-17 Thread Tarun Prabhu via cfe-commits
tarunprabhu wrote: Moved code to the `clang::driver::tools` namespace https://github.com/llvm/llvm-project/pull/102975 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [FMV][AArch64] Unify ls64, ls64_v and ls64_accdata. (PR #108024)

2024-09-17 Thread Alexandros Lamprineas via cfe-commits
labrinea wrote: This may sound like a bad idea in terms of future maintenance, but how about we guarded the enum entries I am removing with `#if __FUNCTION_MULTI_VERSIONING_SUPPORT_LEVEL < __ARM_ACLE_VERSION(2024, 3, 0)` ? https://github.com/llvm/llvm-project/pull/108024 __

[clang] [llvm] [X86][AVX10.2] Support AVX10.2 MOVZXC new Instructions. (PR #108537)

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

[clang] [Clang] prevented assertion failure by handling integral to boolean conversions for boolean vectors (PR #108657)

2024-09-17 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/108657 >From 70d1be2a2a0f2f44cdd70bfb4397e7a36f1c9f30 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sat, 14 Sep 2024 01:46:28 +0300 Subject: [PATCH 1/2] [Clang] prevented assertion failure by handling integral t

[clang-tools-extra] [docs][clang-tidy] Correct StrictMode example in modernize-use-std-print (PR #108805)

2024-09-17 Thread Mike Crowe via cfe-commits
https://github.com/mikecrowe commented: LGTM. Thanks for fixing this. https://github.com/llvm/llvm-project/pull/108805 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] prevented assertion failure by handling integral to boolean conversions for boolean vectors (PR #108657)

2024-09-17 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/108657 >From 70d1be2a2a0f2f44cdd70bfb4397e7a36f1c9f30 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Sat, 14 Sep 2024 01:46:28 +0300 Subject: [PATCH 1/2] [Clang] prevented assertion failure by handling integral t

[clang] [analyzer] Indicate UnarySymExpr is not supported by Z3 (PR #108900)

2024-09-17 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat commented: Do I understand it correctly that this deficiency affects the standalone Z3 analysis mode (as opposed to the "Z3 refutation" where the analysis is performed with the native range-based constraint manager, and then the results are validated with Z3 to dis

[clang] [analyzer] Indicate UnarySymExpr is not supported by Z3 (PR #108900)

2024-09-17 Thread Donát Nagy via cfe-commits
@@ -0,0 +1,16 @@ +// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -verify %s \ +// RUN: -analyzer-constraints=z3 + +// REQUIRES: Z3 +// +// This LIT covers a crash associated with this test. +// The expectation is to not crash! NagyDonat

[clang] [analyzer] Indicate UnarySymExpr is not supported by Z3 (PR #108900)

2024-09-17 Thread Donát Nagy via cfe-commits
@@ -0,0 +1,16 @@ +// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -verify %s \ +// RUN: -analyzer-constraints=z3 + +// REQUIRES: Z3 +// +// This LIT covers a crash associated with this test. +// The expectation is to not crash! +// + +long a; +void b() {

[clang] [analyzer] Indicate UnarySymExpr is not supported by Z3 (PR #108900)

2024-09-17 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/108900 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Indicate UnarySymExpr is not supported by Z3 (PR #108900)

2024-09-17 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/108900 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Indicate UnarySymExpr is not supported by Z3 (PR #108900)

2024-09-17 Thread Donát Nagy via cfe-commits
https://github.com/NagyDonat edited https://github.com/llvm/llvm-project/pull/108900 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lldb] [ASTImporter][lldb] Avoid implicit imports in VisitFieldDecl (PR #107828)

2024-09-17 Thread Andrew Savonichev via cfe-commits
asavonic wrote: > Our idea is summarized in > https://discourse.llvm.org/t/rfc-lldb-more-reliable-completion-of-record-types/77442. > Basically the goal is to guarantee that a call to `getDefinition`, _will_ > fetch the definition. This is something that Clang already does, but we just > neve

[clang] [Clang] prevented assertion failure by handling integral to boolean conversions for boolean vectors (PR #108657)

2024-09-17 Thread Oleksandr T. via cfe-commits
@@ -9868,7 +9868,12 @@ static bool tryVectorConvertAndSplat(Sema &S, ExprResult *scalar, // if necessary. CastKind scalarCast = CK_NoOp; - if (vectorEltTy->isIntegralType(S.Context)) { + if (vectorEltTy->isBooleanType()) { +if (scalarTy->isIntegralType(S.Context)) +

[clang] 1e23a61 - [PS4, PS5][Driver] Detangle --sysroot and -isysroot (#107410)

2024-09-17 Thread via cfe-commits
Author: Edd Dawson Date: 2024-09-17T12:09:38+01:00 New Revision: 1e23a6142a827cda89fa4d8335afebd89701991d URL: https://github.com/llvm/llvm-project/commit/1e23a6142a827cda89fa4d8335afebd89701991d DIFF: https://github.com/llvm/llvm-project/commit/1e23a6142a827cda89fa4d8335afebd89701991d.diff LO

[clang] [PS4, PS5][Driver] Detangle --sysroot and -isysroot (PR #107410)

2024-09-17 Thread Edd Dawson via cfe-commits
https://github.com/playstation-edd closed https://github.com/llvm/llvm-project/pull/107410 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [SPIR-V] Add SPIR-V structurizer (PR #107408)

2024-09-17 Thread Nathan Gauër via cfe-commits
Keenuts wrote: > I'll check it today against my test suites and get back to you. Thanks! > I'm curious how `sortBlocks(F)` and other changes would behave when inserted > before vs. after those optimizations applied? I'm not sure either. I'd be tempted to say we should put the `sortBlock` aft

[clang-tools-extra] [clang-tidy] Add new check bugprone-tagged-union-member-count (PR #89925)

2024-09-17 Thread Kristóf Umann via cfe-commits
Szelethus wrote: My say doesn't quite have the same weight here are many others, but I see no problems with this patch after so many rounds of reviews -- would it be okay to merge? https://github.com/llvm/llvm-project/pull/89925 ___ cfe-commits maili

[clang] Don't emit int TBAA metadata on more complex FP math libcalls. (PR #107598)

2024-09-17 Thread Zahira Ammarguellat via cfe-commits
https://github.com/zahiraam updated https://github.com/llvm/llvm-project/pull/107598 >From 0763f8d25194e18a040d4cd4cde7c88b6fccbb44 Mon Sep 17 00:00:00 2001 From: Zahira Ammarguellat Date: Fri, 6 Sep 2024 08:01:25 -0700 Subject: [PATCH 1/7] Don't emit int TBAA metadata on more complex FP math

[clang] 07e0b8a - [ast-matcher] Fixed a crash when traverse lambda expr with invalid captures (#108689)

2024-09-17 Thread via cfe-commits
Author: Congcong Cai Date: 2024-09-17T20:12:01+08:00 New Revision: 07e0b8a7717aecc1133a08bfe013b58fb4c596f5 URL: https://github.com/llvm/llvm-project/commit/07e0b8a7717aecc1133a08bfe013b58fb4c596f5 DIFF: https://github.com/llvm/llvm-project/commit/07e0b8a7717aecc1133a08bfe013b58fb4c596f5.diff

[clang] [ast-matcher] Fixed a crash when traverse lambda expr with invalid captures (PR #108689)

2024-09-17 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 closed https://github.com/llvm/llvm-project/pull/108689 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [FMV][AArch64] Unify ls64, ls64_v and ls64_accdata. (PR #108024)

2024-09-17 Thread via cfe-commits
@@ -73,8 +73,6 @@ enum CPUFeatures { FEAT_SSBS, FEAT_SSBS2, FEAT_BTI, - FEAT_LS64, - FEAT_LS64_V, Wilco1 wrote: ABI compatibility means you can use different compilers to build object files, link them and they work correctly. If object A uses bit 36,

[clang] [Clang][AMDGPU] Simplify builtin type definitions. NFC. (PR #108968)

2024-09-17 Thread Jay Foad via cfe-commits
https://github.com/jayfoad created https://github.com/llvm/llvm-project/pull/108968 Remove the MangledName field since these types just use the normal Name for mangling purposes. >From 97fc6c239af3cadb61fe70cd07bb3b31c5da7a52 Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Tue, 17 Sep 2024 12:5

[clang] [Clang][AMDGPU] Simplify builtin type definitions. NFC. (PR #108968)

2024-09-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-debuginfo Author: Jay Foad (jayfoad) Changes Remove the MangledName field since these types just use the normal Name for mangling purposes. --- Full diff: https://github.com/llvm/llvm-project/pull/108968.diff 4 Files Affected: - (modified) clang/inc

[clang] [Clang][AMDGPU] Simplify builtin type definitions. NFC. (PR #108968)

2024-09-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jay Foad (jayfoad) Changes Remove the MangledName field since these types just use the normal Name for mangling purposes. --- Full diff: https://github.com/llvm/llvm-project/pull/108968.diff 4 Files Affected: - (modified) clang/include

[clang] [HLSL][NFC] Remove RegisterBindingFlags struct (PR #108924)

2024-09-17 Thread Xiang Li via cfe-commits
https://github.com/python3kgae approved this pull request. https://github.com/llvm/llvm-project/pull/108924 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL][NFC] Update resource attribute tests (PR #108919)

2024-09-17 Thread Xiang Li via cfe-commits
@@ -1,16 +1,25 @@ // RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -ast-dump -o - %s | FileCheck %s // CHECK: CXXRecordDecl 0x{{[0-9a-f]+}} {{.*}} struct MyBuffer definition -// CHECK: FieldDecl 0x{{[0-9a-f]+}} col:68 h '__hlsl_resource_t {{\[\[}}hlsl::reso

[clang] [HLSL][NFC] Update resource attribute tests (PR #108919)

2024-09-17 Thread Xiang Li via cfe-commits
https://github.com/python3kgae approved this pull request. https://github.com/llvm/llvm-project/pull/108919 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [AMDGPU] Change CF intrinsics lowering to reconverge on predecessors (PR #108596)

2024-09-17 Thread via cfe-commits
alex-t wrote: > Thank you for going into a bit more detail. It does seem like distinguishing > between SGPR reloads and VGPR reloads would help. > > Hmm, what about a case where we run out of VGPRs to spill SGPRs into? What do > we actually do in that case today? Not sure if I understand your

[clang] [clang][codegen] Don't mark "int" TBAA on FP libcalls with indirect args (PR #108853)

2024-09-17 Thread Zahira Ammarguellat via cfe-commits
zahiraam wrote: > > How does this interact with #107598? > >Though this also changes things to ensure when TBAA data is set, it's always >set on the call. Wasn't already doing that? (setting the TBAA on the call?). https://github.com/llvm/llvm-project/pull/108853 _

[clang] [Clang] Add and use mangleVendorType helper. NFC. (PR #108970)

2024-09-17 Thread Jay Foad via cfe-commits
https://github.com/jayfoad created https://github.com/llvm/llvm-project/pull/108970 None >From 9c2e1d8470b7b1a0647baece8fa41cf8ce7b4f5d Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Tue, 17 Sep 2024 13:28:11 +0100 Subject: [PATCH] [Clang] Add and use mangleVendorType helper. NFC. --- clang/l

[clang] [Clang] Add and use mangleVendorType helper. NFC. (PR #108970)

2024-09-17 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jay Foad (jayfoad) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/108970.diff 1 Files Affected: - (modified) clang/lib/AST/ItaniumMangle.cpp (+24-28) ``diff diff --git a/clang/lib/AST/ItaniumMangle.cpp b/cl

[clang] [llvm] [AMDGPU] Convert AMDGPUResourceUsageAnalysis pass from Module to MF pass (PR #102913)

2024-09-17 Thread Janek van Oirschot via cfe-commits
@@ -40,12 +42,19 @@ class AMDGPUAsmPrinter final : public AsmPrinter { AMDGPUResourceUsageAnalysis *ResourceUsage; + MCResourceInfo RI; + SIProgramInfo CurrentProgramInfo; std::unique_ptr HSAMetadataStream; MCCodeEmitter *DumpCodeInstEmitter = nullptr; + //

[clang] [clang][codegen] Don't mark "int" TBAA on FP libcalls with indirect args (PR #108853)

2024-09-17 Thread Benjamin Maxwell via cfe-commits
MacDue wrote: > > > How does this interact with #107598? > > > > > > Though this also changes things to ensure when TBAA data is set, it's > > always set on the call. > > Wasn't already doing that? (setting the TBAA on the call?). It was setting it on `cast(Call.getScalarVal());` not the ca

[clang] [llvm] [AMDGPU] Convert AMDGPUResourceUsageAnalysis pass from Module to MF pass (PR #102913)

2024-09-17 Thread Janek van Oirschot via cfe-commits
@@ -0,0 +1,225 @@ +//===- AMDGPUMCResourceInfo.cpp --- MC Resource Info --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Ap

[clang] [clang] check deduction consistency when partial ordering function templates (PR #100692)

2024-09-17 Thread Alexander Kornienko via cfe-commits
alexfh wrote: @mizvekov any news here? I think, I'll come up with two more reduced tests later today. https://github.com/llvm/llvm-project/pull/100692 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [clang][codegen] Don't mark "int" TBAA on FP libcalls with indirect args (PR #108853)

2024-09-17 Thread Benjamin Maxwell via cfe-commits
https://github.com/MacDue updated https://github.com/llvm/llvm-project/pull/108853 >From 6db9f6d56f0bbd56d017156f858eae68653fbd1b Mon Sep 17 00:00:00 2001 From: Benjamin Maxwell Date: Mon, 16 Sep 2024 16:27:23 + Subject: [PATCH 1/3] Precommit math-libcalls-tbaa-indirect-args.c --- .../mat

  1   2   3   4   5   >