[PATCH] D52549: [VFS] Add a VFS wrapper which avoids opening nonexistent files by reading dirs.
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 26 06:49:50 PDT 2018
sammccall created this revision.
sammccall added reviewers: ioeric, ilya-biryukov.
Herald added subscribers: cfe-commits, jfb, mgorny.
This is intended to reduce the number of syscalls when building large
translation units that have long include paths.
This is a WIP for early feedback:
- obviously it needs tests
- it will not be on by default
- the logging and extra instrumentation is temporary to help me tune it
Particularly interested in how to express this without hundreds of
nested switch statements.
Repository:
rC Clang
https://reviews.llvm.org/D52549
Files:
include/clang/Basic/VirtualFileSystem.h
lib/Basic/AvoidStatsVFS.cpp
lib/Basic/CMakeLists.txt
lib/Basic/VirtualFileSystem.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52549.167125.patch
Type: text/x-patch
Size: 21244 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180926/da44a86f/attachment-0001.bin>
More information about the cfe-commits
mailing list