[PATCH] D136651: [Clang] Give Clang the ability to use a shared stat cache

Steven Wu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 25 17:02:56 PDT 2022


steven_wu added inline comments.


================
Comment at: llvm/lib/Support/VirtualFileSystem.cpp:3002
+// The format of the stat cache is (pseudo-code):
+//  struct stat_cache {
+//    char     Magic[4];       // "STAT" or "Stat"
----------------
Few comments about stats representation.
1. Can we version the stat cache file so we can evolve it in the future if needed?
2. I wonder if we need to have a more flexible representation for DataType other than `sys::fs::file_status`. Current entry is locked with the endian of the host and can't be used to encode more information than file_status. 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136651/new/

https://reviews.llvm.org/D136651



More information about the cfe-commits mailing list