[PATCH] D149693: [clang][deps] Make clang-scan-deps write modules in raw format
Ben Langmuir via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 2 13:59:37 PDT 2023
benlangmuir created this revision.
benlangmuir added reviewers: jansvoboda11, akyrtzi, Bigcheese.
Herald added a subscriber: arphaman.
Herald added a project: All.
benlangmuir requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
We have no use for debug info for the scanner modules, and writing raw ast files speeds up scanning ~15% in some cases. Note that the compile commands produced by the scanner will still build the obj format (if requested), and the scanner can *read* obj format pcms, e.g. from a PCH.
rdar://108807592
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D149693
Files:
clang/include/clang/CodeGen/ObjectFilePCHContainerOperations.h
clang/include/clang/Serialization/PCHContainerOperations.h
clang/lib/CodeGen/ObjectFilePCHContainerOperations.cpp
clang/lib/Frontend/ASTUnit.cpp
clang/lib/Serialization/PCHContainerOperations.cpp
clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
clang/test/ClangScanDeps/module-format.c
clang/tools/libclang/CIndex.cpp
clang/tools/libclang/Indexing.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149693.518856.patch
Type: text/x-patch
Size: 10343 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230502/55b88a3f/attachment-0001.bin>
More information about the cfe-commits
mailing list