[clang] [llvm] [RISCV][MC] Support experimental extensions Zvbc32e and Zvkgs (PR #103709)

2024-08-14 Thread Brandon Wu via cfe-commits
@@ -754,6 +754,17 @@ def HasStdExtZvbc : Predicate<"Subtarget->hasStdExtZvbc()">, AssemblerPredicate<(all_of FeatureStdExtZvbc), "'Zvbc' (Vector Carryless Multiplication)">; +def FeatureStdExtZvbc32e +: RISCVExperimentalExtensio

[clang-tools-extra] [clang-tidy] Create bugprone-incorrect-enable-shared-from-this check (PR #102299)

2024-08-14 Thread via cfe-commits
https://github.com/MichelleCDjunaidi updated https://github.com/llvm/llvm-project/pull/102299 >From 75306bd83eb43d0606630f9f059fc04ad1b20b06 Mon Sep 17 00:00:00 2001 From: Michelle C Djunaidi Date: Wed, 7 Aug 2024 13:10:02 +0800 Subject: [PATCH 01/11] [clang-tidy] Add bugprone-public-enable-sh

[clang] [Clang] prevent null explicit object argument from being deduced (PR #104328)

2024-08-14 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/104328 >From 432686be091dae7ff532028fd5c41f73862e0bd5 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Thu, 15 Aug 2024 01:43:15 +0300 Subject: [PATCH 1/2] [Clang] prevent null explicit object argument from being d

[clang] [llvm] [RISCV][MC] Support experimental extensions Zvbc32e and Zvkgs (PR #103709)

2024-08-14 Thread Craig Topper via cfe-commits
@@ -150,6 +150,14 @@ let Predicates = [HasStdExtZvkg], RVVConstraint = NoConstraint in { SchedBinaryMC<"WriteVGMULV", "ReadVGMULV", "ReadVGMULV">; } // Predicates = [HasStdExtZvkg] +let Predicates = [HasStdExtZvkgs], RVVConstraint = NoConstraint in {

[clang-tools-extra] 3eaf483 - [include-cleaner] Remove two commented-out lines of code.

2024-08-14 Thread Haojian Wu via cfe-commits
Author: Haojian Wu Date: 2024-08-15T08:44:46+02:00 New Revision: 3eaf483c296bd95411bc855674707f289790e2a2 URL: https://github.com/llvm/llvm-project/commit/3eaf483c296bd95411bc855674707f289790e2a2 DIFF: https://github.com/llvm/llvm-project/commit/3eaf483c296bd95411bc855674707f289790e2a2.diff LO

[clang-tools-extra] [include-cleaner] Add handling for new/delete expressions (PR #104033)

2024-08-14 Thread Haojian Wu via cfe-commits
https://github.com/hokein approved this pull request. https://github.com/llvm/llvm-project/pull/104033 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][MC] Support experimental extensions Zvbc32e and Zvkgs (PR #103709)

2024-08-14 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp edited https://github.com/llvm/llvm-project/pull/103709 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][MC] Support experimental extensions Zvbc32e and Zvkgs (PR #103709)

2024-08-14 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp edited https://github.com/llvm/llvm-project/pull/103709 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][MC] Support experimental extensions Zvbc32e and Zvkgs (PR #103709)

2024-08-14 Thread Pengcheng Wang via cfe-commits
@@ -150,6 +150,14 @@ let Predicates = [HasStdExtZvkg], RVVConstraint = NoConstraint in { SchedBinaryMC<"WriteVGMULV", "ReadVGMULV", "ReadVGMULV">; } // Predicates = [HasStdExtZvkg] +let Predicates = [HasStdExtZvkgs], RVVConstraint = NoConstraint in {

[clang] [clang][C23] Support N3029 Improved Normal Enumerations (PR #103917)

2024-08-14 Thread via cfe-commits
@@ -172,10 +172,8 @@ enum class GH42372_2 { #if __STDC_VERSION__ >= 202311L // FIXME: GCC picks __uint128_t as the underlying type for the enumeration // value and Clang picks unsigned long long. -// FIXME: Clang does not yet implement WG14 N3029, so the warning about -// restr

[clang] 372842b - [X86][MC] Remove CMPCCXADD's CondCode flavor. (#103898)

2024-08-14 Thread via cfe-commits
Author: Freddy Ye Date: 2024-08-15T14:18:59+08:00 New Revision: 372842b30f8e611765e3cb9f06b8265d2e79f3f6 URL: https://github.com/llvm/llvm-project/commit/372842b30f8e611765e3cb9f06b8265d2e79f3f6 DIFF: https://github.com/llvm/llvm-project/commit/372842b30f8e611765e3cb9f06b8265d2e79f3f6.diff LOG

[clang] [llvm] [X86][MC] Remove CMPCCXADD's CondCode flavor. (PR #103898)

2024-08-14 Thread Freddy Ye via cfe-commits
https://github.com/FreddyLeaf closed https://github.com/llvm/llvm-project/pull/103898 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][MC] Remove CMPCCXADD's CondCode flavor. (PR #103898)

2024-08-14 Thread Freddy Ye via cfe-commits
https://github.com/FreddyLeaf edited https://github.com/llvm/llvm-project/pull/103898 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV][MC] Support experimental extensions Zvbc32e and Zvkgs (PR #103709)

2024-08-14 Thread Pengcheng Wang via cfe-commits
@@ -150,6 +150,14 @@ let Predicates = [HasStdExtZvkg], RVVConstraint = NoConstraint in { SchedBinaryMC<"WriteVGMULV", "ReadVGMULV", "ReadVGMULV">; } // Predicates = [HasStdExtZvkg] +let Predicates = [HasStdExtZvkgs], RVVConstraint = NoConstraint in {

[clang] [Clang] Overflow Pattern Exclusions (PR #100272)

2024-08-14 Thread Bill Wendling via cfe-commits
bwendling wrote: I removed it temporarily. https://github.com/llvm/llvm-project/pull/100272 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 07a8cba - Remove failing test until it can be fixed properly.

2024-08-14 Thread Bill Wendling via cfe-commits
Author: Bill Wendling Date: 2024-08-14T22:51:26-07:00 New Revision: 07a8cbaf8dc16bebf6e875173d20299d9cc47cc5 URL: https://github.com/llvm/llvm-project/commit/07a8cbaf8dc16bebf6e875173d20299d9cc47cc5 DIFF: https://github.com/llvm/llvm-project/commit/07a8cbaf8dc16bebf6e875173d20299d9cc47cc5.diff

[clang] [llvm] [RISCV][MC] Support experimental extensions Zvbc32e and Zvkgs (PR #103709)

2024-08-14 Thread Brandon Wu via cfe-commits
@@ -150,6 +150,14 @@ let Predicates = [HasStdExtZvkg], RVVConstraint = NoConstraint in { SchedBinaryMC<"WriteVGMULV", "ReadVGMULV", "ReadVGMULV">; } // Predicates = [HasStdExtZvkg] +let Predicates = [HasStdExtZvkgs], RVVConstraint = NoConstraint in {

[clang] [Clang] Add __builtin_get_counted_by builtin (PR #102549)

2024-08-14 Thread via cfe-commits
@@ -222,6 +222,49 @@ bool Expr::isFlexibleArrayMemberLike( IgnoreTemplateOrMacroSubstitution); } +namespace { + +/// MemberExprVisitor - Find the MemberExpr through all of the casts, array +/// subscripts, and unary ops. This intentiona

[clang] [Clang] Add __builtin_get_counted_by builtin (PR #102549)

2024-08-14 Thread via cfe-commits
@@ -222,6 +222,49 @@ bool Expr::isFlexibleArrayMemberLike( IgnoreTemplateOrMacroSubstitution); } +namespace { + +/// MemberExprVisitor - Find the MemberExpr through all of the casts, array +/// subscripts, and unary ops. This intentiona

[clang] [Clang] Overflow Pattern Exclusions (PR #100272)

2024-08-14 Thread via cfe-commits
dyung wrote: > Hopefully > [6e2d9df](https://github.com/llvm/llvm-project/commit/6e2d9df02502e16659e4a9397260baf9df224f17) > fixes the buildbots. I think we should using update_cc_test_checks.py to > generate these testcases though. The test overflow-idiom-exclusion-fp.c appears to have been

[clang] [Clang] Add __builtin_get_counted_by builtin (PR #102549)

2024-08-14 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/102549 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add __builtin_get_counted_by builtin (PR #102549)

2024-08-14 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/102549 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add __builtin_get_counted_by builtin (PR #102549)

2024-08-14 Thread via cfe-commits
@@ -222,6 +222,49 @@ bool Expr::isFlexibleArrayMemberLike( IgnoreTemplateOrMacroSubstitution); } +namespace { + +/// MemberExprVisitor - Find the MemberExpr through all of the casts, array +/// subscripts, and unary ops. This intentiona

[clang] [Clang][NFC] Move FindCountedByField into FieldDecl (PR #104235)

2024-08-14 Thread Bill Wendling via cfe-commits
https://github.com/bwendling closed https://github.com/llvm/llvm-project/pull/104235 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 94b8b11 - [Clang][NFC] Move FindCountedByField into FieldDecl (#104235)

2024-08-14 Thread via cfe-commits
Author: Bill Wendling Date: 2024-08-15T05:27:19Z New Revision: 94b8b11ac305ebe730e6b70b2463811de395cb40 URL: https://github.com/llvm/llvm-project/commit/94b8b11ac305ebe730e6b70b2463811de395cb40 DIFF: https://github.com/llvm/llvm-project/commit/94b8b11ac305ebe730e6b70b2463811de395cb40.diff LOG:

[clang] [Clang][NFC] Move FindCountedByField into FieldDecl (PR #104235)

2024-08-14 Thread Bill Wendling via cfe-commits
https://github.com/bwendling updated https://github.com/llvm/llvm-project/pull/104235 >From a87bc65687b687073e8ff37606ca9e783f1edcf9 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Wed, 14 Aug 2024 13:44:56 -0700 Subject: [PATCH 1/2] [Clang][NFC] Move FindCountedByField into FieldDecl FindC

[clang] [llvm] workflows/release-binaries: Enable flang builds on Windows (PR #101344)

2024-08-14 Thread Tom Stellard via cfe-commits
tstellar wrote: I'm going to push this tomorrow so it has a chance to land before -rc3. https://github.com/llvm/llvm-project/pull/101344 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Overflow Pattern Exclusions (PR #100272)

2024-08-14 Thread Bill Wendling via cfe-commits
bwendling wrote: Hopefully 6e2d9df02502 fixes the buildbots. I think we should using update_cc_test_checks.py to generate these testcases though. https://github.com/llvm/llvm-project/pull/100272 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] 6e2d9df - Fix testcases. Use -emit-llvm and not -S. Use LABEL checking.

2024-08-14 Thread Bill Wendling via cfe-commits
Author: Bill Wendling Date: 2024-08-14T22:14:29-07:00 New Revision: 6e2d9df02502e16659e4a9397260baf9df224f17 URL: https://github.com/llvm/llvm-project/commit/6e2d9df02502e16659e4a9397260baf9df224f17 DIFF: https://github.com/llvm/llvm-project/commit/6e2d9df02502e16659e4a9397260baf9df224f17.diff

[clang] [Clang][NFC] Move FindCountedByField into FieldDecl (PR #104235)

2024-08-14 Thread via cfe-commits
@@ -3206,6 +3206,10 @@ class FieldDecl : public DeclaratorDecl, public Mergeable { /// Set the C++11 in-class initializer for this member. void setInClassInitializer(Expr *NewInit); + /// Find the FieldDecl specified in a FAM's "counted_by" attribute. Returns + /// \p n

[clang] [Clang][NFC] Move FindCountedByField into FieldDecl (PR #104235)

2024-08-14 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/104235 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][NFC] Move FindCountedByField into FieldDecl (PR #104235)

2024-08-14 Thread via cfe-commits
https://github.com/Sirraide approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/104235 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][llvm-lit] Rewrite constexpr vectors test to use element access (PR #102757)

2024-08-14 Thread Timm Baeder via cfe-commits
tbaederr wrote: can you do `git pull origin main --rebase` and force push the result to your branch, so we can get CI coverage for linux? https://github.com/llvm/llvm-project/pull/102757 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://

[clang] [Clang] [AST] Fix placeholder return type name mangling for MSVC 1920+ / VS2019+ (PR #102848)

2024-08-14 Thread Max Winkler via cfe-commits
https://github.com/MaxEW707 closed https://github.com/llvm/llvm-project/pull/102848 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e0d173d - [Clang] [AST] Fix placeholder return type name mangling for MSVC 1920+ / VS2019+ (#102848)

2024-08-14 Thread via cfe-commits
Author: Max Winkler Date: 2024-08-14T21:51:57-07:00 New Revision: e0d173d44161bf9b68243845666d58999e74f759 URL: https://github.com/llvm/llvm-project/commit/e0d173d44161bf9b68243845666d58999e74f759 DIFF: https://github.com/llvm/llvm-project/commit/e0d173d44161bf9b68243845666d58999e74f759.diff L

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-14 Thread Jannick Kremer via cfe-commits
DeinAlptraum wrote: Implemented all your suggestions https://github.com/llvm/llvm-project/pull/101802 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-14 Thread Jannick Kremer via cfe-commits
https://github.com/DeinAlptraum updated https://github.com/llvm/llvm-project/pull/101802 >From 572b1be0b204561fdbb049f0c17f065d17198ac0 Mon Sep 17 00:00:00 2001 From: Jannick Kremer Date: Sat, 3 Aug 2024 09:28:02 +0100 Subject: [PATCH 1/5] [libclang/python] Fix bug in SourceRange.__contains__,

[clang] [Clang] Overflow Pattern Exclusions (PR #100272)

2024-08-14 Thread Justin Stitt via cfe-commits
JustinStitt wrote: @bwendling we want to use `-triple` not `-target`, can you cherry pick 3ef83ad323dfbe99028c774c3716706671ba7b8b I also reordered the tests and added labels so the tests are actually checking the right stuff -- debugging was really difficult but will be easier now. https://g

[clang] [Clang] [Sema] Error on reference types inside a union with msvc 1900+ (PR #102851)

2024-08-14 Thread Max Winkler via cfe-commits
https://github.com/MaxEW707 updated https://github.com/llvm/llvm-project/pull/102851 >From e6b925894066656a2773278a093dbf709ba66319 Mon Sep 17 00:00:00 2001 From: MaxEW707 Date: Sun, 11 Aug 2024 22:37:55 -0700 Subject: [PATCH 1/4] Error on reference inside a union with msvc 1910+ --- clang/li

[clang] [llvm] [RISCV] Add vector and vector crypto to SiFiveP400 scheduler model (PR #102155)

2024-08-14 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp approved this pull request. LGTM. https://github.com/llvm/llvm-project/pull/102155 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][MC] Remove CMPCCXADD's CondCode flavor. (PR #103898)

2024-08-14 Thread Shengchen Kan via cfe-commits
https://github.com/KanRobert approved this pull request. LGTM, but please put the link for the discussion in GCC community in description https://github.com/llvm/llvm-project/pull/103898 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://l

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-14 Thread Freddy Ye via cfe-commits
@@ -0,0 +1,286 @@ +/*===- avx10_2_512convertintrin.h - AVX10_2_512CONVERT -=== + * + * 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: Apac

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-14 Thread Freddy Ye via cfe-commits
@@ -0,0 +1,286 @@ +/*===- avx10_2_512convertintrin.h - AVX10_2_512CONVERT -=== + * + * 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: Apac

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-14 Thread Freddy Ye via cfe-commits
@@ -0,0 +1,286 @@ +/*===- avx10_2_512convertintrin.h - AVX10_2_512CONVERT -=== + * + * 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: Apac

[clang] [Clang] Overflow Pattern Exclusions (PR #100272)

2024-08-14 Thread via cfe-commits
dyung wrote: @bwendling The follow-up commit you made to the tests added here (7275919cd5fc89c42a52168c9f4411b4e5421c95) seems to have caused the test to start failing on at least a few bots. - https://lab.llvm.org/buildbot/#/builders/154/builds/2752 - https://lab.llvm.org/buildbot/#/builders/

[clang] [OpenMP] Require x86-registered-target for test use avx512 (PR #104390)

2024-08-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mark Zhuang (zqb-all) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/104390.diff 1 Files Affected: - (modified) clang/test/OpenMP/declare_variant_device_isa_codegen_1.c (+2) ``diff diff --git a/clang/test/O

[clang] [OpenMP] Require x86-registered-target for test use avx512 (PR #104390)

2024-08-14 Thread Mark Zhuang via cfe-commits
https://github.com/zqb-all created https://github.com/llvm/llvm-project/pull/104390 None >From 434bc55536b239047ff094d6bee44c5f6b8e72ef Mon Sep 17 00:00:00 2001 From: Mark Zhuang Date: Thu, 15 Aug 2024 10:25:37 +0800 Subject: [PATCH] [OpenMP] Require x86-registered-target for test use avx512

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-14 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,286 @@ +/*===- avx10_2_512convertintrin.h - AVX10_2_512CONVERT -=== + * + * 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: Apac

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-14 Thread Phoebe Wang via cfe-commits
@@ -2217,6 +2217,50 @@ TARGET_BUILTIN(__builtin_ia32_vcvttps2ibs512_mask, "V16UiV16fV16UiUsIi", "nV:512 TARGET_BUILTIN(__builtin_ia32_vcvttps2iubs128_mask, "V4UiV4fV4UiUc", "nV:128:", "avx10.2-256") TARGET_BUILTIN(__builtin_ia32_vcvttps2iubs256_mask, "V8UiV8fV8UiUcIi", "nV:25

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-14 Thread Phoebe Wang via cfe-commits
@@ -624,3 +624,440 @@ defm VCVTTPS2IUBS : avx10_sat_cvt_base<0x6a, "vcvttps2iubs", SchedWriteVecIMul, avx512vl_i32_info, avx512vl_f32_info, X86vcvttp2iubsSAE>, AVX512PDIi8Base, T_MA

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-14 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,286 @@ +/*===- avx10_2_512convertintrin.h - AVX10_2_512CONVERT -=== + * + * 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: Apac

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-14 Thread Phoebe Wang via cfe-commits
@@ -624,3 +624,440 @@ defm VCVTTPS2IUBS : avx10_sat_cvt_base<0x6a, "vcvttps2iubs", SchedWriteVecIMul, avx512vl_i32_info, avx512vl_f32_info, X86vcvttp2iubsSAE>, AVX512PDIi8Base, T_MA

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-14 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,286 @@ +/*===- avx10_2_512convertintrin.h - AVX10_2_512CONVERT -=== + * + * 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: Apac

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-14 Thread Phoebe Wang via cfe-commits
@@ -0,0 +1,286 @@ +/*===- avx10_2_512convertintrin.h - AVX10_2_512CONVERT -=== + * + * 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: Apac

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-14 Thread Phoebe Wang via cfe-commits
@@ -624,3 +624,440 @@ defm VCVTTPS2IUBS : avx10_sat_cvt_base<0x6a, "vcvttps2iubs", SchedWriteVecIMul, avx512vl_i32_info, avx512vl_f32_info, X86vcvttp2iubsSAE>, AVX512PDIi8Base, T_MA

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-14 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang edited https://github.com/llvm/llvm-project/pull/101600 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][AVX10.2] Support AVX10.2-CONVERT new instructions. (PR #101600)

2024-08-14 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang commented: Just found I didn't publish the comments.. https://github.com/llvm/llvm-project/pull/101600 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Implement Clang Builtins for XCValu Extension in CV32E40P (PR #100684)

2024-08-14 Thread via cfe-commits
https://github.com/realqhc updated https://github.com/llvm/llvm-project/pull/100684 >From d2169cacc2851db4d57865e26781b93d814ebe80 Mon Sep 17 00:00:00 2001 From: Qihan Cai Date: Fri, 26 Jul 2024 12:26:16 +1000 Subject: [PATCH 1/3] [RISCV] Implement Clang Builtins for XCValu Extension in CV32E4

[clang] [Clang] prevent null explicit object argument from being deduced (PR #104328)

2024-08-14 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/104328 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] prevent null explicit object argument from being deduced (PR #104328)

2024-08-14 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov commented: I'd have expected we would have a previous step analogous to CheckTemplateArgument which would have diagnosed null explicit arguments, before we started trying to deduce anything. https://github.com/llvm/llvm-project/pull/104328 __

[clang] [Clang] [Sema] Error on reference types inside a union with msvc 1900+ (PR #102851)

2024-08-14 Thread Max Winkler via cfe-commits
@@ -619,6 +616,20 @@ template struct A {}; template struct B : A> { A::C::D d; }; // expected-warning {{implicit 'typename' is a C++20 extension}} } +#elif TEST4 + +union u { +int *i1; +int &i2; // expected-warning {{union member 'i2' has reference type 'int &', whi

[clang] [clang-format] Introduce "ReflowComments: IndentOnly" to re-indent comments without breaking internal structure (think Doxygen). (PR #96804)

2024-08-14 Thread Owen Pan via cfe-commits
@@ -5272,22 +5272,46 @@ the configuration (without a prefix: ``Auto``). .. _ReflowComments: -**ReflowComments** (``Boolean``) :versionbadge:`clang-format 3.8` :ref:`¶ ` - If ``true``, clang-format will attempt to re-flow comments. That is it - will touch a comment and *ref

[clang] [clang-format] Introduce "ReflowComments: IndentOnly" to re-indent comments without breaking internal structure (think Doxygen). (PR #96804)

2024-08-14 Thread Owen Pan via cfe-commits
@@ -493,9 +493,36 @@ TEST_F(FormatTestComments, AlignsBlockComments) { TEST_F(FormatTestComments, CommentReflowingCanBeTurnedOff) { FormatStyle Style = getLLVMStyleWithColumns(20); - Style.ReflowComments = false; - verifyFormat("// a aa aa", Style);

[clang] 5873aa8 - Remove '-emit-llvm' and use '-triple'

2024-08-14 Thread Bill Wendling via cfe-commits
Author: Bill Wendling Date: 2024-08-14T17:49:34-07:00 New Revision: 5873aa83b871393b5ada4c2033445d5fd52d7461 URL: https://github.com/llvm/llvm-project/commit/5873aa83b871393b5ada4c2033445d5fd52d7461 DIFF: https://github.com/llvm/llvm-project/commit/5873aa83b871393b5ada4c2033445d5fd52d7461.diff

[clang] 7275919 - Use clang_cc1 and specify the target explicitly.

2024-08-14 Thread Bill Wendling via cfe-commits
Author: Bill Wendling Date: 2024-08-14T17:46:30-07:00 New Revision: 7275919cd5fc89c42a52168c9f4411b4e5421c95 URL: https://github.com/llvm/llvm-project/commit/7275919cd5fc89c42a52168c9f4411b4e5421c95 DIFF: https://github.com/llvm/llvm-project/commit/7275919cd5fc89c42a52168c9f4411b4e5421c95.diff

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-14 Thread via cfe-commits
https://github.com/Da-Viper updated https://github.com/llvm/llvm-project/pull/102831 >From 8a4f6af9fc1f44c2f8b5fd3693ca14eaf776fd02 Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Sun, 11 Aug 2024 21:39:35 +0100 Subject: [PATCH 01/10] [clang-tidy] use upper cace letters for bool conversion su

[clang] [Clang] Overflow Pattern Exclusions (PR #100272)

2024-08-14 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ve-ninja` running on `hpce-ve-main` while building `clang` at step 4 "annotate". Full details are available at: https://lab.llvm.org/buildbot/#/builders/12/builds/3786 Here is the relevant piece of the build log for the

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-14 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/101802 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-14 Thread Vlad Serebrennikov via cfe-commits
@@ -65,6 +65,9 @@ Clang Python Bindings Potentially Breaking Changes - Calling a property on the ``CompletionChunk`` or ``CompletionString`` class statically now leads to an error, instead of returning a ``CachedProperty`` object that is used internally. Properties are onl

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-14 Thread Vlad Serebrennikov via cfe-commits
@@ -50,6 +50,17 @@ unsigned clang_equalLocations(CXSourceLocation loc1, CXSourceLocation loc2) { loc1.int_data == loc2.int_data); } +unsigned clang_lessThanLocations(CXSourceLocation loc1, CXSourceLocation loc2) { + const SourceLocation Loc1 = SourceLocation::get

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-14 Thread Vlad Serebrennikov via cfe-commits
@@ -355,6 +358,8 @@ Sanitizers Python Binding Changes -- - Fixed an issue that led to crashes when calling ``Type.get_exception_specification_kind``. +- Fixed a bug in ``SourceRange.__contains__`` that led to false positives Endilll wrote:

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-14 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll commented: Can you also add my earlier example with `#include` to the tests? https://github.com/llvm/llvm-project/pull/101802 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-14 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/101802 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libclang/python] Fix bug in `SourceRange.__contains__`, add tests (PR #101802)

2024-08-14 Thread Vlad Serebrennikov via cfe-commits
@@ -65,6 +65,9 @@ Clang Python Bindings Potentially Breaking Changes - Calling a property on the ``CompletionChunk`` or ``CompletionString`` class statically now leads to an error, instead of returning a ``CachedProperty`` object that is used internally. Properties are onl

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-14 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 41345925f9393518be8029cfb1ea80cfeb5631b4 214e252a23fe6473aa21ccfbf8d098e1dbac5eb0 --e

[clang-tools-extra] [clang-tidy] use upper case letters for bool conversion suffix (PR #102831)

2024-08-14 Thread via cfe-commits
https://github.com/Da-Viper updated https://github.com/llvm/llvm-project/pull/102831 >From 8a4f6af9fc1f44c2f8b5fd3693ca14eaf776fd02 Mon Sep 17 00:00:00 2001 From: Ebuka Ezike Date: Sun, 11 Aug 2024 21:39:35 +0100 Subject: [PATCH 1/9] [clang-tidy] use upper cace letters for bool conversion suff

[clang] [Clang] Overflow Pattern Exclusions (PR #100272)

2024-08-14 Thread Bill Wendling via cfe-commits
https://github.com/bwendling closed https://github.com/llvm/llvm-project/pull/100272 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9a666de - [Clang] Overflow Pattern Exclusions (#100272)

2024-08-14 Thread via cfe-commits
Author: Justin Stitt Date: 2024-08-15T00:17:06Z New Revision: 9a666deecb9ff6ca3a6b12e6c2877e19b74b54da URL: https://github.com/llvm/llvm-project/commit/9a666deecb9ff6ca3a6b12e6c2877e19b74b54da DIFF: https://github.com/llvm/llvm-project/commit/9a666deecb9ff6ca3a6b12e6c2877e19b74b54da.diff LOG:

[clang] [clang][HLSL] Add sign intrinsic part 3 (PR #101989)

2024-08-14 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl approved this pull request. https://github.com/llvm/llvm-project/pull/101989 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Overflow Pattern Exclusions (PR #100272)

2024-08-14 Thread Justin Stitt via cfe-commits
https://github.com/JustinStitt updated https://github.com/llvm/llvm-project/pull/100272 >From 154d3505ab13275086b3dffed67bcdcac52f79a3 Mon Sep 17 00:00:00 2001 From: Justin Stitt Date: Tue, 23 Jul 2024 20:21:49 + Subject: [PATCH 01/13] implement idiom exclusions Add flag `-fno-sanitize-ove

[clang] [clang][HLSL] Add sign intrinsic part 3 (PR #101989)

2024-08-14 Thread Farzon Lotfi via cfe-commits
@@ -1725,5 +1725,76 @@ _HLSL_AVAILABILITY(shadermodel, 6.0) _HLSL_BUILTIN_ALIAS(__builtin_hlsl_wave_get_lane_index) __attribute__((convergent)) uint WaveGetLaneIndex(); +//===--===// +// sign builtins +//===--

[clang] [clang][HLSL] Add sign intrinsic part 3 (PR #101989)

2024-08-14 Thread Farzon Lotfi via cfe-commits
@@ -916,7 +916,7 @@ float4 lerp(float4, float4, float4); /// \brief Returns the length of the specified floating-point vector. /// \param x [in] The vector of floats, or a scalar float. /// -/// Length is based on the following formula: sqrt(x[0]^2 + x[1]^2 + �). +/// Length is

[clang] [clang][HLSL] Add sign intrinsic part 3 (PR #101989)

2024-08-14 Thread Farzon Lotfi via cfe-commits
@@ -18662,6 +18662,23 @@ case Builtin::BI__builtin_hlsl_elementwise_isinf: { llvm::FunctionType::get(IntTy, {}, false), "__hlsl_wave_get_lane_index", {}, false, true)); } + case Builtin::BI__builtin_hlsl_elementwise_sign: { +Value *Op0 = EmitScalarExpr(E

[clang] [lld] [llvm] [LTO] enable `ObjCARCContractPass` only on optimized build (PR #101114)

2024-08-14 Thread Peter Rong via cfe-commits
DataCorrupted wrote: @mikaelholmen I can't reproduce this on commit e40915b7407e with `-DLLVM_USE_SANITIZER=Undefined`. Kindly let me know how to reproduce this. Looking from the code, I suspect that it's caused by uninitialized bool (https://github.com/llvm/llvm-project/blob/539bf499615dbbfe9

[clang] [llvm] [Offload] Provide a kernel library useable by the offload runtime (PR #104168)

2024-08-14 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert updated https://github.com/llvm/llvm-project/pull/104168 >From 73daf3f9968f07e7f52b6e2ed956773d873634f3 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Mon, 12 Aug 2024 11:53:06 -0700 Subject: [PATCH] [Offload] Provide a kernel library useable by the offload

[clang] [llvm] [Offload] Provide a kernel library useable by the offload runtime (PR #104168)

2024-08-14 Thread Johannes Doerfert via cfe-commits
https://github.com/jdoerfert updated https://github.com/llvm/llvm-project/pull/104168 >From bda519493667d3554365061475308da3786bfa9d Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Mon, 12 Aug 2024 11:53:06 -0700 Subject: [PATCH] [Offload] Provide a kernel library useable by the offload

[clang] [Clang] prevent null explicit object argument from being deduced (PR #104328)

2024-08-14 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/104328 >From 432686be091dae7ff532028fd5c41f73862e0bd5 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Thu, 15 Aug 2024 01:43:15 +0300 Subject: [PATCH 1/2] [Clang] prevent null explicit object argument from being d

[clang] [llvm] [clang][HLSL] Add WaveIsFirstLane() intrinsic (PR #103299)

2024-08-14 Thread Farzon Lotfi via cfe-commits
https://github.com/farzonl approved this pull request. https://github.com/llvm/llvm-project/pull/103299 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Error on extraneous template headers by default. (PR #104046)

2024-08-14 Thread via cfe-commits
https://github.com/cor3ntin closed https://github.com/llvm/llvm-project/pull/104046 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2b959bd - [Clang] Error on extraneous template headers by default. (#104046)

2024-08-14 Thread via cfe-commits
Author: cor3ntin Date: 2024-08-15T00:55:54+02:00 New Revision: 2b959bd7f21bc7550a99fb160997002b7e4f1b62 URL: https://github.com/llvm/llvm-project/commit/2b959bd7f21bc7550a99fb160997002b7e4f1b62 DIFF: https://github.com/llvm/llvm-project/commit/2b959bd7f21bc7550a99fb160997002b7e4f1b62.diff LOG:

[clang] [Clang] Error on extraneous template headers by default. (PR #104046)

2024-08-14 Thread via cfe-commits
https://github.com/cor3ntin updated https://github.com/llvm/llvm-project/pull/104046 >From 5c724a55dda16dcf5dfd8e5be8c86001fa6c9fe7 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Wed, 14 Aug 2024 17:25:29 +0200 Subject: [PATCH 1/2] [Clang] Error on extraneous template headers by default.

[clang] [Clang] prevent null explicit object argument from being deduced (PR #104328)

2024-08-14 Thread via cfe-commits
@@ -0,0 +1,30 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c++2b -verify %s + +namespace std { +struct rv {}; + +template struct enable_if; +template struct enable_if { typedef T type; }; + +template +typename enable_if<__is_convertible(T, rv), U>::type forward(T &); +template +t

[clang] [Clang] prevent null explicit object argument from being deduced (PR #104328)

2024-08-14 Thread via cfe-commits
@@ -0,0 +1,30 @@ +// RUN: %clang_cc1 -fsyntax-only -std=c++2b -verify %s + +namespace std { +struct rv {}; + +template struct enable_if; +template struct enable_if { typedef T type; }; + +template +typename enable_if<__is_convertible(T, rv), U>::type forward(T &); +template +t

[clang] [Clang] prevent null explicit object argument from being deduced (PR #104328)

2024-08-14 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/104328 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] prevent null explicit object argument from being deduced (PR #104328)

2024-08-14 Thread via cfe-commits
https://github.com/cor3ntin commented: Fix LGTM Can you move the test to test/SemaCXX/cxx2b-deducing-this.cpp, in a `GH102025` namespace? https://github.com/llvm/llvm-project/pull/104328 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://

[clang] [llvm] [clang][HLSL] Add WaveIsFirstLane() intrinsic (PR #103299)

2024-08-14 Thread Farzon Lotfi via cfe-commits
@@ -18660,6 +18660,10 @@ case Builtin::BI__builtin_hlsl_elementwise_isinf: { llvm::FunctionType::get(IntTy, {}, false), "__hlsl_wave_get_lane_index", {}, false, true)); } + case Builtin::BI__builtin_hlsl_wave_is_first_lane: { +Intrinsic::ID ID = CGM.getH

[clang] [Clang] handle both gnu and cpp11 attributes to ensure correct parsing inside extern block (PR #102864)

2024-08-14 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk updated https://github.com/llvm/llvm-project/pull/102864 >From b0e53b1c8a687165fa28bd21200f83bf1b1a9234 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Mon, 12 Aug 2024 13:56:30 +0300 Subject: [PATCH 1/2] [Clang] handle both gnu and cpp11 attributes to ensure cor

[clang] [Clang] prevent null explicit object argument from being deduced (PR #104328)

2024-08-14 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Oleksandr T. (a-tarasyuk) Changes Fixes #102025 --- Full diff: https://github.com/llvm/llvm-project/pull/104328.diff 3 Files Affected: - (modified) clang/docs/ReleaseNotes.rst (+1) - (modified) clang/lib/Sema/SemaTemplateDeduction.cpp

[clang] [Clang] prevent null explicit object argument from being deduced (PR #104328)

2024-08-14 Thread Oleksandr T. via cfe-commits
https://github.com/a-tarasyuk created https://github.com/llvm/llvm-project/pull/104328 Fixes #102025 >From 432686be091dae7ff532028fd5c41f73862e0bd5 Mon Sep 17 00:00:00 2001 From: Oleksandr T Date: Thu, 15 Aug 2024 01:43:15 +0300 Subject: [PATCH] [Clang] prevent null explicit object argument fr

[clang] Create Texture Dimension attribute in HLSL (PR #104239)

2024-08-14 Thread Joshua Batista via cfe-commits
bob80905 wrote: > What is this attribute supposed to mean? I think we need some design here > before we create the attribute, as it isn't clear to me that a single integer > covers our needs. The texture kinds that need to be representable by this and > whatever other attributes we design are

  1   2   3   4   5   >