[PATCH] D159064: [Modules] Make clang modules for the C standard library headers

2023-10-03 Thread Med Ismail Bennani via Phabricator via cfe-commits
mib added a comment. Hey @iana, I think this broke the lldb bot https://green.lab.llvm.org/green/view/LLDB/job/as-lldb-cmake/6698/ Can you take a look ? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D159064/new/ https://reviews.llvm.org/D159064 _

[clang] [clang][RelativeVTables] Make the rtti_proxy LinkOnceODR instead of External linkage (PR #67755)

2023-10-03 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 40c1f5b2fb88b17c6ed6911466002824d1880871 0e798f3fdd7dc8816a71e3e147ca14616ad4a123 --

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

2023-10-03 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik approved this pull request. Thank you for the follow-up work. LGTM 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-co

[clang] [Inliner] Add argument/function attribute propagation before inlining. (PR #68164)

2023-10-03 Thread via cfe-commits
goldsteinn wrote: Note on compile time affect: https://llvm-compile-time-tracker.com/compare.php?from=2da4960f20f7e5d88a68ce25636a895284dc66d8&to=f8c9f5bce65756598da22e8aec5d91fb66b16d5c&stat=instructions%3Au Minimal for normal O3, a bit more significant for LTO. https://github.com/llvm/llvm-p

[clang] [Inliner] Add argument/function attribute propagation before inlining. (PR #68164)

2023-10-03 Thread via cfe-commits
https://github.com/goldsteinn updated https://github.com/llvm/llvm-project/pull/68164 >From 73290d5992e6a395fc953a9223173e9fd60a8775 Mon Sep 17 00:00:00 2001 From: Noah Goldstein Date: Thu, 7 Sep 2023 18:48:26 -0500 Subject: [PATCH 1/2] [Inliner] Propagate callee function memory access attribu

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

2023-10-03 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] Fix the Modules/compiler_builtins.m test (PR #68163)

2023-10-03 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder closed https://github.com/llvm/llvm-project/pull/68163 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b855ae9 - Fix the Modules/compiler_builtins.m test (#68163)

2023-10-03 Thread via cfe-commits
Author: Ian Anderson Date: 2023-10-03T15:58:38-07:00 New Revision: b855ae99036085267b4f7482f996c7d83d0d2983 URL: https://github.com/llvm/llvm-project/commit/b855ae99036085267b4f7482f996c7d83d0d2983 DIFF: https://github.com/llvm/llvm-project/commit/b855ae99036085267b4f7482f996c7d83d0d2983.diff

[clang] [clang][RelativeVTables] Make the rtti_proxy LinkOnceODR instead of External linkage (PR #67755)

2023-10-03 Thread via cfe-commits
PiJoules wrote: > The change to `clang/test/CodeGenCXX/fixed-point-mangle.cpp` is unrelated. Woops. Yeah, removed. https://github.com/llvm/llvm-project/pull/67755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] [clang][RelativeVTables] Make the rtti_proxy LinkOnceODR instead of External linkage (PR #67755)

2023-10-03 Thread via cfe-commits
https://github.com/PiJoules updated https://github.com/llvm/llvm-project/pull/67755 >From 0e798f3fdd7dc8816a71e3e147ca14616ad4a123 Mon Sep 17 00:00:00 2001 From: Leonard Chan Date: Fri, 29 Sep 2023 00:25:44 + Subject: [PATCH] [clang][RelativeVTables] Make the rtti_proxy LinkOnceODR instead

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

2023-10-03 Thread Yinying Li via cfe-commits
@@ -533,7 +533,7 @@ func.func @sparse_compression(%tensor: tensor<8x8xf64, #CSR>, // CHECK: %[[A13:.*]]:4 = scf.for %[[A14:.*]] = %[[A11]] to %[[A7]] step %[[A12]] iter_args(%[[A15:.*]] = %[[A0]], %[[A16:.*]] = %[[A1]], %[[A17:.*]] = %[[A2]], %[[A18:.*]] = %[[A3]]) -

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

2023-10-03 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/3] [mlir][sparse] Print new syntax Printing changes from #s

[clang-tools-extra] [OpenMPIRBuilder] Remove wrapper function in `createTask`, `createTeams` (PR #67723)

2023-10-03 Thread via cfe-commits
shraiysh wrote: Ping for review! https://github.com/llvm/llvm-project/pull/67723 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-10-03 Thread Alois Klink via cfe-commits
@@ -4122,6 +4122,9 @@ def RestrictDocs : Documentation { The ``malloc`` attribute indicates that the function acts like a system memory allocation function, returning a pointer to allocated storage disjoint from the storage for any other object accessible to the caller. + +The

[clang] [OpenMPIRBuilder] Remove wrapper function in `createTask`, `createTeams` (PR #67723)

2023-10-03 Thread via cfe-commits
shraiysh wrote: Ping for review! https://github.com/llvm/llvm-project/pull/67723 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Inliner] Add argument/function attribute propagation before inlining. (PR #68164)

2023-10-03 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 1cfaa863bc36d25625114b432e2ddf35d2302452 f8c9f5bce65756598da22e8aec5d91fb66b16d5c --

[libunwind] [mlir][OpenMP] Added translation for `omp.teams` to LLVM IR (PR #68042)

2023-10-03 Thread via cfe-commits
https://github.com/shraiysh closed https://github.com/llvm/llvm-project/pull/68042 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libclc] [mlir][OpenMP] Added translation for `omp.teams` to LLVM IR (PR #68042)

2023-10-03 Thread via cfe-commits
https://github.com/shraiysh closed https://github.com/llvm/llvm-project/pull/68042 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-tidy][libc] Fix namespace check with macro (PR #68134)

2023-10-03 Thread via cfe-commits
https://github.com/michaelrj-google updated https://github.com/llvm/llvm-project/pull/68134 >From baf9d8e19d2b064c05527757c6173f875b59b286 Mon Sep 17 00:00:00 2001 From: Michael Jones Date: Tue, 3 Oct 2023 10:39:02 -0700 Subject: [PATCH 1/2] [clang-tidy][libc] Fix namespace check with macro Th

[clang] Fix the Modules/compiler_builtins.m test (PR #68163)

2023-10-03 Thread Michael Spencer via cfe-commits
https://github.com/Bigcheese approved this pull request. https://github.com/llvm/llvm-project/pull/68163 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D148381: [Clang] Implement the 'counted_by' attribute

2023-10-03 Thread Bill Wendling via cfe-commits
Yes, I mean to do it as a direct follow-up. 😊 -bw On Tue, Oct 3, 2023, 6:31 AM Aaron Ballman via Phabricator < revi...@reviews.llvm.org> wrote: > aaron.ballman added inline comments. > > > > Comment at: clang/lib/Sema/SemaDeclAttr.cpp:8420-8428 > +if (Result.getResultKind()

[clang] [Inliner] Add argument/function attribute propagation before inlining. (PR #68164)

2023-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes - [Inliner] Propagate callee function memory access attributes before inlining - [Inliner] Propagate callee argument memory access attributes before inlining --- Patch is 24.83 KiB, truncated to 20.00 KiB below, full version: https://git

[clang] [Inliner] Add argument/function attribute propagation before inlining. (PR #68164)

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

[clang] goldsteinn/inliner attrs next next (PR #68164)

2023-10-03 Thread via cfe-commits
https://github.com/goldsteinn created https://github.com/llvm/llvm-project/pull/68164 - [Inliner] Propagate callee function memory access attributes before inlining - [Inliner] Propagate callee argument memory access attributes before inlining >From 73290d5992e6a395fc953a9223173e9fd60a8775 Mon

[clang-tools-extra] [clang-tidy][libc] Fix namespace check with macro (PR #68134)

2023-10-03 Thread Congcong Cai via cfe-commits
https://github.com/HerrCai0907 approved this pull request. LGTM. Please update the release notes. https://github.com/llvm/llvm-project/pull/68134 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

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

2023-10-03 Thread via cfe-commits
5chmidti wrote: > * How do I correctly parse the values in a macro? While the test locally > works, it doesn't in CI. I also don't differentiate between what kind of > numeric constant the token is, which might be another problem. Any pointers > on how to do this correctly are greatly apprecia

[clang-tools-extra] [RISCV][GISel] Select G_SELECT (PR #67614)

2023-10-03 Thread Craig Topper via cfe-commits
https://github.com/topperc approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/67614 ___ 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-03 Thread Jan Svoboda via cfe-commits
@@ -458,11 +458,14 @@ SourceManager::AllocateLoadedSLocEntries(unsigned NumSLocEntries, CurrentLoadedOffset - TotalSize < NextLocalOffset) { return std::make_pair(0, 0); } - LoadedSLocEntryTable.resize(LoadedSLocEntryTable.size() + NumSLocEntries); - SLocEntryLoa

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

2023-10-03 Thread Jan Svoboda 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

[clang] Fix the Modules/compiler_builtins.m test (PR #68163)

2023-10-03 Thread Ian Anderson via cfe-commits
ian-twilightcoder wrote: Fix for https://lab.llvm.org/buildbot/#/builders/186/builds/12412 https://github.com/llvm/llvm-project/pull/68163 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commi

[clang] Fix the Modules/compiler_builtins.m test (PR #68163)

2023-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Changes Sometimes unwind.h needs uint32_t also. --- Full diff: https://github.com/llvm/llvm-project/pull/68163.diff 1 Files Affected: - (modified) clang/test/Modules/Inputs/System/usr/include/stdint.h (+1) ``diff diff --git a/

[clang] 1cfaa86 - [HIP][Clang][Driver] Disable `hipstdpar` driver test on SIE to unblock build bot, pending test refactor.

2023-10-03 Thread Alex Voicu via cfe-commits
Author: Alex Voicu Date: 2023-10-03T23:00:13+01:00 New Revision: 1cfaa863bc36d25625114b432e2ddf35d2302452 URL: https://github.com/llvm/llvm-project/commit/1cfaa863bc36d25625114b432e2ddf35d2302452 DIFF: https://github.com/llvm/llvm-project/commit/1cfaa863bc36d25625114b432e2ddf35d2302452.diff LO

[clang] Fix the Modules/compiler_builtins.m test (PR #68163)

2023-10-03 Thread Ian Anderson via cfe-commits
https://github.com/ian-twilightcoder created https://github.com/llvm/llvm-project/pull/68163 Sometimes unwind.h needs uint32_t also. >From cd2cc782937f9b0415733c48dcd1d9d8ab19ea48 Mon Sep 17 00:00:00 2001 From: Ian Anderson Date: Tue, 3 Oct 2023 14:51:58 -0700 Subject: [PATCH] Fix the Modules/

[PATCH] D158561: [-Wunsafe-buffer-usage] Add AST info to the unclaimed DRE debug notes for analysis

2023-10-03 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: clang/test/SemaCXX/warn-unsafe-buffer-usage-debug-unclaimed/lit.local.cfg:6 + +config.substitutions.append(('PYTHON_EXE', python_executable)); I might be overthinking/cargo-culting, but folks seem to never expose the pytho

[clang] [AArch64][FMV] Add rcpc3 support, introduce bits for features extensi… (PR #68104)

2023-10-03 Thread Pavel Iliin via cfe-commits
https://github.com/ilinpv closed https://github.com/llvm/llvm-project/pull/68104 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b04fe22 - [AArch64][FMV] Add rcpc3 support, introduce bits for features extensi… (#68104)

2023-10-03 Thread via cfe-commits
Author: Pavel Iliin Date: 2023-10-03T22:52:01+01:00 New Revision: b04fe222d21277f8359130cd50ae7303b3d15254 URL: https://github.com/llvm/llvm-project/commit/b04fe222d21277f8359130cd50ae7303b3d15254 DIFF: https://github.com/llvm/llvm-project/commit/b04fe222d21277f8359130cd50ae7303b3d15254.diff L

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

2023-10-03 Thread via cfe-commits
5chmidti wrote: Added a comment to the release notes https://github.com/llvm/llvm-project/pull/67939 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

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

2023-10-03 Thread via cfe-commits
https://github.com/5chmidti updated https://github.com/llvm/llvm-project/pull/67939 >From d0ac0cdb0f9ccbe78ec236932ca9b9a85768ecf2 Mon Sep 17 00:00:00 2001 From: Julian Schmidt <44101708+5chmi...@users.noreply.github.com> Date: Mon, 2 Oct 2023 01:34:24 +0200 Subject: [PATCH] [clang] fix hasAnyBa

[clang] [clang-format] Annotate ctors/dtors as CtorDtorDeclName instead (PR #67955)

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

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

2023-10-03 Thread Liviu Ionescu via cfe-commits
ilg-ul wrote: > You make it sound like nobody else might ever have used such symlinks before > - isn't that quite a big assumption? Ah, sorry for the confusion, I did not intend to make it sound like a big assumption. I'm convinced that such links were occasionally used before, just that the

[clang] 344e735 - Bump up DIAG_SIZE_DRIVER as we are very close to the limit as of 9a40858.

2023-10-03 Thread Douglas Yung via cfe-commits
Author: Douglas Yung Date: 2023-10-03T14:27:53-07:00 New Revision: 344e735c172e3f976c0b91c4bccc0d3291f644b7 URL: https://github.com/llvm/llvm-project/commit/344e735c172e3f976c0b91c4bccc0d3291f644b7 DIFF: https://github.com/llvm/llvm-project/commit/344e735c172e3f976c0b91c4bccc0d3291f644b7.diff

[clang] [clang] use absolute path for builtin headers during module compilation (PR #68023)

2023-10-03 Thread Ben Langmuir via cfe-commits
https://github.com/benlangmuir approved this pull request. This seems reasonable to me, but I would like @jansvoboda11 to also look at it. https://github.com/llvm/llvm-project/pull/68023 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://l

[clang] dce54ea - [HIP][Clang][Driver] Disable `hipstdpar` driver test on SCEI to unblock build bot, pending test refactor.

2023-10-03 Thread Alex Voicu via cfe-commits
Author: Alex Voicu Date: 2023-10-03T22:17:12+01:00 New Revision: dce54eae46685116ca0fe60f1dcabced2d0d297e URL: https://github.com/llvm/llvm-project/commit/dce54eae46685116ca0fe60f1dcabced2d0d297e DIFF: https://github.com/llvm/llvm-project/commit/dce54eae46685116ca0fe60f1dcabced2d0d297e.diff LO

[clang] [Inliner] Improve propagation of return attributes. (PR #67756)

2023-10-03 Thread via cfe-commits
https://github.com/goldsteinn closed https://github.com/llvm/llvm-project/pull/67756 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Inliner] Improve propagation of return attributes. (PR #67756)

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

[clang] [clang-format][NFC] AlignTokenSequence: Skip loop iteration (PR #68154)

2023-10-03 Thread Owen Pan via cfe-commits
https://github.com/owenca approved this pull request. We should also update [this line](https://github.com/llvm/llvm-project/pull/68154/files#diff-13a957866eda585a177e1d10139b157956e9d82c40d2275b500c2b1bcb2ad8c0R452) to: ``` assert(Shift > 0 || Changes[i].NewlinesBefore > 0 || ``` https://

[PATCH] D86310: [X86] Align i128 to 16 bytes in x86 datalayouts

2023-10-03 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a subscriber: akhuang. rnk added a comment. Regarding upgrade-datalayout2.ll, I don't think we need to be too constrained by it. @akhuang , do you recall why you added it? In other words, I think your direction is reasonable, we should go forward with this. Repository: rG LLVM Git

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

2023-10-03 Thread Ben Langmuir via cfe-commits
@@ -2082,6 +2082,11 @@ std::pair SourceManager::isInTheSameTranslationUnit( if (LOffs.first == ROffs.first) return std::make_pair(true, LOffs.second < ROffs.second); + // Built-ins are not considered part of any TU. benlangmuir wrote: Yes, this commen

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

2023-10-03 Thread Aart Bik via cfe-commits
@@ -533,7 +533,7 @@ func.func @sparse_compression(%tensor: tensor<8x8xf64, #CSR>, // CHECK: %[[A13:.*]]:4 = scf.for %[[A14:.*]] = %[[A11]] to %[[A7]] step %[[A12]] iter_args(%[[A15:.*]] = %[[A0]], %[[A16:.*]] = %[[A1]], %[[A17:.*]] = %[[A2]], %[[A18:.*]] = %[[A3]]) -

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

2023-10-03 Thread Jan Svoboda via cfe-commits
@@ -2082,6 +2082,11 @@ std::pair SourceManager::isInTheSameTranslationUnit( if (LOffs.first == ROffs.first) return std::make_pair(true, LOffs.second < ROffs.second); + // Built-ins are not considered part of any TU. jansvoboda11 wrote: This comment ap

[clang] [clang] NFC: Deprecate `FileEntry::getName()` (PR #68157)

2023-10-03 Thread Ben Langmuir via cfe-commits
https://github.com/benlangmuir approved this pull request. 🎉 https://github.com/llvm/llvm-project/pull/68157 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] NFC: Deprecate `FileEntry::getName()` (PR #68157)

2023-10-03 Thread Ben Langmuir via cfe-commits
@@ -284,7 +284,6 @@ TEST_F(FileManagerTest, getFileRefReturnsCorrectNameForDifferentStatPath) { ASSERT_FALSE(!F1Alias); ASSERT_FALSE(!F1Alias2); EXPECT_EQ("dir/f1.cpp", F1->getName()); - EXPECT_EQ("dir/f1.cpp", F1->getFileEntry().getName()); benlangmuir

[clang] [clang] NFC: Deprecate `FileEntry::getName()` (PR #68157)

2023-10-03 Thread Ben Langmuir via cfe-commits
https://github.com/benlangmuir edited https://github.com/llvm/llvm-project/pull/68157 ___ 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-03 Thread Ben Langmuir via cfe-commits
@@ -458,11 +458,14 @@ SourceManager::AllocateLoadedSLocEntries(unsigned NumSLocEntries, CurrentLoadedOffset - TotalSize < NextLocalOffset) { return std::make_pair(0, 0); } - LoadedSLocEntryTable.resize(LoadedSLocEntryTable.size() + NumSLocEntries); - SLocEntryLoa

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

2023-10-03 Thread Ben Langmuir via cfe-commits
@@ -458,11 +458,14 @@ SourceManager::AllocateLoadedSLocEntries(unsigned NumSLocEntries, CurrentLoadedOffset - TotalSize < NextLocalOffset) { return std::make_pair(0, 0); } - LoadedSLocEntryTable.resize(LoadedSLocEntryTable.size() + NumSLocEntries); - SLocEntryLoa

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

2023-10-03 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

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

2023-10-03 Thread Ben Langmuir via cfe-commits
@@ -2082,6 +2082,11 @@ std::pair SourceManager::isInTheSameTranslationUnit( if (LOffs.first == ROffs.first) return std::make_pair(true, LOffs.second < ROffs.second); + // Built-ins are not considered part of any TU. benlangmuir wrote: Does this have t

[clang] [clang-format][NFC] AlignTokenSequence: Rename Changes[i] to CurrentC… (PR #68153)

2023-10-03 Thread Owen Pan via cfe-commits
https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/68153 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [AMDGPU] Add another SIFoldOperands instance after shrink (PR #67878)

2023-10-03 Thread Stanislav Mekhanoshin via cfe-commits
rampitec wrote: I have measured compile time performance impact with timing check-llvm-codegen-amdgpu on the release build: ``` before the patch: 11.06s add folding:11.09s +0.2% remove folding from shrink: 11.02s -0.4% ``` In general the impact smaller than run to run

[clang] [AMDGPU] Add another SIFoldOperands instance after shrink (PR #67878)

2023-10-03 Thread Stanislav Mekhanoshin via cfe-commits
rampitec wrote: I have measured compile time performance impact with timing check-llvm-codegen-amdgpu on the release build: ``` before the patch: 11.06s add folding:11.09s +0.2% remove folding from shrink: 11.02s -0.4% ``` In general the impact smaller than run to run

[clang] [clang-format][NFC] AlignTokens: Rename Changes[i] to CurrentChange (PR #68152)

2023-10-03 Thread Owen Pan via cfe-commits
https://github.com/owenca approved this pull request. https://github.com/llvm/llvm-project/pull/68152 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] NFC: Deprecate `FileEntry::getName()` (PR #68157)

2023-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes All uses of `FileEntry::getName()` were removed in favor of `FileEntryRef::getName()`. This patch finally formally deprecates that function. The plan is to remove it entirely in the main branch after we cut the release branch for LLVM 18.

[clang] [clang] NFC: Deprecate `FileEntry::getName()` (PR #68157)

2023-10-03 Thread Jan Svoboda via cfe-commits
jansvoboda11 wrote: (Note that this is currently blocked on #67839.) https://github.com/llvm/llvm-project/pull/68157 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Annotate ctors/dtors as CtorDtorDeclName instead (PR #67955)

2023-10-03 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/67955 >From 15d37075331311020020c5741e2432cd3fc0be74 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Sun, 1 Oct 2023 23:01:30 -0700 Subject: [PATCH 1/2] [clang-format] Annotate ctors/dtors as CtorDtorDeclName instead Af

[clang] [clang] NFC: Deprecate `FileEntry::getName()` (PR #68157)

2023-10-03 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 created https://github.com/llvm/llvm-project/pull/68157 All uses of `FileEntry::getName()` were removed in favor of `FileEntryRef::getName()`. This patch finally formally deprecates that function. The plan is to remove it entirely in the main branch after we cut

[clang] [clang-format] Annotate ctors/dtors as CtorDtorDeclName instead (PR #67955)

2023-10-03 Thread Owen Pan via cfe-commits
owenca wrote: > https://buildkite.com/llvm-project/clang-ci/builds/4275#018af20e-3d3c-4344-b92d-88ac8b09b484 > Tests do not pass? I saw that but don't know why. Did you have the same failures? I'll push another commit shortly to trigger buildkite again. https://github.com/llvm/llvm-project/pu

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

2023-10-03 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: > > it makes me wonder if someone actually is relying on the current behaviour > > To rephrase your question, you ask if someone is using a configuration with a > folder where various custom libraries are and bin folder with a link to the > actual clang, and expects for clang t

[clang] [clang] NFC: Remove unused `FileEntry::getLastRef()` (PR #68156)

2023-10-03 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 closed https://github.com/llvm/llvm-project/pull/68156 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 25a6b89 - [clang] NFC: Remove unused `FileEntry::getLastRef()` (#68156)

2023-10-03 Thread via cfe-commits
Author: Jan Svoboda Date: 2023-10-03T13:37:39-07:00 New Revision: 25a6b891cbcd9aacee404cc0ccceed3248d93dd3 URL: https://github.com/llvm/llvm-project/commit/25a6b891cbcd9aacee404cc0ccceed3248d93dd3 DIFF: https://github.com/llvm/llvm-project/commit/25a6b891cbcd9aacee404cc0ccceed3248d93dd3.diff L

[clang] [clang-format] Annotate ctors/dtors as CtorDtorDeclName instead (PR #67955)

2023-10-03 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/67955 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] NFC: Remove unused `FileEntry::getLastRef()` (PR #68156)

2023-10-03 Thread Ben Langmuir via cfe-commits
https://github.com/benlangmuir approved this pull request. https://github.com/llvm/llvm-project/pull/68156 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] NFC: Remove unused `FileEntry::getLastRef()` (PR #68156)

2023-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes The last usage of the deprecated `FileEntry::getLastRef()` was removed in #67838, let's remove it entirely. --- Full diff: https://github.com/llvm/llvm-project/pull/68156.diff 1 Files Affected: - (modified) clang/include/clang/Basic/File

[clang] [clang] NFC: Remove unused `FileEntry::getLastRef()` (PR #68156)

2023-10-03 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 created https://github.com/llvm/llvm-project/pull/68156 The last usage of the deprecated `FileEntry::getLastRef()` was removed in #67838, let's remove it entirely. >From 2691f3e3c5867a8102fe2b288534f6c794318d3c Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: T

[clang] [clang-format] Annotate ctors/dtors as CtorDtorDeclName instead (PR #67955)

2023-10-03 Thread Owen Pan via cfe-commits
@@ -3447,9 +3447,13 @@ void TokenAnnotator::calculateFormattingInformation(AnnotatedLine &Line) const { Tok = Tok->Next) { if (Tok->Previous->EndsCppAttributeGroup) AfterLastAttribute = Tok; -if (isFunctionDeclarationName(Style.isCpp(), *Tok, Line, Closing

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

2023-10-03 Thread Liviu Ionescu via cfe-commits
ilg-ul wrote: > resolving this to the actual clang binary would indeed seem like the right > thing to do. Great! The new simplified patch does exactly this. > it makes me wonder if someone actually is relying on the current behaviour To rephrase your question, you ask if someone is using a co

[clang] [clang-format] Annotate ctors/dtors as CtorDtorDeclName instead (PR #67955)

2023-10-03 Thread Owen Pan via cfe-commits
@@ -16339,7 +16345,7 @@ TEST_F(FormatTest, ConfigurableSpaceBeforeParens) { verifyFormat("int f();", SpaceFuncDef); verifyFormat("void f (int a, T b) {}", SpaceFuncDef); - verifyFormat("A::A () : a(1) {}", SpaceFuncDef); + verifyFormat("A::A() : a(1) {}", SpaceFuncDef);

[clang] [clang-format][NFC] AlignTokenSequence: Skip loop iteration (PR #68154)

2023-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Changes When Shift is 0 there does nothing happen in the remainder of the loop, express that directly. --- Full diff: https://github.com/llvm/llvm-project/pull/68154.diff 1 Files Affected: - (modified) clang/lib/Format/WhitespaceManager.

[clang] [clang-format][NFC] AlignTokenSequence: Skip loop iteration (PR #68154)

2023-10-03 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks created https://github.com/llvm/llvm-project/pull/68154 When Shift is 0 there does nothing happen in the remainder of the loop, express that directly. From cd77a3cce4497c12c1d65d2f41d71b4ef3b5c079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C

[clang] [clang-format][NFC] AlignTokenSequence: Rename Changes[i] to CurrentC… (PR #68153)

2023-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Changes …hange To improve debugging experience. --- Full diff: https://github.com/llvm/llvm-project/pull/68153.diff 1 Files Affected: - (modified) clang/lib/Format/WhitespaceManager.cpp (+31-30) ``diff diff --git a/clang/lib/F

[clang] [clang-format][NFC] AlignTokenSequence: Rename Changes[i] to CurrentC… (PR #68153)

2023-10-03 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks created https://github.com/llvm/llvm-project/pull/68153 …hange To improve debugging experience. From ae3cc1f37e4b0f3640250f4f0ac58c9c7c4f2ca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Tue, 3 Oct 2023 17:31:21 +0200 Subjec

[clang] [clang-format][NFC] AlignTokens: Rename Changes[i] to CurrentChange (PR #68152)

2023-10-03 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Changes To improve debugging experience. --- Full diff: https://github.com/llvm/llvm-project/pull/68152.diff 1 Files Affected: - (modified) clang/lib/Format/WhitespaceManager.cpp (+13-12) ``diff diff --git a/clang/lib/Format/Wh

[clang] [clang-format][NFC] AlignTokens: Rename Changes[i] to CurrentChange (PR #68152)

2023-10-03 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks created https://github.com/llvm/llvm-project/pull/68152 To improve debugging experience. From 323ddd1948aa738419fd5afd848293b1a73e4cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sch=C3=A4pers?= Date: Tue, 3 Oct 2023 16:26:18 +0200 Subject: [PATC

[clang-tools-extra] [clang] NFCI: Use `FileEntryRef` for `FileID` creation (PR #67838)

2023-10-03 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 closed https://github.com/llvm/llvm-project/pull/67838 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] 27254ae - [clang] NFCI: Use `FileEntryRef` for `FileID` creation (#67838)

2023-10-03 Thread via cfe-commits
Author: Jan Svoboda Date: 2023-10-03T13:07:46-07:00 New Revision: 27254ae51192d83fd45777cc33b004d06c2ceb50 URL: https://github.com/llvm/llvm-project/commit/27254ae51192d83fd45777cc33b004d06c2ceb50 DIFF: https://github.com/llvm/llvm-project/commit/27254ae51192d83fd45777cc33b004d06c2ceb50.diff L

[libunwind] [AMDGPU] Add another SIFoldOperands instance after shrink (PR #67878)

2023-10-03 Thread Stanislav Mekhanoshin via cfe-commits
rampitec wrote: > I've just tested this on 1 graphics shaders and it seems to make no > difference at all. I tried gfx900 and gfx1100. Can anyone else from the > graphics team confirm this? It seems the most impact is on the pre-gfx9 targets, very similar to https://github.com/llvm/llvm-p

[clang] [AMDGPU] Add another SIFoldOperands instance after shrink (PR #67878)

2023-10-03 Thread Stanislav Mekhanoshin via cfe-commits
rampitec wrote: > I've just tested this on 1 graphics shaders and it seems to make no > difference at all. I tried gfx900 and gfx1100. Can anyone else from the > graphics team confirm this? It seems the most impact is on the pre-gfx9 targets, very similar to https://github.com/llvm/llvm-p

[clang] [clang-format] Annotate ctors/dtors as CtorDtorDeclName instead (PR #67955)

2023-10-03 Thread Owen Pan via cfe-commits
@@ -3447,9 +3447,13 @@ void TokenAnnotator::calculateFormattingInformation(AnnotatedLine &Line) const { Tok = Tok->Next) { if (Tok->Previous->EndsCppAttributeGroup) AfterLastAttribute = Tok; -if (isFunctionDeclarationName(Style.isCpp(), *Tok, Line, Closing

[clang] [diag] Silence `-Wfixed-enum-extension` in C23 (PR #68060)

2023-10-03 Thread Shoaib Meenai via cfe-commits
https://github.com/smeenai closed https://github.com/llvm/llvm-project/pull/68060 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] c6fed74 - [diag] Silence `-Wfixed-enum-extension` in C23 (#68060)

2023-10-03 Thread via cfe-commits
Author: Shoaib Meenai Date: 2023-10-03T13:04:22-07:00 New Revision: c6fed74f6f2e0c208ea0324fa1668b2cba5277a9 URL: https://github.com/llvm/llvm-project/commit/c6fed74f6f2e0c208ea0324fa1668b2cba5277a9 DIFF: https://github.com/llvm/llvm-project/commit/c6fed74f6f2e0c208ea0324fa1668b2cba5277a9.diff

[clang] [diag] Silence `-Wfixed-enum-extension` in C23 (PR #68060)

2023-10-03 Thread Shoaib Meenai via cfe-commits
https://github.com/smeenai updated https://github.com/llvm/llvm-project/pull/68060 >From b931e047168d2312f05c0fbf2813915cc4e06ae8 Mon Sep 17 00:00:00 2001 From: Shoaib Meenai Date: Mon, 2 Oct 2023 17:50:36 -0700 Subject: [PATCH 1/4] [diag] Silence `-Wfixed-enum-extension` in C23 The C23 standa

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

2023-10-03 Thread Martin Storsjö via cfe-commits
mstorsjo wrote: > > I haven't checked closely > > Hi Martin, please check the #66704 bug report, the current behaviour is > plainly wrong, I would kind of agree with that in general - resolving this to the actual clang binary would indeed seem like the right thing to do. But it makes me wonde

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

2023-10-03 Thread Liviu Ionescu via cfe-commits
https://github.com/ilg-ul updated https://github.com/llvm/llvm-project/pull/68091 >From f3812174546270051c4a2903b9a99408bf5b7ba0 Mon Sep 17 00:00:00 2001 From: Liviu Ionescu Date: Tue, 3 Oct 2023 14:07:48 +0300 Subject: [PATCH 1/3] [clang][driver] Use platform specific calls to get the executa

[clang] [NFC][Clang][CodeGen] Improve performance for vtable metadata generation (PR #67066)

2023-10-03 Thread Eli Friedman via cfe-commits
efriedma-quic wrote: Maybe start a discourse thread to get more eyes on this discussion? We might be able to use a hook to make llvmbot do something automatically. https://github.com/llvm/llvm-project/pull/67066 ___ cfe-commits mailing list cfe-commi

[clang] [NFC][Clang][CodeGen] Improve performance for vtable metadata generation (PR #67066)

2023-10-03 Thread Kirill Stoimenov via cfe-commits
kstoimenov wrote: Maybe one way is to add @mention which should trigger a new email message? On Tue, Oct 3, 2023 at 12:42 PM Vitaly Buka ***@***.***> wrote: > I didn't get an an email notification for that. > > Thanks, good to know. > I like that in Phabricator it was possible just reopen revie

[clang] [clang-format] Annotate ctors/dtors as CtorDtorDeclName instead (PR #67955)

2023-10-03 Thread Emilia Kond via cfe-commits
rymiel wrote: https://buildkite.com/llvm-project/clang-ci/builds/4275#018af20e-3d3c-4344-b92d-88ac8b09b484 Tests do not pass? https://github.com/llvm/llvm-project/pull/67955 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.or

[clang] [NFC][Clang][CodeGen] Improve performance for vtable metadata generation (PR #67066)

2023-10-03 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: > I didn't get an an email notification for that. Thanks, good to know. I like that in Phabricator it was possible just reopen review making revert very visible to the author. https://github.com/llvm/llvm-project/pull/67066 ___ cfe-

[PATCH] D159064: [Modules] Make clang modules for the C standard library headers

2023-10-03 Thread Ian Anderson via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG9a7a6dd3c358: [Modules] Make clang modules for the C standard library headers (authored by iana). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D159064/new/

[clang] 9a7a6dd - [Modules] Make clang modules for the C standard library headers

2023-10-03 Thread Ian Anderson via cfe-commits
Author: Ian Anderson Date: 2023-10-03T12:41:11-07:00 New Revision: 9a7a6dd3c358ca7becef75c0a9581dcfa3e6b5f4 URL: https://github.com/llvm/llvm-project/commit/9a7a6dd3c358ca7becef75c0a9581dcfa3e6b5f4 DIFF: https://github.com/llvm/llvm-project/commit/9a7a6dd3c358ca7becef75c0a9581dcfa3e6b5f4.diff

[clang] [Inliner] Improve propagation of return attributes. (PR #67756)

2023-10-03 Thread Nikita Popov via cfe-commits
https://github.com/nikic approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/67756 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Annotate ctors/dtors as CtorDtorDeclName instead (PR #67955)

2023-10-03 Thread Björn Schäpers via cfe-commits
@@ -3447,9 +3447,13 @@ void TokenAnnotator::calculateFormattingInformation(AnnotatedLine &Line) const { Tok = Tok->Next) { if (Tok->Previous->EndsCppAttributeGroup) AfterLastAttribute = Tok; -if (isFunctionDeclarationName(Style.isCpp(), *Tok, Line, Closing

<    1   2   3   4   5   >