[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-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 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] 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] [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
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] 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-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] 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-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-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] [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] 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] 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] [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] [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-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] 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] 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] [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] [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] [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] [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
@@ -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] [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] [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] [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] [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] [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] [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] 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] [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 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 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: 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
@@ -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-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-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 #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 #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] [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 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] [docs]Fix a typo around '#pragma clang section' (PR #119791)

2024-12-12 Thread Mingming Liu via cfe-commits
https://github.com/mingmingl-llvm closed https://github.com/llvm/llvm-project/pull/119791 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 02bcaca - [docs]Fix a typo around '#pragma clang section' (#119791)

2024-12-12 Thread via cfe-commits
Author: Mingming Liu Date: 2024-12-12T19:43:25-08:00 New Revision: 02bcaca5995de283c85acfcca61a39baac315794 URL: https://github.com/llvm/llvm-project/commit/02bcaca5995de283c85acfcca61a39baac315794 DIFF: https://github.com/llvm/llvm-project/commit/02bcaca5995de283c85acfcca61a39baac315794.diff

[clang] [clang][perf-training] Fix profiling with -DCLANG_BOLT=perf (PR #119117)

2024-12-12 Thread Amir Ayupov via cfe-commits
@@ -20,9 +21,13 @@ elif clang_bolt_mode == "perf": else: assert 0, "Unsupported CLANG_BOLT_MODE variable" -config.clang = perf_wrapper + os.path.realpath( +clang_nowrapper = os.path.realpath( lit.util.which(clang_binary, config.clang_tools_dir) ).replace("\\", "/") +

[clang] [Clang] Permit noescape on non-pointer types (PR #117344)

2024-12-12 Thread Julian Schmidt via cfe-commits
5chmidti wrote: > whether `bugprone-no-escape` would want to see these changes or not. The `bugprone-no-escape` check seems to be a bit limited because it only works with `dispatch_async` and `dispatch_after` (from Apple, it seems). It could probably be expanded to include some more async cons

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

2024-12-12 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/11277 Here is th

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

2024-12-12 Thread 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: hitmoon wrote: @brooksdavis Thanks! after have readin

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

2024-12-12 Thread via cfe-commits
github-actions[bot] wrote: @hitmoon 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 build,

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

2024-12-12 Thread Lu Weining via cfe-commits
https://github.com/SixWeining closed 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] 3b10e31 - [clang][LoongArch] Add FreeBSD targets (#119191)

2024-12-12 Thread via cfe-commits
Author: hitmoon Date: 2024-12-13T10:34:53+08:00 New Revision: 3b10e31d3a4a1c660c82287d3b9f6515f37a32ca URL: https://github.com/llvm/llvm-project/commit/3b10e31d3a4a1c660c82287d3b9f6515f37a32ca DIFF: https://github.com/llvm/llvm-project/commit/3b10e31d3a4a1c660c82287d3b9f6515f37a32ca.diff LOG:

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

2024-12-12 Thread Lu Weining via cfe-commits
https://github.com/SixWeining approved this pull request. LGTM 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] [webkit.UncountedLambdaCapturesChecker] Add a fallback for checking lambda captures (PR #119800)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ryosuke Niwa (rniwa) Changes This PR reintroduces VisitLambdaExpr in LocalVisitor so that lambdas used to constrcut WTF::Function, for example, would get checked for its lambda captures. We explicitly ignore lambda used in initializing a

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

2024-12-12 Thread Thurston Dang via cfe-commits
https://github.com/thurstond closed 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] 7077896 - [NFCI][sanitizer] Refactor parseSanitizeTrapArgs (#119797)

2024-12-12 Thread via cfe-commits
Author: Thurston Dang Date: 2024-12-12T18:31:01-08:00 New Revision: 7077896a548a22d6a15c59d4b3edbc19d8e44fce URL: https://github.com/llvm/llvm-project/commit/7077896a548a22d6a15c59d4b3edbc19d8e44fce DIFF: https://github.com/llvm/llvm-project/commit/7077896a548a22d6a15c59d4b3edbc19d8e44fce.diff

[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 RecoverableKinds in a foll

[clang] [webkit.UncountedLambdaCapturesChecker] Add a fallback for checking lambda captures (PR #119800)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ryosuke Niwa (rniwa) Changes This PR reintroduces VisitLambdaExpr in LocalVisitor so that lambdas used to constrcut WTF::Function, for example, would get checked for its lambda captures. We explicitly ignore lambda used

[clang] [webkit.UncountedLambdaCapturesChecker] Add a fallback for checking lambda captures (PR #119800)

2024-12-12 Thread Ryosuke Niwa via cfe-commits
https://github.com/rniwa created https://github.com/llvm/llvm-project/pull/119800 This PR reintroduces VisitLambdaExpr in LocalVisitor so that lambdas used to constrcut WTF::Function, for example, would get checked for its lambda captures. We explicitly ignore lambda used in initializing a Var

[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

[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] [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] [clang] Fix use of dangling ptr in CommandLineTest (PR #119798)

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

[clang] [clang] Recover necessary AddrSpaceCast (PR #119246)

2024-12-12 Thread Matt Arsenault via cfe-commits
arsenm wrote: > I mean, why do we have to watch for type mismatches and fix them instead of > creating the correct type in the first place? There is > `getPointerType(RetQT)` just above, shouldn't it be something like > `getPointerType(RetQT, )`? Or RetQT should have had > the correct address

[clang] [clang] Recover necessary AddrSpaceCast (PR #119246)

2024-12-12 Thread Matt Arsenault via cfe-commits
@@ -0,0 +1,11 @@ +// REQUIRES: asserts arsenm wrote: The test should not crash under any build. It does not matter what the symptoms are today https://github.com/llvm/llvm-project/pull/119246 ___ cfe-commits mailing l

[clang] Add concepts for raw buffers (PR #119643)

2024-12-12 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/119643 >From cbcdcd37ec82e7bbb5fdd1cf83b093778d4fcf9f Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Wed, 11 Dec 2024 17:02:02 -0800 Subject: [PATCH 1/4] add concepts for raw buffers --- clang/lib/Sema/HLSLExte

[clang] [clang] Fix use of dangling ptr in CommandLineTest (PR #119798)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (macurtis-amd) Changes If 'GeneratedArgsStorage' ever grows, contained strings may get copied and data pointers stored in 'GeneratedArgs' may become invalid, pointing to deallocated memory. --- Full diff: https://github.com/llvm/llv

[clang] [clang] Fix use of dangling ptr in CommandLineTest (PR #119798)

2024-12-12 Thread via cfe-commits
https://github.com/macurtis-amd created https://github.com/llvm/llvm-project/pull/119798 If 'GeneratedArgsStorage' ever grows, contained strings may get copied and data pointers stored in 'GeneratedArgs' may become invalid, pointing to deallocated memory. >From 52bc1d826b7df0c9fbeb7d991e89990

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

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Thurston Dang (thurstond) Changes parseSanitizeTrapArgs follows the general pattern of "compute the sanitizer mask based on the default plus opt-in (if supported) minus opt-out". This patch refactors the functionality into a genera

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

2024-12-12 Thread Thurston Dang via cfe-commits
https://github.com/thurstond created https://github.com/llvm/llvm-project/pull/119797 parseSanitizeTrapArgs follows the general pattern of "compute the sanitizer mask based on the default plus opt-in (if supported) minus opt-out". This patch refactors the functionality into a generalized funct

[clang] [docs]Fix a typo around '#pragma clang section' (PR #119791)

2024-12-12 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/119791 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [flang] [libc] [libcxx] [lldb] [llvm] TargetParser: AArch64: Add part numbers for Apple CPUs. (PR #119777)

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

[clang] [compiler-rt] [flang] [libc] [libcxx] [lldb] [llvm] TargetParser: AArch64: Add part numbers for Apple CPUs. (PR #119777)

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

[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/7] FunctionDecl::getFunctionTypeLoc: ignore function type attributes

[clang] Add concepts for raw buffers (PR #119643)

2024-12-12 Thread Justin Bogner via cfe-commits
bogner wrote: This should really be talking about concepts for structured buffers, not raw buffers. At the HLSL language level, there is nothing called a RawBuffer - there is ByteAddressBuffer and various kinds of StructuredBuffer, which are represented lower in the stack as a "raw" buffer. Gi

[clang] [docs]Fix a typo around '#pragma clang section' (PR #119791)

2024-12-12 Thread Snehasish Kumar via cfe-commits
https://github.com/snehasish approved this pull request. lgtm https://github.com/llvm/llvm-project/pull/119791 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Add RWBuffer::Load(Index) (PR #117018)

2024-12-12 Thread Justin Bogner via cfe-commits
https://github.com/bogner edited https://github.com/llvm/llvm-project/pull/117018 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [docs]Fix a typo around '#pragma clang section' (PR #119791)

2024-12-12 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Mingming Liu (mingmingl-llvm) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/119791.diff 1 Files Affected: - (modified) clang/docs/LanguageExtensions.rst (+1-1) ``diff diff --git a/clang/docs/LanguageExtens

[clang] [docs]Fix a typo around '#pragma clang section' (PR #119791)

2024-12-12 Thread Mingming Liu via cfe-commits
https://github.com/mingmingl-llvm created https://github.com/llvm/llvm-project/pull/119791 None >From a996d55a1876e53f42978a6ff32fda86c3b062fe Mon Sep 17 00:00:00 2001 From: mingmingl Date: Thu, 12 Dec 2024 16:11:30 -0800 Subject: [PATCH] [docs]Fix a typo around '#pragma clang section' --- c

[clang] [clang][perf-training] Fix profiling with -DCLANG_BOLT=perf (PR #119117)

2024-12-12 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/190/builds/11269 Here is th

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

2024-12-12 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed 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] d01c11d - [clang] Migrate away from PointerUnion::{is,get} (NFC) (#119724)

2024-12-12 Thread via cfe-commits
Author: Kazu Hirata Date: 2024-12-12T16:03:20-08:00 New Revision: d01c11df04ae45a3d5b08e69bb683c760bbddd54 URL: https://github.com/llvm/llvm-project/commit/d01c11df04ae45a3d5b08e69bb683c760bbddd54 DIFF: https://github.com/llvm/llvm-project/commit/d01c11df04ae45a3d5b08e69bb683c760bbddd54.diff L

[clang] Add concepts for raw buffers (PR #119643)

2024-12-12 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 edited https://github.com/llvm/llvm-project/pull/119643 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Add concepts for raw buffers (PR #119643)

2024-12-12 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/119643 >From cbcdcd37ec82e7bbb5fdd1cf83b093778d4fcf9f Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Wed, 11 Dec 2024 17:02:02 -0800 Subject: [PATCH 1/3] add concepts for raw buffers --- clang/lib/Sema/HLSLExte

[clang] [clang][perf-training] Fix profiling with -DCLANG_BOLT=perf (PR #119117)

2024-12-12 Thread Tom Stellard via cfe-commits
https://github.com/tstellar closed https://github.com/llvm/llvm-project/pull/119117 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ea6e135 - [clang][perf-training] Fix profiling with -DCLANG_BOLT=perf (#119117)

2024-12-12 Thread via cfe-commits
Author: Tom Stellard Date: 2024-12-12T15:50:33-08:00 New Revision: ea6e13586ce22291e9e7a4e382f6b2409b406da9 URL: https://github.com/llvm/llvm-project/commit/ea6e13586ce22291e9e7a4e382f6b2409b406da9 DIFF: https://github.com/llvm/llvm-project/commit/ea6e13586ce22291e9e7a4e382f6b2409b406da9.diff

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

[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] [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] Add concepts for raw buffers (PR #119643)

2024-12-12 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/119643 >From cbcdcd37ec82e7bbb5fdd1cf83b093778d4fcf9f Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Wed, 11 Dec 2024 17:02:02 -0800 Subject: [PATCH 1/2] add concepts for raw buffers --- clang/lib/Sema/HLSLExte

  1   2   3   4   >