[PATCH] D80003: [clang][clang-scan-deps] Add a mode that can compute overhead in duplicated module builds

Daniel Grumberg via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 15 06:28:07 PDT 2020


dang created this revision.
dang added a reviewer: Bigcheese.
Herald added subscribers: cfe-commits, tschuett, dexonsmith.
Herald added a project: clang.

Adds a command line option "--metrics" that computes and outputs this
information at the end of a run.
This identifies modules duplicated due to strict context hashing and computes
how many of them of identical ASTs.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D80003

Files:
  clang/include/clang/Frontend/CompilerInvocation.h
  clang/include/clang/Tooling/DependencyScanning/ModuleDepCollector.h
  clang/lib/Frontend/CompilerInvocation.cpp
  clang/lib/Tooling/DependencyScanning/ModuleDepCollector.cpp
  clang/tools/clang-scan-deps/ClangScanDeps.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80003.264223.patch
Type: text/x-patch
Size: 9559 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200515/ff9a0a13/attachment-0001.bin>


More information about the cfe-commits mailing list