[PATCH] D116750: [clang][lex] Keep references to `DirectoryLookup` objects up-to-date
Jan Svoboda via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 11 07:00:39 PST 2022
jansvoboda11 added a comment.
In D116750#3234261 <https://reviews.llvm.org/D116750#3234261>, @thakis wrote:
> 1. `which is stable thanks to the bump-ptr-allocation strategy.` I don't understand this. In each slab, that's true, but why is it true between objects allocated in different slabs?
That's referring to the fact that once we allocate new `DirectoryLookup` with `SpecificBumpPtrAllocator`, address of that object won't change (unlike with `std::vector`). This means that we can take the address and use it without worrying about invalidation.
> 2. This increases numbers of TUs compiled for LexTests by over 10%. Is there no way around that Frontend dep?
I'll look into moving `clang::ApplyHeaderSearchOptions` from `Frontend` into `Lex`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116750/new/
https://reviews.llvm.org/D116750
More information about the cfe-commits
mailing list