[clang] [Clang][MicrosoftMangle] Implement mangling for ConstantMatrixType (PR #134930)

2025-04-19 Thread via cfe-commits
https://github.com/Losy001 updated https://github.com/llvm/llvm-project/pull/134930 >From 4a3b446a8081636219c704d0a2bbba5af567f5ca Mon Sep 17 00:00:00 2001 From: Losy001 <64610343+losy...@users.noreply.github.com> Date: Tue, 8 Apr 2025 22:41:03 +0200 Subject: [PATCH 1/2] Implement mangling for m

[clang] [Clang][MicrosoftMangle] Implement mangling for ConstantMatrixType (PR #134930)

2025-04-19 Thread via cfe-commits
Losy001 wrote: I finally got around to add tests. https://github.com/llvm/llvm-project/pull/134930 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 9473349 - [clang] Use llvm::SmallVector::pop_back_val (NFC) (#136451)

2025-04-19 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-04-19T13:35:18-07:00 New Revision: 94733492b720c2e65a8fe9bd2179a35a7b7d9916 URL: https://github.com/llvm/llvm-project/commit/94733492b720c2e65a8fe9bd2179a35a7b7d9916 DIFF: https://github.com/llvm/llvm-project/commit/94733492b720c2e65a8fe9bd2179a35a7b7d9916.diff L

[clang] [clang] Use llvm::SmallVector::pop_back_val (NFC) (PR #136451)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/136451.diff 6 Files Affected: - (modified) clang/lib/Analysis/CFG.cpp (+1-2) - (modified) clang/lib/Basic/Module.cpp (+1-2) - (modified) cl

[clang] [flang] Enable `-m32`, `-maix32` and `-maix64` for Flang on AIX. (PR #136202)

2025-04-19 Thread Daniel Chen via cfe-commits
@@ -733,11 +733,16 @@ static llvm::Triple computeTargetTriple(const Driver &D, Target.setEnvironment(llvm::Triple::GNUX32); } else if (A->getOption().matches(options::OPT_m32) || A->getOption().matches(options::OPT_maix32)) { - AT = Target.get32B

[clang] [flang] Enable `-m32`, `-maix32` and `-maix64` for Flang on AIX. (PR #136202)

2025-04-19 Thread Daniel Chen via cfe-commits
https://github.com/DanielCChen updated https://github.com/llvm/llvm-project/pull/136202 >From ca318afb810504d248c8bedeb13e2f742a446c37 Mon Sep 17 00:00:00 2001 From: Daniel Chen Date: Thu, 17 Apr 2025 17:06:27 -0400 Subject: [PATCH 1/4] Enable -m32, -maix32 and -maix64 for Flang on AIX. --- c

[clang] [clang] Use llvm::SmallVector::pop_back_val (NFC) (PR #136451)

2025-04-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-test-suite` running on `ppc64le-clang-test-suite` while building `clang` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/95/builds/122

[clang] [clang-tools-extra] [llvm] cleanup 000 (PR #136461)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd @llvm/pr-subscribers-clang Author: Kazu Hirata (kazutakahirata) Changes - **[clang] Use llvm::unique (NFC)** - **[clangd] Use llvm::unique (NFC)** - **[PBQP] Use llvm::interleaved (NFC)** --- Full diff: https://github.com/llvm/llvm-project/pull/

[clang] [clang-tools-extra] [llvm] cleanup 000 (PR #136461)

2025-04-19 Thread Kazu Hirata via cfe-commits
kazutakahirata wrote: Oops. I didn't meant to upload multiple patches in one PR. https://github.com/llvm/llvm-project/pull/136461 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [TargetVerifier][AMDGPU] Add TargetVerifier. (PR #123609)

2025-04-19 Thread via cfe-commits
https://github.com/jofrn updated https://github.com/llvm/llvm-project/pull/123609 >From 7b8cde7a99dddcca04921a5e15dc7f1e4793928b Mon Sep 17 00:00:00 2001 From: jofernau Date: Mon, 20 Jan 2025 04:51:26 -0800 Subject: [PATCH 1/5] [TargetVerifier][AMDGPU] Add TargetVerifier. This pass verifies th

[clang] [clang-tools-extra] [llvm] cleanup 000 (PR #136461)

2025-04-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/136461 - **[clang] Use llvm::unique (NFC)** - **[clangd] Use llvm::unique (NFC)** - **[PBQP] Use llvm::interleaved (NFC)** >From 6ed4f9e0ef30ae38042cba6a9a5390cf72f39ef7 Mon Sep 17 00:00:00 2001 From: Kazu Hira

[clang] [clang-tools-extra] [llvm] cleanup 000 (PR #136461)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Kazu Hirata (kazutakahirata) Changes - **[clang] Use llvm::unique (NFC)** - **[clangd] Use llvm::unique (NFC)** - **[PBQP] Use llvm::interleaved (NFC)** --- Full diff: https://github.com/llvm/llvm-project/pull/136461.diff 21 File

[clang] [clang-tools-extra] [llvm] cleanup 000 (PR #136461)

2025-04-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/136461 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [TargetVerifier][AMDGPU] Add TargetVerifier. (PR #123609)

2025-04-19 Thread via cfe-commits
https://github.com/jofrn updated https://github.com/llvm/llvm-project/pull/123609 >From 210b6d80bcfbbcd216f98199df386280724561e2 Mon Sep 17 00:00:00 2001 From: jofernau Date: Mon, 20 Jan 2025 04:51:26 -0800 Subject: [PATCH 1/7] [TargetVerifier][AMDGPU] Add TargetVerifier. This pass verifies th

[clang-tools-extra] [clangd] Use llvm::unique (NFC) (PR #136470)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd @llvm/pr-subscribers-clang-tools-extra Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/136470.diff 10 Files Affected: - (modified) clang-tools-extra/clangd/IncludeFixer.cpp (+1-1) - (modi

[clang] [clang] Use llvm::unique (NFC) (PR #136469)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/136469.diff 10 Files Affected: - (modified) clang/lib/AST/ASTContext.cpp (+1-1) - (modified) clang/lib/AST/ItaniumMangle.cpp (+2-3)

[clang] [llvm] [TargetVerifier][AMDGPU] Add TargetVerifier. (PR #123609)

2025-04-19 Thread via cfe-commits
https://github.com/jofrn updated https://github.com/llvm/llvm-project/pull/123609 >From 210b6d80bcfbbcd216f98199df386280724561e2 Mon Sep 17 00:00:00 2001 From: jofernau Date: Mon, 20 Jan 2025 04:51:26 -0800 Subject: [PATCH 1/7] [TargetVerifier][AMDGPU] Add TargetVerifier. This pass verifies th

[clang] [clang] Use llvm::unique (NFC) (PR #136469)

2025-04-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/136469 None >From 020358d3a5bc5b9015c25073d3c4a256b83ebbfc Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 19 Apr 2025 16:00:09 -0700 Subject: [PATCH] [clang] Use llvm::unique (NFC) --- clang/lib/AST/AS

[clang] [clang] Use llvm::unique (NFC) (PR #136469)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/136469.diff 10 Files Affected: - (modified) clang/lib/AST/ASTContext.cpp (+1-1) - (modified) clang/lib/AST/ItaniumMangle.cpp (+2-3)

[clang-tools-extra] [clangd] Use llvm::unique (NFC) (PR #136470)

2025-04-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/136470 None >From 38b63cb444c5ac305f7df7967c7eb462d0122d15 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 19 Apr 2025 16:01:29 -0700 Subject: [PATCH] [clangd] Use llvm::unique (NFC) --- clang-tools-ext

[clang-tools-extra] [clangd] Use llvm::unique (NFC) (PR #136470)

2025-04-19 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar approved this pull request. https://github.com/llvm/llvm-project/pull/136470 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use llvm::unique (NFC) (PR #136469)

2025-04-19 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar approved this pull request. https://github.com/llvm/llvm-project/pull/136469 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [TargetVerifier][AMDGPU] Add TargetVerifier. (PR #123609)

2025-04-19 Thread via cfe-commits
https://github.com/jofrn updated https://github.com/llvm/llvm-project/pull/123609 >From 210b6d80bcfbbcd216f98199df386280724561e2 Mon Sep 17 00:00:00 2001 From: jofernau Date: Mon, 20 Jan 2025 04:51:26 -0800 Subject: [PATCH 1/9] [TargetVerifier][AMDGPU] Add TargetVerifier. This pass verifies th

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-19 Thread Vassil Vassilev via cfe-commits
@@ -451,13 +451,44 @@ const char *const Runtimes = R"( )"; llvm::Expected> -Interpreter::create(std::unique_ptr CI) { +Interpreter::create(std::unique_ptr CI, +std::unique_ptr DeviceCI) { llvm::Error Err = llvm::Error::success(); auto Interp =

[clang] HIPSPV: Unbundle SDL (PR #136412)

2025-04-19 Thread Paulius Velesko via cfe-commits
https://github.com/pvelesko created https://github.com/llvm/llvm-project/pull/136412 This fixes the issue of rdc linking static libraries with device code >From 4a569a2b71cec13771c6b0695f732e721efcad82 Mon Sep 17 00:00:00 2001 From: Paulius Velesko Date: Sat, 19 Apr 2025 10:02:59 +0300 Subject

[clang] HIPSPV: Unbundle SDL (PR #136412)

2025-04-19 Thread via cfe-commits
github-actions[bot] wrote: Thank you for submitting a Pull Request (PR) to the LLVM Project! This PR will be automatically labeled and the relevant teams will be notified. If you wish to, you can add reviewers by using the "Reviewers" section on this page. If this is not working for you, it

[clang] HIPSPV: Unbundle SDL (PR #136412)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Paulius Velesko (pvelesko) Changes This fixes the issue of rdc linking static libraries with device code --- Full diff: https://github.com/llvm/llvm-project/pull/136412.diff 1 Files Affected: - (modified) clang/lib/Driver/ToolChains/HIP

[clang] [llvm] [DirectX] add Function name to DiagnosticInfoUnsupported Msg in DXILOpLowering (PR #136234)

2025-04-19 Thread Justin Bogner via cfe-commits
https://github.com/bogner approved this pull request. https://github.com/llvm/llvm-project/pull/136234 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use llvm::SmallVector::pop_back_val (NFC) (PR #136451)

2025-04-19 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar approved this pull request. https://github.com/llvm/llvm-project/pull/136451 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use llvm::append_range (NFC) (PR #136448)

2025-04-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/136448 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use llvm::SmallVector::pop_back_val (NFC) (PR #136451)

2025-04-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/136451 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers (PR #135135)

2025-04-19 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: With https://martin.st/temp/abs-preproc.cpp as input, I run `clang -target i686-w64-mingw32 abs-preproc.cpp -fsanitize=signed-integer-overflow -w -O3 -S -emit-llvm -o abs-out.ll`, and I get the following diff of the output IR after this change: ```diff --- abs-good.ll 2025-04-2

[clang] [clang] add `-fimplicit-constexpr` flag (PR #136436)

2025-04-19 Thread Hana Dusíková via cfe-commits
https://github.com/hanickadot updated https://github.com/llvm/llvm-project/pull/136436 From f37eb75b71d2aa6433bc528b7b4532138ae4e62a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hana=20Dusi=CC=81kova=CC=81?= Date: Sun, 20 Apr 2025 00:24:46 +0200 Subject: [PATCH] [clang] add -fimplicit-constexpr fla

[clang] [clang] add `-fimplicit-constexpr` flag (PR #136436)

2025-04-19 Thread Hana Dusíková via cfe-commits
@@ -10163,6 +10163,16 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC, } ConstexprSpecKind ConstexprKind = D.getDeclSpec().getConstexprSpecifier(); + +// Clang's option -fimplicit-constexpr will make functions without constexpr +// o

[clang] [clang] add `-fimplicit-constexpr` flag (PR #136436)

2025-04-19 Thread Hana Dusíková via cfe-commits
@@ -6612,6 +6612,8 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, Args.AddLastArg(CmdArgs, options::OPT_fconstexpr_depth_EQ); Args.AddLastArg(CmdArgs, options::OPT_fconstexpr_steps_EQ); + Args.AddLastArg(CmdArgs, options::OPT_fimplicit_constexpr); -

[clang] [clang] add `-fimplicit-constexpr` flag (PR #136436)

2025-04-19 Thread Hana Dusíková via cfe-commits
@@ -0,0 +1,51 @@ +// RUN: %clang_cc1 -verify=normal,both -std=c++23 %s +// RUN: %clang_cc1 -verify=implicit,both -fimplicit-constexpr -std=c++23 %s hanickadot wrote: new test added for earlier standards too https://github.com/llvm/llvm-project/pull/136436 __

[clang] [clang] add `-fimplicit-constexpr` flag (PR #136436)

2025-04-19 Thread Hana Dusíková via cfe-commits
https://github.com/hanickadot updated https://github.com/llvm/llvm-project/pull/136436 From f37eb75b71d2aa6433bc528b7b4532138ae4e62a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hana=20Dusi=CC=81kova=CC=81?= Date: Sun, 20 Apr 2025 00:24:46 +0200 Subject: [PATCH 1/2] [clang] add -fimplicit-constexpr

[clang] [clang] add `-fimplicit-constexpr` flag (PR #136436)

2025-04-19 Thread Hana Dusíková via cfe-commits
https://github.com/hanickadot updated https://github.com/llvm/llvm-project/pull/136436 From f37eb75b71d2aa6433bc528b7b4532138ae4e62a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hana=20Dusi=CC=81kova=CC=81?= Date: Sun, 20 Apr 2025 00:24:46 +0200 Subject: [PATCH 1/2] [clang] add -fimplicit-constexpr

[clang] [llvm] [TargetVerifier][AMDGPU] Add TargetVerifier. (PR #123609)

2025-04-19 Thread via cfe-commits
https://github.com/jofrn updated https://github.com/llvm/llvm-project/pull/123609 >From 210b6d80bcfbbcd216f98199df386280724561e2 Mon Sep 17 00:00:00 2001 From: jofernau Date: Mon, 20 Jan 2025 04:51:26 -0800 Subject: [PATCH 1/5] [TargetVerifier][AMDGPU] Add TargetVerifier. This pass verifies th

[clang] [llvm] [TargetVerifier][AMDGPU] Add TargetVerifier. (PR #123609)

2025-04-19 Thread via cfe-commits
https://github.com/jofrn updated https://github.com/llvm/llvm-project/pull/123609 >From 210b6d80bcfbbcd216f98199df386280724561e2 Mon Sep 17 00:00:00 2001 From: jofernau Date: Mon, 20 Jan 2025 04:51:26 -0800 Subject: [PATCH 1/6] [TargetVerifier][AMDGPU] Add TargetVerifier. This pass verifies th

[clang] [clang][analyzer] Handle CXXParenInitListExpr alongside InitListExpr (PR #136041)

2025-04-19 Thread Yanzuo Liu via cfe-commits
https://github.com/zwuis approved this pull request. https://github.com/llvm/llvm-project/pull/136041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Handle CXXParenInitListExpr alongside InitListExpr (PR #136041)

2025-04-19 Thread Yanzuo Liu via cfe-commits
zwuis wrote: @Xazax-hun @steakhal Please take a look. https://github.com/llvm/llvm-project/pull/136041 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] clang/HIP: Add tests that shows fpmath metadata ends up on sqrt calls (PR #136413)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Matt Arsenault (arsenm) Changes Make sure the builtin header sqrts work with -fno-hip-f32-correctly-rounded-divide-sqrt, and we end up with properly annotated sqrt intrinsic callsites. --- Patch is 169.18 KiB, truncated to 20.00

[clang] clang/HIP: Add tests that shows fpmath metadata ends up on sqrt calls (PR #136413)

2025-04-19 Thread Matt Arsenault via cfe-commits
arsenm wrote: * **#136413** https://app.graphite.dev/github/pr/llvm/llvm-project/136413?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/13641

[clang] clang/HIP: Add tests that shows fpmath metadata ends up on sqrt calls (PR #136413)

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

[clang-tools-extra] [clang-tidy] Fix bugprone-tagged-union-member-count false-positive (PR #135831)

2025-04-19 Thread via cfe-commits
=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=,=?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?=, =?utf-8?b?R8OhYm9yIFTDs3RodsOhcmk=?Message-ID: In-Reply-To: https://github.com/tigbr updated https://github.com/llvm/llvm-project/pull/135831 >From 525459a04dd6e7d0079095ac531c7cd712ac91d1 Mon Sep 17 00:00:00 2001 From:

[clang] [llvm] [OpenMP] Remove 'libomptarget.devicertl.a' fatbinary and use static library (PR #126143)

2025-04-19 Thread Michał Górny via cfe-commits
mgorny wrote: This change broke building with GCC set as the C++ compiler: ``` FAILED: libomptarget-nvptx.bc : && /usr/lib/ccache/bin/x86_64-pc-linux-gnu-g++ -O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs --target=nvptx64-nvidia-cuda -r -nostdlib -flto -Wl,--lt

[clang] [clang][bytecode] Don't set OnePastEnd bit for array elements (PR #136422)

2025-04-19 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/136422 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] add `-fimplicit-constexpr` flag (PR #136436)

2025-04-19 Thread via cfe-commits
@@ -0,0 +1,51 @@ +// RUN: %clang_cc1 -verify=normal,both -std=c++23 %s +// RUN: %clang_cc1 -verify=implicit,both -fimplicit-constexpr -std=c++23 %s Sirraide wrote: We should also test at least C++17 mode and see how this interacts with features that are not allo

[clang] [clang] add `-fimplicit-constexpr` flag (PR #136436)

2025-04-19 Thread via cfe-commits
Sirraide wrote: Oh and one more thing: this is currently missing a release note. https://github.com/llvm/llvm-project/pull/136436 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] add `-fimplicit-constexpr` flag (PR #136436)

2025-04-19 Thread via cfe-commits
https://github.com/Sirraide commented: I think this unfortunately isn’t this simple: I can think of a few problems this runs into and I the solutions I’ve managed to think of are: First, we could use `Sema::CheckConstexprFunctionDefinition()` (see also the call to that function in `Sema::Build

[clang] [clang] add `-fimplicit-constexpr` flag (PR #136436)

2025-04-19 Thread via cfe-commits
@@ -10163,6 +10163,16 @@ Sema::ActOnFunctionDeclarator(Scope *S, Declarator &D, DeclContext *DC, } ConstexprSpecKind ConstexprKind = D.getDeclSpec().getConstexprSpecifier(); + +// Clang's option -fimplicit-constexpr will make functions without constexpr +// o

[clang] [clang] add `-fimplicit-constexpr` flag (PR #136436)

2025-04-19 Thread via cfe-commits
@@ -2826,6 +2826,7 @@ class Sema final : public SemaBase { bool buildCoroutineParameterMoves(SourceLocation Loc); VarDecl *buildCoroutinePromise(SourceLocation Loc); void CheckCompletedCoroutineBody(FunctionDecl *FD, Stmt *&Body); + void AnalyseCoroutineBody(const Corout

[clang-tools-extra] [clangd] Turn `Path` and `PathRef` into classes (PR #136439)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tools-extra Author: nerix (Nerixyz) Changes This is the initial step towards https://github.com/clangd/clangd/issues/108. It introduces the `Path` and `PathRef` classes as wrappers for `std::string` and `llvm::StringRef` respectively (`Path` and `

[clang-tools-extra] [clangd] Turn `Path` and `PathRef` into classes (PR #136439)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: nerix (Nerixyz) Changes This is the initial step towards https://github.com/clangd/clangd/issues/108. It introduces the `Path` and `PathRef` classes as wrappers for `std::string` and `llvm::StringRef` respectively (`Path` and `PathRef` we

[clang] [clang] add `-fimplicit-constexpr` flag (PR #136436)

2025-04-19 Thread via cfe-commits
Sirraide wrote: > IMO this kind of flag requires an RFC. This is a non-conforming extension and > I don't see any rationale for why we'd want to add it. I feel like GCC compatibility might be an argument? Imo it depends a bit on how difficult it is to implement the flag, but an RFC to discuss

[clang] [llvm] [OpenMP] Remove 'libomptarget.devicertl.a' fatbinary and use static library (PR #126143)

2025-04-19 Thread Michał Górny via cfe-commits
mgorny wrote: > It should only be invoking `nvptx-arch` if the user passed `-march=native`. Sorry, didn't notice this sentence. Well, *I am* building with `-march=native` here — after all, other files are built for a CPU. If I change it to, say, `-march=zen2`, then it indeed compiles, with a l

[clang] [clang] add `-fimplicit-constexpr` flag (PR #136436)

2025-04-19 Thread via cfe-commits
https://github.com/Sirraide edited https://github.com/llvm/llvm-project/pull/136436 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [OpenMP] Remove 'libomptarget.devicertl.a' fatbinary and use static library (PR #126143)

2025-04-19 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > > It should only be invoking `nvptx-arch` if the user passed `-march=native`. > > Sorry, didn't notice this sentence. Well, _I am_ building with > `-march=native` here — after all, other files are built for a CPU. If I > change it to, say, `-march=zen2`, then it indeed compile

[clang] [clang] add `-fimplicit-constexpr` flag (PR #136436)

2025-04-19 Thread via cfe-commits
Sirraide wrote: > > IMO this kind of flag requires an RFC. This is a non-conforming extension > > and I don't see any rationale for why we'd want to add it. > > I feel like GCC compatibility might be an argument? Imo it depends a bit on > how difficult it is to implement the flag, but an RFC t

[clang] [clang] add `-fimplicit-constexpr` flag (PR #136436)

2025-04-19 Thread via cfe-commits
Sirraide wrote: Oh yeah, and one more thing I forgot about earlier: this definitely need some tests involving templates to make sure that instantiations are also treated as implicitly `constexpr`. https://github.com/llvm/llvm-project/pull/136436 ___

[clang] [clang] llvm::append_range (NFC) (PR #136440)

2025-04-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/136440 None >From abff402217dafac209f3301845573efdadc9f4a4 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 19 Apr 2025 09:55:31 -0700 Subject: [PATCH] [clang] llvm::append_range (NFC) --- clang/include/

[clang-tools-extra] [clangd] Turn `Path` and `PathRef` into classes (PR #136439)

2025-04-19 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 HEAD~1 HEAD --extensions cpp,h -- clang-tools-extra/clangd/ASTSignals.cpp clang-tool

[clang] [llvm] [OpenMP] Remove 'libomptarget.devicertl.a' fatbinary and use static library (PR #126143)

2025-04-19 Thread Michał Górny via cfe-commits
mgorny wrote: Yeah, appending `-march=` seems to work. https://github.com/llvm/llvm-project/pull/126143 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] llvm::append_range (NFC) (PR #136440)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/136440.diff 23 Files Affected: - (modified) clang/include/clang/Parse/Parser.h (+1-1) - (modified) clang/lib/AST/DeclBase.

[clang] [clang] llvm::append_range (NFC) (PR #136440)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/136440.diff 23 Files Affected: - (modified) clang/include/clang/Parse/Parser.h (+1-1) - (modified) clang/lib/AST/DeclBase.cpp (+1-1

[clang] [clang] llvm::append_range (NFC) (PR #136440)

2025-04-19 Thread Jakub Kuderski via cfe-commits
https://github.com/kuhar approved this pull request. https://github.com/llvm/llvm-project/pull/136440 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 9bcb18d - [clangd] Use llvm::unique (NFC) (#136470)

2025-04-19 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-04-19T20:34:03-07:00 New Revision: 9bcb18db89c5a3b317c0de2a5e94f18044390c3f URL: https://github.com/llvm/llvm-project/commit/9bcb18db89c5a3b317c0de2a5e94f18044390c3f DIFF: https://github.com/llvm/llvm-project/commit/9bcb18db89c5a3b317c0de2a5e94f18044390c3f.diff L

[clang] f2ec5e4 - [clang] Use llvm::unique (NFC) (#136469)

2025-04-19 Thread via cfe-commits
Author: Kazu Hirata Date: 2025-04-19T20:33:53-07:00 New Revision: f2ec5e40d96d6ba8f99e419009b6547965905cfe URL: https://github.com/llvm/llvm-project/commit/f2ec5e40d96d6ba8f99e419009b6547965905cfe DIFF: https://github.com/llvm/llvm-project/commit/f2ec5e40d96d6ba8f99e419009b6547965905cfe.diff L

[clang-tools-extra] [clangd] Use llvm::unique (NFC) (PR #136470)

2025-04-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/136470 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use llvm::unique (NFC) (PR #136469)

2025-04-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata closed https://github.com/llvm/llvm-project/pull/136469 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use llvm::unique (NFC) (PR #136469)

2025-04-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `lldb-aarch64-ubuntu` running on `linaro-lldb-aarch64-ubuntu` while building `clang` at step 6 "test". Full details are available at: https://lab.llvm.org/buildbot/#/builders/59/builds/16338 Here is the relevant piece of the

[clang] [llvm] [OpenACC] Switch Clang to use the Flang 'appertainment' rules for cla… (PR #135372)

2025-04-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64-flang-aix` running on `ppc64-flang-aix-test` while building `clang,llvm` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/201/builds/4199 Here is the relevant pie

[clang] [llvm] [TargetVerifier][AMDGPU] Add TargetVerifier. (PR #123609)

2025-04-19 Thread via cfe-commits
https://github.com/jofrn updated https://github.com/llvm/llvm-project/pull/123609 >From 210b6d80bcfbbcd216f98199df386280724561e2 Mon Sep 17 00:00:00 2001 From: jofernau Date: Mon, 20 Jan 2025 04:51:26 -0800 Subject: [PATCH 01/10] [TargetVerifier][AMDGPU] Add TargetVerifier. This pass verifies

[clang] [llvm] [TargetVerifier][AMDGPU] Add TargetVerifier. (PR #123609)

2025-04-19 Thread Shilei Tian via cfe-commits
shiltian wrote: The target hook approach won't work here because `VerifierPass` is part of `LLVMCore`, so it can't depend on target-specific components and doing so would introduce a circular dependency. Instead, I'm thinking of an alternative: make the target-dependent verifier run after the

[clang] [llvm] [clang][uefi] add arm, aarch64, x86, loongarch64, riscv64 targets (PR #136247)

2025-04-19 Thread Tristan Ross via cfe-commits
https://github.com/RossComputerGuy updated https://github.com/llvm/llvm-project/pull/136247 >From fe082622b38f5b4e00a5be7076523ad2adb104a4 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Thu, 17 Apr 2025 20:06:51 -0700 Subject: [PATCH 1/4] [clang][uefi] add arm, aarch64, x86, loongarch64, ris

[clang-tools-extra] [clangd] Use llvm::unique (NFC) (PR #136470)

2025-04-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-gcc-ubuntu-no-asserts` running on `doug-worker-6` while building `clang-tools-extra` at step 6 "test-build-unified-tree-check-all". Full details are available at: https://lab.llvm.org/buildbot/#/builders/202

[clang] [CIR][NFC] Simplify BoolAttr builders (PR #136366)

2025-04-19 Thread Henrich Lauko via cfe-commits
@@ -692,9 +692,7 @@ mlir::LogicalResult CIRToLLVMConstantOpLowering::matchAndRewrite( // during a pass as long as they don't live past the end of the pass. attr = op.getValue(); } else if (mlir::isa(op.getType())) { -int value = (op.getValue() == -

[clang] [CIR][NFC] Fix an unused variable warning (PR #136431)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes This fixes a warning where a variable assigned in 'if' statement wasn't referenced again. --- Full diff: https://github.com/llvm/llvm-project/pull/136431.diff 1 Files Affected: - (modified) clang/lib

[clang] [llvm] [OpenMP] Remove 'libomptarget.devicertl.a' fatbinary and use static library (PR #126143)

2025-04-19 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > Nah, building standalone directly. And separately from OpenMP. I see, it previously worked because when you built with `gcc` it was still finding `clang` in your environment and using that. I'm going to move this code so that it's more explicit that we only support a just-buil

[clang] [CIR][NFC] Fix an unused variable warning (PR #136431)

2025-04-19 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/136431 This fixes a warning where a variable assigned in 'if' statement wasn't referenced again. >From eed0a2c212b1a8fa0551bfcde4219e5ecce57f14 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 19 Apr 2025

[clang] [llvm] [OpenMP] Remove 'libomptarget.devicertl.a' fatbinary and use static library (PR #126143)

2025-04-19 Thread Joseph Huber via cfe-commits
jhuber6 wrote: I disabled my NVIDIA GPU discovery and I could build it successfully. What's your `clang` version? I'm wondering what could be different here. https://github.com/llvm/llvm-project/pull/126143 ___ cfe-commits mailing list cfe-commits@lis

[clang] [llvm] [OpenMP] Remove 'libomptarget.devicertl.a' fatbinary and use static library (PR #126143)

2025-04-19 Thread Michał Górny via cfe-commits
mgorny wrote: Clang was built from the same commit id (ee4c8b556c5cf42c55ce9540bbb0e29c11894a71). https://github.com/llvm/llvm-project/pull/126143 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[clang] [llvm] [OpenMP] Remove 'libomptarget.devicertl.a' fatbinary and use static library (PR #126143)

2025-04-19 Thread Michał Górny via cfe-commits
mgorny wrote: How did you disable it? Perhaps it's failing because of the specific error: ``` $ nvptx-arch Failed to 'dlopen' libcuda.so.1 ``` For comparison, `amdgpu-arch` doesn't print

[clang] [llvm] [OpenMP] Remove 'libomptarget.devicertl.a' fatbinary and use static library (PR #126143)

2025-04-19 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > How did you disable it? Perhaps it's failing because of the specific error: > > ``` > $ nvptx-arch > > Failed to 'dlopen' libcuda.so.1 > ``` > > For comparison, `amdgpu-

[clang] [CIR][NFC] Fix an unused variable warning (PR #136431)

2025-04-19 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. https://github.com/llvm/llvm-project/pull/136431 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Use llvm::append_range (NFC) (PR #136448)

2025-04-19 Thread Kazu Hirata via cfe-commits
https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/136448 None >From a4cd577388a8faca002be6051fd4710af9311838 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sat, 19 Apr 2025 09:17:08 -0700 Subject: [PATCH] [clang] Use llvm::append_range (NFC) --- clang/lib/

[clang] [clang] Use llvm::append_range (NFC) (PR #136448)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/136448.diff 18 Files Affected: - (modified) clang/lib/AST/ByteCode/State.cpp (+2-4) - (modified) clang/lib/AST/ExprConstant.cpp (+2-

[clang] [clang] Use llvm::append_range (NFC) (PR #136448)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-analysis @llvm/pr-subscribers-clang-format Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/136448.diff 18 Files Affected: - (modified) clang/lib/AST/ByteCode/State.cpp (+2-4) - (modified)

[clang] [clang] Use llvm::append_range (NFC) (PR #136448)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Kazu Hirata (kazutakahirata) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/136448.diff 18 Files Affected: - (modified) clang/lib/AST/ByteCode/State.cpp (+2-4) - (modified) clang/lib/AST/ExprConstant.cpp (+2-4

[clang] [llvm] [OpenMP] Remove 'libomptarget.devicertl.a' fatbinary and use static library (PR #126143)

2025-04-19 Thread Michał Górny via cfe-commits
mgorny wrote: https://github.com/llvm/llvm-project/pull/136442 https://github.com/llvm/llvm-project/pull/126143 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-repl] : Fix clang-repl crash with --cuda flag (PR #136404)

2025-04-19 Thread Anutosh Bhat via cfe-commits
@@ -451,13 +451,44 @@ const char *const Runtimes = R"( )"; llvm::Expected> -Interpreter::create(std::unique_ptr CI) { +Interpreter::create(std::unique_ptr CI, +std::unique_ptr DeviceCI) { llvm::Error Err = llvm::Error::success(); auto Interp =

[clang] [llvm] [OpenMP] Remove 'libomptarget.devicertl.a' fatbinary and use static library (PR #126143)

2025-04-19 Thread Michał Górny via cfe-commits
mgorny wrote: And after switching to clang, it fails anyway: ``` $ /usr/lib/ccache/bin/x86_64-pc-linux-gnu-clang++ -O2 -pipe -march=native -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs --target=nvptx64-nvidia-cuda -r -nostdlib -flto -Wl,--lto-emit-llvm DeviceRTL/Allocator.cpp-nvptx.o

[clang-tools-extra] [clang-doc] Add regression test for test comments in macros (PR #132510)

2025-04-19 Thread via cfe-commits
https://github.com/ZhongUncle edited https://github.com/llvm/llvm-project/pull/132510 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CIR] Upstream StackSave and StackRestoreOp (PR #136426)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amr Hesham (AmrDeveloper) Changes This change adds support for StackSave and StackRestoreOp as a preliminary patch of VLA support --- Full diff: https://github.com/llvm/llvm-project/pull/136426.diff 5 Files Affected: - (modified) clang

[clang] [CIR] Upstream StackSave and StackRestoreOp (PR #136426)

2025-04-19 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangir Author: Amr Hesham (AmrDeveloper) Changes This change adds support for StackSave and StackRestoreOp as a preliminary patch of VLA support --- Full diff: https://github.com/llvm/llvm-project/pull/136426.diff 5 Files Affected: - (modified) cla

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

2025-04-19 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `clang-ppc64le-linux-multistage` running on `ppc64le-clang-multistage-test` while building `clang-tools-extra,clang` at step 5 "ninja check 1". Full details are available at: https://lab.llvm.org/buildbot/#/builders/76/builds/

[clang] [CIR] Upstream StackSave and StackRestoreOp (PR #136426)

2025-04-19 Thread Amr Hesham via cfe-commits
https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/136426 This change adds support for StackSave and StackRestoreOp as a preliminary patch of VLA support >From 91a6937c7b937daceef426c877703d4d0cfeae76 Mon Sep 17 00:00:00 2001 From: AmrDeveloper Date: Sat, 19 Apr

[clang] [Reland][Clang][CodeGen][UBSan] Add more precise attributes to recoverable ubsan handlers (PR #135135)

2025-04-19 Thread Yingwei Zheng via cfe-commits
dtcxzyw wrote: @vitalybuka @mstorsjo Can you please provide the command to reproduce the wrong IR/codegen? https://github.com/llvm/llvm-project/pull/135135 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman

[clang-tools-extra] [clang-doc] Add regression test for test comments in macros (PR #132510)

2025-04-19 Thread via cfe-commits
https://github.com/ZhongUncle edited https://github.com/llvm/llvm-project/pull/132510 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   >