[clang] [HLSL] Codegen for `cbuffer` blocks without embedded arrays or structs (PR #119755)

2024-12-12 Thread Helena Kotas via cfe-commits
https://github.com/hekota updated https://github.com/llvm/llvm-project/pull/119755 >From 8cebb59304a1f893d94f2a758bc47a62f27c1b8b Mon Sep 17 00:00:00 2001 From: Helena Kotas Date: Thu, 12 Dec 2024 11:37:46 -0800 Subject: [PATCH 1/2] [HLSL] Codegen for simple `cbuffer` blocks without embedded a

[clang] [clang][modules] Separate parsing of modulemaps (PR #119740)

2024-12-12 Thread Michael Spencer via cfe-commits
https://github.com/Bigcheese updated https://github.com/llvm/llvm-project/pull/119740 >From 11faee533d07aff6955d44bda0d502888e52e119 Mon Sep 17 00:00:00 2001 From: Michael Spencer Date: Thu, 5 Dec 2024 14:53:50 -0800 Subject: [PATCH] [clang][modules] Separate parsing of modulemaps This separat

[clang] [llvm] [clang][modules] Separate parsing of modulemaps (PR #119740)

2024-12-12 Thread Michael Spencer via cfe-commits
@@ -2596,6 +2596,15 @@ template using has_sizeof = decltype(sizeof(T)); template constexpr bool is_incomplete_v = !is_detected::value; +//===--===// +// Extra additions to +//===---

[clang] [WebKit checkers] Recognize ensureFoo functions (PR #119681)

2024-12-12 Thread Rashmi Mudduluru via cfe-commits
https://github.com/t-rasmud approved this pull request. LGTM! https://github.com/llvm/llvm-project/pull/119681 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebKit checkers] Recognize ensureFoo functions (PR #119681)

2024-12-12 Thread Rashmi Mudduluru via cfe-commits
@@ -169,4 +173,42 @@ bool isConstOwnerPtrMemberExpr(const clang::Expr *E) { return isOwnerPtrType(T) && T.isConstQualified(); } +class EnsureFunctionVisitor +: public ConstStmtVisitor { +public: + bool VisitStmt(const Stmt *S) { +for (const Stmt *Child : S->children

[clang-tools-extra] [clang-doc][NFC] Rename CHECK prefix for YAML (PR #119808)

2024-12-12 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/119808 [clang-doc][NFC] Rename CHECK prefix for YAML We plan to introduce checks for other backends, like markdown. [clang-doc][NFC] Make test resilient to line changes This just reorganizes the test code, so its eas

[clang] [clang-tools-extra] FunctionDecl::getFunctionTypeLoc: ignore function type attributes (PR #118420)

2024-12-12 Thread Robert Dazi via cfe-commits
https://github.com/v01dXYZ updated https://github.com/llvm/llvm-project/pull/118420 >From b6f013097c0003e37800ad13b420e50e3c84511b Mon Sep 17 00:00:00 2001 From: v01dxyz Date: Tue, 3 Dec 2024 04:52:33 +0100 Subject: [PATCH 1/8] FunctionDecl::getFunctionTypeLoc: ignore function type attributes

[clang-tools-extra] [clang-doc][NFC] Rename CHECK prefix for YAML (PR #119808)

2024-12-12 Thread Paul Kirth via cfe-commits
ilovepi wrote: * **#119808** https://app.graphite.dev/github/pr/llvm/llvm-project/119808?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/1198

[clang-tools-extra] [clang-doc][NFC] Rename CHECK prefix for YAML (PR #119808)

2024-12-12 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi closed https://github.com/llvm/llvm-project/pull/119808 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc][NFC] Rename CHECK prefix for YAML (PR #119808)

2024-12-12 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 6cfad635d5aaa01abb82edc386329d8ed25078e1 bb23377a49bee459c9824827f8664f08feaa14f2 --e

[clang-tools-extra] [clang-doc][NFC] Rename CHECK prefix for YAML (PR #119810)

2024-12-12 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/119810 We plan to introduce checks for other backends, like markdown. >From 449273561bb2f84cdd0e18b96955cff00e8489ea Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Thu, 12 Dec 2024 20:26:32 -0800 Subject: [PATCH] =?

[clang-tools-extra] [clang-doc][NFC] Rename CHECK prefix for YAML (PR #119810)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: Paul Kirth (ilovepi) Changes We plan to introduce checks for other backends, like markdown. --- Full diff: https://github.com/llvm/llvm-project/pull/119810.diff 1 Files Affected: - (modified) clang-tools-extra/test/clang-do

[clang] [clang-cl] [Sema] Support MSVC non-const lvalue to user-defined temporary reference (PR #99833)

2024-12-12 Thread Max Winkler via cfe-commits
https://github.com/MaxEW707 updated https://github.com/llvm/llvm-project/pull/99833 >From 0a705b1a8e9673cd5e803ffe392dacfa0f06c40f Mon Sep 17 00:00:00 2001 From: MaxEW707 Date: Fri, 21 Jun 2024 20:37:40 -0700 Subject: [PATCH 01/21] Support MSVC lvalue to temporary reference binding --- clang/

[clang] [Clang][Parser] Add a warning to ambiguous uses of T...[N] types (PR #116332)

2024-12-12 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/12200 Here is the releva

[clang] clang: Fix broken check prefix in test (PR #119821)

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

[clang] 37d0e2f - clang: Fix broken check prefix in test (#119821)

2024-12-12 Thread via cfe-commits
Author: Matt Arsenault Date: 2024-12-13T15:57:53+09:00 New Revision: 37d0e2f46e885f47c97b78c21d6b8668cd0ef871 URL: https://github.com/llvm/llvm-project/commit/37d0e2f46e885f47c97b78c21d6b8668cd0ef871 DIFF: https://github.com/llvm/llvm-project/commit/37d0e2f46e885f47c97b78c21d6b8668cd0ef871.diff

[clang] [HLSL] Make fast math the default for HLSL (PR #119820)

2024-12-12 Thread Sarah Spall via cfe-commits
https://github.com/spall created https://github.com/llvm/llvm-project/pull/119820 Make fast math the default for HLSL Closes #108597 >From d167cd92875f7aec8ed3ab15c3321ee9000e8481 Mon Sep 17 00:00:00 2001 From: Sarah Spall Date: Thu, 12 Dec 2024 20:35:47 + Subject: [PATCH 1/2] make fast m

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2024-12-12 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/104661 >From c422624756e9b40b3fee02c6b3bb49d3355a1bbe Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Fri, 13 Dec 2024 00:35:28 -0500 Subject: [PATCH] [Clang] Remove 3-element vector load and store special handling

[clang] [HLSL] Make fast math the default for HLSL (PR #119820)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Sarah Spall (spall) Changes Make fast math the default for HLSL Closes #108597 --- Patch is 53.45 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/119820.diff 52 Files Affected: - (modified) c

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2024-12-12 Thread Shilei Tian via cfe-commits
@@ -1846,6 +1846,16 @@ class TargetInfo : public TransferrableTargetInfo, return std::make_pair(64, 64); } + /// Returns the optimal vector type elements based on the provided vector + /// type. For example, on some targets, a vector with 3 elements may be + /// treat

[clang] [HLSL] Make fast math the default for HLSL (PR #119820)

2024-12-12 Thread Sarah Spall via cfe-commits
https://github.com/spall ready_for_review https://github.com/llvm/llvm-project/pull/119820 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2024-12-12 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/104661 >From 007818c271c18d96c112fc1835b4175ab6d509f3 Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Fri, 13 Dec 2024 00:37:55 -0500 Subject: [PATCH] [Clang] Remove 3-element vector load and store special handling

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2024-12-12 Thread Shilei Tian via cfe-commits
@@ -1,4 +1,5 @@ set(LLVM_LINK_COMPONENTS + Core shiltian wrote: This is needed because `TargetInfo.cpp` now needs LLVM types. https://github.com/llvm/llvm-project/pull/104661 ___ cfe-commits mailing list cfe-commits@

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2024-12-12 Thread Shilei Tian via cfe-commits
@@ -45,7 +45,7 @@ void test3(packedfloat3 *p) { *p = (packedfloat3) { 3.2f, 2.3f, 0.1f }; } // CHECK: @test3( -// CHECK: store <4 x float> {{.*}}, align 4 +// CHECK: store <3 x float> {{.*}}, align 4 shiltian wrote: Eventually we might do it like: ``` bool

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2024-12-12 Thread Shilei Tian via cfe-commits
https://github.com/shiltian updated https://github.com/llvm/llvm-project/pull/104661 >From e4b3028885112cd33206051292b3b397f90a3d5c Mon Sep 17 00:00:00 2001 From: Shilei Tian Date: Fri, 13 Dec 2024 00:38:50 -0500 Subject: [PATCH] [Clang] Remove 3-element vector load and store special handling

[clang-tools-extra] [clangd] Index reserved symbols from `*intrin.h` system headers (PR #119735)

2024-12-12 Thread Nathan Ridge via cfe-commits
https://github.com/HighCommander4 requested changes to this pull request. Thanks for the patch. I thought about whether it makes sense to have an additional check for the `*intrin.h` header being inside the resource directory specifically, but I don't see any headers with that name ending in an

[clang] 28c3bf5 - [Clang][Parser] Add a warning to ambiguous uses of T...[N] types (#116332)

2024-12-12 Thread via cfe-commits
Author: Younan Zhang Date: 2024-12-13T15:50:41+08:00 New Revision: 28c3bf5c6dad0974f9f15b58afd0935c0c6cb3e4 URL: https://github.com/llvm/llvm-project/commit/28c3bf5c6dad0974f9f15b58afd0935c0c6cb3e4 DIFF: https://github.com/llvm/llvm-project/commit/28c3bf5c6dad0974f9f15b58afd0935c0c6cb3e4.diff

[clang] [Clang][Parser] Add a warning to ambiguous uses of T...[N] types (PR #116332)

2024-12-12 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/116332 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2024-12-12 Thread Shilei Tian via cfe-commits
@@ -45,7 +45,7 @@ void test3(packedfloat3 *p) { *p = (packedfloat3) { 3.2f, 2.3f, 0.1f }; } // CHECK: @test3( -// CHECK: store <4 x float> {{.*}}, align 4 +// CHECK: store <3 x float> {{.*}}, align 4 shiltian wrote: `unsigned getOptimalVectorNumElements(cons

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcilsm (Load Store Multiple) extension (PR #119823)

2024-12-12 Thread Sudharsan Veeravalli via cfe-commits
https://github.com/svs-quic created https://github.com/llvm/llvm-project/pull/119823 This extension adds 6 instructions that can do multi-word load/store. The current spec can be found at: https://github.com/quic/riscv-unified-db/releases/latest This patch adds assembler only support. >From 8

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcilsm (Load Store Multiple) extension (PR #119823)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-risc-v Author: Sudharsan Veeravalli (svs-quic) Changes This extension adds 6 instructions that can do multi-word load/store. The current spec can be found at: https://github.com/quic/riscv-unified-db/releases/latest This patch adds assembler on

[clang] [sanitizer] Refactor -f(no-)?sanitize-recover parsing (PR #119819)

2024-12-12 Thread Thurston Dang via cfe-commits
https://github.com/thurstond created https://github.com/llvm/llvm-project/pull/119819 This moves the functionality into a generic parseSanitizerArgs function, and then uses it for parsing both -f(no-)?sanitize-recover and -f(no-)?sanitize-trap. Note: for backwards compatibility, we compute th

[clang] [sanitizer] Refactor -f(no-)?sanitize-recover parsing (PR #119819)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Thurston Dang (thurstond) Changes This moves the functionality into a generic parseSanitizerArgs function, and then uses it for parsing both -f(no-)?sanitize-recover and -f(no-)?sanitize-trap. Note: for backwards compatibility, we comput

[clang] [NFCI][sanitizer] Refactor parseSanitizeTrapArgs (PR #119797)

2024-12-12 Thread Thurston Dang via cfe-commits
thurstond wrote: > > Would be possible to switch DiagnosedAlwaysRecoverableKinds to this > > function? > > That's a bit more complicated because it has Unrecoverable and > AlwaysRecoverable error cases (vs. the current function only has one error > case: ~Supported). I'll refactor Recoverable

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2024-12-12 Thread Matt Arsenault via cfe-commits
@@ -45,7 +45,7 @@ void test3(packedfloat3 *p) { *p = (packedfloat3) { 3.2f, 2.3f, 0.1f }; } // CHECK: @test3( -// CHECK: store <4 x float> {{.*}}, align 4 +// CHECK: store <3 x float> {{.*}}, align 4 arsenm wrote: I would return the VectorType to use instead

[clang] clang: Fix broken check prefix in test (PR #119821)

2024-12-12 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/119821 None >From 4c8aa0d740361628ca7255e7bb276f61b05469b0 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Fri, 13 Dec 2024 15:28:50 +0900 Subject: [PATCH] clang: Fix broken check prefix in test --- clang/test/Co

[clang] clang: Fix broken check prefix in test (PR #119821)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Matt Arsenault (arsenm) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/119821.diff 1 Files Affected: - (modified) clang/test/CodeGenOpenCL/opencl_types.cl (+2-2) ``diff diff --git a/clang/test/CodeGenOpenCL

[clang] clang: Fix broken check prefix in test (PR #119821)

2024-12-12 Thread Matt Arsenault via cfe-commits
arsenm wrote: * **#119821** https://app.graphite.dev/github/pr/llvm/llvm-project/119821?utm_source=stack-comment-icon"; target="_blank">https://static.graphite.dev/graphite-32x32-black.png"; alt="Graphite" width="10px" height="10px"/> 👈 https://app.graphite.dev/github/pr/llvm/llvm-project/11982

[clang] clang: Fix broken check prefix in test (PR #119821)

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

[clang-tools-extra] [analyzer] Split alpha core Identical Expression tests (PR #119543)

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

[clang-tools-extra] [clang-doc][NFC] Rename CHECK prefix for YAML (PR #119810)

2024-12-12 Thread Petr Hosek via cfe-commits
https://github.com/petrhosek approved this pull request. https://github.com/llvm/llvm-project/pull/119810 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ea44647 - [clang-format] Write in text mode with LF in dump_format_[help|style].py

2024-12-12 Thread Owen Pan via cfe-commits
Author: Owen Pan Date: 2024-12-12T23:22:26-08:00 New Revision: ea44647a0b49de826191eeb6e05020262b5a81e9 URL: https://github.com/llvm/llvm-project/commit/ea44647a0b49de826191eeb6e05020262b5a81e9 DIFF: https://github.com/llvm/llvm-project/commit/ea44647a0b49de826191eeb6e05020262b5a81e9.diff LOG:

[clang] [clang-format] Add --strip-trailing-cr to diff in docs_updated.test (PR #119666)

2024-12-12 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/119666 >From 8ee6f99cd55cb8d30340e6e89e70c60b54c07aab Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Thu, 12 Dec 2024 23:27:23 -0800 Subject: [PATCH] [clang-format] Add --strip-trailing-cr to diff in docs_updated.test

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcilsm (Load Store Multiple) extension (PR #119823)

2024-12-12 Thread Sudharsan Veeravalli via cfe-commits
https://github.com/svs-quic updated https://github.com/llvm/llvm-project/pull/119823 >From 87da7f670dcd0843c27bc533f62c710053ca4c86 Mon Sep 17 00:00:00 2001 From: Sudharsan Veeravalli Date: Fri, 13 Dec 2024 12:06:33 +0530 Subject: [PATCH 1/2] [RISCV] Add Qualcomm uC Xqcilsm (Load Store Multiple

[clang] [clang-format] Add --strip-trailing-cr to diff in docs_updated.test (PR #119666)

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

[clang] [clang-format] Add --strip-trailing-cr to diff in docs_updated.test (PR #119666)

2024-12-12 Thread Owen Pan via cfe-commits
owenca wrote: > Is the cleanup just running `black`? Would be better committed separately in > my opinion. See ea44647a0b49de826191eeb6e05020262b5a81e9. https://github.com/llvm/llvm-project/pull/119666 ___ cfe-commits mailing list cfe-commits@lists.l

[clang] clang: Fix broken check prefix in test (PR #119821)

2024-12-12 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `arc-builder` running on `arc-worker` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/3/builds/9101 Here is the relevant piece of

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2024-12-12 Thread Matt Arsenault via cfe-commits
@@ -45,7 +45,7 @@ void test3(packedfloat3 *p) { *p = (packedfloat3) { 3.2f, 2.3f, 0.1f }; } // CHECK: @test3( -// CHECK: store <4 x float> {{.*}}, align 4 +// CHECK: store <3 x float> {{.*}}, align 4 arsenm wrote: Don't see what's so ugly. The target hook (w

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2024-12-12 Thread Matt Arsenault via cfe-commits
@@ -45,7 +45,7 @@ void test3(packedfloat3 *p) { *p = (packedfloat3) { 3.2f, 2.3f, 0.1f }; } // CHECK: @test3( -// CHECK: store <4 x float> {{.*}}, align 4 +// CHECK: store <3 x float> {{.*}}, align 4 arsenm wrote: I don't follow. The language merely states i

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2024-12-12 Thread Shilei Tian via cfe-commits
@@ -45,7 +45,7 @@ void test3(packedfloat3 *p) { *p = (packedfloat3) { 3.2f, 2.3f, 0.1f }; } // CHECK: @test3( -// CHECK: store <4 x float> {{.*}}, align 4 +// CHECK: store <3 x float> {{.*}}, align 4 shiltian wrote: I took another look and this is not only a

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

2024-12-12 Thread Shilei Tian via cfe-commits
@@ -8026,10 +8026,6 @@ def fhlsl_strict_availability : Flag<["-"], "fhlsl-strict-availability">, Group, MarshallingInfoFlag>; -def fpreserve_vec3_type : Flag<["-"], "fpreserve-vec3-type">, - HelpText<"Preserve 3-component vector type">, - MarshallingInfoFlag>, - Implie

[clang] [Clang] Remove 3-element vector load and store special handling (PR #104661)

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

[clang] [HLSL] Make fast math the default for HLSL (PR #119820)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Sarah Spall (spall) Changes Make fast math the default for HLSL Closes #108597 --- Patch is 53.45 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/119820.diff 52 Files Affected: - (modified)

[clang] [llvm] [RISCV] Add Qualcomm uC Xqcilsm (Load Store Multiple) extension (PR #119823)

2024-12-12 Thread Craig Topper via cfe-commits
@@ -105,6 +112,26 @@ class QCISELECTICCI funct3, string opcodestr> let rs1 = imm; } +let hasSideEffects = 0, mayLoad = 1, mayStore = 0 in +class QCILoadMultiple func2, DAGOperand InTyRs2, string opcodestr> topperc wrote: func -> funct https://github.com/ll

[clang] [Clang] Fix crash for incompatible types in inline assembly (PR #119098)

2024-12-12 Thread Matt Arsenault via cfe-commits
@@ -664,11 +664,22 @@ StmtResult Sema::ActOnGCCAsmStmt(SourceLocation AsmLoc, bool IsSimple, SmallerValueMentioned |= OutSize < InSize; } +// If the input is an integer register while the output is floating point, +// there is no way they can work together.

[clang] [Clang] Fix crash for incompatible types in inline assembly (PR #119098)

2024-12-12 Thread Matt Arsenault via cfe-commits
@@ -365,3 +365,9 @@ void test19(long long x) // FIXME: This case should be supported by codegen, but it fails now. asm ("" : "=rm" (x): "0" (e)); // expected-error {{unsupported inline asm: input with type 'st_size128' (aka 'struct _st_size128') matching output with type '

[clang] [clang][CodeGen] `sret` args should always point to the `alloca` AS, so use that (PR #114062)

2024-12-12 Thread John McCall via cfe-commits
@@ -225,7 +225,9 @@ ABIArgInfo AMDGPUABIInfo::classifyArgumentType(QualType Ty, bool Variadic, // Records with non-trivial destructors/copy-constructors should not be // passed by value. if (auto RAA = getRecordArgABI(Ty, getCXXABI())) - return getNaturalAlign

[clang] [clang][LoongArch] Add FreeBSD targets (PR #119191)

2024-12-12 Thread Dimitry Andric via cfe-commits
https://github.com/DimitryAndric approved this pull request. I don't have any experience with LoongArch, but this diff looks fine to me. https://github.com/llvm/llvm-project/pull/119191 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://l

[clang-tools-extra] 602bbf2 - [clang-tidy][NFC][doc] clean out-dated clang-static-analyzer checks (#119580)

2024-12-12 Thread via cfe-commits
Author: Congcong Cai Date: 2024-12-13T07:18:42+08:00 New Revision: 602bbf2fd2ee1dadf0982e05192ee8791b35c657 URL: https://github.com/llvm/llvm-project/commit/602bbf2fd2ee1dadf0982e05192ee8791b35c657 DIFF: https://github.com/llvm/llvm-project/commit/602bbf2fd2ee1dadf0982e05192ee8791b35c657.diff

[clang-tools-extra] [clang-tidy][NFC][doc] clean out-dated clang-static-analyzer checks (PR #119580)

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

[libclc] [libclc] Optimize ceil/fabs/floor/rint/trunc (PR #119596)

2024-12-12 Thread Matt Arsenault via cfe-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/119596 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Migrate away from PointerUnion::{is, get} (NFC) (PR #119724)

2024-12-12 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata updated https://github.com/llvm/llvm-project/pull/119724 >From 6fc978bce4321bb24ade49f2f6fde0c7ccd0002b Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 12 Dec 2024 09:06:22 -0800 Subject: [PATCH 1/2] [clang] Migrate away from PointerUnion::{is,get} (NFC)

[clang] [clang] Migrate away from PointerUnion::{is, get} (NFC) (PR #119724)

2024-12-12 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: @nikic Please take a look at the revised patch. Thanks! https://github.com/llvm/llvm-project/pull/119724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Migrate away from PointerUnion::{is, get} (NFC) (PR #119724)

2024-12-12 Thread Kazu Hirata via cfe-commits
@@ -486,10 +486,10 @@ enum class TemplateSubstitutionKind : char { const Decl *D = I->first; llvm::PointerUnion &Stored = newScope->LocalDecls[D]; -if (I->second.is()) { - Stored = I->second.get(); +if (isa(I->second)) { +

[clang] [clang][LoongArch] Add FreeBSD targets (PR #119191)

2024-12-12 Thread Brooks Davis via cfe-commits
https://github.com/brooksdavis approved this pull request. https://github.com/llvm/llvm-project/pull/119191 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][LoongArch] Add FreeBSD targets (PR #119191)

2024-12-12 Thread Brooks Davis via cfe-commits
@@ -231,6 +231,9 @@ class LLVM_LIBRARY_VISIBILITY FreeBSDTargetInfo : public OSTargetInfo { case llvm::Triple::riscv32: case llvm::Triple::riscv64: break; +case llvm::Triple::loongarch32: brooksdavis wrote: I'm of two minds about adding loon

[clang] [clang] Migrate away from PointerUnion::{is, get} (NFC) (PR #119724)

2024-12-12 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. https://github.com/llvm/llvm-project/pull/119724 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFCI][sanitizer] Refactor parseSanitizeTrapArgs (PR #119797)

2024-12-12 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: Would be possible to switch DiagnosedAlwaysRecoverableKinds to this function? https://github.com/llvm/llvm-project/pull/119797 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

[clang] [NFCI][sanitizer] Refactor parseSanitizeTrapArgs (PR #119797)

2024-12-12 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka approved this pull request. https://github.com/llvm/llvm-project/pull/119797 ___ 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 C++ member function support to custom bugprone-unsafe-functions matches (PR #117165)

2024-12-12 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 commented: My first impression is this PR mixes two things. Besides supporting member function, it also add some new flag for it. Could you split it? For supporting member function, the concept is fine for me. https://github.com/llvm/llvm-project/pull/117165

<    1   2   3   4