[clang] [clang][NFC] Specify Type and ExtQuals as having 16-byte alignment (PR #68377)

2023-10-07 Thread Vlad Serebrennikov via cfe-commits
https://github.com/Endilll updated https://github.com/llvm/llvm-project/pull/68377 >From 8503ff3e70e585a4a3597e3ee8111269f48105cc Mon Sep 17 00:00:00 2001 From: Vlad Serebrennikov Date: Thu, 5 Oct 2023 13:18:14 +0300 Subject: [PATCH 1/3] [clang] Align Type and ExtQuals on 16-byte boundary ---

[clang] [clang][NFC] Specify Type and ExtQuals as having 16-byte alignment (PR #68377)

2023-10-07 Thread Vlad Serebrennikov via cfe-commits
@@ -1507,6 +1508,9 @@ class ExtQuals : public ExtQualsTypeCommonBase, public llvm::FoldingSetNode { : ExtQualsTypeCommonBase(baseType, canon.isNull() ? QualType(this_(), 0) : canon), Quals(quals) { +static_assert(alignof(decltyp

[clang] [clang][NFC] Specify Type and ExtQuals as having 16-byte alignment (PR #68377)

2023-10-07 Thread Vlad Serebrennikov via cfe-commits
@@ -1982,9 +1986,9 @@ class alignas(8) Type : public ExtQualsTypeCommonBase { Type(TypeClass tc, QualType canon, TypeDependence Dependence) : ExtQualsTypeCommonBase(this, canon.isNull() ? QualType(this_(), 0) : canon) { -static_assert(

[clang] 3a158cc - [clang] Fix -Wreorder-ctor of DependentFunctionTemplateSpecializationInfo (NFC)

2023-10-07 Thread Jie Fu via cfe-commits
Author: Jie Fu Date: 2023-10-07T15:33:22+08:00 New Revision: 3a158cc875a383e2d5b8da487633e53d061942f1 URL: https://github.com/llvm/llvm-project/commit/3a158cc875a383e2d5b8da487633e53d061942f1 DIFF: https://github.com/llvm/llvm-project/commit/3a158cc875a383e2d5b8da487633e53d061942f1.diff LOG: [

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

2023-10-07 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/6] [libclang] Add support for template arguments of CXXMethod

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

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

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

2023-10-07 Thread Daan Vanoverloop via cfe-commits
https://github.com/Danacus updated https://github.com/llvm/llvm-project/pull/67928 >From a137ab3f276bfc7f31ff12811232420aa4d7d308 Mon Sep 17 00:00:00 2001 From: Daan Vanoverloop Date: Sat, 7 Oct 2023 10:43:32 +0200 Subject: [PATCH 1/2] [libclang] Add support for template arguments of CXXMethod

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-10-07 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?= , 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: tbaederr wrote: Preliminary results show a sli

[PATCH] D158266: [OpenMP] Patch for Support to loop bind clause : Checking Parent Region

2023-10-07 Thread Sunil K via Phabricator via cfe-commits
koops updated this revision to Diff 557639. koops added a comment. Avoiding executing "checkNestingOfRegions( )" multiple times. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D158266/new/ https://reviews.llvm.org/D158266 Files: clang/include/clang/Sema/Sema.h clang/lib/Sema/SemaOpen

[clang] [AIX] recognize vsr in inline asm for AIX (PR #68476)

2023-10-07 Thread Chen Zheng via cfe-commits
https://github.com/chenzheng1030 created https://github.com/llvm/llvm-project/pull/68476 Extend `PPCTargetInfo::getGCCAddlRegNames()` to aix as well. The definition should be common between Linux PPC and AIX PPC. I also use "abi" as the ABI name for AIX ABI. This aligns with LLVM PPCSubtarget

[clang] [AIX] recognize vsr in inline asm for AIX (PR #68476)

2023-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes Extend `PPCTargetInfo::getGCCAddlRegNames()` to aix as well. The definition should be common between Linux PPC and AIX PPC. I also use "abi" as the ABI name for AIX ABI. This aligns with LLVM PPCSubtarget: ``` bool isAIXABI() const { re

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-10-07 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?= , 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: https://github.com/tbaederr updated https://gi

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-10-07 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?= , 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: https://github.com/tba

[clang] [clang][Diagnostics] Highlight code snippets (PR #66514)

2023-10-07 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?= , 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: @@ -8

[clang] [clang][Interp] Emit dummy values for unknown C variables (PR #66749)

2023-10-07 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr updated https://github.com/llvm/llvm-project/pull/66749 >From 1d36bdbd1e876adb5c39cf8e06c8387d5de1ab71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 19 Sep 2023 08:47:01 +0200 Subject: [PATCH] [clang][Interp] Emit dummy values for unknown C

[clang] 116a1ae - Fix Clang Sphinx build

2023-10-07 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2023-10-07T08:54:32-04:00 New Revision: 116a1aeff5ea680283d02226762095ff00647f04 URL: https://github.com/llvm/llvm-project/commit/116a1aeff5ea680283d02226762095ff00647f04 DIFF: https://github.com/llvm/llvm-project/commit/116a1aeff5ea680283d02226762095ff00647f04.diff

[clang] [clang][driver] Support option '-r' for target AVR (PR #68484)

2023-10-07 Thread Ben Shi via cfe-commits
https://github.com/benshi001 created https://github.com/llvm/llvm-project/pull/68484 If '-r' is specified with target AVR: 1. Do not link to the avr-libc. 2. Do not emit some conflict options. 3. Do not emit any sub-target related address information/warning. >From ddf6da9bbbc6a5a65ae34912d176

[clang] [clang][driver] Support option '-r' for target AVR (PR #68484)

2023-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes If '-r' is specified with target AVR: 1. Do not link to the avr-libc. 2. Do not emit some conflict options. 3. Do not emit any sub-target related address information/warning. --- Full diff: https://github.com/llvm/llvm-project/pull/68484.d

[clang] [clang][driver] Support option '-r' for target AVR (PR #68484)

2023-10-07 Thread Ben Shi via cfe-commits
https://github.com/benshi001 updated https://github.com/llvm/llvm-project/pull/68484 >From 67f8eaebefdf2a91bcc972cc83533264df144336 Mon Sep 17 00:00:00 2001 From: Ben Shi Date: Sat, 7 Oct 2023 20:49:36 +0800 Subject: [PATCH] [clang][driver] Support option '-r' for target AVR If '-r' is specifi

[clang] [clang] static operators should evaluate object argument (PR #68485)

2023-10-07 Thread Tianlan Zhou via cfe-commits
https://github.com/SuperSodaSea created https://github.com/llvm/llvm-project/pull/68485 Description clang don't evaluate the object argument of `static operator()` and `static operator[]` currently, for example: ```cpp #include struct Foo { static int operator()(int x, int y) {

[clang] [clang] static operators should evaluate object argument (PR #68485)

2023-10-07 Thread Tianlan Zhou via cfe-commits
SuperSodaSea wrote: CC @dtcxzyw, @zygoloid https://github.com/llvm/llvm-project/pull/68485 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] static operators should evaluate object argument (PR #68485)

2023-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes Description clang don't evaluate the object argument of `static operator()` and `static operator[]` currently, for example: ```cpp #include struct Foo { static int operator()(int x, int y) { std::cout << "Foo:

[PATCH] D153131: [clang analysis][thread-safety] Handle return-by-reference...

2023-10-07 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert added a comment. In D153131#4653345 , @aeubanks wrote: > This is finding lots of real issues in code, which is awesome, but could I > request that this be put under a separate warning flag so we can toggle off > just the new functionality a

[clang] [clang] static operators should evaluate object argument (PR #68485)

2023-10-07 Thread Tianlan Zhou via cfe-commits
https://github.com/SuperSodaSea edited https://github.com/llvm/llvm-project/pull/68485 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2bed2a7 - [clang][Interp] Emit dummy values for unknown C variables (#66749)

2023-10-07 Thread via cfe-commits
Author: Timm Baeder Date: 2023-10-07T16:00:19+02:00 New Revision: 2bed2a7a5cc133cf2405cdea14bc52c16bb697dd URL: https://github.com/llvm/llvm-project/commit/2bed2a7a5cc133cf2405cdea14bc52c16bb697dd DIFF: https://github.com/llvm/llvm-project/commit/2bed2a7a5cc133cf2405cdea14bc52c16bb697dd.diff L

[clang] [clang][Interp] Emit dummy values for unknown C variables (PR #66749)

2023-10-07 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr closed https://github.com/llvm/llvm-project/pull/66749 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HIP] Document func ptr and virtual func (PR #68126)

2023-10-07 Thread Yaxun Liu via cfe-commits
https://github.com/yxsamliu updated https://github.com/llvm/llvm-project/pull/68126 >From cb0a36f061ee7c31eb63655ce0ecea00e1a94dec Mon Sep 17 00:00:00 2001 From: "Yaxun (Sam) Liu" Date: Tue, 3 Oct 2023 12:21:10 -0400 Subject: [PATCH 1/2] [HIP] Document func ptr and virtual func Document clang

[clang] ce093d5 - [clang][Intepr] Fix the build

2023-10-07 Thread Timm Bäder via cfe-commits
Author: Timm Bäder Date: 2023-10-07T16:48:03+02:00 New Revision: ce093d59c92941cbdef7d47268fb3fd0e72dbf30 URL: https://github.com/llvm/llvm-project/commit/ce093d59c92941cbdef7d47268fb3fd0e72dbf30 DIFF: https://github.com/llvm/llvm-project/commit/ce093d59c92941cbdef7d47268fb3fd0e72dbf30.diff LO

[clang] 635eb5f - [clang][NFC] Typo fix in PPC.cpp

2023-10-07 Thread via cfe-commits
Author: Hubert Tong Date: 2023-10-07T11:07:43-04:00 New Revision: 635eb5f370859c6140c1315176c8579ba8bc861f URL: https://github.com/llvm/llvm-project/commit/635eb5f370859c6140c1315176c8579ba8bc861f DIFF: https://github.com/llvm/llvm-project/commit/635eb5f370859c6140c1315176c8579ba8bc861f.diff L

[PATCH] D155548: [clang][ExprConst] Short-circuit ConstantExpr evaluation

2023-10-07 Thread Corentin Jabot via Phabricator via cfe-commits
cor3ntin accepted this revision. cor3ntin added a comment. This revision is now accepted and ready to land. @aaron.ballman Given the recent discussion we had on both github (https://github.com/llvm/llvm-project/pull/66203) and privately, I'm going to accept that. We only create ConstantExpr for

[clang] [AIX] recognize vsr in inline asm for AIX (PR #68476)

2023-10-07 Thread Hubert Tong via cfe-commits
@@ -807,6 +807,7 @@ ArrayRef PPCTargetInfo::getGCCRegAliases() const { // PPC ELFABIv2 DWARF Definitoin "Table 2.26. Mappings of Common Registers". // vs0 ~ vs31 is mapping to 32 - 63, // vs32 ~ vs63 is mapping to 77 - 108. +// And this mapping applies to all OSes which runs o

[clang] [AIX] recognize vsr in inline asm for AIX (PR #68476)

2023-10-07 Thread Hubert Tong via cfe-commits
@@ -2,6 +2,10 @@ // RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-feature +vsx \ // RUN: -target-cpu pwr9 -emit-llvm %s -o - | FileCheck %s +// RUN: %clang_cc1 -triple powerpc64-ibm-aix -target-feature +vsx \ +// RUN: -target-cpu pwr9 -emit-llvm %s -o - | F

[clang] [clang] WIP: Warn on mismatched RequiresCapability attributes (PR #67520)

2023-10-07 Thread Aaron Puchert via cfe-commits
aaronpuchert wrote: Yeah, it's a tricky question. On one hand there have been previous issues like #42194 (which this would basically address), and it would definitely improve consistency and prevent beginner's mistakes. On the other hand it seems useful to allow adding attributes e.g. to thir

[clang-tools-extra] [clang-tidy] add modernize-use-std-numbers (PR #66583)

2023-10-07 Thread via cfe-commits
https://github.com/5chmidti updated https://github.com/llvm/llvm-project/pull/66583 >From 8f5e9e6024b0db8f251625669adbc5d607da83cb Mon Sep 17 00:00:00 2001 From: Julian Schmidt <44101708+5chmi...@users.noreply.github.com> Date: Sat, 16 Sep 2023 16:24:13 +0200 Subject: [PATCH 01/12] [clang-tidy]

[clang-tools-extra] [clang-tidy] add modernize-use-std-numbers (PR #66583)

2023-10-07 Thread via cfe-commits
https://github.com/5chmidti updated https://github.com/llvm/llvm-project/pull/66583 >From 8f5e9e6024b0db8f251625669adbc5d607da83cb Mon Sep 17 00:00:00 2001 From: Julian Schmidt <44101708+5chmi...@users.noreply.github.com> Date: Sat, 16 Sep 2023 16:24:13 +0200 Subject: [PATCH 01/13] [clang-tidy]

[clang-tools-extra] [clang-tidy][modernize-return-braced-init-list]fix false-positives (PR #68491)

2023-10-07 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 created https://github.com/llvm/llvm-project/pull/68491 fix false-positives when constructing the container with ``count`` copies of elements with value ``value`` (e.g., ``vector(size_type count, const T& value);``). Fixes: #68159 >From d1b76f7649e1b1239ad328c7da

[clang-tools-extra] [clang-tidy][modernize-return-braced-init-list]fix false-positives (PR #68491)

2023-10-07 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 edited https://github.com/llvm/llvm-project/pull/68491 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][modernize-return-braced-init-list]fix false-positives (PR #68491)

2023-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy Changes fix false-positives when constructing the container with ``count`` copies of elements with value ``value`` (e.g., ``vector(size_type count, const T& value);``). Fixes: #68159 --- Full diff: https://github.com/llvm/llvm-project/pull/68

[clang-tools-extra] [clang-tidy][modernize-return-braced-init-list]fix false-positives (PR #68491)

2023-10-07 Thread Piotr Zegar via cfe-commits
@@ -269,6 +269,12 @@ Changes in existing checks ` to support for-loops with iterators initialized by free functions like ``begin``, ``end``, or ``size``. +- Improved :doc:`modernize-return-braced-init-list + ` check to ignore + false-positives when constructing the conta

[clang-tools-extra] [clang-tidy][modernize-return-braced-init-list]fix false-positives (PR #68491)

2023-10-07 Thread Piotr Zegar via cfe-commits
@@ -17,11 +17,21 @@ using namespace clang::ast_matchers; namespace clang::tidy::modernize { void ReturnBracedInitListCheck::registerMatchers(MatchFinder *Finder) { - // Skip list initialization and constructors with an initializer list. + auto SemanticallyDifferentContainer

[clang-tools-extra] [clang-tidy][modernize-return-braced-init-list]fix false-positives (PR #68491)

2023-10-07 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL edited https://github.com/llvm/llvm-project/pull/68491 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][modernize-return-braced-init-list]fix false-positives (PR #68491)

2023-10-07 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL edited https://github.com/llvm/llvm-project/pull/68491 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][modernize-return-braced-init-list]fix false-positives (PR #68491)

2023-10-07 Thread Piotr Zegar via cfe-commits
@@ -17,11 +17,21 @@ using namespace clang::ast_matchers; namespace clang::tidy::modernize { void ReturnBracedInitListCheck::registerMatchers(MatchFinder *Finder) { - // Skip list initialization and constructors with an initializer list. + auto SemanticallyDifferentContainer

[clang-tools-extra] [clang-tidy][modernize-return-braced-init-list]fix false-positives (PR #68491)

2023-10-07 Thread Piotr Zegar via cfe-commits
@@ -17,11 +17,21 @@ using namespace clang::ast_matchers; namespace clang::tidy::modernize { void ReturnBracedInitListCheck::registerMatchers(MatchFinder *Finder) { - // Skip list initialization and constructors with an initializer list. + auto SemanticallyDifferentContainer

[clang-tools-extra] [clang-tidy][modernize-return-braced-init-list]fix false-positives (PR #68491)

2023-10-07 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL approved this pull request. Add entry to check documentation that such constructors for such types are excluded. Consider fixing pointed out issues. Except those, looks fine. https://github.com/llvm/llvm-project/pull/68491

[clang-tools-extra] [clang-tidy][modernize-return-braced-init-list]fix false-positives (PR #68491)

2023-10-07 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL edited https://github.com/llvm/llvm-project/pull/68491 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][modernize-return-braced-init-list]fix false-positives (PR #68491)

2023-10-07 Thread Piotr Zegar via cfe-commits
@@ -17,11 +17,21 @@ using namespace clang::ast_matchers; namespace clang::tidy::modernize { void ReturnBracedInitListCheck::registerMatchers(MatchFinder *Finder) { - // Skip list initialization and constructors with an initializer list. + auto SemanticallyDifferentContainer

[PATCH] D137149: Use PassGate from LLVMContext if any otherwise global one

2023-10-07 Thread Prem Chintalapudi via Phabricator via cfe-commits
pchintalapudi added a comment. In D137149#4653308 , @aeubanks wrote: > we don't currently support reusing a pipeline so I'm surprised that you're > able to share/reuse pipelines without running into any issues The way I see it, any pipeline state that c

[clang] [clang] Ignore GCC 11 `[[malloc(x)]]` attribute (PR #68059)

2023-10-07 Thread Alois Klink via cfe-commits
https://github.com/aloisklink updated https://github.com/llvm/llvm-project/pull/68059 >From a76561f522f628b0882572f8dabee6f7e4abd5f5 Mon Sep 17 00:00:00 2001 From: Alois Klink Date: Mon, 2 Oct 2023 19:59:06 +0100 Subject: [PATCH] [clang] Ignore GCC 11 [[malloc(x)]] attribute Ignore the `[[mall

[clang] [clang] Ignore GCC 11 `[[malloc(x)]]` attribute (PR #68059)

2023-10-07 Thread Alois Klink via cfe-commits
aloisklink wrote: > We generally want ignored attributes to be diagnosed as being ignored; > otherwise users have a much harder time determining whether the attribute is > working or not. I think we should issue an "attribute ignored" warning when > we're dropping the attribute in the AST. Pe

[clang] [clang] Ignore GCC 11 `[[malloc(x)]]` attribute (PR #68059)

2023-10-07 Thread Alois Klink via cfe-commits
@@ -2064,13 +2064,26 @@ static void handleTLSModelAttr(Sema &S, Decl *D, const ParsedAttr &AL) { static void handleRestrictAttr(Sema &S, Decl *D, const ParsedAttr &AL) { QualType ResultType = getFunctionOrMethodResultType(D); - if (ResultType->isAnyPointerType() || ResultT

[clang-tools-extra] [libc++] Implement ranges::iota (PR #68494)

2023-10-07 Thread James E T Smith via cfe-commits
https://github.com/jamesETsmith created https://github.com/llvm/llvm-project/pull/68494 # Overview As a disclaimer, this is my first PR to LLVM and while I've tried to ensure I've followed the LLVM and libc++ contributing guidelines, there's probably a good chance I missed something. If I hav

[clang] [libc++] Implement ranges::iota (PR #68494)

2023-10-07 Thread James E T Smith via cfe-commits
https://github.com/jamesETsmith created https://github.com/llvm/llvm-project/pull/68494 # Overview As a disclaimer, this is my first PR to LLVM and while I've tried to ensure I've followed the LLVM and libc++ contributing guidelines, there's probably a good chance I missed something. If I hav

[clang] Add Documentation for Execution Results Handling in Clang-Repl (PR #65650)

2023-10-07 Thread Krishna Narayanan via cfe-commits
https://github.com/Krishna-13-cyber updated https://github.com/llvm/llvm-project/pull/65650 >From 967d465083c2bf0887be14380b82aac69175b47e Mon Sep 17 00:00:00 2001 From: Krishna-13-cyber Date: Thu, 7 Sep 2023 22:35:53 +0530 Subject: [PATCH 1/2] Add Documentation for Execution Results Handling i

[clang] Add Documentation for Execution Results Handling in Clang-Repl (PR #65650)

2023-10-07 Thread Krishna Narayanan via cfe-commits
https://github.com/Krishna-13-cyber updated https://github.com/llvm/llvm-project/pull/65650 >From b14c1890e4d5ecf4ebd9d0aefe9f73a0b3a12f5f Mon Sep 17 00:00:00 2001 From: Krishna-13-cyber Date: Thu, 7 Sep 2023 22:35:53 +0530 Subject: [PATCH] Add Documentation for Execution Results Handling in C

[clang] [clang][MBD] set up module build daemon infrastructure (PR #67562)

2023-10-07 Thread Connor Sughrue via cfe-commits
cpsughrue wrote: > I haven't read the PR in details but one thing we found difficult to do is > how to write a test for daemon spawning logic, because if anything went > wrong, you left an unbounded daemon process on CI node. > > The strategy in this PR (try to kill it after the test finishes)

[clang] [AIX] recognize vsr in inline asm for AIX (PR #68476)

2023-10-07 Thread Hubert Tong via cfe-commits
https://github.com/hubert-reinterpretcast edited https://github.com/llvm/llvm-project/pull/68476 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WIP][clang][MBD] Initial implementation of module build daemon (PR #68498)

2023-10-07 Thread Connor Sughrue via cfe-commits
https://github.com/cpsughrue created https://github.com/llvm/llvm-project/pull/68498 Work in progress implementation of the module build daemon proposed in https://discourse.llvm.org/t/rfc-modules-build-daemon-build-system-agnostic-support-for-explicitly-built-modules/71524. >From 9fe97509277f

[clang] [libc++] Implement ranges::iota (PR #68494)

2023-10-07 Thread via cfe-commits
https://github.com/philnik777 edited https://github.com/llvm/llvm-project/pull/68494 ___ 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::iota (PR #68494)

2023-10-07 Thread via cfe-commits
https://github.com/philnik777 requested changes to this pull request. I haven't looked at the tests yet. The implementation itself looks mostly good. https://github.com/llvm/llvm-project/pull/68494 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[clang-tools-extra] [libc++] Implement ranges::iota (PR #68494)

2023-10-07 Thread via cfe-commits
@@ -0,0 +1,124 @@ +//===--===// philnik777 wrote: I've started working on this in https://reviews.llvm.org/D121436 (and didn't really work on it because nobody knew what it was for). You should

[clang] [libc++] Implement ranges::iota (PR #68494)

2023-10-07 Thread 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. +// SPDX-License-

[clang] [libc++] Implement ranges::iota (PR #68494)

2023-10-07 Thread via cfe-commits
@@ -46,7 +46,7 @@ "`P2255R2 `__","LWG","A type trait to detect reference binding to temporary","February 2022","","" "`P2273R3 `__","LWG","Making ``std::unique_ptr`` constexpr","February 2022","|Complete|","16.0" "`P2387R3

[clang-tools-extra] [libc++] Implement ranges::iota (PR #68494)

2023-10-07 Thread 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. +// SPDX-License-

[clang] [libc++] Implement ranges::iota (PR #68494)

2023-10-07 Thread 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: Apa

[clang] [libc++] Implement ranges::iota (PR #68494)

2023-10-07 Thread via cfe-commits
@@ -0,0 +1,124 @@ +//===--===// +// philnik777 wrote: Unrelated: Please update the `robust_against_*` tests. https://github.com/llvm/llvm-project/pull/68494 _

[clang-tools-extra] [libc++] Implement ranges::iota (PR #68494)

2023-10-07 Thread via cfe-commits
@@ -0,0 +1,124 @@ +//===--===// +// +// 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: Apa

[clang-tools-extra] [libc++] Implement ranges::iota (PR #68494)

2023-10-07 Thread via cfe-commits
https://github.com/philnik777 edited https://github.com/llvm/llvm-project/pull/68494 ___ 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::iota (PR #68494)

2023-10-07 Thread via cfe-commits
@@ -46,7 +46,7 @@ "`P2255R2 `__","LWG","A type trait to detect reference binding to temporary","February 2022","","" "`P2273R3 `__","LWG","Making ``std::unique_ptr`` constexpr","February 2022","|Complete|","16.0" "`P2387R3

[clang] [libc++] Implement ranges::iota (PR #68494)

2023-10-07 Thread via cfe-commits
@@ -0,0 +1,124 @@ +//===--===// philnik777 wrote: I've started working on this in https://reviews.llvm.org/D121436 (and didn't really work on it because nobody knew what it was for). You should

[clang-tools-extra] [libc++] Implement ranges::iota (PR #68494)

2023-10-07 Thread via cfe-commits
@@ -0,0 +1,124 @@ +//===--===// +// philnik777 wrote: Unrelated: Please update the `robust_against_*` tests. https://github.com/llvm/llvm-project/pull/68494 _

[clang-tools-extra] [clang-tidy][modernize-return-braced-init-list]fix false-positives (PR #68491)

2023-10-07 Thread Congcong Cai via cfe-commits
@@ -17,11 +17,21 @@ using namespace clang::ast_matchers; namespace clang::tidy::modernize { void ReturnBracedInitListCheck::registerMatchers(MatchFinder *Finder) { - // Skip list initialization and constructors with an initializer list. + auto SemanticallyDifferentContainer

[clang-tools-extra] [clang-tidy][modernize-return-braced-init-list]fix false-positives (PR #68491)

2023-10-07 Thread Piotr Zegar via cfe-commits
@@ -17,11 +17,21 @@ using namespace clang::ast_matchers; namespace clang::tidy::modernize { void ReturnBracedInitListCheck::registerMatchers(MatchFinder *Finder) { - // Skip list initialization and constructors with an initializer list. + auto SemanticallyDifferentContainer

[clang-tools-extra] [clang-tidy][modernize-return-braced-init-list]fix false-positives (PR #68491)

2023-10-07 Thread Piotr Zegar via cfe-commits
https://github.com/PiotrZSL edited https://github.com/llvm/llvm-project/pull/68491 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [libcxx] Allow string to use SSO in constant evaluation. (PR #66576)

2023-10-07 Thread James Y Knight via cfe-commits
https://github.com/jyknight edited https://github.com/llvm/llvm-project/pull/66576 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [libcxx] Allow string to use SSO in constant evaluation. (PR #66576)

2023-10-07 Thread James Y Knight via cfe-commits
https://github.com/jyknight edited https://github.com/llvm/llvm-project/pull/66576 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][modernize-return-braced-init-list]fix false-positives (PR #68491)

2023-10-07 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 updated https://github.com/llvm/llvm-project/pull/68491 >From d1b76f7649e1b1239ad328c7da9b1f9d8fb2c5f3 Mon Sep 17 00:00:00 2001 From: Congcong Cai Date: Sun, 8 Oct 2023 01:00:15 +0800 Subject: [PATCH 1/2] [clang-tidy][modernize-return-braced-init-list]fix false-p

[PATCH] D137149: Use PassGate from LLVMContext if any otherwise global one

2023-10-07 Thread Valentin Churavy via Phabricator via cfe-commits
vchuravy added a subscriber: loladiro. vchuravy added a comment. In D137149#4653308 , @aeubanks wrote: > we don't currently support reusing a pipeline so I'm surprised that you're > able to share/reuse pipelines without running into any issues In additi

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

2023-10-07 Thread via cfe-commits
Author: David Stone Date: 2023-10-08T09:49:05+08:00 New Revision: 701d804cdb6944fbb2d4519c1f334425b3a38677 URL: https://github.com/llvm/llvm-project/commit/701d804cdb6944fbb2d4519c1f334425b3a38677 DIFF: https://github.com/llvm/llvm-project/commit/701d804cdb6944fbb2d4519c1f334425b3a38677.diff L

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

2023-10-07 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 closed 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][Modules] Make `Module::Requirement` a struct (PR #67900)

2023-10-07 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > Would someone be able to merge this for me? I do not have permission. Sorry for not merging this in time. Could you rebase again since it has conflicts now. https://github.com/llvm/llvm-project/pull/67900 ___ cfe-commits mailing l

[clang-tools-extra] [clangd] [C++20] [Modules] Introduce initial support for C++20 Modules (PR #66462)

2023-10-07 Thread Chuanqi Xu via cfe-commits
@@ -45,6 +45,10 @@ class GlobalCompilationDatabase { return std::nullopt; } + virtual std::vector getAllFilesInProjectOf(PathRef File) const { ChuanqiXu9 wrote: Where is the example for `module_commands.json`? So that we can get a rough image. https

[clang] [AIX] recognize vsr in inline asm for AIX (PR #68476)

2023-10-07 Thread Chen Zheng via cfe-commits
https://github.com/chenzheng1030 edited https://github.com/llvm/llvm-project/pull/68476 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [AIX] recognize vsr in inline asm for AIX (PR #68476)

2023-10-07 Thread Chen Zheng via cfe-commits
https://github.com/chenzheng1030 updated https://github.com/llvm/llvm-project/pull/68476 >From eada8d170cefcf2c1d152eaadc68dc4c3077c9ce Mon Sep 17 00:00:00 2001 From: Chen Zheng Date: Sat, 7 Oct 2023 06:09:44 -0400 Subject: [PATCH 1/2] [AIX] recognize vsr in inline asm for AIX --- clang/lib/B

[clang] [AIX] recognize vsr in inline asm for AIX (PR #68476)

2023-10-07 Thread Chen Zheng via cfe-commits
@@ -807,6 +807,7 @@ ArrayRef PPCTargetInfo::getGCCRegAliases() const { // PPC ELFABIv2 DWARF Definitoin "Table 2.26. Mappings of Common Registers". // vs0 ~ vs31 is mapping to 32 - 63, // vs32 ~ vs63 is mapping to 77 - 108. +// And this mapping applies to all OSes which runs o

[clang] [AIX] recognize vsr in inline asm for AIX (PR #68476)

2023-10-07 Thread Chen Zheng via cfe-commits
@@ -2,6 +2,10 @@ // RUN: %clang_cc1 -triple powerpc64le-unknown-linux-gnu -target-feature +vsx \ // RUN: -target-cpu pwr9 -emit-llvm %s -o - | FileCheck %s +// RUN: %clang_cc1 -triple powerpc64-ibm-aix -target-feature +vsx \ +// RUN: -target-cpu pwr9 -emit-llvm %s -o - | F

[clang] [C++20] [Modules] Don't emit function bodies which is noinline and av… (PR #68501)

2023-10-07 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 created https://github.com/llvm/llvm-project/pull/68501 …ailabl externally A workaround for https://github.com/llvm/llvm-project/issues/60996 As the title suggested, we can avoid emitting available externally functions which is marked as noinline already. Such fu

[clang] [C++20] [Modules] Don't emit function bodies which is noinline and av… (PR #68501)

2023-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Changes …ailabl externally A workaround for https://github.com/llvm/llvm-project/issues/60996 As the title suggested, we can avoid emitting available externally functions which is marked as noinline already. Such functions should contribu

[clang] [C++20] [Modules] Don't emit function bodies which is noinline and av… (PR #68501)

2023-10-07 Thread David Stone via cfe-commits
davidstone wrote: This looks reasonable to me. I'll try to test this out by Monday evening or earlier to see what practical effect it has for some of my programs. https://github.com/llvm/llvm-project/pull/68501 ___ cfe-commits mailing list cfe-commits

[clang-tools-extra] [InstCombine] Refactor matchFunnelShift to allow more pattern (NFC) (PR #68474)

2023-10-07 Thread via cfe-commits
https://github.com/HaohaiWen updated https://github.com/llvm/llvm-project/pull/68474 >From 5b3b1bbb5b263bc5711adde031d85b1461ccbab6 Mon Sep 17 00:00:00 2001 From: Haohai Wen Date: Sat, 7 Oct 2023 13:48:32 +0800 Subject: [PATCH] [InstCombine] Refactor matchFunnelShift to allow more pattern (NFC

[clang] [InstCombine] Refactor matchFunnelShift to allow more pattern (NFC) (PR #68474)

2023-10-07 Thread via cfe-commits
https://github.com/HaohaiWen updated https://github.com/llvm/llvm-project/pull/68474 >From 5b3b1bbb5b263bc5711adde031d85b1461ccbab6 Mon Sep 17 00:00:00 2001 From: Haohai Wen Date: Sat, 7 Oct 2023 13:48:32 +0800 Subject: [PATCH] [InstCombine] Refactor matchFunnelShift to allow more pattern (NFC

[PATCH] D96976: [analyzer] Fix reinterpret_cast handling for pointer-to-member

2023-10-07 Thread CS via Phabricator via cfe-commits
CS added a comment. Herald added a subscriber: manas. Herald added a project: All. I'm sorry but is this some sort of joke? I don't think we should be calling ChickenFajitas straightaway like this, debounce it, recalculate, repent let's go Repository: rG LLVM Github Monorepo CHANGES SINCE LA

[clang] [clang] __is_trivially_equality_comparable for types containing lambdas (PR #68506)

2023-10-07 Thread Amirreza Ashouri via cfe-commits
https://github.com/AMP999 created https://github.com/llvm/llvm-project/pull/68506 Lambdas (closure types) are trivially equality-comparable iff they are non-capturing, because non-capturing lambdas are convertible to function pointers: if (lam1 == lam2) compiles, then lam1 and lam2 must have the

[clang] [clang] __is_trivially_equality_comparable for types containing lambdas (PR #68506)

2023-10-07 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes Lambdas (closure types) are trivially equality-comparable iff they are non-capturing, because non-capturing lambdas are convertible to function pointers: if (lam1 == lam2) compiles, then lam1 and lam2 must have the same type, and be always-e

[clang] [clang] __is_trivially_equality_comparable for types containing lambdas (PR #68506)

2023-10-07 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 18622fc2f4bcd58f9076301babdfbcca9c0a70d0 ef0ad97b1dee9f4d7547f551b4b8b96a51221c51 --