[PATCH] D128704: [clang-extdef-mapping] Directly process .ast files
Tobias Hieta via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 28 00:08:54 PDT 2022
thieta created this revision.
thieta added reviewers: steakhal, martong, NoQ.
Herald added a subscriber: rnkovacs.
Herald added a project: All.
thieta requested review of this revision.
Herald added a project: clang.
When doing CTU analysis setup you pre-compile .cpp to .ast and then
you run clang-extdef-mapping on the .cpp file as well. This is a
pretty slow process since we have to recompile the file each time.
With this patch you can now run clang-extdef-mapping directly on
the .ast file. That saves a lot of time.
I tried this on llvm/lib/AsmParser/Parser.cpp and running
extdef-mapping on the .cpp file took 5.4s on my machine.
While running it on the .ast file it took 2s.
This can save a lot of time for the setup phase of CTU analysis.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D128704
Files:
clang/tools/clang-extdef-mapping/ClangExtDefMapGen.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128704.440500.patch
Type: text/x-patch
Size: 3800 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220628/25f7f471/attachment-0001.bin>
More information about the cfe-commits
mailing list