[clang] [MLIR][NVGPU] Introduce `nvgpu.wargroup.mma.store` Op for Hopper GPUs (PR #65441)

2023-10-04 Thread via cfe-commits
https://github.com/qcolombet approved this pull request. I think the singleton implementation for the warpsize value is broken and anyway overkill. I believe we still miss a change in a cmake file. Other than that couple of nits but LGTM. https://github.com/llvm/llvm-project/pull/65441 ___

[clang] [MLIR][NVGPU] Introduce `nvgpu.wargroup.mma.store` Op for Hopper GPUs (PR #65441)

2023-10-04 Thread via cfe-commits
@@ -529,6 +530,39 @@ LogicalResult WarpgroupMmaOp::verify() { return success(); } +LogicalResult WarpgroupMmaStoreOp::verify() { + MemRefType dstMemrefType = getDstMemref().getType(); + VectorType firstVtype = getMatrixD() + .front() +

[clang-tools-extra] [MLIR][NVGPU] Introduce `nvgpu.wargroup.mma.store` Op for Hopper GPUs (PR #65441)

2023-10-04 Thread via cfe-commits
@@ -727,4 +727,24 @@ def NVGPU_WarpgroupMmaOp : NVGPU_Op<"warpgroup.mma"> { let hasVerifier = 1; } +def NVGPU_WarpgroupMmaStoreOp : NVGPU_Op<"warpgroup.mma.store"> { + let description = [{ +The `nvgpu.warpgroup.mma.store` op performs the store of fragmented result +

[clang-tools-extra] [MLIR][NVGPU] Introduce `nvgpu.wargroup.mma.store` Op for Hopper GPUs (PR #65441)

2023-10-04 Thread via cfe-commits
@@ -5277,6 +5277,7 @@ cc_library( ":LLVMCommonConversion", ":LLVMDialect", ":MemRefDialect", +":MLIRArithDialect", qcolombet wrote: I think we need a similar change in `mlir/lib/Conversion/NVGPUToNVVM/CMakeLists.txt` https://g

[clang-tools-extra] [MLIR][NVGPU] Introduce `nvgpu.wargroup.mma.store` Op for Hopper GPUs (PR #65441)

2023-10-04 Thread via cfe-commits
@@ -529,6 +530,39 @@ LogicalResult WarpgroupMmaOp::verify() { return success(); } +LogicalResult WarpgroupMmaStoreOp::verify() { + MemRefType dstMemrefType = getDstMemref().getType(); + VectorType firstVtype = getMatrixD() + .front() +

[clang-tools-extra] [MLIR][NVGPU] Introduce `nvgpu.wargroup.mma.store` Op for Hopper GPUs (PR #65441)

2023-10-04 Thread via cfe-commits
@@ -53,6 +55,16 @@ static Value truncToI32(ConversionPatternRewriter &rewriter, Location loc, return rewriter.create(loc, rewriter.getI32Type(), value); } +/// Returns warp-size as a value. +static Value getWarpSizeValue(ImplicitLocOpBuilder &b) { qcolombet

[clang] [MLIR][NVGPU] Introduce `nvgpu.wargroup.mma.store` Op for Hopper GPUs (PR #65441)

2023-10-04 Thread via cfe-commits
https://github.com/qcolombet edited https://github.com/llvm/llvm-project/pull/65441 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [MLIR][NVGPU] Introduce `nvgpu.wargroup.mma.store` Op for Hopper GPUs (PR #65441)

2023-10-04 Thread via cfe-commits
@@ -53,6 +55,16 @@ static Value truncToI32(ConversionPatternRewriter &rewriter, Location loc, return rewriter.create(loc, rewriter.getI32Type(), value); } +/// Returns warp-size as a value. +static Value getWarpSizeValue(ImplicitLocOpBuilder &b) { qcolombet

[clang] 0152669 - Fix Clang Sphinx build

2023-10-04 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2023-10-04T10:22:06-04:00 New Revision: 01526696717e0694b906ccab412f1ec5da2a574d URL: https://github.com/llvm/llvm-project/commit/01526696717e0694b906ccab412f1ec5da2a574d DIFF: https://github.com/llvm/llvm-project/commit/01526696717e0694b906ccab412f1ec5da2a574d.diff

[clang] [Libomptarget] Make the DeviceRTL configuration globals weak (PR #68220)

2023-10-04 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 edited https://github.com/llvm/llvm-project/pull/68220 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix core.VLASize checker false positive taint reports (PR #68140)

2023-10-04 Thread via cfe-commits
https://github.com/DonatNagyE commented: This change is a good step forward and cleanly implemented. Could you show some results from open source projects? As a side remark, I'd like to mention that the separate handling of the "size is zero" and the "size is negative" cases is logically incor

[clang] [analyzer] Fix core.VLASize checker false positive taint reports (PR #68140)

2023-10-04 Thread via cfe-commits
https://github.com/DonatNagyE edited https://github.com/llvm/llvm-project/pull/68140 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [analyzer] Fix core.VLASize checker false positive taint reports (PR #68140)

2023-10-04 Thread via cfe-commits
@@ -220,7 +220,7 @@ void VLASizeChecker::reportTaintBug(const Expr *SizeE, ProgramStateRef State, SmallString<256> buf; llvm::raw_svector_ostream os(buf); os << "Declared variable-length array (VLA) "; - os << "has tainted size"; + os << "has a tainted (attacker contro

[PATCH] D156453: [clang][Interp] Create only globals when initializing a global variable

2023-10-04 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. I guess I'm a bit lost as to what the code example has to do with the constant expression interpreter in the first place. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D156453/new/ https://reviews.llvm.org/D156453 __

[clang] [clang][Index] Use canonical function parameter types in USRs (PR #68222)

2023-10-04 Thread Matheus Izvekov via cfe-commits
https://github.com/mizvekov approved this pull request. https://github.com/llvm/llvm-project/pull/68222 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Index] Use canonical function parameter types in USRs (PR #68222)

2023-10-04 Thread Matheus Izvekov via cfe-commits
@@ -265,10 +265,13 @@ void USRGenerator::VisitFunctionDecl(const FunctionDecl *D) { Out << '>'; } + QualType CanonicalType = D->getType().getCanonicalType(); // Mangle in type information for the arguments. - for (auto *PD : D->parameters()) { -Out << '#'; -

[PATCH] D154262: [clang][Interp] LambdaThisCaptures

2023-10-04 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM aside from a request for some comments. Comment at: clang/lib/AST/Interp/ByteCodeEmitter.h:76 llvm::DenseMap> LambdaCaptures; - unsigned LambdaThisCapt

[clang] [clang][driver] Use platform specific calls to get the executable absolute path (PR #68091)

2023-10-04 Thread Liviu Ionescu via cfe-commits
ilg-ul wrote: I took some time to analyse the failed tests. I managed to reproduce them (except `rocm-detect.hip`) on my macOS, so I had more freedom to experiment. The failing tests are: - `Clang::Driver/mingw-sysroot.cpp` - `Clang::Driver/no-canonical-prefixes.c` - `Clang::Driver/program-pat

[clang] [clang][driver] Use TheDriver.ClangExecutable in SetInstallDir to point to the actual install folder (PR #68091)

2023-10-04 Thread Liviu Ionescu via cfe-commits
https://github.com/ilg-ul edited https://github.com/llvm/llvm-project/pull/68091 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] ba01ce6 - Fix test hip-offload-compress-zlib.hip

2023-10-04 Thread Yaxun Liu via cfe-commits
Author: Yaxun (Sam) Liu Date: 2023-10-04T11:05:16-04:00 New Revision: ba01ce60665848478ba4e76190907153a8c26fe9 URL: https://github.com/llvm/llvm-project/commit/ba01ce60665848478ba4e76190907153a8c26fe9 DIFF: https://github.com/llvm/llvm-project/commit/ba01ce60665848478ba4e76190907153a8c26fe9.dif

[clang] [clang][driver] Use TheDriver.ClangExecutable in SetInstallDir to point to the actual install folder (PR #68091)

2023-10-04 Thread Liviu Ionescu via cfe-commits
ilg-ul wrote: @jansvoboda11, since the Apple clang already fixed this bug, could you suggest how to proceed? Could you backport the Apple patch to upstream? Please also take a look at the original bug report #66704, since it is related to macOS. https://github.com/llvm/llvm-project/pull/6809

[clang] [clang][doc] Add documentation for the ASTs used to represent C++ templates (PR #66436)

2023-10-04 Thread Scott McPeak via cfe-commits
smcpeak wrote: As the feedback has been mostly negative, I'm closing this PR. https://github.com/llvm/llvm-project/pull/66436 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][doc] Add documentation for the ASTs used to represent C++ templates (PR #66436)

2023-10-04 Thread Scott McPeak via cfe-commits
https://github.com/smcpeak closed https://github.com/llvm/llvm-project/pull/66436 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] llvm-canon (PR #68176)

2023-10-04 Thread Justin Fargnoli via cfe-commits
https://github.com/justinfargnoli updated https://github.com/llvm/llvm-project/pull/68176 >From f792a030ac1761a96176332fea906cd2d1826c7b Mon Sep 17 00:00:00 2001 From: justinfargnoli Date: Sat, 12 Aug 2023 10:58:45 -0700 Subject: [PATCH 01/16] Add IRCanonicalizer.cpp --- llvm/lib/Transforms/U

[clang-tools-extra] llvm-canon (PR #68176)

2023-10-04 Thread Justin Fargnoli via cfe-commits
https://github.com/justinfargnoli updated https://github.com/llvm/llvm-project/pull/68176 >From f792a030ac1761a96176332fea906cd2d1826c7b Mon Sep 17 00:00:00 2001 From: justinfargnoli Date: Sat, 12 Aug 2023 10:58:45 -0700 Subject: [PATCH 01/16] Add IRCanonicalizer.cpp --- llvm/lib/Transforms/U

[clang] [Clang][InstrProf] Allow absolute path in fun.list of -fprofile-list= (PR #67519)

2023-10-04 Thread Henrik G. Olsson via cfe-commits
https://github.com/hnrklssn edited https://github.com/llvm/llvm-project/pull/67519 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][InstrProf] Allow absolute path in fun.list of -fprofile-list= (PR #67519)

2023-10-04 Thread Henrik G. Olsson via cfe-commits
https://github.com/hnrklssn requested changes to this pull request. Please update `clang/test/CodeGen/profile-filter.c` with some cases that exercise the new code path. https://github.com/llvm/llvm-project/pull/67519 ___ cfe-commits mailing list cfe-c

[clang] [Clang][InstrProf] Allow absolute path in fun.list of -fprofile-list= (PR #67519)

2023-10-04 Thread Henrik G. Olsson via cfe-commits
@@ -139,9 +139,23 @@ std::optional ProfileList::isFileExcluded(StringRef FileName, CodeGenOptions::ProfileInstrKind Kind) const { StringRef Section = getSectionName(Kind); - // Check for "source:=" + + // Convert the input file path to its canoni

[libclc] Bugfix for chosing the correct deduction guide (PR #66487)

2023-10-04 Thread via cfe-commits
Botond =?utf-8?q?Istv=C3=A1n_Hprv=C3=A1th?= Message-ID: In-Reply-To: @@ -85,3 +85,38 @@ int main() { } + +namespace deduceTemplatedConstructor{ whisperity wrote: There is a slight formatting issue here. There should be a space before ` {`. https://github.

[libclc] Bugfix for chosing the correct deduction guide (PR #66487)

2023-10-04 Thread via cfe-commits
Botond =?utf-8?q?Istv=C3=A1n_Hprv=C3=A1th?= Message-ID: In-Reply-To: https://github.com/whisperity requested changes to this pull request. https://github.com/llvm/llvm-project/pull/66487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang-tools-extra] Bugfix for chosing the correct deduction guide (PR #66487)

2023-10-04 Thread via cfe-commits
Botond =?utf-8?q?István_Hprváth?Message-ID: In-Reply-To: https://github.com/whisperity edited https://github.com/llvm/llvm-project/pull/66487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] Bugfix for chosing the correct deduction guide (PR #66487)

2023-10-04 Thread via cfe-commits
Botond =?utf-8?q?Istv=C3=A1n_Hprv=C3=A1th?= Message-ID: In-Reply-To: https://github.com/whisperity requested changes to this pull request. https://github.com/llvm/llvm-project/pull/66487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang-tools-extra] Bugfix for chosing the correct deduction guide (PR #66487)

2023-10-04 Thread via cfe-commits
Botond =?utf-8?q?Istv=C3=A1n_Hprv=C3=A1th?= Message-ID: In-Reply-To: https://github.com/whisperity requested changes to this pull request. https://github.com/llvm/llvm-project/pull/66487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:/

[clang] [clang][driver] Use TheDriver.ClangExecutable in SetInstallDir to point to the actual install folder (PR #68091)

2023-10-04 Thread Liviu Ionescu via cfe-commits
ilg-ul wrote: Another way to rephrase the question: the current implementation that preserves the symlinks, was it an explicitly required feature, or rather a side effect that came into existence by accident when implementing the current tests? https://github.com/llvm/llvm-project/pull/68091 _

[clang] Bugfix for chosing the correct deduction guide (PR #66487)

2023-10-04 Thread Botond István Hprváth via cfe-commits
@@ -85,3 +85,38 @@ int main() { } + +namespace deduceTemplatedConstructor{ HoBoIs wrote: Done https://github.com/llvm/llvm-project/pull/66487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.l

[libclc] Bugfix for chosing the correct deduction guide (PR #66487)

2023-10-04 Thread Botond István Hprváth via cfe-commits
@@ -85,3 +85,38 @@ int main() { } + +namespace deduceTemplatedConstructor{ HoBoIs wrote: Done https://github.com/llvm/llvm-project/pull/66487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.l

[clang-tools-extra] Bugfix for chosing the correct deduction guide (PR #66487)

2023-10-04 Thread Botond István Hprváth via cfe-commits
@@ -85,3 +85,38 @@ int main() { } + +namespace deduceTemplatedConstructor{ HoBoIs wrote: Done https://github.com/llvm/llvm-project/pull/66487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.l

[clang] [mlir][sparse] Print new syntax (PR #68130)

2023-10-04 Thread Yinying Li via cfe-commits
https://github.com/yinying-lisa-li updated https://github.com/llvm/llvm-project/pull/68130 >From 47b34bb327e1078678d3ba0c96ebce3fc89cf2ae Mon Sep 17 00:00:00 2001 From: Yinying Li Date: Tue, 3 Oct 2023 16:43:50 + Subject: [PATCH 1/4] [mlir][sparse] Print new syntax Printing changes from #s

[clang-tools-extra] [mlir][sparse] Print new syntax (PR #68130)

2023-10-04 Thread Yinying Li via cfe-commits
https://github.com/yinying-lisa-li updated https://github.com/llvm/llvm-project/pull/68130 >From 47b34bb327e1078678d3ba0c96ebce3fc89cf2ae Mon Sep 17 00:00:00 2001 From: Yinying Li Date: Tue, 3 Oct 2023 16:43:50 + Subject: [PATCH 1/4] [mlir][sparse] Print new syntax Printing changes from #s

[clang] [mlir][sparse] Print new syntax (PR #68130)

2023-10-04 Thread Yinying Li via cfe-commits
https://github.com/yinying-lisa-li updated https://github.com/llvm/llvm-project/pull/68130 >From 47b34bb327e1078678d3ba0c96ebce3fc89cf2ae Mon Sep 17 00:00:00 2001 From: Yinying Li Date: Tue, 3 Oct 2023 16:43:50 + Subject: [PATCH 1/5] [mlir][sparse] Print new syntax Printing changes from #s

[clang-tools-extra] [mlir][sparse] Print new syntax (PR #68130)

2023-10-04 Thread Yinying Li via cfe-commits
https://github.com/yinying-lisa-li updated https://github.com/llvm/llvm-project/pull/68130 >From 47b34bb327e1078678d3ba0c96ebce3fc89cf2ae Mon Sep 17 00:00:00 2001 From: Yinying Li Date: Tue, 3 Oct 2023 16:43:50 + Subject: [PATCH 1/5] [mlir][sparse] Print new syntax Printing changes from #s

[clang] [clang][Index] Use canonical function parameter types in USRs (PR #68222)

2023-10-04 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian updated https://github.com/llvm/llvm-project/pull/68222 >From db0887d6c68dc5610a9189c96de8fcbb631385a1 Mon Sep 17 00:00:00 2001 From: Krystian Stasiowski Date: Wed, 4 Oct 2023 10:06:28 -0400 Subject: [PATCH] [clang][Index] Use canonical function parameter types in

[clang] [AMDGPU][MachineScheduler] Alternative way to control excess RP. (PR #68004)

2023-10-04 Thread via cfe-commits
https://github.com/alex-t updated https://github.com/llvm/llvm-project/pull/68004 >From 7d894c0b039e6804079c096f1bbeb2980cafe378 Mon Sep 17 00:00:00 2001 From: Alexander Timofeev Date: Mon, 2 Oct 2023 18:35:12 +0200 Subject: [PATCH 1/2] [AMDGPU][MachineScheduler] Alternative way to control exc

[libclc] [AMDGPU][MachineScheduler] Alternative way to control excess RP. (PR #68004)

2023-10-04 Thread via cfe-commits
https://github.com/alex-t updated https://github.com/llvm/llvm-project/pull/68004 >From 7d894c0b039e6804079c096f1bbeb2980cafe378 Mon Sep 17 00:00:00 2001 From: Alexander Timofeev Date: Mon, 2 Oct 2023 18:35:12 +0200 Subject: [PATCH 1/2] [AMDGPU][MachineScheduler] Alternative way to control exc

[clang-tools-extra] [AMDGPU][MachineScheduler] Alternative way to control excess RP. (PR #68004)

2023-10-04 Thread via cfe-commits
https://github.com/alex-t updated https://github.com/llvm/llvm-project/pull/68004 >From 7d894c0b039e6804079c096f1bbeb2980cafe378 Mon Sep 17 00:00:00 2001 From: Alexander Timofeev Date: Mon, 2 Oct 2023 18:35:12 +0200 Subject: [PATCH 1/2] [AMDGPU][MachineScheduler] Alternative way to control exc

[libunwind] [AMDGPU][MachineScheduler] Alternative way to control excess RP. (PR #68004)

2023-10-04 Thread via cfe-commits
https://github.com/alex-t updated https://github.com/llvm/llvm-project/pull/68004 >From 7d894c0b039e6804079c096f1bbeb2980cafe378 Mon Sep 17 00:00:00 2001 From: Alexander Timofeev Date: Mon, 2 Oct 2023 18:35:12 +0200 Subject: [PATCH 1/2] [AMDGPU][MachineScheduler] Alternative way to control exc

[clang-tools-extra] Bugfix for chosing the correct deduction guide (PR #66487)

2023-10-04 Thread via cfe-commits
Botond =?utf-8?q?István_Hprváth?=, Botond =?utf-8?q?István_Hprváth?Message-ID: In-Reply-To: https://github.com/whisperity edited https://github.com/llvm/llvm-project/pull/66487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang-tools-extra] Bugfix for chosing the correct deduction guide (PR #66487)

2023-10-04 Thread via cfe-commits
Botond =?utf-8?q?István_Hprváth?=, Botond =?utf-8?q?István_Hprváth?Message-ID: In-Reply-To: https://github.com/whisperity edited https://github.com/llvm/llvm-project/pull/66487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang-tools-extra] Bugfix for chosing the correct deduction guide (PR #66487)

2023-10-04 Thread via cfe-commits
Botond =?utf-8?q?István_Hprváth?=, Botond =?utf-8?q?István_Hprváth?Message-ID: In-Reply-To: https://github.com/whisperity commented: LGTM with previous discussion. I will do the commit... On the UI... :slightly_smiling_face: https://github.com/llvm/llvm-project/pull/66487

[clang-tools-extra] Bugfix for chosing the correct deduction guide (PR #66487)

2023-10-04 Thread via cfe-commits
Botond =?utf-8?q?Istv=C3=A1n_Hprv=C3=A1th?=, Botond =?utf-8?q?Istv=C3=A1n_Hprv=C3=A1th?= Message-ID: In-Reply-To: https://github.com/whisperity approved this pull request. > TIL there is no way to resign a review here like there was on Phab... https://github.com/llvm/llvm-project/pull/66487 __

[clang-tools-extra] [IPSCCP] Variable not visible at Og. (PR #66745)

2023-10-04 Thread J. Ryan Stinnett via cfe-commits
https://github.com/jryans approved this pull request. Looks good to me, thanks! 😄 Other reviewers had more comments last time around, so probably best to wait for at least one more review before landing. https://github.com/llvm/llvm-project/pull/66745 _

[clang-tools-extra] [clang] Choose non-templated ctor as deduction guide unambiguously (PR #66487)

2023-10-04 Thread via cfe-commits
Botond =?utf-8?q?István_Hprváth?=, Botond =?utf-8?q?István_Hprváth?Message-ID: In-Reply-To: https://github.com/whisperity edited https://github.com/llvm/llvm-project/pull/66487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang] 66c1916 - [clang] Choose non-templated ctor as deduction guide unambiguously (#66487)

2023-10-04 Thread via cfe-commits
Author: Botond István Hprváth Date: 2023-10-04T09:11:43-07:00 New Revision: 66c19167f127013f6834ea1a316b783e57490939 URL: https://github.com/llvm/llvm-project/commit/66c19167f127013f6834ea1a316b783e57490939 DIFF: https://github.com/llvm/llvm-project/commit/66c19167f127013f6834ea1a316b783e574909

[libclc] [clang] Choose non-templated ctor as deduction guide unambiguously (PR #66487)

2023-10-04 Thread Erich Keane via cfe-commits
Botond =?utf-8?q?István_Hprváth?=, Botond =?utf-8?q?István_Hprváth?Message-ID: In-Reply-To: https://github.com/erichkeane closed https://github.com/llvm/llvm-project/pull/66487 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[libclc] [clang] Choose non-templated ctor as deduction guide unambiguously (PR #66487)

2023-10-04 Thread Erich Keane via cfe-commits
Botond =?utf-8?q?Istv=C3=A1n_Hprv=C3=A1th?=, Botond =?utf-8?q?Istv=C3=A1n_Hprv=C3=A1th?= Message-ID: In-Reply-To: erichkeane wrote: I had permissions, so I squash/merged. https://github.com/llvm/llvm-project/pull/66487 ___ cfe-commits mailing list cf

[clang] [clang][modules] Remove preloaded SLocEntries from PCM files (PR #66962)

2023-10-04 Thread Ben Langmuir via cfe-commits
@@ -701,6 +701,10 @@ class SourceManager : public RefCountedBase { /// use (-ID - 2). SmallVector LoadedSLocEntryTable; + /// For each allocation in LoadedSLocEntryTable, we keep the new size. This + /// can be used to determine whether two FileIDs come from the same AS

[libclc] [clang] Choose non-templated ctor as deduction guide unambiguously (PR #66487)

2023-10-04 Thread via cfe-commits
Botond =?utf-8?q?István_Hprváth?=, Botond =?utf-8?q?István_Hprváth?Message-ID: In-Reply-To: whisperity wrote: It looks like the authorship metadata was set up incorrectly in the commits. I was in the process of fixing the things locally. https://github.com/llvm/llvm-project/pull/66487 ___

[clang-tools-extra] [clang] Choose non-templated ctor as deduction guide unambiguously (PR #66487)

2023-10-04 Thread Erich Keane via cfe-commits
Botond =?utf-8?q?István_Hprváth?=, Botond =?utf-8?q?István_Hprváth?Message-ID: In-Reply-To: erichkeane wrote: Ah, I see, apologies. I thought you meant the resign/etc complaint meant you couldn't commit through the UI. https://github.com/llvm/llvm-project/pull/66487 _

[clang] [CUDA][HIP] Fix host/device context in concept (PR #67721)

2023-10-04 Thread Artem Belevich via cfe-commits
@@ -176,3 +176,34 @@ Predefined Macros * - ``HIP_API_PER_THREAD_DEFAULT_STREAM`` - Alias to ``__HIP_API_PER_THREAD_DEFAULT_STREAM__``. Deprecated. +C++20 Concepts with HIP and CUDA + + +In Clang, when working with HIP or CUDA, it's impor

[clang] [clang][driver] Use TheDriver.ClangExecutable in SetInstallDir to point to the actual install folder (PR #68091)

2023-10-04 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: > Without any other reference, I checked the Apple clang, on my macOS: > > ``` > ilg@wksi ~ % /usr/bin/clang -v > Apple clang version 14.0.0 (clang-1400.0.29.202) > Target: x86_64-apple-darwin21.6.0 > Thread model: posix > InstalledDir: /Library/Developer/CommandLineTools/usr/bin

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

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

[PATCH] D156453: [clang][Interp] Create only globals when initializing a global variable

2023-10-04 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder added a comment. It gets interpreted as a constant expression in `Sema::CheckCompleteVariableInitialization()`: * #0: Context.cpp:73 clang::interp::Context::evaluateAsInitializer(this=0x60805d20, Parent=0x7fff6dc2a8d0, VD=0x62173b48, Result=0x62199e90)

[clang] [clang][driver] Use TheDriver.ClangExecutable in SetInstallDir to point to the actual install folder (PR #68091)

2023-10-04 Thread Liviu Ionescu via cfe-commits
ilg-ul wrote: > it's quite possible that someone has ended up depending on the previous de > facto behaviour. Then we have to be super creative and find a better solution. How about changing the logic, and where `Driver.InstalledDir` is used, if the desired file/folder is not found (like head

[PATCH] D147844: [clang][Sema]Print diagnostic warning about precedence when integer expression is used without parentheses in an conditional operator expression

2023-10-04 Thread NagaChaitanya Vellanki via Phabricator via cfe-commits
chaitanyav updated this revision to Diff 557588. chaitanyav added a comment. Rebase with upstream Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D147844/new/ https://reviews.llvm.org/D147844 Files: clang/docs/ReleaseNotes.rst clang/lib/Sema/Sema

[clang-tools-extra] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
https://github.com/ldionne requested changes to this pull request. Thanks a lot for the patch! I think this is really great and I'm glad we're paving the way for new backends being added in the library. Since this is the first such backend, there are some thing to change as we discussed during

[clang-tools-extra] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,44 @@ +//===--===// +// +// 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: Apac

[clang] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,27 @@ +//===--===// +// +// 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: Apac

[clang] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,50 @@ +//===--===// +// +// 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: Apac

[clang] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,50 @@ +//===--===// +// +// 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: Apac

[clang-tools-extra] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,41 @@ +//===--===// +// +// 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: Apac

[clang-tools-extra] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
@@ -807,6 +815,11 @@ else() Valid backends are: serial, std_thread and libdispatch") endif() +config_define_if(LIBCXX_ENABLE_GPU_OFFLOAD _LIBCPP_PSTL_GPU_OFFLOAD) ldionne wrote: I think we should do something like this instead: ``` if

[clang-tools-extra] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,37 @@ +//===--===// ldionne wrote: I think this header can go away entirely. https://github.com/llvm/llvm-project/pull/66968 ___ cfe-commit

[clang-tools-extra] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,120 @@ +//===--===// +// +// 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] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,27 @@ +//===--===// +// +// 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: Apac

[clang-tools-extra] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
https://github.com/ldionne edited https://github.com/llvm/llvm-project/pull/66968 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,44 @@ +//===--===// +// +// 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: Apac

[clang] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,349 @@ +//===--===// ldionne wrote: Not attached to this line: We need to discuss how exceptions are handled when we offload to the GPU. @AntonRydahl mentioned that `throw` was compi

[clang] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
https://github.com/ldionne edited https://github.com/llvm/llvm-project/pull/66968 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
https://github.com/ldionne requested changes to this pull request. Thanks a lot for the patch! I think this is really great and I'm glad we're paving the way for new backends being added in the library. Since this is the first such backend, there are some thing to change as we discussed during

[clang-tools-extra] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,87 @@ +//===--===// +// +// 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: Apac

[clang-tools-extra] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,50 @@ +//===--===// +// +// 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: Apac

[clang] Adding Separate OpenMP Offloading Backend to `libcxx/include/__algorithm/pstl_backends` (PR #66968)

2023-10-04 Thread Louis Dionne via cfe-commits
@@ -0,0 +1,37 @@ +//===--===// ldionne wrote: I think this header can go away entirely. https://github.com/llvm/llvm-project/pull/66968 ___ cfe-commit

[clang] [clang][modules] Remove preloaded SLocEntries from PCM files (PR #66962)

2023-10-04 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 updated https://github.com/llvm/llvm-project/pull/66962 >From 61e8961cde95e9e8ce8cea3efd6aa52273f430e9 Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Wed, 20 Sep 2023 16:50:48 -0700 Subject: [PATCH 1/4] [clang][modules] Remove preloaded SLocEntries from PCM fi

[PATCH] D147844: [clang][Sema]Print diagnostic warning about precedence when integer expression is used without parentheses in an conditional operator expression

2023-10-04 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. I've been pondering what I'd want from a warning here. I think generally I would like to warn if there are two plausible interpretations of the token sequence -- that is, if giving the `?` different precedence could plausibly lead to a different valid program. I think co

[PATCH] D157331: [clang] Implement C23

2023-10-04 Thread Zijun Zhao via Phabricator via cfe-commits
ZijunZhao updated this revision to Diff 557589. ZijunZhao added a comment. Remove stdckdint.h in module.map Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D157331/new/ https://reviews.llvm.org/D157331 Files: clang/docs/ReleaseNotes.rst clang/inc

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

2023-10-04 Thread Artem Belevich via cfe-commits
@@ -176,3 +176,65 @@ Predefined Macros * - ``HIP_API_PER_THREAD_DEFAULT_STREAM`` - Alias to ``__HIP_API_PER_THREAD_DEFAULT_STREAM__``. Deprecated. +Function Pointers Support in Clang with HIP +=== + +Function pointers' support va

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

2023-10-04 Thread Artem Belevich via cfe-commits
@@ -176,3 +176,65 @@ Predefined Macros * - ``HIP_API_PER_THREAD_DEFAULT_STREAM`` - Alias to ``__HIP_API_PER_THREAD_DEFAULT_STREAM__``. Deprecated. +Function Pointers Support in Clang with HIP +=== + +Function pointers' support va

[clang] [clang][modules] Remove preloaded SLocEntries from PCM files (PR #66962)

2023-10-04 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 updated https://github.com/llvm/llvm-project/pull/66962 >From 61e8961cde95e9e8ce8cea3efd6aa52273f430e9 Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Wed, 20 Sep 2023 16:50:48 -0700 Subject: [PATCH 1/5] [clang][modules] Remove preloaded SLocEntries from PCM fi

[clang] [Modules] no_undeclared_includes modules (Apple Darwin) don't work the clang modules (PR #68241)

2023-10-04 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder created https://github.com/llvm/llvm-project/pull/68241 All of the _Builtin_stdarg and _Builtin_stddef submodules need to be allowed from [no_undeclared_includes] modules. Split the builtin headers tests out from the compiler_builtins test so that the testi

[clang] [clang][modules] Remove preloaded SLocEntries from PCM files (PR #66962)

2023-10-04 Thread Ben Langmuir via cfe-commits
@@ -458,14 +458,12 @@ SourceManager::AllocateLoadedSLocEntries(unsigned NumSLocEntries, CurrentLoadedOffset - TotalSize < NextLocalOffset) { return std::make_pair(0, 0); } - - unsigned NewTableSize = LoadedSLocEntryTable.size() + NumSLocEntries; - LoadedSLocEntry

[clang] [clang][modules] Remove preloaded SLocEntries from PCM files (PR #66962)

2023-10-04 Thread Ben Langmuir via cfe-commits
@@ -1986,13 +1984,15 @@ bool SourceManager::isInTheSameTranslationUnitImpl( if (isLoadedFileID(LOffs.first) != isLoadedFileID(ROffs.first)) return false; - // If both are loaded from different AST files. if (isLoadedFileID(LOffs.first) && isLoadedFileID(ROffs.first))

[clang] [Modules] no_undeclared_includes modules (Apple Darwin) don't work the clang modules (PR #68241)

2023-10-04 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes All of the _Builtin_stdarg and _Builtin_stddef submodules need to be allowed from [no_undeclared_includes] modules. Split the builtin headers tests out from the compiler_builtins test so that the testing modules can be modified without af

[PATCH] D157547: Arm64EC entry/exit thunks, consolidated.

2023-10-04 Thread Eli Friedman via Phabricator via cfe-commits
efriedma updated this revision to Diff 557592. efriedma added a comment. Updated with feedback from @dpaoliello and additional internal testing. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D157547/new/ https://reviews.llvm.org/D157547 Files: cl

[clang] [clang][driver] Prevent clang pick the system headers/libraries when started via a symlink (PR #68091)

2023-10-04 Thread Liviu Ionescu via cfe-commits
https://github.com/ilg-ul edited https://github.com/llvm/llvm-project/pull/68091 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][driver] Prevent clang picking the system headers/libraries when started via a symlink (PR #68091)

2023-10-04 Thread Liviu Ionescu via cfe-commits
https://github.com/ilg-ul edited https://github.com/llvm/llvm-project/pull/68091 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [mlir][llvm] Fix elem type passing into `getelementptr` (PR #68136)

2023-10-04 Thread Markus Böck via cfe-commits
zero9178 wrote: Thank you for your elaboration! I am not sure whether the original commit is referring to also supporting both typed pointers and opaque pointers in the exact same IR. This behaviour deviates from LLVM entirely as LLVM only supported one or the other as well. Furthermore, your

[clang] [Modules] no_undeclared_includes modules (Apple Darwin) don't work the clang modules (PR #68241)

2023-10-04 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 e86d6a43f03b6d635d8d1101a936088c8cf0cf23 389a174b0e8462ed15d9ca1e1b223618aec99d21 --

[clang] [clang][modules] Remove preloaded SLocEntries from PCM files (PR #66962)

2023-10-04 Thread Jan Svoboda via cfe-commits
@@ -458,14 +458,12 @@ SourceManager::AllocateLoadedSLocEntries(unsigned NumSLocEntries, CurrentLoadedOffset - TotalSize < NextLocalOffset) { return std::make_pair(0, 0); } - - unsigned NewTableSize = LoadedSLocEntryTable.size() + NumSLocEntries; - LoadedSLocEntry

[clang] [clang][modules] Remove preloaded SLocEntries from PCM files (PR #66962)

2023-10-04 Thread Ben Langmuir via cfe-commits
https://github.com/benlangmuir edited https://github.com/llvm/llvm-project/pull/66962 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][modules] Remove preloaded SLocEntries from PCM files (PR #66962)

2023-10-04 Thread Ben Langmuir via cfe-commits
@@ -458,14 +458,12 @@ SourceManager::AllocateLoadedSLocEntries(unsigned NumSLocEntries, CurrentLoadedOffset - TotalSize < NextLocalOffset) { return std::make_pair(0, 0); } - - unsigned NewTableSize = LoadedSLocEntryTable.size() + NumSLocEntries; - LoadedSLocEntry

<    1   2   3   4   >