[clang] [clang] Refactor `IdentifierInfo::ObjcOrBuiltinID` (PR #71709)

2024-01-09 Thread via cfe-commits
cor3ntin wrote: @AaronBallman this looks sensible. WDYT? https://github.com/llvm/llvm-project/pull/71709 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Fix discarded integral and floating casts (PR #77295)

2024-01-10 Thread via cfe-commits
https://github.com/cor3ntin approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/77295 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Fix behavior of `__is_trivially_relocatable(volatile int)` (PR #77092)

2024-01-10 Thread via cfe-commits
cor3ntin wrote: @erichkeane @AaronBallman https://github.com/llvm/llvm-project/pull/77092 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 8f78dd4 - [clang][analyzer] Add function 'ungetc' to StreamChecker. (#77331)

2024-01-10 Thread via cfe-commits
Author: Balázs Kéri Date: 2024-01-10T09:09:51+01:00 New Revision: 8f78dd4b92b44c490d263a4d161850853874859d URL: https://github.com/llvm/llvm-project/commit/8f78dd4b92b44c490d263a4d161850853874859d DIFF: https://github.com/llvm/llvm-project/commit/8f78dd4b92b44c490d263a4d161850853874859d.diff L

[clang] f443fbc - [Flang][OpenMP][MLIR] Add support for -nogpulib option (#71045)

2024-01-10 Thread via cfe-commits
Author: Dominik Adamski Date: 2024-01-10T09:38:58+01:00 New Revision: f443fbc49b8914a8453de61aea741221df9648cf URL: https://github.com/llvm/llvm-project/commit/f443fbc49b8914a8453de61aea741221df9648cf DIFF: https://github.com/llvm/llvm-project/commit/f443fbc49b8914a8453de61aea741221df9648cf.dif

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

2024-01-10 Thread via cfe-commits
Author: Vlad Serebrennikov Date: 2024-01-10T12:51:04+04:00 New Revision: d0918a20d2a85bad3cd0ec48be4b91e873bfe737 URL: https://github.com/llvm/llvm-project/commit/d0918a20d2a85bad3cd0ec48be4b91e873bfe737 DIFF: https://github.com/llvm/llvm-project/commit/d0918a20d2a85bad3cd0ec48be4b91e873bfe737.

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

2024-01-10 Thread via cfe-commits
https://github.com/NorthBlue333 updated https://github.com/llvm/llvm-project/pull/77456 >From 8081b93a021b24c5310bc9a08d00f0d07f1bbfa1 Mon Sep 17 00:00:00 2001 From: NorthBlue333 Date: Tue, 9 Jan 2024 14:01:14 +0100 Subject: [PATCH] [clang-format] Do not update cursor pos if no includes replac

[clang] [clang][coverage] fixing "if constexpr" and "if consteval" coverage report (PR #77214)

2024-01-10 Thread via cfe-commits
Hana =?utf-8?q?Dusi=CC=81kova=CC=81?= Message-ID: In-Reply-To: cor3ntin wrote: Oups, can you rebase? https://github.com/llvm/llvm-project/pull/77214 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listi

[clang] [CMake] Deprecate GCC_INSTALL_PREFIX (PR #77537)

2024-01-10 Thread via cfe-commits
zmodem wrote: Seems okay to me, but it would be good to include an update to the release notes, which ideally shows an example of what replacing the cmake flag with a config file would look like. https://github.com/llvm/llvm-project/pull/77537 ___ cf

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

2024-01-10 Thread via cfe-commits
https://github.com/NorthBlue333 updated https://github.com/llvm/llvm-project/pull/77456 >From 04258b4ee42e29ec160b7fa4992dd1ad63db77dc Mon Sep 17 00:00:00 2001 From: NorthBlue333 Date: Tue, 9 Jan 2024 14:01:14 +0100 Subject: [PATCH] [clang-format] Do not update cursor pos if no includes replac

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

2024-01-10 Thread via cfe-commits
NorthBlue333 wrote: The change is done 👍 Is the code formatting check broken? https://github.com/llvm/llvm-project/pull/77456 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [flang] [clang-tools-extra] [flang] Add EXECUTE_COMMAND_LINE runtime and lowering intrinsics implementation (PR #74077)

2024-01-10 Thread via cfe-commits
https://github.com/jeanPerier approved this pull request. Thanks for the updates @yi-wu-arm, LGTM https://github.com/llvm/llvm-project/pull/74077 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

[libunwind] be320fd - [libunwind] Convert a few options from CACHE PATH to CACHE STRING (#77534)

2024-01-10 Thread via cfe-commits
Author: Martin Storsjö Date: 2024-01-10T11:25:17+02:00 New Revision: be320fdf7ba9a94f6970f433ec1402cdc5cfe6b1 URL: https://github.com/llvm/llvm-project/commit/be320fdf7ba9a94f6970f433ec1402cdc5cfe6b1 DIFF: https://github.com/llvm/llvm-project/commit/be320fdf7ba9a94f6970f433ec1402cdc5cfe6b1.diff

[clang] 65a56a2 - [clang] [Driver] Treat MuslEABIHF as a hardfloat environment wrt multiarch directories (#77536)

2024-01-10 Thread via cfe-commits
Author: Martin Storsjö Date: 2024-01-10T11:27:46+02:00 New Revision: 65a56a29b6ad3d9df43df1c5a1238b1f870f24f9 URL: https://github.com/llvm/llvm-project/commit/65a56a29b6ad3d9df43df1c5a1238b1f870f24f9 DIFF: https://github.com/llvm/llvm-project/commit/65a56a29b6ad3d9df43df1c5a1238b1f870f24f9.diff

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

2024-01-10 Thread via cfe-commits
https://github.com/NorthBlue333 updated https://github.com/llvm/llvm-project/pull/77456 >From 18163c8cad017274adaf8c4e23c0121dc1f3c844 Mon Sep 17 00:00:00 2001 From: NorthBlue333 Date: Tue, 9 Jan 2024 14:01:14 +0100 Subject: [PATCH] [clang-format] Do not update cursor pos if no includes replac

[lldb] [clang-tools-extra] [libcxx] [llvm] [flang] [libc] [compiler-rt] [clang] [flang] FDATE extension implementation: get date and time in ctime format (PR #71222)

2024-01-10 Thread via cfe-commits
https://github.com/jeanPerier approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/71222 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement P2718R0 "Lifetime extension in range-based for loops" (PR #76361)

2024-01-10 Thread via cfe-commits
yronglin wrote: ping~ https://github.com/llvm/llvm-project/pull/76361 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[mlir] [flang] [llvm] [clang] [MLIR][LLVM] Add Continuous Loop Peeling transform to SCF (PR #77328)

2024-01-10 Thread via cfe-commits
muneebkhan85 wrote: @matthias-springer I had to move the pull request https://github.com/llvm/llvm-project/pull/71555 here due to an erroneous force push. I have addressed all the comments you had pointed out in the original review. Most importantly 1) I have re-written the logic for the co

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

2024-01-10 Thread via cfe-commits
martinboehme wrote: This breaks some internal integration tests. Reverting while we investigate. 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

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

2024-01-10 Thread via cfe-commits
https://github.com/martinboehme created https://github.com/llvm/llvm-project/pull/77570 Reverts llvm/llvm-project#77453 >From 038c85ca9733404a67c0f328f268ca0124cf5b17 Mon Sep 17 00:00:00 2001 From: martinboehme Date: Wed, 10 Jan 2024 10:49:45 +0100 Subject: [PATCH] Revert "[clang][dataflow] Ad

[clang] 7ce010f - Revert "[clang][dataflow] Add an early-out to `flowConditionImplies()` / `flowConditionAllows()`." (#77570)

2024-01-10 Thread via cfe-commits
Author: martinboehme Date: 2024-01-10T10:50:16+01:00 New Revision: 7ce010f2fb01341ab253547324e126d81d47f794 URL: https://github.com/llvm/llvm-project/commit/7ce010f2fb01341ab253547324e126d81d47f794 DIFF: https://github.com/llvm/llvm-project/commit/7ce010f2fb01341ab253547324e126d81d47f794.diff

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

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

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

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (martinboehme) Changes Reverts llvm/llvm-project#77453 --- Full diff: https://github.com/llvm/llvm-project/pull/77570.diff 2 Files Affected: - (modified) clang/include/clang/Analysis/FlowSensitive/Formula.h (-4) - (modified) clang

[clang] [Clang][doc] Add blank line before lists (PR #77573)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Wang Pengcheng (wangpc-pp) Changes The doc is not correctly rendered with missing blank lines. --- Full diff: https://github.com/llvm/llvm-project/pull/77573.diff 1 Files Affected: - (modified) clang/docs/LanguageExtensions.rst (+2)

[clang] a26cc75 - [clang][coverage] Fix "if constexpr" and "if consteval" coverage report (#77214)

2024-01-10 Thread via cfe-commits
Author: Hana Dusíková Date: 2024-01-10T11:01:23+01:00 New Revision: a26cc759ae5a8018e2c328cf53173992340b995a URL: https://github.com/llvm/llvm-project/commit/a26cc759ae5a8018e2c328cf53173992340b995a DIFF: https://github.com/llvm/llvm-project/commit/a26cc759ae5a8018e2c328cf53173992340b995a.diff

[clang] [clang][coverage] fixing "if constexpr" and "if consteval" coverage report (PR #77214)

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

[lld] [flang] [llvm] [clang] [AMDGPU] Introduce Code Object V6 (PR #76954)

2024-01-10 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 40236257ea9d1e451daee5c0938bd23abd5d1450 df3227d73e03b5d013e14293013e54da120c0b77 --

[clang] [clang][analyzer] Fix incorrect range of 'ftell' in the StdLibraryFunctionsChecker (PR #77576)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Ben Shi (benshi001) Changes According to https://pubs.opengroup.org/onlinepubs/9699919799/, the return value of 'ftell' is not restricted to > 0, and may return 0 in real world. And the corresponding unit test also show `Ret >= 0` not `Re

[clang] [ClangFormat] Fix formatting bugs. (PR #76245)

2024-01-10 Thread via cfe-commits
https://github.com/r4nt updated https://github.com/llvm/llvm-project/pull/76245 >From 52cb11f0279dbd9f65f15e81f44869cfac00d544 Mon Sep 17 00:00:00 2001 From: Manuel Klimek Date: Thu, 2 Mar 2023 14:00:35 + Subject: [PATCH 1/3] [ClangFormat] Fix formatting bugs. 1. There are multiple calls to

[clang] [mlir] [llvm] [flang] [MLIR][LLVM] Add Continuous Loop Peeling transform to SCF (PR #77328)

2024-01-10 Thread via cfe-commits
@@ -105,6 +106,161 @@ static void specializeForLoopForUnrolling(ForOp op) { op.erase(); } +/// Create a new for loop for the remaining iterations (partialIteration) +/// after a for loop has been peeled. This is followed by correcting the +/// loop bounds for both loops give

[clang] 5cc0344 - [clang-repl] Enable native CPU detection by default (#77491)

2024-01-10 Thread via cfe-commits
Author: Stefan Gränitz Date: 2024-01-10T11:49:01+01:00 New Revision: 5cc03442d392693d0d2457f571cc8fa1736bfe5e URL: https://github.com/llvm/llvm-project/commit/5cc03442d392693d0d2457f571cc8fa1736bfe5e DIFF: https://github.com/llvm/llvm-project/commit/5cc03442d392693d0d2457f571cc8fa1736bfe5e.diff

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

2024-01-10 Thread via cfe-commits
NorthBlue333 wrote: Currently fixing the tests. https://github.com/llvm/llvm-project/pull/77456 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][analyzer] Support 'tello' and 'fseeko' in the StreamChecker (PR #77580)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Ben Shi (benshi001) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/77580.diff 3 Files Affected: - (modified) clang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp (+4) - (modified) clang/test/Analysis

[clang] [libc++][NFC] Refactor `clang/test/SemaCXX/type-traits.cpp` to use modern `static_assert` (PR #77584)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Amirreza Ashouri (AMP999) Changes --- Patch is 188.49 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/77584.diff 1 Files Affected: - (modified) clang/test/SemaCXX/type-traits.cpp (+1672-1683

[clang-tools-extra] Add new check: do not return 0; at the end of main() in C++ (PR #77586)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Author: Bhuminjay Soni (11happy) Changes **Overview:** This pull request fixes #38469 where the issue proposes a new static analysis check in C++ to discourage the explicit return 0; statement at the end of the main() function. As C++ automa

[clang-tools-extra] Add new check: do not return 0; at the end of main() in C++ (PR #77586)

2024-01-10 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 8f78dd4b92b44c490d263a4d161850853874859d bae95013cd7f937a5496cafcd40a77cc563addb0 --

[clang] [clang]not lookup name containing a dependent type (PR #77587)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Congcong Cai (HerrCai0907) Changes Fixes: #77583 bcd51aaaf8bde4b0ae7a4155d9ce3dec78fe2598 fixed part of template instantiation dependent name issues but still missing some cases This patch want to enhance the dependent name check --- Ful

[clang] [flang] [Flang] Support -mrvv-vector-bits flag (PR #77588)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-flang-driver @llvm/pr-subscribers-clang Author: Luke Lau (lukel97) Changes This patch adds support for the -mrvv-vector-bits flag in the Flang driver, and translates them to -mvscale-min/-mvscale-max. The code was copied from the Clang toolchain (simila

[clang-tools-extra] 5b4abae - [emacs] Fix Emacs library formatting (#76110)

2024-01-10 Thread via cfe-commits
Author: darkfeline Date: 2024-01-10T13:14:21+01:00 New Revision: 5b4abae7630572c96a736faa1f09b1a3c37201a2 URL: https://github.com/llvm/llvm-project/commit/5b4abae7630572c96a736faa1f09b1a3c37201a2 DIFF: https://github.com/llvm/llvm-project/commit/5b4abae7630572c96a736faa1f09b1a3c37201a2.diff LO

[clang] 5b4abae - [emacs] Fix Emacs library formatting (#76110)

2024-01-10 Thread via cfe-commits
Author: darkfeline Date: 2024-01-10T13:14:21+01:00 New Revision: 5b4abae7630572c96a736faa1f09b1a3c37201a2 URL: https://github.com/llvm/llvm-project/commit/5b4abae7630572c96a736faa1f09b1a3c37201a2 DIFF: https://github.com/llvm/llvm-project/commit/5b4abae7630572c96a736faa1f09b1a3c37201a2.diff LO

[lldb] [clang] [lld] [clang-tools-extra] [openmp] [flang] [mlir] [llvm] [libunwind] [GVNSink] Fix #77415: GVNSink fails to optimize LLVM IR with debug info (PR #77602)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-transforms Author: Shan Huang (Apochens) Changes This PR fixes issue #77415 and is revised from PR #77419 . PR #77419 breaks the newly added test in the same PR on windows, because GVNSink is non-deterministic when sorting `BasicBlock*` pointers.

[clang] [flang] Fix fveclib on Darwin (PR #77605)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-driver Author: Leandro Lupori (luporl) Changes Fixes fveclib.f90 and fveclib-codegen.f90 tests, that were failing on Darwin. --- Full diff: https://github.com/llvm/llvm-project/pull/77605.diff 1 Files Affected: - (modified) clang/lib/Driver/To

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

2024-01-10 Thread via cfe-commits
@@ -4193,6 +4194,13 @@ void CXXNameMangler::mangleType(const PackExpansionType *T) { mangleType(T->getPattern()); } +void CXXNameMangler::mangleType(const PackIndexingType *T) { cor3ntin wrote: This is a good question: do we need specific mangling, and if

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

2024-01-10 Thread 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 VD->i

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

2024-01-10 Thread 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-10 Thread via cfe-commits
https://github.com/cor3ntin 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][NFC] Refactor `clang/test/SemaCXX/type-traits.cpp` to use modern `static_assert` (PR #77584)

2024-01-10 Thread via cfe-commits
https://github.com/cor3ntin edited https://github.com/llvm/llvm-project/pull/77584 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][NFC] Refactor `clang/test/SemaCXX/type-traits.cpp` to use modern `static_assert` (PR #77584)

2024-01-10 Thread via cfe-commits
@@ -2671,212 +2660,212 @@ struct has_unique_object_representations { static const bool value = __has_unique_object_representations(T); }; cor3ntin wrote: This is no longer needed at all https://github.com/llvm/llvm-project/pull/77584

[clang] [clang][NFC] Refactor `clang/test/SemaCXX/type-traits.cpp` to use modern `static_assert` (PR #77584)

2024-01-10 Thread via cfe-commits
https://github.com/cor3ntin commented: Looks like a nice improvement. I have a couple of suggestions https://github.com/llvm/llvm-project/pull/77584 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] [clang][NFC] Refactor `clang/test/SemaCXX/type-traits.cpp` to use modern `static_assert` (PR #77584)

2024-01-10 Thread via cfe-commits
@@ -214,56 +212,56 @@ struct HasVirtBase : virtual ACompleteType {}; void is_pod() { - { int arr[T(__is_pod(int))]; } - { int arr[T(__is_pod(Enum))]; } - { int arr[T(__is_pod(POD))]; } - { int arr[T(__is_pod(Int))]; } - { int arr[T(__is_pod(IntAr))]; } - { int arr[T(__is

[clang] [clang][NFC] Refactor `clang/test/SemaCXX/type-traits.cpp` to use modern `static_assert` (PR #77584)

2024-01-10 Thread via cfe-commits
@@ -2671,212 +2660,212 @@ struct has_unique_object_representations { static const bool value = __has_unique_object_representations(T); }; cor3ntin wrote: Except we don't do that for any other trait in that file. https://github.com/llvm/llvm-project/pull/7758

[clang] [clang][analyzer] Add function 'fprintf' to StreamChecker. (PR #77613)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-static-analyzer-1 Author: Balázs Kéri (balazske) Changes [clang][analyzer] Add function 'fprintf' to StreamChecker. --- Full diff: https://github.com/llvm/llvm-project/pull/77613.diff 3 Files Affected: - (modified) clang/lib/StaticAnalyzer/Chec

[flang] [mlir] [libunwind] [lld] [clang-tools-extra] [llvm] [clang] [openmp] [lldb] [compiler-rt] [BranchFolding] Fix missing predecessors of landing-pad (PR #77608)

2024-01-10 Thread via cfe-commits
https://github.com/HaohaiWen updated https://github.com/llvm/llvm-project/pull/77608 >From 80a650763278061630e6ff5635bbc3a2dacc093e Mon Sep 17 00:00:00 2001 From: Haohai Wen Date: Wed, 10 Jan 2024 16:09:00 +0800 Subject: [PATCH 1/2] [BranchFolding][SEH] Add test to track SEH CFG optimization

[llvm] [clang] [SPARC] Support reserving arbitrary general purpose registers (PR #74927)

2024-01-10 Thread via cfe-commits
@@ -1125,6 +1130,10 @@ Register SparcTargetLowering::getRegisterByName(const char* RegName, LLT VT, .Case("g4", SP::G4).Case("g5", SP::G5).Case("g6", SP::G6).Case("g7", SP::G7) .Default(0); + const SparcRegisterInfo *TRI = Subtarget->getRegisterInfo(); + if (!TRI->

[flang] [mlir] [libunwind] [lld] [clang-tools-extra] [llvm] [clang] [openmp] [lldb] [compiler-rt] [BranchFolding] Fix missing predecessors of landing-pad (PR #77608)

2024-01-10 Thread via cfe-commits
HaohaiWen wrote: > > This keeps CFG as only have one entry which is required by LiveDebugValues > > If we just want to make LiveDebugValues happy, should it better to remove > these died BB instead? This died BB was already removed by BranchFolder. See rebased test diff. We just want to salva

[flang] [mlir] [libunwind] [lld] [clang-tools-extra] [llvm] [clang] [openmp] [lldb] [compiler-rt] [BranchFolding] Fix missing predecessors of landing-pad (PR #77608)

2024-01-10 Thread via cfe-commits
@@ -1363,6 +1363,14 @@ bool BranchFolder::OptimizeBlock(MachineBasicBlock *MBB) { MachineBasicBlock *Pred = *(MBB->pred_end()-1); Pred->ReplaceUsesOfBlockWith(MBB, &*FallThrough); } + // Add rest successors of MBB to successors of FallThrough. Those

[flang] [mlir] [libunwind] [lld] [clang-tools-extra] [llvm] [clang] [openmp] [lldb] [compiler-rt] [BranchFolding] Fix missing predecessors of landing-pad (PR #77608)

2024-01-10 Thread via cfe-commits
https://github.com/HaohaiWen edited https://github.com/llvm/llvm-project/pull/77608 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [OpenACC] Implement 'var' parsing correctly, support array sections (PR #77617)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Erich Keane (erichkeane) Changes While investigating implementing 'var-list' generically for the variety of clauses that support this syntax (an extensive list!) I discovered that it includes 'compound types' and members of compound types

[clang] [OpenACC] Implement 'var' parsing correctly, support array sections (PR #77617)

2024-01-10 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 6876fe53afabfc6f0c3b5e7c838f32a282da6f77 d38a6b7ac88d2e97eaf2f479b01be00e042d545b --

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

2024-01-10 Thread 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 = f

[clang-tools-extra] Add new check: do not return 0; at the end of main() in C++ (PR #77586)

2024-01-10 Thread via cfe-commits
EugeneZelenko wrote: Original issue was closed as `wontfix`. https://github.com/llvm/llvm-project/pull/77586 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Add new check: do not return 0; at the end of main() in C++ (PR #77586)

2024-01-10 Thread via cfe-commits
EugeneZelenko wrote: @11happy: There are plenty of Clang-tidy issues with such tag: https://github.com/llvm/llvm-project/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22+label%3Aclang-tidy https://github.com/llvm/llvm-project/pull/77586 __

[clang] 5934a6e - [Headers][X86] Reformat ia32intrin.h doc to match the other headers (#77525)

2024-01-10 Thread via cfe-commits
Author: Paul T Robinson Date: 2024-01-10T10:53:11-05:00 New Revision: 5934a6ee5967f795634d5161d46da8412be96404 URL: https://github.com/llvm/llvm-project/commit/5934a6ee5967f795634d5161d46da8412be96404 DIFF: https://github.com/llvm/llvm-project/commit/5934a6ee5967f795634d5161d46da8412be96404.dif

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

2024-01-10 Thread via cfe-commits
@@ -4193,6 +4194,13 @@ void CXXNameMangler::mangleType(const PackExpansionType *T) { mangleType(T->getPattern()); } +void CXXNameMangler::mangleType(const PackIndexingType *T) { cor3ntin wrote: I did open an issue there https://github.com/itanium-cxx-abi/c

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-10 Thread via cfe-commits
sethp wrote: @ZequanWu would either of these work for you?: ```c++ DCHECK_OK(foo); // expected-error@components/reporting/util/status_macros.h:* {{{CHECK,DCHECK,ASSERT,EXPECT}_OK do not accept a type other than Status or StatusOr.}}} ``` or ```c++ DCHECK_OK(foo); // expected-error-re@comp

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-10 Thread via cfe-commits
sethp wrote: Though, maybe we should revert this change, and gate it behind a new suffix (`expected-error-ext`?), since it is a breaking change to the verifier's mini-language. https://github.com/llvm/llvm-project/pull/77326 ___ cfe-commits mailing

[clang] [Clang] Wide delimiters ('{{{') for expect strings (PR #77326)

2024-01-10 Thread via cfe-commits
sethp wrote: Of course, thank you for tracking it down! https://github.com/llvm/llvm-project/pull/77326 ___ 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-10 Thread via cfe-commits
@@ -4193,6 +4194,13 @@ void CXXNameMangler::mangleType(const PackExpansionType *T) { mangleType(T->getPattern()); } +void CXXNameMangler::mangleType(const PackIndexingType *T) { cor3ntin wrote: @rnk I was told that you could help with the microsoft abi for

[clang] [clang]not lookup name containing a dependent type (PR #77587)

2024-01-10 Thread via cfe-commits
@@ -475,13 +475,21 @@ struct S { #if __cplusplus >= 201103L namespace dependent_conversion_function_id_lookup { - template struct A { + struct A1 { cor3ntin wrote: can you add a comment with the number of the relevant github issue(s) ? thanks https://githu

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

2024-01-10 Thread via cfe-commits
Author: Frederik Carlier Date: 2024-01-10T16:52:13Z New Revision: 1d5106d69cf475215887c42834158d710e586f1b URL: https://github.com/llvm/llvm-project/commit/1d5106d69cf475215887c42834158d710e586f1b DIFF: https://github.com/llvm/llvm-project/commit/1d5106d69cf475215887c42834158d710e586f1b.diff L

[clang] [clang][analyzer] Add function 'fprintf' to StreamChecker. (PR #77613)

2024-01-10 Thread via cfe-commits
https://github.com/NagyDonat approved this pull request. I don't see any issue. https://github.com/llvm/llvm-project/pull/77613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 14e7dac - [Clang][LLVM][AArch64]SVE2.1 update the intrinsics according to acle[1] (#76844)

2024-01-10 Thread via cfe-commits
Author: CarolineConcatto Date: 2024-01-10T17:12:14Z New Revision: 14e7dac92a32f900a66cb868be89c964b687a825 URL: https://github.com/llvm/llvm-project/commit/14e7dac92a32f900a66cb868be89c964b687a825 DIFF: https://github.com/llvm/llvm-project/commit/14e7dac92a32f900a66cb868be89c964b687a825.diff L

[llvm] [clang] [Clang][LLVM][AArch64]SVE2.1 update the intrinsics according to acle[1] (PR #76844)

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

[clang] [clang] Add test for CWG1807 (PR #77637)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vlad Serebrennikov (Endilll) Changes The test checks that objects in arrays are destructed in reverse order during stack unwinding. --- Full diff: https://github.com/llvm/llvm-project/pull/77637.diff 2 Files Affected: - (added) clang/t

[clang] 2c60d59 - [Flang] Support -mrvv-vector-bits flag (#77588)

2024-01-10 Thread via cfe-commits
Author: Luke Lau Date: 2024-01-11T00:37:01+07:00 New Revision: 2c60d59864ed8b2b26c4f0683ee7a1816c6d951e URL: https://github.com/llvm/llvm-project/commit/2c60d59864ed8b2b26c4f0683ee7a1816c6d951e DIFF: https://github.com/llvm/llvm-project/commit/2c60d59864ed8b2b26c4f0683ee7a1816c6d951e.diff LOG:

[clang] [llvm] [RISCV] Deduplicate version struct in RISCVISAInfo. NFC (PR #77645)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-support @llvm/pr-subscribers-clang Author: Luke Lau (lukel97) Changes We have two structs for representing the version of an extension in RISCVISAInfo, with the exact same fields. This patch deduplicates them. > [!NOTE] > When renaming the struct,

[llvm] [clang] [RISCV] Deduplicate version struct in RISCVISAInfo. NFC (PR #77645)

2024-01-10 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 14e291000f96c20e35ef494bd407f459b4617fca 916d4f271982501b7236d60b90c9fa822f7aa2a6 --

[llvm] [clang] [AArch64][SME] Fix multi vector cvt builtins (PR #77656)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Matthew Devereau (MDevereau) Changes This fixes cvt multi vector builtins that erroneously had inverted return vectors and vector parameters. This caused the incorrect instructions to be emitted. --- Patch is 38.88 KiB, truncated to 2

[clang] [clang][ExtractAPI] Add support C unions in non C++ parsing mode (PR #77451)

2024-01-10 Thread via cfe-commits
https://github.com/QuietMisdreavus edited https://github.com/llvm/llvm-project/pull/77451 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExtractAPI] Add support C unions in non C++ parsing mode (PR #77451)

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

[clang] [clang][ExtractAPI] Add support C unions in non C++ parsing mode (PR #77451)

2024-01-10 Thread via cfe-commits
@@ -1267,30 +1271,31 @@ class APISet { DeclarationFragments Declaration, DeclarationFragments SubHeading, bool IsFromSystemHeader); - /// Create and add a struct field record into the API set. + /// Create and add a record field r

[clang] cac6b1a - [OpenACC] Implement 'var' parsing correctly, support array sections (#77617)

2024-01-10 Thread via cfe-commits
Author: Erich Keane Date: 2024-01-10T10:26:49-08:00 New Revision: cac6b1a5420d76f4635696372849dbbf07a77376 URL: https://github.com/llvm/llvm-project/commit/cac6b1a5420d76f4635696372849dbbf07a77376 DIFF: https://github.com/llvm/llvm-project/commit/cac6b1a5420d76f4635696372849dbbf07a77376.diff L

[clang] [clang][dataflow] Fix bug in `Value` comparison. (PR #76746)

2024-01-10 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 11ac97c67a9315dce48fd938d68ae991e3559f10 b2a6821ea88f6ed3b38c6dca1e5c7aaeef4159a2 --

[clang] 3358c77 - [CMake] Deprecate GCC_INSTALL_PREFIX (#77537)

2024-01-10 Thread via cfe-commits
Author: Fangrui Song Date: 2024-01-10T11:01:55-08:00 New Revision: 3358c77b01fff71c586cc998dd80e06662d9e854 URL: https://github.com/llvm/llvm-project/commit/3358c77b01fff71c586cc998dd80e06662d9e854 DIFF: https://github.com/llvm/llvm-project/commit/3358c77b01fff71c586cc998dd80e06662d9e854.diff

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

2024-01-10 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/15] [libc++] Implement ranges::contains_subrange --- libcxx

[clang] e80b943 - [clang][Interp] Fix discarded integral and floating casts (#77295)

2024-01-10 Thread via cfe-commits
Author: Timm Baeder Date: 2024-01-10T20:19:04+01:00 New Revision: e80b9436476bba714e843461e03227b222185f7b URL: https://github.com/llvm/llvm-project/commit/e80b9436476bba714e843461e03227b222185f7b DIFF: https://github.com/llvm/llvm-project/commit/e80b9436476bba714e843461e03227b222185f7b.diff L

[clang] [clang][NFC] Improve comments in C++ DR test suite (PR #77670)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Vlad Serebrennikov (Endilll) Changes Previously, we've been mentioning tests that were placed in their own files in corresponding `drNNxx.cpp` file. This patch makes sure we do this consistently, and improves upon existing practice by spe

[clang] [clang][NFC] Improve comments in C++ DR test suite (PR #77670)

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

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-01-10 Thread via cfe-commits
https://github.com/sethp updated https://github.com/llvm/llvm-project/pull/74852 >From f281d34a51f662c934f158e4770774b0dc3588a2 Mon Sep 17 00:00:00 2001 From: Seth Pellegrino Date: Thu, 7 Dec 2023 08:45:51 -0800 Subject: [PATCH 1/8] [Clang][Sema] Print more static_assert exprs This change intro

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-01-10 Thread via cfe-commits
@@ -0,0 +1,115 @@ +// RUN: %clang_cc1 -std=c++2a -verify %s + +struct A { + int a, b[3], c; + bool operator==(const A&) const = default; +}; + +constexpr auto a0 = A{0, 0, 3, 4, 5}; + +// expected-note@+1 {{evaluates to 'A{0, {0, 3, 4}, 5} == A{1, {2, 3, 4}, 5}'}} +static_assert

[clang] [clang] Add test for CWG1807 (PR #77637)

2024-01-10 Thread via cfe-commits
@@ -164,6 +164,8 @@ void A::C::f4() { } } // namespace dr1804 +// dr1807 is in separate file cor3ntin wrote: Missing a file? https://github.com/llvm/llvm-project/pull/77637 ___ cfe-commits mailing list cfe-commits@

[clang] 183eae0 - [HLSL][Docs] Add documentation for HLSL functions (#75397)

2024-01-10 Thread via cfe-commits
Author: Chris B Date: 2024-01-10T14:12:30-06:00 New Revision: 183eae0643719aac75ef689ee295b697d5367245 URL: https://github.com/llvm/llvm-project/commit/183eae0643719aac75ef689ee295b697d5367245 DIFF: https://github.com/llvm/llvm-project/commit/183eae0643719aac75ef689ee295b697d5367245.diff LOG:

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-01-10 Thread via cfe-commits
@@ -0,0 +1,115 @@ +// RUN: %clang_cc1 -std=c++2a -verify %s + +struct A { + int a, b[3], c; + bool operator==(const A&) const = default; +}; + +constexpr auto a0 = A{0, 0, 3, 4, 5}; + +// expected-note@+1 {{evaluates to 'A{0, {0, 3, 4}, 5} == A{1, {2, 3, 4}, 5}'}} +static_assert

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-01-10 Thread via cfe-commits
https://github.com/sethp edited https://github.com/llvm/llvm-project/pull/74852 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-01-10 Thread via cfe-commits
@@ -0,0 +1,115 @@ +// RUN: %clang_cc1 -std=c++2a -verify %s + +struct A { + int a, b[3], c; + bool operator==(const A&) const = default; +}; + +constexpr auto a0 = A{0, 0, 3, 4, 5}; + +// expected-note@+1 {{evaluates to 'A{0, {0, 3, 4}, 5} == A{1, {2, 3, 4}, 5}'}} +static_assert

[llvm] [clang] [mlir] [mlir][verifyMemref] Fix bug and support more types for verifyMemref (PR #77682)

2024-01-10 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 2dde029df8f9e3b2ece6899dc73bea226f227d11 abb4cfff1b74a34f074e3feccb5c03598ba48e64 --

[clang] [Clang][Sema] Print more static_assert exprs (PR #74852)

2024-01-10 Thread via cfe-commits
@@ -711,11 +712,54 @@ void APValue::printPretty(raw_ostream &Out, const PrintingPolicy &Policy, case APValue::Indeterminate: Out << ""; return; - case APValue::Int: + case APValue::Int: { +const APSInt &Val = getInt(); +if (const EnumType *ET = Ty->getAs())

[clang] [Headers][X86] Add more descriptions to ia32intrin.h and immintrin.h (PR #77686)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Paul T Robinson (pogo59) Changes ia32intrin.h gets descriptions for all remaining non-privileged intrinsic functions; the macros providing alternate names are not described. immintrin.h ditto, except for the InterlockedExchange func

[clang] [Headers][X86] Add more descriptions to ia32intrin.h and immintrin.h (PR #77686)

2024-01-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Paul T Robinson (pogo59) Changes ia32intrin.h gets descriptions for all remaining non-privileged intrinsic functions; the macros providing alternate names are not described. immintrin.h ditto, except for the InterlockedExchange functions.

[clang] [clang-format] Handle templated elaborated type specifier in function… (PR #77013)

2024-01-10 Thread via cfe-commits
https://github.com/XDeme updated https://github.com/llvm/llvm-project/pull/77013 >From 45d01cbc7ec958518b1739daa9e9b0dc35c2d194 Mon Sep 17 00:00:00 2001 From: XDeme Date: Thu, 4 Jan 2024 19:04:21 -0300 Subject: [PATCH 1/5] [clang-format] Handle templated elaborated type specifier in function re

<    50   51   52   53   54   55   56   57   58   59   >