[clang] [Clang][RISCV] Remove duplicate functions isRVVSizelessBuiltinType. NFC (PR #67089)

2023-10-01 Thread Yueh-Ting Chen via cfe-commits
eopXD wrote: Ping. https://github.com/llvm/llvm-project/pull/67089 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][OpenMP][OMPIRBuilder] Move Clang's OpenMP Member/MemberOf flag helpers into the OMPIRBuilder (PR #67844)

2023-10-01 Thread via cfe-commits
agozillon wrote: Thank you all very much, I'll land this on Tuesday afternoon/evening provided no one has anything else to add in the time between. And I'll see what I can do about adding an OpenMPIRBuilderTest.cpp to the patch. https://github.com/llvm/llvm-project/pull/67844

[clang-tools-extra] [libc++] Implement ranges::contains_subrange (PR #66963)

2023-10-01 Thread via cfe-commits
https://github.com/ZijunZhaoCCK converted_to_draft https://github.com/llvm/llvm-project/pull/66963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libc++] Implement ranges::contains_subrange (PR #66963)

2023-10-01 Thread via cfe-commits
https://github.com/ZijunZhaoCCK converted_to_draft https://github.com/llvm/llvm-project/pull/66963 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [libc++] Implement ranges::contains_subrange (PR #66963)

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

[clang] [libc++] Implement ranges::contains_subrange (PR #66963)

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

[clang] [clang] Add test for CWG472 (PR #67948)

2023-10-01 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/67948 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add test for CWG2267 (PR #67931)

2023-10-01 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll edited https://github.com/llvm/llvm-project/pull/67931 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Add test for CWG472 (PR #67948)

2023-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes https://cplusplus.github.io/CWG/issues/472.html It has drafting status, but I think CWG has reached consesus on the behavior. --- Full diff: https://github.com/llvm/llvm-project/pull/67948.diff 2 Files Affected: - (modified)

[clang] [clang] Add test for CWG472 (PR #67948)

2023-10-01 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll created https://github.com/llvm/llvm-project/pull/67948 https://cplusplus.github.io/CWG/issues/472.html It has drafting status, but I think CWG has reached consesus on the behavior. >From ad0df2131e12c59e57b603b955626e27e3067505 Mon Sep 17 00:00:00 2001 From: Vlad

[clang] [clang] Enable Wenum-constexpr-conversion also in system headers and … (PR #67528)

2023-10-01 Thread David Blaikie via cfe-commits
Carlos =?utf-8?q?Gálvez?= , Carlos =?utf-8?q?Gálvez?= Message-ID: In-Reply-To: dwblaikie wrote: > It seems checks are broken on trunk, I see commits merged with failing > pre-merge tests. They seem to be unrelated to this patch though. > > Is there anything else you'd like fixed before

[clang] [clang][Modules] Make `Module::Requirement` a struct (PR #67900)

2023-10-01 Thread David Blaikie via cfe-commits
https://github.com/dwblaikie approved this pull request. Awesome - love a good readability improvement. Thanks! https://github.com/llvm/llvm-project/pull/67900 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang][ExprConst] Fix crash on uninitialized array subobject (PR #67817)

2023-10-01 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: I am a bit concerned we don't fully understand how to recover the old diagnostic. I left a comment that I think may help but I think we need to understand this a bit better before committing to a fix. https://github.com/llvm/llvm-project/pull/67817

[clang] [clang][ExprConst] Fix crash on uninitialized array subobject (PR #67817)

2023-10-01 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/67817 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][ExprConst] Fix crash on uninitialized array subobject (PR #67817)

2023-10-01 Thread Shafik Yaghmour via cfe-commits
@@ -2411,10 +2411,15 @@ static bool CheckEvaluationResult(CheckEvaluationResultKind CERK, const FieldDecl *SubobjectDecl, CheckedTemporaries ) { if (!Value.hasValue()) { -assert(SubobjectDecl &&

[clang] [Clang] Fix missing diagnostic for non-standard layout type in `offsetof` (PR #65246)

2023-10-01 Thread via cfe-commits
https://github.com/kasuga-fj updated https://github.com/llvm/llvm-project/pull/65246 >From 7d59f47b9b18ee5db90bb9fd69a1f73f68569ae4 Mon Sep 17 00:00:00 2001 From: "kasuga.ryotaro" Date: Wed, 30 Aug 2023 13:26:31 +0900 Subject: [PATCH 01/12] [Clang] Fix missing diagnostic for non-standard

[clang-tools-extra] [Support] Add KnownBits::computeForSubBorrow (PR #67788)

2023-10-01 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/67788 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Support] Add KnownBits::computeForSubBorrow (PR #67788)

2023-10-01 Thread Shafik Yaghmour via cfe-commits
@@ -85,6 +85,18 @@ KnownBits KnownBits::computeForAddSub(bool Add, bool NSW, return KnownOut; } +KnownBits KnownBits::computeForSubBorrow(const KnownBits , KnownBits RHS, + const KnownBits ) { + assert(Borrow.getBitWidth() == 1 &&

[clang] [Clang] Add __datasizeof (PR #67805)

2023-10-01 Thread Shafik Yaghmour via cfe-commits
@@ -0,0 +1,34 @@ +// RUN: %clang_cc1 -fsyntax-only -triple x86_64-linux-gnu -verify %s shafik wrote: Maybe we should add tests to show parallels with `sizeof` e.g` *void* types and incomplete types. Also w/o parens etc

[clang] [Clang] Add __datasizeof (PR #67805)

2023-10-01 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik commented: Looks good but Aaron should look at it as well. https://github.com/llvm/llvm-project/pull/67805 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Add __datasizeof (PR #67805)

2023-10-01 Thread Shafik Yaghmour via cfe-commits
@@ -5038,19 +5039,19 @@ void CXXNameMangler::mangleExpression(const Expr *E, unsigned Arity, Out << 'a'; MangleAlignofSizeofArg(); break; +case UETT_DataSizeOf: { + Context.getDiags().Report(diag::err_cannot_mangle_expression) + <<

[clang] [Clang] Add __datasizeof (PR #67805)

2023-10-01 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik edited https://github.com/llvm/llvm-project/pull/67805 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Fix missing diagnostic for non-standard layout type in `offsetof` (PR #65246)

2023-10-01 Thread via cfe-commits
https://github.com/kasuga-fj updated https://github.com/llvm/llvm-project/pull/65246 >From 7d59f47b9b18ee5db90bb9fd69a1f73f68569ae4 Mon Sep 17 00:00:00 2001 From: "kasuga.ryotaro" Date: Wed, 30 Aug 2023 13:26:31 +0900 Subject: [PATCH 01/11] [Clang] Fix missing diagnostic for non-standard

[clang] [Clang] Fix missing diagnostic for non-standard layout type in `offsetof` (PR #65246)

2023-10-01 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 97829935844e7f35216e12c13231f35fbea640c3 b9e201a80ee7e79f8ddfe37fee097b8efddc0a8a --

[clang] [Clang] Fix missing diagnostic for non-standard layout type in `offsetof` (PR #65246)

2023-10-01 Thread via cfe-commits
https://github.com/kasuga-fj updated https://github.com/llvm/llvm-project/pull/65246 >From 7d59f47b9b18ee5db90bb9fd69a1f73f68569ae4 Mon Sep 17 00:00:00 2001 From: "kasuga.ryotaro" Date: Wed, 30 Aug 2023 13:26:31 +0900 Subject: [PATCH 01/10] [Clang] Fix missing diagnostic for non-standard

[clang] [Clang] Fix missing diagnostic for non-standard layout type in `offsetof` (PR #65246)

2023-10-01 Thread via cfe-commits
https://github.com/kasuga-fj updated https://github.com/llvm/llvm-project/pull/65246 >From 7d59f47b9b18ee5db90bb9fd69a1f73f68569ae4 Mon Sep 17 00:00:00 2001 From: "kasuga.ryotaro" Date: Wed, 30 Aug 2023 13:26:31 +0900 Subject: [PATCH 1/9] [Clang] Fix missing diagnostic for non-standard layout

[clang] [Clang] Fix missing diagnostic for non-standard layout type in `offsetof` (PR #65246)

2023-10-01 Thread via cfe-commits
https://github.com/kasuga-fj updated https://github.com/llvm/llvm-project/pull/65246 >From cc6f7f7cb125f544de708830b3a9c0f39745ed1f Mon Sep 17 00:00:00 2001 From: "kasuga.ryotaro" Date: Wed, 30 Aug 2023 13:26:31 +0900 Subject: [PATCH 1/9] [Clang] Fix missing diagnostic for non-standard layout

[clang] [mlir][affine] Check the input vector sizes to be greater than 0 (PR #65293)

2023-10-01 Thread Kai Sasaki via cfe-commits
https://github.com/Lewuathe closed https://github.com/llvm/llvm-project/pull/65293 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [mlir][affine] Check the input vector sizes to be greater than 0 (PR #65293)

2023-10-01 Thread Kai Sasaki via cfe-commits
https://github.com/Lewuathe closed https://github.com/llvm/llvm-project/pull/65293 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] Ensure NoTrapAfterNoreturn is false for the wasm backend (PR #65876)

2023-10-01 Thread Matt Harding via cfe-commits
https://github.com/majaha updated https://github.com/llvm/llvm-project/pull/65876 >From 7c43c803764bf9e0256d4e3e9f497d2622bb8f69 Mon Sep 17 00:00:00 2001 From: Matt Harding Date: Fri, 25 Aug 2023 06:19:14 +0100 Subject: [PATCH 01/10] Add no-trap-after-noreturn flag and wasm tests Add the

[clang] Ensure NoTrapAfterNoreturn is false for the wasm backend (PR #65876)

2023-10-01 Thread Matt Harding via cfe-commits
https://github.com/majaha updated https://github.com/llvm/llvm-project/pull/65876 >From 7c43c803764bf9e0256d4e3e9f497d2622bb8f69 Mon Sep 17 00:00:00 2001 From: Matt Harding Date: Fri, 25 Aug 2023 06:19:14 +0100 Subject: [PATCH 01/10] Add no-trap-after-noreturn flag and wasm tests Add the

[clang] [clang] fix hasAnyBase not binding submatchers (PR #67939)

2023-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes The BoundNodesTreeBuilder used in the BaseSpecMatcher was the original and was reset to its original state if a match occurred. The matcher now uses the local copy in the inner matcher. Fixes #65421 --- Full diff:

[clang] [clang] fix hasAnyBase not binding submatchers (PR #67939)

2023-10-01 Thread via cfe-commits
https://github.com/5chmidti created https://github.com/llvm/llvm-project/pull/67939 The BoundNodesTreeBuilder used in the BaseSpecMatcher was the original and was reset to its original state if a match occurred. The matcher now uses the local copy in the inner matcher. Fixes #65421 >From

[clang] [NFC][clang] change remaining context-dependent type nodes to ContextualFoldingSet (PR #67751)

2023-10-01 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/67751 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][clang] change remaining context-dependent type nodes to ContextualFoldingSet (PR #67751)

2023-10-01 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov edited https://github.com/llvm/llvm-project/pull/67751 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][clang] change remaining context-dependent type nodes to ContextualFoldingSet (PR #67751)

2023-10-01 Thread Matheus Izvekov via cfe-commits
mizvekov wrote: Thanks for the review. I think the change stands on itself, as we are avoiding storing one pointer per Type Node instance, for the cost of one extra pointer per ASTContext, which is negligible. These type nodes we are changing here are old, at least as far back as 2008. In

[clang] [NFC][clang] change remaining context-dependent type nodes to ContextualFoldingSet (PR #67751)

2023-10-01 Thread Shafik Yaghmour via cfe-commits
shafik wrote: Thank you for the PR. Could you provide some context in the PR description? From the title it sounds like there were prior changes that this is finishing. It would be helpful to have a link to those prior changes. https://github.com/llvm/llvm-project/pull/67751

[clang] [clang-format] Fix a bug in RemoveParentheses: ReturnStatement (PR #67911)

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

[clang] [mlir][affine] Check the input vector sizes to be greater than 0 (PR #65293)

2023-10-01 Thread Sergei Grechanik via cfe-commits
https://github.com/sergei-grechanik approved this pull request. https://github.com/llvm/llvm-project/pull/65293 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [mlir][affine] Check the input vector sizes to be greater than 0 (PR #65293)

2023-10-01 Thread Sergei Grechanik via cfe-commits
https://github.com/sergei-grechanik approved this pull request. https://github.com/llvm/llvm-project/pull/65293 ___ 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 bug in modernize-use-emplace (PR #66169)

2023-10-01 Thread Chris Cotter via cfe-commits
https://github.com/ccotter updated https://github.com/llvm/llvm-project/pull/66169 >From d8c40ccc6744d350b8bc530917accd1d8d87118e Mon Sep 17 00:00:00 2001 From: Chris Cotter Date: Mon, 11 Sep 2023 00:05:54 -0400 Subject: [PATCH 1/3] [clang-tidy] Fix bug in modernize-use-emplace emplace_back

[clang] [clang] Implement constexpr bit_cast for vectors (PR #66894)

2023-10-01 Thread Richard Smith via cfe-commits
@@ -7304,6 +7382,21 @@ class BufferToAPValueConverter { return ArrayValue; } + std::optional visit(const VectorType *Ty, CharUnits Offset) { +SmallVector Bytes; +if (!Buffer.readObject(Offset, Info.Ctx.getTypeSizeInChars(Ty), Bytes)) + return std::nullopt;

[clang] [clang] [MinGW] Tolerate mingw specific linker options during compilation (PR #67891)

2023-10-01 Thread Martin Storsjö via cfe-commits
https://github.com/mstorsjo closed https://github.com/llvm/llvm-project/pull/67891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] e39de2b - [clang] [MinGW] Tolerate mingw specific linker options during compilation (#67891)

2023-10-01 Thread via cfe-commits
Author: Martin Storsjö Date: 2023-10-01T23:42:16+03:00 New Revision: e39de2b8862ae43459324da84279366997265078 URL: https://github.com/llvm/llvm-project/commit/e39de2b8862ae43459324da84279366997265078 DIFF:

[clang] Qualify non-dependent types of a class template with its declaration (PR #67566)

2023-10-01 Thread Luca Di sera via cfe-commits
diseraluca wrote: @vgvassilev If that is an acceptable interface for the LLVM interface then, yes, it would be perfect from our side, and I'm more than happy to update the PR in the next few days. Just to be sure that I understood your proposal. `getFullyQualified*` calls will accept a new

[clang] [clang] Enable Wenum-constexpr-conversion also in system headers and … (PR #67528)

2023-10-01 Thread Carlos Galvez via cfe-commits
Carlos =?utf-8?q?Gálvez?= , Carlos =?utf-8?q?Gálvez?= Message-ID: In-Reply-To: carlosgalvezp wrote: It seems checks are broken on trunk, I see commits merged with failing pre-merge tests. They seem to be unrelated to this patch though. Is there anything else you'd like fixed before merging?

[clang] [clang] Add test for CWG2267 (PR #67931)

2023-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes Related: #63416 --- Full diff: https://github.com/llvm/llvm-project/pull/67931.diff 2 Files Affected: - (modified) clang/test/CXX/drs/dr22xx.cpp (+22) - (modified) clang/www/cxx_dr_status.html (+1-1) ``diff diff --git

[clang] [clang] Add test for CWG2267 (PR #67931)

2023-10-01 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll created https://github.com/llvm/llvm-project/pull/67931 Related: #63416 >From 4720a0f6bce7b1531dec2005d642938db1370335 Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Sun, 1 Oct 2023 21:28:21 +0300 Subject: [PATCH] [clang] Add test for CWG2267 ---

[clang] [InstCombine] Add combines/simplifications for `llvm.ptrmask` (PR #67166)

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

[clang] remove duplicate ModuleId alias (PR #67899)

2023-10-01 Thread David Stone via cfe-commits
davidstone wrote: @ChuanqiXu9 https://github.com/llvm/llvm-project/pull/67899 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Modules] Make `Module::Requirement` a struct (PR #67900)

2023-10-01 Thread David Stone via cfe-commits
davidstone wrote: @ChuanqiXu9 https://github.com/llvm/llvm-project/pull/67900 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Modules] `checkModuleIsAvailable` should use a const & parameter instead of pointer (PR #67902)

2023-10-01 Thread David Stone via cfe-commits
davidstone wrote: @ChuanqiXu9 https://github.com/llvm/llvm-project/pull/67902 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Interp] Add IntegralAP for arbitrary-precision integers (PR #65844)

2023-10-01 Thread Nico Weber via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: nico wrote: Looks like this doesn't build on windows: http://45.33.8.238/win/84383/step_4.txt Please take a look and revert for now if it takes

[clang] [clang][Modules] Move `ASTSourceDescriptor` into its own file (PR #67930)

2023-10-01 Thread David Stone via cfe-commits
https://github.com/davidstone created https://github.com/llvm/llvm-project/pull/67930 None >From a52da2e5889f14bcc36ae4263518a49e1e85c244 Mon Sep 17 00:00:00 2001 From: David Stone Date: Sun, 1 Oct 2023 12:02:48 -0600 Subject: [PATCH] [clang][Modules] Move `ASTSourceDescriptor` into its own

[PATCH] D154869: [Flang] [FlangRT] Introduce FlangRT project as solution to Flang's runtime LLVM integration

2023-10-01 Thread Matheus Izvekov via Phabricator via cfe-commits
mizvekov added a comment. This broke a buildbot, as a user reported on discord: https://buildkite.com/llvm-project/github-pull-requests/builds/5171#018aec0c-75ba-431a-a5c8-6a5cba51de28 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D154869/new/

[clang] [clang][Interp] Implement __builtin_popcount() (PR #67929)

2023-10-01 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr created https://github.com/llvm/llvm-project/pull/67929 None >From ce44117306858aa1bff3766dc640201ffd99a89f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sun, 1 Oct 2023 19:41:15 +0200 Subject: [PATCH] [clang][Interp] Implement

[clang] c77b2ad - [clang][Interp] Disable int128 tests on targets that don't have int128

2023-10-01 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2023-10-01T19:18:48+02:00 New Revision: c77b2ad00ba465698783e3a4a9b7af07c337171c URL: https://github.com/llvm/llvm-project/commit/c77b2ad00ba465698783e3a4a9b7af07c337171c DIFF: https://github.com/llvm/llvm-project/commit/c77b2ad00ba465698783e3a4a9b7af07c337171c.diff

[clang] [clang][Interp] Add IntegralAP for arbitrary-precision integers (PR #65844)

2023-10-01 Thread Timm Baeder via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: @@ -26,6 +28,66 @@ static_assert(number != 10, ""); // expected-error{{failed}} \ //

[clang] -fsanitize=alignment: check memcpy/memmove arguments (PR #67766)

2023-10-01 Thread Richard Smith via cfe-commits
zygoloid wrote: > @zygoloid Is reusing the message for regular stores clear (current behavior) > enough? > > ``` > // CHECK-MEMCPY-STORE: misaligned.cpp:[[#@LINE+4]]{{(:12)?}}: runtime error: > store to misaligned address [[PTR:0x[0-9a-f]*]] for type 'int *', which > requires 4 byte

[clang] [libclang] Visit function template instantiations (PR #67928)

2023-10-01 Thread Daan Vanoverloop via cfe-commits
https://github.com/Danacus updated https://github.com/llvm/llvm-project/pull/67928 >From a516d2c53451db78147a631b5c092dbfeba73e89 Mon Sep 17 00:00:00 2001 From: Daan Vanoverloop Date: Sun, 1 Oct 2023 18:48:26 +0200 Subject: [PATCH 1/4] [libclang] Add support for template arguments of

[PATCH] D154869: [Flang] [FlangRT] Introduce FlangRT project as solution to Flang's runtime LLVM integration

2023-10-01 Thread Paul Scoropan via Phabricator via cfe-commits
pscoro added a comment. In D154869#4652224 , @sylvestre.ledru wrote: > With this patch, it started to fail with: > It would be nice to have a better error message suggesting what to do > > -- Performing Test HAVE_DECL_STRERROR_S > -- Performing Test

[clang] [libclang] Visit function template instantiations (PR #67928)

2023-10-01 Thread Daan Vanoverloop via cfe-commits
https://github.com/Danacus updated https://github.com/llvm/llvm-project/pull/67928 >From a516d2c53451db78147a631b5c092dbfeba73e89 Mon Sep 17 00:00:00 2001 From: Daan Vanoverloop Date: Sun, 1 Oct 2023 18:48:26 +0200 Subject: [PATCH 1/3] [libclang] Add support for template arguments of

[clang] [libclang] Visit function template instantiations (PR #67928)

2023-10-01 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 632022e61c54428068576685b4743f105f2e fa471bdf99b7d4e44f92c6e88af4f3d9876f6b95 --

[clang] [libclang] Visit function template instantiations (PR #67928)

2023-10-01 Thread Daan Vanoverloop via cfe-commits
https://github.com/Danacus created https://github.com/llvm/llvm-project/pull/67928 This PR changes `CursorVisitor::VisitFunctionTemplateDecl` such that instantiations of the function template (e.g. `template void foo();`) are visited as children of the `FunctionTemplateDecl`. This also

[PATCH] D154869: [Flang] [FlangRT] Introduce FlangRT project as solution to Flang's runtime LLVM integration

2023-10-01 Thread Sylvestre Ledru via Phabricator via cfe-commits
sylvestre.ledru added a comment. With this patch, it started to fail with: It would be nice to have a better error message suggesting what to do -- Performing Test HAVE_DECL_STRERROR_S -- Performing Test HAVE_DECL_STRERROR_S - Failed CMake Error at

[clang] Qualify non-dependent types of a class template with its declaration (PR #67566)

2023-10-01 Thread Vassil Vassilev via cfe-commits
vgvassilev wrote: @diseraluca, since this code touches a case where we do some best effort recovery, would it be possible to change that interface to take a lambda/callback function and specialize it in your end to cover the docs case? https://github.com/llvm/llvm-project/pull/67566

[clang] Qualify non-dependent types of a class template with its declaration (PR #67566)

2023-10-01 Thread Luca Di sera via cfe-commits
diseraluca wrote: > I still do not see why the proposed solution would not work. If it solves > the minimal case that you provided in the description of this PR, I am afraid > that there is some bit from the Qt setup that we do not understand. I cannot for certain say if there is an issue or

[clang] remove duplicate ModuleId alias (PR #67899)

2023-10-01 Thread David Stone via cfe-commits
https://github.com/davidstone updated https://github.com/llvm/llvm-project/pull/67899 >From 3583e0420b5de21a88f3e7d1289f3b272e680a98 Mon Sep 17 00:00:00 2001 From: David Stone Date: Sat, 30 Sep 2023 22:30:29 -0600 Subject: [PATCH] [clang] Remove duplicate `ModuleId` alias This alias is

[clang] [clang][Modules] Make `Module::Requirement` a struct (PR #67900)

2023-10-01 Thread David Stone via cfe-commits
https://github.com/davidstone updated https://github.com/llvm/llvm-project/pull/67900 >From 858a76e16a772078b29452645c5beb223c06dc8e Mon Sep 17 00:00:00 2001 From: David Stone Date: Sat, 30 Sep 2023 22:57:34 -0600 Subject: [PATCH 1/2] [clang][Modules] Make `Module::Requirement` a struct

[clang] [clang][Modules] `checkModuleIsAvailable` should use a const & parameter instead of pointer (PR #67902)

2023-10-01 Thread David Stone via cfe-commits
https://github.com/davidstone updated https://github.com/llvm/llvm-project/pull/67902 >From 63c7f357cedd2633feac36ec07892243661764d9 Mon Sep 17 00:00:00 2001 From: David Stone Date: Sun, 1 Oct 2023 00:41:34 -0600 Subject: [PATCH] [clang][Modules] `checkModuleIsAvailable` should use a const &

[clang] [clang][Interp] Add IntegralAP for arbitrary-precision integers (PR #65844)

2023-10-01 Thread Sergei Barannikov via cfe-commits
Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= , Timm =?utf-8?q?Bäder?= Message-ID: In-Reply-To: @@ -26,6 +28,66 @@ static_assert(number != 10, ""); // expected-error{{failed}} \ //

[clang] [clang] [MinGW] Tolerate mingw specific linker options during compilation (PR #67891)

2023-10-01 Thread via cfe-commits
https://github.com/alvinhochun approved this pull request. Thanks, looks good to me codewise. I haven't tested it myself but I trust that you have. This seems worth backporting to 17.x since it technically fixes a new regression. https://github.com/llvm/llvm-project/pull/67891

[clang] [clang] Enable Wenum-constexpr-conversion also in system headers and … (PR #67528)

2023-10-01 Thread Carlos Galvez via cfe-commits
Carlos =?utf-8?q?Gálvez?= , Carlos =?utf-8?q?Gálvez?= Message-ID: In-Reply-To: https://github.com/carlosgalvezp updated https://github.com/llvm/llvm-project/pull/67528 >From 7a70366e08f2c2f1181bb74f7716d8b1e3f1b62e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20G=C3=A1lvez?= Date: Wed,

[clang-tools-extra] [clangd] Allow specifying what headers are always included via "" or <> (PR #67749)

2023-10-01 Thread kleines Filmröllchen via cfe-commits
kleinesfilmroellchen wrote: Thanks for the finding @zyn0217, refactored the config compiler code a little. Tests should pass now and I have re-tested this on SerenityOS and other small project where it works as expected in practice. https://github.com/llvm/llvm-project/pull/67749

[clang-tools-extra] [clangd] Allow specifying what headers are always included via "" or <> (PR #67749)

2023-10-01 Thread kleines Filmröllchen via cfe-commits
https://github.com/kleinesfilmroellchen updated https://github.com/llvm/llvm-project/pull/67749 From 167048c7025a516a5e57009947333c3980017107 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?kleines=20Filmr=C3=B6llchen?= Date: Sun, 1 Oct 2023 14:48:57 +0200 Subject: [PATCH] [clangd] Allow specifying

[clang-tools-extra] [InstCombine] Simplify the pattern `a ne/eq (zext/sext (a ne/eq c))` (PR #65852)

2023-10-01 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/65852 >From d9d8bcbb98e8f5aecb9733329389d61a489bd731 Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Sat, 9 Sep 2023 23:07:29 +0800 Subject: [PATCH 1/9] [InstCombine] Simplify the pattern `a ne/eq (zext (a ne/eq

[clang] [InstCombine] Simplify the pattern `a ne/eq (zext/sext (a ne/eq c))` (PR #65852)

2023-10-01 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/65852 >From d9d8bcbb98e8f5aecb9733329389d61a489bd731 Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Sat, 9 Sep 2023 23:07:29 +0800 Subject: [PATCH 1/9] [InstCombine] Simplify the pattern `a ne/eq (zext (a ne/eq

[clang-tools-extra] [InstCombine] Simplify the pattern `a ne/eq (zext/sext (a ne/eq c))` (PR #65852)

2023-10-01 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/65852 >From d9d8bcbb98e8f5aecb9733329389d61a489bd731 Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Sat, 9 Sep 2023 23:07:29 +0800 Subject: [PATCH 1/9] [InstCombine] Simplify the pattern `a ne/eq (zext (a ne/eq

[clang] [InstCombine] Simplify the pattern `a ne/eq (zext/sext (a ne/eq c))` (PR #65852)

2023-10-01 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/65852 >From d9d8bcbb98e8f5aecb9733329389d61a489bd731 Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Sat, 9 Sep 2023 23:07:29 +0800 Subject: [PATCH 1/9] [InstCombine] Simplify the pattern `a ne/eq (zext (a ne/eq

[clang-tools-extra] [Support] Add KnownBits::computeForSubBorrow (PR #67788)

2023-10-01 Thread Nikita Popov via cfe-commits
@@ -3732,14 +3732,18 @@ KnownBits SelectionDAG::computeKnownBits(SDValue Op, const APInt , assert(Op.getResNo() == 0 && "We only compute knownbits for the difference here."); -// TODO: Compute influence of the carry operand. -if (Opcode ==

[libunwind] [Support] Add KnownBits::computeForSubBorrow (PR #67788)

2023-10-01 Thread Nikita Popov via cfe-commits
@@ -3732,14 +3732,18 @@ KnownBits SelectionDAG::computeKnownBits(SDValue Op, const APInt , assert(Op.getResNo() == 0 && "We only compute knownbits for the difference here."); -// TODO: Compute influence of the carry operand. -if (Opcode ==

[clang] [Support] Add KnownBits::computeForSubBorrow (PR #67788)

2023-10-01 Thread Nikita Popov via cfe-commits
@@ -3732,14 +3732,18 @@ KnownBits SelectionDAG::computeKnownBits(SDValue Op, const APInt , assert(Op.getResNo() == 0 && "We only compute knownbits for the difference here."); -// TODO: Compute influence of the carry operand. -if (Opcode ==

[clang] [InstCombine] Simplify the pattern `a ne/eq (zext/sext (a ne/eq c))` (PR #65852)

2023-10-01 Thread Yingwei Zheng via cfe-commits
@@ -6380,7 +6380,71 @@ Instruction *InstCombinerImpl::foldICmpUsingBoolRange(ICmpInst ) { Y->getType()->isIntOrIntVectorTy(1) && Pred == ICmpInst::ICMP_ULE) return BinaryOperator::CreateOr(Builder.CreateIsNull(X), Y); + // icmp eq/ne X, (zext/sext (icmp eq/ne X,

[clang] [RISCV] Eliminate dead li after emitting VSETVLIs (PR #65934)

2023-10-01 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/65934 >From 2fe5756dd4d49580d3a23b0ff1b72535f725915e Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Mon, 11 Sep 2023 15:51:46 +0800 Subject: [PATCH 1/4] [RISCV] Eliminate dead li after emitting VSETVLIs ---

[clang] Make -frewrite-includes put an endif at the end of the included text (PR #67613)

2023-10-01 Thread Dana Jansens via cfe-commits
danakj wrote: I was just lamenting the lack of this feature this week. Thank you, I can’t wait to use it. https://github.com/llvm/llvm-project/pull/67613 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang-format] Fix a bug in RemoveParentheses: ReturnStatement (PR #67911)

2023-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Changes Don't remove the outermost parentheses surrounding a return statement expression when inside a function/lambda that has the decltype(auto) return type. Fixed #67892. --- Full diff:

[clang] [clang-format] Fix a bug in RemoveParentheses: ReturnStatement (PR #67911)

2023-10-01 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/67911 Don't remove the outermost parentheses surrounding a return statement expression when inside a function/lambda that has the decltype(auto) return type. Fixed #67892. >From

[clang-tools-extra] [Support] Add KnownBits::computeForSubBorrow (PR #67788)

2023-10-01 Thread Christian Kissig via cfe-commits
https://github.com/christiankissig updated https://github.com/llvm/llvm-project/pull/67788 >From 5d86936c3a48c613460983c980271fcab8128b75 Mon Sep 17 00:00:00 2001 From: Christian Kissig Date: Tue, 26 Sep 2023 12:18:59 + Subject: [PATCH 1/5] [Support] Add KnownBits::computeForSubBorrow *

[PATCH] D155610: [Clang][Sema] Fix display of characters on static assertion failure

2023-10-01 Thread Corentin Jabot via Phabricator via cfe-commits
cor3ntin added a comment. @hazohelet Please keep this patch on Phab. It's not going to be shutdown. The current consensus is that we will reconsider shutting down phab on November 15 https://discourse.llvm.org/t/update-on-github-pull-requests/71540/125 CHANGES SINCE LAST ACTION

[clang] [clang][Modules] `checkModuleIsAvailable` should use a const & parameter instead of pointer (PR #67902)

2023-10-01 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes The `Module` parameter to `checkModuleIsAvailable` is currently passed by pointer to non-const. However, it requires only const access and it cannot be null. Change this to be a reference to const instead. This then makes it obvious that

[clang] [clang][Modules] `checkModuleIsAvailable` should use a const & parameter instead of pointer (PR #67902)

2023-10-01 Thread David Stone via cfe-commits
https://github.com/davidstone created https://github.com/llvm/llvm-project/pull/67902 The `Module` parameter to `checkModuleIsAvailable` is currently passed by pointer to non-const. However, it requires only const access and it cannot be null. Change this to be a reference to const instead.