[clang] [clang-format]: Split alignment of declarations around assignment (PR #69340)

2024-01-09 Thread Gedare Bloom via cfe-commits
gedare wrote: > Please also update the release notes. LGTM otherwise. Fixed the comments and added a release note. https://github.com/llvm/llvm-project/pull/69340 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang] Add tests for CWG1800-1804 (PR #77509)

2024-01-09 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/77509 >From d3cb62eba8e2109e44083bd8b9e89a453acad754 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Tue, 9 Jan 2024 21:51:00 +0300 Subject: [PATCH 1/2] [clang] Add tests for CWG1800-1804 Covers C++ core

[flang] [clang] [flang][driver] Add support for -isysroot in the frontend (PR #77365)

2024-01-09 Thread Leandro Lupori via cfe-commits
https://github.com/luporl updated https://github.com/llvm/llvm-project/pull/77365 >From 01a2a8d315af2edb9fe3f0c9b57b5c74935521f1 Mon Sep 17 00:00:00 2001 From: Leandro Lupori Date: Mon, 8 Jan 2024 16:37:54 -0300 Subject: [PATCH 1/5] [flang][driver] Add support for -isysroot in the frontend If

[compiler-rt] [lldb] [llvm] [libunwind] [clang-tools-extra] [libcxx] [libc] [clang] [flang] [libc++] Implement ranges::iota (PR #68494)

2024-01-09 Thread Christopher Di Bella via cfe-commits
@@ -1149,9 +1171,11 @@ struct Proxy { // Calling swap(Proxy{}, Proxy{}) would fail (pass prvalues) // Compare operators are defined for the convenience of the tests - friend constexpr bool operator==(const Proxy&, const Proxy&) -requires (std::equality_comparable &&

[compiler-rt] [lldb] [llvm] [libunwind] [clang-tools-extra] [libcxx] [libc] [clang] [flang] [libc++] Implement ranges::iota (PR #68494)

2024-01-09 Thread Christopher Di Bella via cfe-commits
@@ -0,0 +1,54 @@ +// -*- C++ -*- +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +//

[flang] [clang] [flang][driver] Add support for -isysroot in the frontend (PR #77365)

2024-01-09 Thread Leandro Lupori via cfe-commits
@@ -220,6 +220,13 @@ static or shared library, the generated library does not need a `main` function, as a final link stage will occur that will provide the `Fortran_main` library when creating the final executable. +On Darwin, the logical root where the system libraries are

[flang] [clang] [flang][driver] Add support for -isysroot in the frontend (PR #77365)

2024-01-09 Thread via cfe-commits
github-actions[bot] wrote: :warning: Python code formatter, darker found issues in your code. :warning: You can test this locally with the following command: ``bash darker --check --diff -r 0e4a38018a7228d93d72a31d9fae6855f866dded...797e906a23524332f951d20fa0dd6d12b52705c2

[flang] [clang] [flang][driver] Add support for -isysroot in the frontend (PR #77365)

2024-01-09 Thread Leandro Lupori via cfe-commits
https://github.com/luporl updated https://github.com/llvm/llvm-project/pull/77365 >From 01a2a8d315af2edb9fe3f0c9b57b5c74935521f1 Mon Sep 17 00:00:00 2001 From: Leandro Lupori Date: Mon, 8 Jan 2024 16:37:54 -0300 Subject: [PATCH 1/4] [flang][driver] Add support for -isysroot in the frontend If

[clang] [clang-format] TableGen keywords support. (PR #77477)

2024-01-09 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/77477 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Do not update cursor pos if no includes replacement (PR #77456)

2024-01-09 Thread Björn Schäpers via cfe-commits
@@ -3131,20 +3132,25 @@ static void sortCppIncludes(const FormatStyle , } result += Includes[Index].Text; if (Cursor && CursorIndex == Index) - *Cursor = IncludesBeginOffset + result.size() - CursorToEOLOffset; + NewCursor = IncludesBeginOffset +

[clang] [Format] Fix isStartOfName to recognize attributes (PR #76804)

2024-01-09 Thread Björn Schäpers via cfe-commits
@@ -1698,8 +1698,6 @@ FormatStyle getGoogleStyle(FormatStyle::LanguageKind Language) { /*BasedOnStyle=*/"google", }, }; - GoogleStyle.AttributeMacros.push_back("GUARDED_BY"); HazardyKnusperkeks wrote: I'm open in all directions. When

[compiler-rt] [libcxx] [flang] [libcxxabi] [clang] [libclc] [libunwind] [lld] [openmp] [llvm] [libc] [mlir] [lldb] [clang-tools-extra] [libc++][ranges] Implement ranges::contains_subrange (PR #66963)

2024-01-09 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/66963 >From 647f5fe641b30c874bab770fced9fcec9b601161 Mon Sep 17 00:00:00 2001 From: Zijun Zhao Date: Wed, 13 Sep 2023 14:26:01 -0700 Subject: [PATCH 01/14] [libc++] Implement ranges::contains_subrange ---

[compiler-rt] [libcxx] [flang] [libcxxabi] [clang] [libclc] [libunwind] [lld] [openmp] [llvm] [libc] [mlir] [lldb] [clang-tools-extra] [libc++][ranges] Implement ranges::contains_subrange (PR #66963)

2024-01-09 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/66963 >From 647f5fe641b30c874bab770fced9fcec9b601161 Mon Sep 17 00:00:00 2001 From: Zijun Zhao Date: Wed, 13 Sep 2023 14:26:01 -0700 Subject: [PATCH 01/13] [libc++] Implement ranges::contains_subrange ---

[clang] [clang-format] Fix crash involving array designators (PR #77045)

2024-01-09 Thread Björn Schäpers via cfe-commits
@@ -2315,6 +2315,10 @@ bool UnwrappedLineParser::tryToParseLambdaIntroducer() { if (Next->is(tok::greater)) return false; } + if (const auto Kind = FormatTok->Tok.getKind(); + tok::isLiteral(Kind) && !tok::isStringLiteral(Kind)) {

[clang] [clang-format] Fix crash involving array designators (PR #77045)

2024-01-09 Thread Björn Schäpers via cfe-commits
@@ -1444,6 +1444,7 @@ WhitespaceManager::CellDescriptions WhitespaceManager::getCells(unsigned Start, } else if (C.Tok->is(tok::comma)) { if (!Cells.empty()) Cells.back().EndIndex = i; + HazardyKnusperkeks wrote: Unrelated (and

[clang] [AMDGPU] add function attrbute amdgpu-lib-fun (PR #74737)

2024-01-09 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > > An AMDGPU library function is not internalized and can be used to fullfill > > calls generated by LLVM passes or instruction selection. > > I am confused by the description of "internalized". Do you refer to LTO > internalization? You can leverage `llvm.used` to disable LTO

[clang] [AMDGPU] add function attrbute amdgpu-lib-fun (PR #74737)

2024-01-09 Thread Joseph Huber via cfe-commits
@@ -2011,6 +2011,13 @@ def AMDGPUNumVGPR : InheritableAttr { let Subjects = SubjectList<[Function], ErrorDiag, "kernel functions">; } +def AMDGPULibFun : InheritableAttr { jhuber6 wrote: Why isn't this a `TargetSpecificAttr`? We should have one for AMDGPU.

[clang] [AMDGPU] add function attrbute amdgpu-lib-fun (PR #74737)

2024-01-09 Thread Joseph Huber via cfe-commits
@@ -2693,6 +2693,17 @@ An error will be given if: }]; } +def AMDGPULibFunDocs : Documentation { + let Category = DocCatAMDGPUAttributes; + let Content = [{ +The ``amdgpu_lib_fun`` attribute can be applied to a function for AMDGPU target +to indicate it is a library

[flang] [compiler-rt] [clang] [libcxxabi] [libc] [clang-tools-extra] [libclc] [lldb] [libcxx] [mlir] [llvm] [libunwind] [lld] [libc++][ranges] Implement ranges::contains_subrange (PR #66963)

2024-01-09 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/66963 >From 647f5fe641b30c874bab770fced9fcec9b601161 Mon Sep 17 00:00:00 2001 From: Zijun Zhao Date: Wed, 13 Sep 2023 14:26:01 -0700 Subject: [PATCH 01/13] [libc++] Implement ranges::contains_subrange ---

[compiler-rt] [libcxx] [flang] [libcxxabi] [clang] [libclc] [libunwind] [lld] [llvm] [libc] [mlir] [lldb] [clang-tools-extra] [libc++][ranges] Implement ranges::contains_subrange (PR #66963)

2024-01-09 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/66963 >From 647f5fe641b30c874bab770fced9fcec9b601161 Mon Sep 17 00:00:00 2001 From: Zijun Zhao Date: Wed, 13 Sep 2023 14:26:01 -0700 Subject: [PATCH 01/12] [libc++] Implement ranges::contains_subrange ---

[clang] [Serialization] Load Specializations Lazily (PR #76774)

2024-01-09 Thread David Blaikie via cfe-commits
dwblaikie wrote: @ilya-biryukov any chance you/your folks could test this change for performance implications in google? It's especially helpful to CERN, but the last iteration of this direction had some regressions that stalled out progress on that version a few years ago, so it'd be good to

[clang] [AMDGPU] add function attrbute amdgpu-lib-fun (PR #74737)

2024-01-09 Thread Fangrui Song via cfe-commits
MaskRay wrote: > An AMDGPU library function is not internalized and can be used to fullfill > calls generated by LLVM passes or instruction selection. I am confused by the description of "internalized". Do you refer to LTO internalization? You can leverage `llvm.used` to disable LTO

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-01-09 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,157 @@ +//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-01-09 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,157 @@ +//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-01-09 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,157 @@ +//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-01-09 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,20 @@ +.. title:: clang-tidy - bugprone-move-shared-pointer-contents + +bugprone-move-shared-pointer-contents += + + +Detects calls to move the contents out of a ``std::shared_ptr`` rather +than moving the pointer itself. In other

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-01-09 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,157 @@ +//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-01-09 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,45 @@ +//===--- MoveSharedPointerContentsCheck.h - clang-tidy --*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-01-09 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,157 @@ +//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-01-09 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,157 @@ +//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-01-09 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,157 @@ +//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-01-09 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,157 @@ +//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-01-09 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,157 @@ +//===--- MoveSharedPointerContentsCheck.cpp - clang-tidy --===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-01-09 Thread Piotr Zegar via cfe-commits
@@ -0,0 +1,20 @@ +.. title:: clang-tidy - bugprone-move-shared-pointer-contents + +bugprone-move-shared-pointer-contents += + PiotrZSL wrote: Remove one empty line. https://github.com/llvm/llvm-project/pull/67467

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-01-09 Thread Piotr Zegar via cfe-commits
@@ -118,6 +119,7 @@ Clang-Tidy Checks :doc:`bugprone-posix-return `, "Yes" :doc:`bugprone-redundant-branch-condition `, "Yes" :doc:`bugprone-reserved-identifier `, "Yes" + :doc:`bugprone-shared-pointer-contents-move `, "Yes" PiotrZSL wrote: This

[clang-tools-extra] [clang-tidy] Add bugprone-move-shared-pointer-contents check. (PR #67467)

2024-01-09 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL requested changes to this pull request. https://github.com/llvm/llvm-project/pull/67467 ___ 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 bugprone-move-shared-pointer-contents check. (PR #67467)

2024-01-09 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL edited https://github.com/llvm/llvm-project/pull/67467 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AMDGPU] add function attrbute amdgpu-lib-fun (PR #74737)

2024-01-09 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > I was thinking of implementing libm/libc for nvptx, which would produce an IR > library . We'll still need to keep the functions around if they are not used > explicitly, because we may need them to fulfill libcalls later in the > compilation pipeline. Sort of a libdevice

[compiler-rt] [flang] [clang] [clang-tools-extra] [llvm] [libcxx] [libc] [libunwind] [lldb] [libc++] Implement ranges::iota (PR #68494)

2024-01-09 Thread James E T Smith via cfe-commits
@@ -0,0 +1,123 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[clang] [llvm] [CloneFunction][DebugInfo] Avoid cloning DILocalVariables of inlined functions (PR #75385)

2024-01-09 Thread David Blaikie via cfe-commits
https://github.com/dwblaikie approved this pull request. Yeah, looks OK to me - sorry for the delay. https://github.com/llvm/llvm-project/pull/75385 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [AMDGPU] add function attrbute amdgpu-lib-fun (PR #74737)

2024-01-09 Thread Artem Belevich via cfe-commits
https://github.com/Artem-B approved this pull request. https://github.com/llvm/llvm-project/pull/74737 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AMDGPU] add function attrbute amdgpu-lib-fun (PR #74737)

2024-01-09 Thread Artem Belevich via cfe-commits
Artem-B wrote: I was thinking of implementing libm/libc for nvptx, which would produce an IR library . We'll still need to keep the functions around if they are not used explicitly, because we may need them to fulfill libcalls later in the compilation pipeline. Sort of a libdevice

[libclc] [libcxxabi] [compiler-rt] [mlir] [flang] [clang] [lld] [clang-tools-extra] [llvm] [libcxx] [libc] [libunwind] [lldb] [mlir][sparse][CRunnerUtils] Add shuffle in CRunnerUtils (PR #77124)

2024-01-09 Thread Aart Bik via cfe-commits
@@ -176,6 +177,14 @@ extern "C" void rtdrand(void *g) { delete generator; } +extern "C" void _mlir_ciface_shuffle(StridedMemRefType *mref, + void *g) { + std::mt19937 *generator = static_cast(g); + uint64_t s = mref->sizes[0];

[libclc] [libcxxabi] [compiler-rt] [mlir] [flang] [clang] [lld] [clang-tools-extra] [llvm] [libcxx] [libc] [libunwind] [lldb] [mlir][sparse][CRunnerUtils] Add shuffle in CRunnerUtils (PR #77124)

2024-01-09 Thread Yinying Li via cfe-commits
https://github.com/yinying-lisa-li updated https://github.com/llvm/llvm-project/pull/77124 >From 1c774e6c6ae3c5c7be9291677651d20c8979c7f5 Mon Sep 17 00:00:00 2001 From: Yinying Li Date: Fri, 5 Jan 2024 01:17:39 + Subject: [PATCH 1/6] [mlir][sparse][CRunnerUtils] Add shuffle and shuffleFree

[clang] [AMDGPU] add function attrbute amdgpu-lib-fun (PR #74737)

2024-01-09 Thread Joseph Huber via cfe-commits
jhuber6 wrote: My use-case is more to be able to write functions like `is_wavefrontsize64()` in regular C++ code. This would require some way to emit builtins for these. I believe the use-case here is a workaround for the issues caused by library ordering? I'm guessing this is related to the

[clang] [clang-format]: Split alignment of declarations around assignment (PR #69340)

2024-01-09 Thread Gedare Bloom via cfe-commits
https://github.com/gedare updated https://github.com/llvm/llvm-project/pull/69340 >From b4c8809a948799be51a35b10e4d9d303b78a98db Mon Sep 17 00:00:00 2001 From: Gedare Bloom Date: Thu, 9 Nov 2023 09:30:24 -0700 Subject: [PATCH 1/9] Revert "Revert "[clang-format] Fix align consecutive

[clang] [AMDGPU] add function attrbute amdgpu-lib-fun (PR #74737)

2024-01-09 Thread Artem Belevich via cfe-commits
Artem-B wrote: This sounds like it may be useful outside of AMDGPU back-end. @jhuber6 this is something that may come handy for implementing general library functions. https://github.com/llvm/llvm-project/pull/74737 ___ cfe-commits mailing list

[compiler-rt] [flang] [clang] [clang-tools-extra] [llvm] [libcxx] [libc] [libunwind] [lldb] [libc++] Implement ranges::iota (PR #68494)

2024-01-09 Thread James E T Smith via cfe-commits
@@ -0,0 +1,171 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[flang] [compiler-rt] [libcxxabi] [libunwind] [libc] [libcxx] [lld] [libclc] [llvm] [mlir] [clang] [lldb] [clang-tools-extra] [libc++][ranges] Implement ranges::contains_subrange (PR #66963)

2024-01-09 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/66963 >From 647f5fe641b30c874bab770fced9fcec9b601161 Mon Sep 17 00:00:00 2001 From: Zijun Zhao Date: Wed, 13 Sep 2023 14:26:01 -0700 Subject: [PATCH 01/12] [libc++] Implement ranges::contains_subrange ---

[mlir] [lld] [libunwind] [clang] [libclc] [flang] [libcxxabi] [libc] [llvm] [lldb] [libcxx] [clang-tools-extra] [compiler-rt] [libc++][ranges] Implement ranges::contains_subrange (PR #66963)

2024-01-09 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/66963 >From 647f5fe641b30c874bab770fced9fcec9b601161 Mon Sep 17 00:00:00 2001 From: Zijun Zhao Date: Wed, 13 Sep 2023 14:26:01 -0700 Subject: [PATCH 01/11] [libc++] Implement ranges::contains_subrange ---

[flang] [compiler-rt] [libunwind] [libc] [libcxx] [lld] [libclc] [llvm] [mlir] [clang] [lldb] [clang-tools-extra] [mlir][python] Fix generation of python bindings for async dialect (PR #75960)

2024-01-09 Thread Abhishek Kulkarni via cfe-commits
https://github.com/adk9 updated https://github.com/llvm/llvm-project/pull/75960 >From a43ef7289cd7f5353fc4b365566011b93879e8f6 Mon Sep 17 00:00:00 2001 From: Abhishek Kulkarni Date: Tue, 19 Dec 2023 10:50:26 -0800 Subject: [PATCH] Fix generation of python bindings for async dialect ---

[flang] [compiler-rt] [libunwind] [libc] [libcxx] [llvm] [clang] [lldb] [clang-tools-extra] [libc++] Implement ranges::iota (PR #68494)

2024-01-09 Thread James E T Smith via cfe-commits
@@ -0,0 +1,123 @@ +//===--===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier:

[flang] [compiler-rt] [libunwind] [libc] [libcxx] [lld] [llvm] [clang] [lldb] [clang-tools-extra] [libc++][test] try to directly create socket file in /tmp when filepath is too long (PR #77058)

2024-01-09 Thread Mark de Wever via cfe-commits
mordante wrote: Done. https://github.com/llvm/llvm-project/pull/77058 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[flang] [compiler-rt] [libunwind] [libc] [libcxx] [lld] [llvm] [clang] [lldb] [clang-tools-extra] [libc++][test] try to directly create socket file in /tmp when filepath is too long (PR #77058)

2024-01-09 Thread Mark de Wever via cfe-commits
https://github.com/mordante closed https://github.com/llvm/llvm-project/pull/77058 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add tests for CWG1800-1804 (PR #77509)

2024-01-09 Thread via cfe-commits
@@ -1,16 +1,169 @@ -// RUN: %clang_cc1 -std=c++98 -triple x86_64-unknown-unknown %s -verify=expected,cxx98 -fexceptions -Wno-deprecated-builtins -fcxx-exceptions -pedantic-errors -// RUN: %clang_cc1 -std=c++11 -triple x86_64-unknown-unknown %s

[clang] [clang] Add tests for CWG1800-1804 (PR #77509)

2024-01-09 Thread via cfe-commits
@@ -1,16 +1,169 @@ -// RUN: %clang_cc1 -std=c++98 -triple x86_64-unknown-unknown %s -verify=expected,cxx98 -fexceptions -Wno-deprecated-builtins -fcxx-exceptions -pedantic-errors -// RUN: %clang_cc1 -std=c++11 -triple x86_64-unknown-unknown %s

[clang] [clang] Add tests for CWG1800-1804 (PR #77509)

2024-01-09 Thread via cfe-commits
@@ -1,16 +1,169 @@ -// RUN: %clang_cc1 -std=c++98 -triple x86_64-unknown-unknown %s -verify=expected,cxx98 -fexceptions -Wno-deprecated-builtins -fcxx-exceptions -pedantic-errors -// RUN: %clang_cc1 -std=c++11 -triple x86_64-unknown-unknown %s

[clang] [llvm] [Clang][RISCV] Move getVScaleRange logic into libLLVMFrontendDriver. NFC (PR #77327)

2024-01-09 Thread Luke Lau via cfe-commits
lukel97 wrote: > I'm wondering if you considered moving the helper function into RISCVISAInfo? Initially yes, but I ended up backing out of it since it would have been the only bit of "codegen" logic in RISCVISAInfo, and it seemed a shame to pollute it. I also have a feeling that we will

[clang] [llvm] [LLVM][DWARF] Fix accelerator swtiching with TU re-use (PR #77511)

2024-01-09 Thread Alexander Yermolovich via cfe-commits
ayermolo wrote: There is another bug on when we exit from addDwarfTypeUnitType. I need to construct a small repro for it. https://github.com/llvm/llvm-project/pull/77511 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [llvm] [LLVM][DWARF] Fix accelerator swtiching with TU re-use (PR #77511)

2024-01-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-debuginfo Author: Alexander Yermolovich (ayermolo) Changes This bug is triggered when a TU is already created, and we process the same DICompositeType at a top level. We would switch to TU accelerator table, but would not

[clang] [llvm] [LLVM][DWARF] Fix accelerator swtiching with TU re-use (PR #77511)

2024-01-09 Thread Alexander Yermolovich via cfe-commits
https://github.com/ayermolo created https://github.com/llvm/llvm-project/pull/77511 This bug is triggered when a TU is already created, and we process the same DICompositeType at a top level. We would switch to TU accelerator table, but would not switch back on early exit. As the result we

[clang] [clang] Add tests for CWG1800-1804 (PR #77509)

2024-01-09 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: This PR also updates status for CWG437, which is a follow-up to #77372. Nothing wrong with the tooling, just my mistake separating output of make_cxx_dr_status from changes I already had for complete-class context DRs. https://github.com/llvm/llvm-project/pull/77509

[clang] [clang] Add tests for CWG1800-1804 (PR #77509)

2024-01-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vlad Serebrennikov (Endilll) Changes Covers C++ core issues 1800, 1801, 1802, 1803, 1804. --- Full diff: https://github.com/llvm/llvm-project/pull/77509.diff 2 Files Affected: - (modified) clang/test/CXX/drs/dr18xx.cpp (+160-7) -

[llvm] [flang] [libc] [lld] [openmp] [lldb] [clang-tools-extra] [compiler-rt] [libcxx] [clang] [PGO][OpenMP] Instrumentation for GPU devices (PR #76587)

2024-01-09 Thread Johannes Doerfert via cfe-commits
@@ -959,8 +959,12 @@ void CodeGenPGO::emitCounterIncrement(CGBuilderTy , const Stmt *S, unsigned Counter = (*RegionCounterMap)[S]; - llvm::Value *Args[] = {FuncNameVar, - Builder.getInt64(FunctionHash), + // Make sure that pointer to global is

[clang] [clang] Add tests for CWG1800-1804 (PR #77509)

2024-01-09 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll created https://github.com/llvm/llvm-project/pull/77509 Covers C++ core issues 1800, 1801, 1802, 1803, 1804. >From d3cb62eba8e2109e44083bd8b9e89a453acad754 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Tue, 9 Jan 2024 21:51:00 +0300 Subject: [PATCH]

[llvm] [flang] [libc] [mlir] [lld] [libunwind] [lldb] [clang-tools-extra] [compiler-rt] [libcxxabi] [libclc] [libcxx] [clang] [libc++][ranges] Implement ranges::contains_subrange (PR #66963)

2024-01-09 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/66963 >From 647f5fe641b30c874bab770fced9fcec9b601161 Mon Sep 17 00:00:00 2001 From: Zijun Zhao Date: Wed, 13 Sep 2023 14:26:01 -0700 Subject: [PATCH 01/11] [libc++] Implement ranges::contains_subrange ---

[flang] [llvm] [libcxx] [clang-tools-extra] [libcxxabi] [lld] [compiler-rt] [mlir] [libclc] [clang] [lldb] [libunwind] [libc] [libc++][ranges] Implement ranges::contains_subrange (PR #66963)

2024-01-09 Thread via cfe-commits
https://github.com/ZijunZhaoCCK updated https://github.com/llvm/llvm-project/pull/66963 >From 647f5fe641b30c874bab770fced9fcec9b601161 Mon Sep 17 00:00:00 2001 From: Zijun Zhao Date: Wed, 13 Sep 2023 14:26:01 -0700 Subject: [PATCH 01/10] [libc++] Implement ranges::contains_subrange ---

[clang] Objective C: use C++ exceptions on MinGW+GNUstep (PR #77255)

2024-01-09 Thread Frederik Carlier via cfe-commits
qmfrederik wrote: CI looks green, let me know if there's anything else you need from me on this PR! https://github.com/llvm/llvm-project/pull/77255 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang][modules] Objective-C test lacks support on AIX/zOS (PR #77485)

2024-01-09 Thread Jake Egan via cfe-commits
https://github.com/jakeegan closed https://github.com/llvm/llvm-project/pull/77485 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1b8e39a - [clang][modules] Objective-C test lacks support on AIX/zOS (#77485)

2024-01-09 Thread via cfe-commits
Author: Jake Egan Date: 2024-01-09T13:40:21-05:00 New Revision: 1b8e39a1a2e8237852914501e3361d98af6db054 URL: https://github.com/llvm/llvm-project/commit/1b8e39a1a2e8237852914501e3361d98af6db054 DIFF: https://github.com/llvm/llvm-project/commit/1b8e39a1a2e8237852914501e3361d98af6db054.diff

[clang] [clang-tools-extra] [compiler-rt] [PGO] Exposing PGO's Counter Reset and File Dumping APIs (PR #76471)

2024-01-09 Thread Qiongsi Wu via cfe-commits
qiongsiwu wrote: > Sometimes godbolt output (like https://godbolt.org/z/MxbjcnanW) could be > faster and more convenient (e.g., there is no need to get windows executable > to for debugging, only LLVM IR is needed). Thanks for the pointer! Yup godbolt can indeed reproduce IR quite well.

[clang] [compiler-rt] [clang-tools-extra] [PGO] Exposing PGO's Counter Reset and File Dumping APIs (PR #76471)

2024-01-09 Thread Mingming Liu via cfe-commits
minglotus-6 wrote: > > Breaks https://lab.llvm.org/buildbot/#/builders/127/builds/60635 Please fix > > or revert. > > Thanks for reporting the problem @vitalybuka ! > > I don't have a Windows machine to reproduce the issue. It is not clear to me > how the IR can contain names like >

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
@@ -1067,6 +1067,17 @@ ExprResult Parser::ParseCastExpression(CastParseKind ParseKind, // where the syntax forbids a type. const Token = NextToken(); + if (getLangOpts().CPlusPlus26 && Next.is(tok::ellipsis) && erichkeane wrote: Same

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
@@ -5697,6 +5698,39 @@ QualType ASTContext::getDecltypeType(Expr *e, QualType UnderlyingType) const { return QualType(dt, 0); } +QualType ASTContext::getPackIndexingType(QualType Pattern, Expr *IndexExpr, + bool FullyExpanded, +

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
@@ -1665,6 +1665,43 @@ NonTypeTemplateParmDecl *SubstNonTypeTemplateParmExpr::getParameter() const { getReplacedTemplateParameterList(getAssociatedDecl())->asArray()[Index]); } +PackIndexingExpr *PackIndexingExpr::Create(ASTContext , +

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
@@ -1665,6 +1665,43 @@ NonTypeTemplateParmDecl *SubstNonTypeTemplateParmExpr::getParameter() const { getReplacedTemplateParameterList(getAssociatedDecl())->asArray()[Index]); } +PackIndexingExpr *PackIndexingExpr::Create(ASTContext , +

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
@@ -1884,6 +1884,10 @@ class Parser : public CodeCompletionHandler { // C++ Expressions ExprResult tryParseCXXIdExpression(CXXScopeSpec , bool isAddressOfOperand, Token ); + + ExprResult tryParseCXXPackIndexingExpression(ExprResult

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
@@ -978,6 +978,20 @@ bool Parser::ConsumeAndStoreFunctionPrologue(CachedTokens ) { } else { break; } + // Pack indexing + if (getLangOpts().CPlusPlus26 && Tok.is(tok::ellipsis) && erichkeane wrote: While I think allowing this in

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
@@ -1665,6 +1665,43 @@ NonTypeTemplateParmDecl *SubstNonTypeTemplateParmExpr::getParameter() const { getReplacedTemplateParameterList(getAssociatedDecl())->asArray()[Index]); } +PackIndexingExpr *PackIndexingExpr::Create(ASTContext , +

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
@@ -1061,6 +1070,59 @@ ExprResult Sema::ActOnSizeofParameterPackExpr(Scope *S, RParenLoc); } +static bool isParameterPack(Expr *PackExpression) { + if (auto D = dyn_cast(PackExpression); D) { erichkeane wrote: ```suggestion

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
@@ -6460,6 +6476,100 @@ QualType TreeTransform::TransformDecltypeType(TypeLocBuilder , return Result; } +template +QualType +TreeTransform::TransformPackIndexingType(TypeLocBuilder , + PackIndexingTypeLoc TL) { + //

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
@@ -4344,6 +4344,112 @@ class SizeOfPackExpr final } }; +class PackIndexingExpr final +: public Expr, + private llvm::TrailingObjects { + friend class ASTStmtReader; + friend class ASTStmtWriter; + friend TrailingObjects; + + SourceLocation EllipsisLoc; + + //

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
@@ -309,6 +309,7 @@ class DeclSpec { static const TST TST_typeof_unqualExpr = clang::TST_typeof_unqualExpr; static const TST TST_decltype = clang::TST_decltype; static const TST TST_decltype_auto = clang::TST_decltype_auto; + static const TST TST_indexed_typename_pack =

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
@@ -1061,6 +1070,59 @@ ExprResult Sema::ActOnSizeofParameterPackExpr(Scope *S, RParenLoc); } +static bool isParameterPack(Expr *PackExpression) { + if (auto D = dyn_cast(PackExpression); D) { +ValueDecl *VD = D->getDecl(); +return

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
@@ -836,6 +836,8 @@ ANNOTATION(primary_expr) // annotation for a primary expression, used when // message send ANNOTATION(decltype) // annotation for a decltype expression, // e.g., "decltype(foo.bar())"

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
@@ -4884,6 +4884,72 @@ class DependentDecltypeType : public DecltypeType, public llvm::FoldingSetNode { Expr *E); }; +class PackIndexingType final +: public Type, + public llvm::FoldingSetNode, + private llvm::TrailingObjects { + friend

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
@@ -1685,7 +1685,12 @@ enum CXCursorKind { */ CXCursor_CXXParenListInitExpr = 155, - CXCursor_LastExpr = CXCursor_CXXParenListInitExpr, + /** + * Represents a C++26 pack indexing expression erichkeane wrote: ```suggestion * Represents a C++26

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
@@ -1713,6 +1716,11 @@ class ASTContext : public RefCountedBase { /// C++11 decltype. QualType getDecltypeType(Expr *e, QualType UnderlyingType) const; + QualType getPackIndexingType(QualType Pattern, Expr *IndexExpr, + bool FullyExpanded =

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
https://github.com/erichkeane commented: A LOT of stuff here... probably going to need a few more cycles on this to completely grok it. I didn't spend much time on tests, but would love if we could come up with some 'common patterns' (particularly any that others have sent you as a 'look at

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
https://github.com/erichkeane edited https://github.com/llvm/llvm-project/pull/72644 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][C++26] Implement Pack Indexing (P2662R3). (PR #72644)

2024-01-09 Thread Erich Keane via cfe-commits
@@ -284,6 +284,7 @@ bool TypePrinter::canPrefixQualifiers(const Type *T, case Type::FunctionNoProto: case Type::Paren: case Type::PackExpansion: + erichkeane wrote: unrelated change? https://github.com/llvm/llvm-project/pull/72644

[clang] [clang][dataflow] Add an early-out to `flowConditionImplies()` / `flowConditionAllows()`. (PR #77453)

2024-01-09 Thread via cfe-commits
https://github.com/martinboehme closed https://github.com/llvm/llvm-project/pull/77453 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 03a0bfa - [clang][dataflow] Add an early-out to `flowConditionImplies()` / `flowConditionAllows()`. (#77453)

2024-01-09 Thread via cfe-commits
Author: martinboehme Date: 2024-01-09T19:18:54+01:00 New Revision: 03a0bfa96a6eb09c4bbae344ac3aa062339aa730 URL: https://github.com/llvm/llvm-project/commit/03a0bfa96a6eb09c4bbae344ac3aa062339aa730 DIFF: https://github.com/llvm/llvm-project/commit/03a0bfa96a6eb09c4bbae344ac3aa062339aa730.diff

[lldb] [libc] [compiler-rt] [flang] [libcxx] [clang] [openmp] [llvm] [lld] [clang-tools-extra] [PGO][OpenMP] Instrumentation for GPU devices (PR #76587)

2024-01-09 Thread Ethan Luis McDonough via cfe-commits
@@ -959,8 +959,12 @@ void CodeGenPGO::emitCounterIncrement(CGBuilderTy , const Stmt *S, unsigned Counter = (*RegionCounterMap)[S]; - llvm::Value *Args[] = {FuncNameVar, - Builder.getInt64(FunctionHash), + // Make sure that pointer to global is

[clang] [compiler-rt] [clang-tools-extra] [PGO] Exposing PGO's Counter Reset and File Dumping APIs (PR #76471)

2024-01-09 Thread Qiongsi Wu via cfe-commits
qiongsiwu wrote: > Breaks https://lab.llvm.org/buildbot/#/builders/127/builds/60635 Please fix > or revert. Thanks for reporting the problem @vitalybuka ! I don't have a Windows machine to reproduce the issue. It is not clear to me how the IR can contain names like

[clang] [Clang] Implement the 'counted_by' attribute (PR #76348)

2024-01-09 Thread Yeoul Na via cfe-commits
rapidsna wrote: > The return value of -1 means "I don't know how large this is". @kees Oh, I see. I did not know such the convention. Is it documented somewhere? https://github.com/llvm/llvm-project/pull/76348 ___ cfe-commits mailing list

[clang-tools-extra] [clang] [lldb] [Clang] [c++20] P1907R1: Support for generalized non-type template ar… (PR #77428)

2024-01-09 Thread Andrey Ali Khan Bolshakov via cfe-commits
bolshakov-a wrote: Seems like I should ping reviewers more actively... Ok, thanks, I'll probably proceed at the weekend. https://github.com/llvm/llvm-project/pull/77428 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang-tools-extra] [clangd] Fix typo (PR #77504)

2024-01-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Author: None (Nour1248) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/77504.diff 1 Files Affected: - (modified) clang-tools-extra/clangd/AST.cpp (+6-6) ``diff diff --git a/clang-tools-extra/clangd/AST.cpp

[clang-tools-extra] [clangd] Fix typo (PR #77504)

2024-01-09 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-tools-extra] [clangd] Fix typo (PR #77504)

2024-01-09 Thread via cfe-commits
https://github.com/Nour1248 created https://github.com/llvm/llvm-project/pull/77504 None >From 68af1fcbaade87ec8d20c7a83f20bf4bfba5caf5 Mon Sep 17 00:00:00 2001 From: Nour Fouad Date: Tue, 9 Jan 2024 19:56:42 +0200 Subject: [PATCH] [clangd] Fix typo --- clang-tools-extra/clangd/AST.cpp | 12

<    1   2   3   4   5   6   >