[clang] [Serialization] Downgrade error to warning for inconsistent language flags (PR #117840)

2024-11-26 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: CC @mathstuf @mizvekov https://github.com/llvm/llvm-project/pull/117840 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Avoid re-evaluating field bitwidth (PR #117732)

2024-11-26 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/117732 >From f766ba7fdfef40adc304b3bd54ccf48db8288576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 27 Nov 2024 08:54:51 +0100 Subject: [PATCH] Save FieldDecl BitWidth as a ConstantExpr ---

[clang] [clang] Format bitfield width diagnostics with thousands-separators (PR #117763)

2024-11-26 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/117763 >From 07b326b59bf9a8e385840a590c5162b9d1914650 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 26 Nov 2024 19:26:32 +0100 Subject: [PATCH] [clang] Format bitfield width diagnostics with

[clang-tools-extra] [clang-tidy] Enhance modernize-use-starts-ends-with to handle substr patterns (PR #116033)

2024-11-26 Thread Helmut Januschka via cfe-commits
hjanuschka wrote: awesome! thanks to everyone involved for the patience with me and the great guidance! https://github.com/llvm/llvm-project/pull/116033 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/l

[clang] [clang-format] fix: add missing `default_extensions` values to `git-clang-format` (PR #117730)

2024-11-26 Thread via cfe-commits
github-actions[bot] wrote: @lumirlumir 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 bui

[clang] 6c7b988 - [clang-format] Add mjs to default_extensions in git-clang-format (#117730)

2024-11-26 Thread via cfe-commits
Author: 루밀LuMir Date: 2024-11-26T22:56:25-08:00 New Revision: 6c7b988e64b60cff7e9f3777dfcc2b2511ee48c6 URL: https://github.com/llvm/llvm-project/commit/6c7b988e64b60cff7e9f3777dfcc2b2511ee48c6 DIFF: https://github.com/llvm/llvm-project/commit/6c7b988e64b60cff7e9f3777dfcc2b2511ee48c6.diff LOG:

[clang] [clang-format] fix: add missing `default_extensions` values to `git-clang-format` (PR #117730)

2024-11-26 Thread Owen Pan via cfe-commits
https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/117730 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] fix: add missing `default_extensions` values to `git-clang-format` (PR #117730)

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

[clang] [clang] Implement P2582R1: CTAD from inherited constructors (PR #98788)

2024-11-26 Thread via cfe-commits
@@ -10615,6 +10615,40 @@ bool clang::isBetterOverloadCandidate( auto *Guide1 = dyn_cast_or_null(Cand1.Function); auto *Guide2 = dyn_cast_or_null(Cand2.Function); if (Guide1 && Guide2) { + // -- F1 and F2 are generated from class template argument deduction +

[clang] [Clang] [NFC] Refactor more AST visitors (PR #116823)

2024-11-26 Thread via cfe-commits
@@ -266,7 +265,7 @@ class RenameLocFinder : public RecursiveASTVisitor { return true; } - bool VisitDeclRefExpr(const DeclRefExpr *Expr) { cor3ntin wrote: Why are we removing const here (and other places)? https://github.com/llvm/llvm-project/pull/11

[clang] [clang] Allow delayed function instantiation at TU end if initial instantiation fails (PR #117167)

2024-11-26 Thread via cfe-commits
cor3ntin wrote: Wait @erichkeane, I think this is just another case of "lambda call operators get instantiated too soon"... The change is almost certainly not the right solution, but the right solution is... a lot of work... https://github.com/llvm/llvm-project/pull/117167

[clang] Downgrade error to warning (PR #117840)

2024-11-26 Thread via cfe-commits
https://github.com/cor3ntin requested changes to this pull request. I don't think the discussion here has run its course https://github.com/llvm/llvm-project/pull/115416 In particular, I agree with @boris-kolpackov that this is likely to lead to hard-to understand ODR violations issues, which i

[clang] [Clang] prevent errors for deduction guides using deduced type aliases (PR #117450)

2024-11-26 Thread via cfe-commits
https://github.com/antangelo approved this pull request. https://github.com/llvm/llvm-project/pull/117450 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Downgrade error to warning (PR #117840)

2024-11-26 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/117840 >From 1f9c2a9c32f3f3883478d96c716a58c8d6e8e27a Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Wed, 27 Nov 2024 10:53:03 +0800 Subject: [PATCH] [Serialization] Downgrade inconsistent flags from erros to warn

[clang] [clang] Implement P3176R1: The Oxford variadic comma (PR #117524)

2024-11-26 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM, thanks https://github.com/llvm/llvm-project/pull/117524 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0d15d46 - [ubsan] Change ubsan-unique-traps to use nomerge instead of counter (#117651)

2024-11-26 Thread via cfe-commits
Author: Thurston Dang Date: 2024-11-26T21:13:00-08:00 New Revision: 0d15d46362bd6ab5a9a2165805adaab13a7689f4 URL: https://github.com/llvm/llvm-project/commit/0d15d46362bd6ab5a9a2165805adaab13a7689f4 DIFF: https://github.com/llvm/llvm-project/commit/0d15d46362bd6ab5a9a2165805adaab13a7689f4.diff

[clang] [llvm] [ubsan] Change ubsan-unique-traps to use nomerge instead of counter (PR #117651)

2024-11-26 Thread Thurston Dang via cfe-commits
https://github.com/thurstond closed https://github.com/llvm/llvm-project/pull/117651 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Downgrade error to warning (PR #117840)

2024-11-26 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/117840 >From 8b1794945e984b8527d234b13796ecf3e94ded77 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Wed, 27 Nov 2024 10:53:03 +0800 Subject: [PATCH] [Serialization] Downgrade inconsistent flags from erros to warn

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117820 >From 0b0d6946d385a341f766d1a3e333962682b8479b Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Tue, 4 Jun 2024 13:59:28 -0400 Subject: [PATCH] AMDGPU: Add support for v_cvt_scalef32_sr instructions Co-authored-

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117820 >From 9a90e74d3c0d851a140368d7c7969bde10b52d0e Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Tue, 4 Jun 2024 13:59:28 -0400 Subject: [PATCH] AMDGPU: Add support for v_cvt_scalef32_sr instructions Co-authored-

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread Matt Arsenault via cfe-commits
arsenm wrote: ### Merge activity * **Nov 26, 11:16 PM EST**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/117820). https://github.com/llvm/llvm-project/pull/117820

[clang] [flang] [Flang] LoongArch64 support for BIND(C) derived types in mabi=lp64d. (PR #117108)

2024-11-26 Thread Zhaoxin Yang via cfe-commits
https://github.com/ylzsx updated https://github.com/llvm/llvm-project/pull/117108 >From 32e04b6538486006c98c6b805b1057110c3a2c1a Mon Sep 17 00:00:00 2001 From: yangzhaoxin Date: Wed, 20 Nov 2024 17:30:43 +0800 Subject: [PATCH 1/4] [Flang] LoongArch64 support for BIND(C) derived types. This pat

[clang] [clang] Compute accurate begin location for CallExpr with explicit object parameter (PR #117841)

2024-11-26 Thread Yanzuo Liu via cfe-commits
@@ -1639,6 +1639,13 @@ SourceLocation CallExpr::getBeginLoc() const { if (const auto *OCE = dyn_cast(this)) return OCE->getBeginLoc(); + if (const CXXMethodDecl *Method = + dyn_cast_or_null(getCalleeDecl()); zwuis wrote: ```suggestion

[clang-tools-extra] [clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative (PR #117837)

2024-11-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Nicolas van Kempen (nicovank) Changes In C++20, `operator!=` can be rewritten by negating `operator==`. This is the case for `std::string`, where `operator!=` is not provided hence relying on this rewriting. Cover this case

[clang-tools-extra] [clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative (PR #117837)

2024-11-26 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank created https://github.com/llvm/llvm-project/pull/117837 In C++20, `operator!=` can be rewritten by negating `operator==`. This is the case for `std::string`, where `operator!=` is not provided hence relying on this rewriting. Cover this case by matching `binaryOp

[clang-tools-extra] [clang-tidy][modernize-use-starts-ends-with] Fix minor mistake in error message (PR #116132)

2024-11-26 Thread Nicolas van Kempen via cfe-commits
nicovank wrote: Incorporated in #116033. https://github.com/llvm/llvm-project/pull/116132 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][modernize-use-starts-ends-with] Fix minor mistake in error message (PR #116132)

2024-11-26 Thread Nicolas van Kempen via cfe-commits
https://github.com/nicovank closed https://github.com/llvm/llvm-project/pull/116132 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Downgrade inconsistent flags from erros to warnings (PR #115416)

2024-11-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-armv8-quick` running on `linaro-clang-armv8-quick` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/154/builds/8111 Here is the relevant piece of

[clang] [libcxx] [C++20] [Modules] Convert '-fexperimental-modules-reduced-bmi' to '-fmodules-reduced-bmi' (PR #114382)

2024-11-26 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/114382 >From 8a90969b9b669fa2925cea2b60622c19406243d1 Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Thu, 31 Oct 2024 17:27:00 +0800 Subject: [PATCH 1/2] [C++20] [Modules] Convert '-fexperimental-modules-reduced-b

[clang] 74449ab - [Serialization] Downgrade inconsistent flags from erros to warnings (#115416)

2024-11-26 Thread via cfe-commits
Author: Chuanqi Xu Date: 2024-11-27T10:53:03+08:00 New Revision: 74449ab86b8bc8d7388ede0cc7fc3a679da0c567 URL: https://github.com/llvm/llvm-project/commit/74449ab86b8bc8d7388ede0cc7fc3a679da0c567 DIFF: https://github.com/llvm/llvm-project/commit/74449ab86b8bc8d7388ede0cc7fc3a679da0c567.diff LO

[clang] [Serialization] Downgrade inconsistent flags from erros to warnings (PR #115416)

2024-11-26 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 updated https://github.com/llvm/llvm-project/pull/115416 >From 168d155cf6662b5db8cd4f84a51633581d8a545e Mon Sep 17 00:00:00 2001 From: Chuanqi Xu Date: Fri, 8 Nov 2024 10:56:44 +0800 Subject: [PATCH] [Serialization] Downgrade inconsistent flags from erros to warni

[clang] [clang][RISCV] __riscv_v_intrinsic macro doesn't need zve32x (PR #117356)

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

[clang] [libcxx] [C++20] [Modules] Convert '-fexperimental-modules-reduced-bmi' to '-fmodules-reduced-bmi' (PR #114382)

2024-11-26 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: It looks the CI will compile libc++ with "old" clang19 and the just built clang. So it might not be able to recognize the new flag. Tried to use `-fexperimental-modules-reduced-bmi` for libc++. We can replace it with `-fmodules-reduced-bmi` someday after we don't compile it w

[clang] [llvm] [RISCV] Support `svukte` extension (PR #115657)

2024-11-26 Thread Brandon Wu via cfe-commits
https://github.com/4vtomat closed https://github.com/llvm/llvm-project/pull/115657 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4a7dbed - [RISCV] Support `svukte` extension (#115657)

2024-11-26 Thread via cfe-commits
Author: Brandon Wu Date: 2024-11-27T10:54:57+08:00 New Revision: 4a7dbede6badd27ce2ad07984134d5d25a2bbada URL: https://github.com/llvm/llvm-project/commit/4a7dbede6badd27ce2ad07984134d5d25a2bbada DIFF: https://github.com/llvm/llvm-project/commit/4a7dbede6badd27ce2ad07984134d5d25a2bbada.diff LO

[clang] [Serialization] Downgrade inconsistent flags from erros to warnings (PR #115416)

2024-11-26 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 closed https://github.com/llvm/llvm-project/pull/115416 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Downgrade inconsistent flags from erros to warnings (PR #115416)

2024-11-26 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: Let's continue the discussion in post commit review if any. https://github.com/llvm/llvm-project/pull/115416 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][RISCV] __riscv_v_intrinsic macro doesn't need zve32x (PR #117356)

2024-11-26 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-aarch64-quick` running on `linaro-clang-aarch64-quick` while building `clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/65/builds/8430 Here is the relevant piec

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread Shilei Tian via cfe-commits
https://github.com/shiltian approved this pull request. https://github.com/llvm/llvm-project/pull/117820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread Shilei Tian via cfe-commits
https://github.com/shiltian edited https://github.com/llvm/llvm-project/pull/117820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [WebAssembly] Implement %llvm.thread.pointer intrinsic. NFC (PR #117817)

2024-11-26 Thread Sam Clegg via cfe-commits
https://github.com/sbc100 updated https://github.com/llvm/llvm-project/pull/117817 >From 933be68425babeefba6415f5aebc31b0f2d34265 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 26 Nov 2024 16:38:00 -0800 Subject: [PATCH] [WebAssembly] Implement %llvm.thread.pointer intrinsic. NFC We can s

[clang] [llvm] [WebAssembly] Implement %llvm.thread.pointer intrinsic. NFC (PR #117817)

2024-11-26 Thread Sam Clegg via cfe-commits
sbc100 wrote: > > Generally LGTM; maybe we also want to add a test for > > `__builtin_thread_pointer` to clang/test/CodeGen/builtins-wasm.c > > I only see that testing in clang/test/CodeGen/builtins-arm64.c, most > platforms don't seem to test this. Done! https://github.com/llvm/llvm-project

[clang] [llvm] [WebAssembly] Implement %llvm.thread.pointer intrinsic. NFC (PR #117817)

2024-11-26 Thread Sam Clegg via cfe-commits
https://github.com/sbc100 updated https://github.com/llvm/llvm-project/pull/117817 >From 9578cf12c95d2511975b9ede6edb3bddc5f5da74 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 26 Nov 2024 16:38:00 -0800 Subject: [PATCH] [WebAssembly] Implement %llvm.thread.pointer intrinsic. NFC We can s

[clang] [flang] [flang] Preserve fixed form in fc1 -x value (PR #117563)

2024-11-26 Thread David Truby via cfe-commits
DavidTruby wrote: `-save-temps` doesn't appear to work for me at all, I get the following error: ``` "S:\\llvm-project\\build\\bin\\flang.exe" -cc1as -triple x86_64-pc-windows-msvc19.41.34123 -filetype obj -main-file-name test.f90 -target-cpu x86-64 "-fdebug-compilation-dir=S:\\llvm-project\\b

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Matt Arsenault (arsenm) Changes Co-authored-by: Shilei Tian --- Patch is 55.68 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/117820.diff 11 Files Affected: -

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Matt Arsenault (arsenm) Changes Co-authored-by: Shilei Tian --- Patch is 55.68 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/117820.diff 11 Files Affected: - (modifi

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117820 >From ce8c1687eee9bfa527a4b995dd1f1a39d70f2b62 Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Tue, 4 Jun 2024 13:59:28 -0400 Subject: [PATCH] AMDGPU: Add support for v_cvt_scalef32_sr instructions Co-authored-

[clang] [llvm] AMDGPU: Add support for v_cvt_scalef32_sr instructions (PR #117820)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_sr_pk_fp4 instructions (PR #117798)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117798 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7671578 - AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_sr_pk_fp4 instructions (#117798)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:59:14-05:00 New Revision: 76715787f4c1e23a618bccdb81049456526f7b42 URL: https://github.com/llvm/llvm-project/commit/76715787f4c1e23a618bccdb81049456526f7b42 DIFF: https://github.com/llvm/llvm-project/commit/76715787f4c1e23a618bccdb81049456526f7b42.diff

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_sr_pk_fp4 instructions (PR #117798)

2024-11-26 Thread Matt Arsenault via cfe-commits
arsenm wrote: ### Merge activity * **Nov 26, 7:57 PM EST**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/117798). https://github.com/llvm/llvm-project/pull/117798 _

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_sr_pk_fp4 instructions (PR #117798)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117798 >From 89f06d11a4c3a75d02667a223da6e65187b39654 Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Mon, 3 Jun 2024 09:44:01 -0400 Subject: [PATCH] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_sr_pk_fp4 inst

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_sr_pk_fp4 instructions (PR #117798)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117798 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Implement P3176R1: The Oxford variadic comma (PR #117524)

2024-11-26 Thread via cfe-commits
@@ -8119,6 +8119,14 @@ void Parser::ParseParameterDeclarationClause( } if (TryConsumeToken(tok::ellipsis, EllipsisLoc)) { + if (getLangOpts().CPlusPlus26) { +// C++26 [dcl.dcl.fct]p3: +// A parameter-declaration-clause of the form +// p

[clang] [flang] [Flang] LoongArch64 support for BIND(C) derived types in mabi=lp64d. (PR #117108)

2024-11-26 Thread Zhaoxin Yang via cfe-commits
@@ -1151,6 +1154,311 @@ struct TargetLoongArch64 : public GenericTarget { return GenericTarget::integerArgumentType(loc, argTy); } + + /// Flatten non-basic types, resulting in an array of types containing only + /// `IntegerType` and `FloatType`. + std::vector flatt

[clang] [llvm] AMDGPU: MC support for v_cvt_scalef32_sr_{bf8|fp8}_{f16|bf16|f32} (PR #117797)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117797 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 065dc93 - AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{bf|f}16_{bf|fp}8 for gfx950 (#117793)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:35:18-05:00 New Revision: 065dc93d9626930b48f8e88b1e0a18c746951ce0 URL: https://github.com/llvm/llvm-project/commit/065dc93d9626930b48f8e88b1e0a18c746951ce0 DIFF: https://github.com/llvm/llvm-project/commit/065dc93d9626930b48f8e88b1e0a18c746951ce0.diff

[clang] Add an off-by-default warning to complain about MSVC bitfield padding (PR #117428)

2024-11-26 Thread Oliver Hunt via cfe-commits
@@ -6418,6 +6418,12 @@ def warn_signed_bitfield_enum_conversion : Warning< InGroup, DefaultIgnore; def note_change_bitfield_sign : Note< "consider making the bitfield type %select{unsigned|signed}0">; +def warn_ms_bitfield_mismatched_storage_packing : Warning< + "bit-field

[clang] [llvm] AMDGPU: MC support for v_cvt_sr_{f16|bf16}_f32 instructions (PR #117796)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117796 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add an off-by-default warning to complain about MSVC bitfield padding (PR #117428)

2024-11-26 Thread Oliver Hunt via cfe-commits
@@ -19213,6 +19213,29 @@ void Sema::ActOnFields(Scope *S, SourceLocation RecLoc, Decl *EnclosingDecl, if (Record && FD->getType().isVolatileQualified()) Record->setHasVolatileMember(true); +auto IsNonDependentBitField = [](const FieldDecl *FD) { + if (!FD->

[clang] c8ee1ee - AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk_fp4_{f|bf}16 for gfx950 (#117794)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:38:23-05:00 New Revision: c8ee1ee0571c5e49bee42983a8b9d8db0243c001 URL: https://github.com/llvm/llvm-project/commit/c8ee1ee0571c5e49bee42983a8b9d8db0243c001 DIFF: https://github.com/llvm/llvm-project/commit/c8ee1ee0571c5e49bee42983a8b9d8db0243c001.diff

[clang] [llvm] AMDGPU: MC support for V_CVT_SCALE_SR_FP4 instructions (PR #117795)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117795 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk_fp4_{f|bf}16 for gfx950 (PR #117794)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117794 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86] Enhance kCFI type IDs with a 3-bit arity indicator. (PR #117121)

2024-11-26 Thread Ramon de C Valle via cfe-commits
rcvalle wrote: This all too architecture specific and isn't the level that LLVM CFI and KCFI originally work. The arity test should be at the language level. E.g.: void foo(void) is arity zero void bar(int) is arity 1 int baz(int) is arity 2 int qux(int, int) is arity 3 And so on. If we tried

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk_fp4_{f|bf}16 for gfx950 (PR #117794)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117794 >From efa35c5c0eb3601db795b43f23a011ebb11377d7 Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Mon, 27 May 2024 01:18:46 -0400 Subject: [PATCH] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk_fp4_{f|b

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk_fp4_{f|bf}16 for gfx950 (PR #117794)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117794 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{bf|f}16_{bf|fp}8 for gfx950 (PR #117793)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117793 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{bf|f}16_{bf|fp}8 for gfx950 (PR #117793)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117793 >From d8b5c66d4bd23cda72b898b6ef33cb9e85b2b440 Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Tue, 23 Apr 2024 03:41:27 -0400 Subject: [PATCH] AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{bf|f}1

[clang] [llvm] AMDGPU: Builtin & codegen support for v_cvt_scalef32_pk32_{bf|f}16_{bf|fp}6 for gfx950 (PR #117747)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117747 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{bf|f}16_{bf|fp}8 for gfx950 (PR #117793)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117793 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 991dcbc - AMDGPU: Builtin & codegen support for v_cvt_scalef32_pk32_{bf|f}16_{bf|fp}6 for gfx950 (#117747)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:30:04-05:00 New Revision: 991dcbc468763953f4b4e65fa3448e147cba5bba URL: https://github.com/llvm/llvm-project/commit/991dcbc468763953f4b4e65fa3448e147cba5bba DIFF: https://github.com/llvm/llvm-project/commit/991dcbc468763953f4b4e65fa3448e147cba5bba.diff

[clang] [llvm] AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{f|bf}16_fp4 for gfx950 (PR #117744)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117744 >From 1204ea8880659bd3fbb3f33b1343e3ca6615b011 Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Mon, 22 Apr 2024 01:58:18 -0400 Subject: [PATCH] AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{f|bf}1

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk32_f32_[fp|bf]6 for gfx950 (PR #117745)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] eeb7688 - AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{f|bf}16_fp4 for gfx950 (#117744)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:23:15-05:00 New Revision: eeb76880f3489f1e7e6224a26ec4abc7f6da4e34 URL: https://github.com/llvm/llvm-project/commit/eeb76880f3489f1e7e6224a26ec4abc7f6da4e34 DIFF: https://github.com/llvm/llvm-project/commit/eeb76880f3489f1e7e6224a26ec4abc7f6da4e34.diff

[clang] [HLSL] Implement RWBuffer::operator[] via __builtin_hlsl_resource_getpointer (PR #117017)

2024-11-26 Thread Helena Kotas via cfe-commits
https://github.com/hekota approved this pull request. https://github.com/llvm/llvm-project/pull/117017 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtin & codegen support for v_cvt_scalef32_pk32_{bf|f}16_{bf|fp}6 for gfx950 (PR #117747)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117747 >From dfbc9e972c079db142962f6c2ba0bcfc3a705e52 Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Mon, 22 Apr 2024 05:29:12 -0400 Subject: [PATCH] AMDGPU: Builtin & codegen support for v_cvt_scalef32_pk32_{bf|f}

[clang] [llvm] AMDGPU: Builtin & codegen support for v_cvt_scalef32_pk32_{bf|f}16_{bf|fp}6 for gfx950 (PR #117747)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117747 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk32_f32_[fp|bf]6 for gfx950 (PR #117745)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117745 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 0f4fcca - AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk32_f32_[fp|bf]6 for gfx950 (#117745)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:26:07-05:00 New Revision: 0f4fcca546a489f50535086a313f8c054ea41791 URL: https://github.com/llvm/llvm-project/commit/0f4fcca546a489f50535086a313f8c054ea41791 DIFF: https://github.com/llvm/llvm-project/commit/0f4fcca546a489f50535086a313f8c054ea41791.diff

[clang] [llvm] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk32_f32_[fp|bf]6 for gfx950 (PR #117745)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117745 >From d832fd47f43bc4f83522cdd9e7d2ae444afc2b2a Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Mon, 22 Apr 2024 04:45:35 -0400 Subject: [PATCH] AMDGPU: Builtin & CodeGen support for v_cvt_scalef32_pk32_f32_[f

[clang] [llvm] AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{f|bf}16_fp4 for gfx950 (PR #117744)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117744 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CMake] Add a cache file for building a highly-optimized LLVM toolchain (PR #117802)

2024-11-26 Thread Petr Hosek via cfe-commits
petrhosek wrote: > The runtimes build already builds the toolchain and then builds the runtimes > with the just-built toolchain. Can we build the LTO-optimized libc++ as part > of stage1 and have stage2 be what the current stage3 is, to avoid any > redundancy? I really like the direction here

[clang] [lldb] [Clang] Improve Sema diagnostic performance for __builtin_counted_by_ref (PR #116719)

2024-11-26 Thread Bill Wendling via cfe-commits
@@ -14690,6 +14690,13 @@ void Sema::FinalizeDeclaration(Decl *ThisDecl) { } } + // The result of __builtin_counted_by_ref cannot be assigned to a variable. + // It allows leaking and modification of bounds safety information. + if (IsBuiltinCountedByRef(VD->getInit())

[clang] [llvm] AMDGPU: Builtins & Codegen support for v_cvt_scale_fp4<->f32 for gfx950 (PR #117743)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117743 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtins & CodeGen support for v_cvt_scalef32_pk_{f|bf}16_fp4 for gfx950 (PR #117744)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117744 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2b9e947 - AMDGPU: Builtins & Codegen support for v_cvt_scale_fp4<->f32 for gfx950 (#117743)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:20:09-05:00 New Revision: 2b9e947d4346ad03328a31f90b9056837c042d1b URL: https://github.com/llvm/llvm-project/commit/2b9e947d4346ad03328a31f90b9056837c042d1b DIFF: https://github.com/llvm/llvm-project/commit/2b9e947d4346ad03328a31f90b9056837c042d1b.diff

[clang] [llvm] AMDGPU: Builtins & Codegen support for v_cvt_scale_fp4<->f32 for gfx950 (PR #117743)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117743 >From 0b30f026361ada4df5eaf783ba01041fc317e809 Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Fri, 19 Apr 2024 11:21:32 -0400 Subject: [PATCH] AMDGPU: Builtins & Codegen support for v_cvt_scale_fp4<->f32 for

[clang] [llvm] Builtins & Codegen support for v_cvt_scalef32_pk_{fp|bf}8_{f|bf}16 for gfx950 (PR #117742)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117742 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtins & Codegen support for v_cvt_scale_fp4<->f32 for gfx950 (PR #117743)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117743 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 4527894 - Builtins & Codegen support for v_cvt_scalef32_pk_{fp|bf}8_{f|bf}16 for gfx950 (#117742)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:16:08-05:00 New Revision: 4527894143a2749d826769e78ab4e0f50782b188 URL: https://github.com/llvm/llvm-project/commit/4527894143a2749d826769e78ab4e0f50782b188 DIFF: https://github.com/llvm/llvm-project/commit/4527894143a2749d826769e78ab4e0f50782b188.diff

[clang] [llvm] Builtins & Codegen support for v_cvt_scalef32_pk_{fp|bf}8_{f|bf}16 for gfx950 (PR #117742)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117742 >From eb0e34ab5c455678a7e501d3e3863744a00723d8 Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Fri, 19 Apr 2024 03:09:43 -0400 Subject: [PATCH] Builtins & Codegen support for v_cvt_scalef32_pk_{fp|bf}8_{f|bf}

[clang] [llvm] Builtins & Codegen support for v_cvt_scalef32_pk_{fp|bf}8_{f|bf}16 for gfx950 (PR #117742)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm edited https://github.com/llvm/llvm-project/pull/117742 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] AMDGPU: Builtins & Codegen support for v_cvt_scalef32_pk_f32_{fp8|bf8} for gfx950 (PR #117741)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm closed https://github.com/llvm/llvm-project/pull/117741 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 62584f3 - AMDGPU: Builtins & Codegen support for v_cvt_scalef32_pk_f32_{fp8|bf8} for gfx950 (#117741)

2024-11-26 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-11-26T19:12:18-05:00 New Revision: 62584f32eb786e4c455092e653a58182e8ffe4dc URL: https://github.com/llvm/llvm-project/commit/62584f32eb786e4c455092e653a58182e8ffe4dc DIFF: https://github.com/llvm/llvm-project/commit/62584f32eb786e4c455092e653a58182e8ffe4dc.diff

[clang] [llvm] AMDGPU: Builtins & Codegen support for v_cvt_scalef32_pk_f32_{fp8|bf8} for gfx950 (PR #117741)

2024-11-26 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm updated https://github.com/llvm/llvm-project/pull/117741 >From df8901506b5e0d39baddf57ca1d2e19994bcf9e9 Mon Sep 17 00:00:00 2001 From: Pravin Jagtap Date: Thu, 18 Apr 2024 01:18:49 -0400 Subject: [PATCH] AMDGPU: Builtins & Codegen support for v_cvt_scalef32_pk_f32_{fp

[clang] [llvm] AMDGPU: Builtins & Codegen support for v_cvt_scalef32_pk_f32_{fp8|bf8} for gfx950 (PR #117741)

2024-11-26 Thread Matt Arsenault via cfe-commits
arsenm wrote: ### Merge activity * **Nov 26, 7:08 PM EST**: A user started a stack merge that includes this pull request via [Graphite](https://app.graphite.dev/github/pr/llvm/llvm-project/117741). https://github.com/llvm/llvm-project/pull/117741 _

[clang] [CMake] Add a cache file for building a highly-optimized LLVM toolchain (PR #117802)

2024-11-26 Thread Shoaib Meenai via cfe-commits
https://github.com/smeenai commented: The runtimes build already builds the toolchain and then builds the runtimes with the just-built toolchain. Can we build the LTO-optimized libc++ as part of stage1 and have stage2 be what the current stage3 is, to avoid any redundancy? I really like the di

[clang] Skip escaped newlines before checking for whitespace in Lexer::getRawToken. (PR #117548)

2024-11-26 Thread Samira Bazuzi via cfe-commits
https://github.com/bazuzi edited https://github.com/llvm/llvm-project/pull/117548 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Implement RWBuffer::operator[] via __builtin_hlsl_resource_getpointer (PR #117017)

2024-11-26 Thread Justin Bogner via cfe-commits
@@ -6,14 +6,17 @@ RasterizerOrderedStructuredBuffer Out2; [numthreads(1,1,1)] void main(unsigned GI : SV_GroupIndex) { + // CHECK: define void @main() + + // CHECK: %[[INPTR:.*]] = call noundef nonnull align 4 dereferenceable(4) ptr @llvm.dx.resource.getpointer.p0.tdx.RawB

[clang] [analyzer] Modernize, improve and promote chroot checker (PR #117791)

2024-11-26 Thread via cfe-commits
https://github.com/vabridgers updated https://github.com/llvm/llvm-project/pull/117791 >From ed174c8b52880d4f89415eb3a72da13f355438d7 Mon Sep 17 00:00:00 2001 From: einvbri Date: Mon, 25 Nov 2024 10:31:57 +0100 Subject: [PATCH] [analyzer] Modernize, improve and promote chroot checker This chan

  1   2   3   4   5   6   >