llvm-project/clang/lib/Frontend
Ben Langmuir c4436f675d [clang] Use InMemoryModuleCache for readASTFileControlBlock NFC
When a pcm has already been loaded from disk, reuse it from the
InMemoryModuleCache in readASTFileControlBlock. This avoids potentially
reading it again.

As noted in the FIXME, ideally we would also add the module to the cache
if it will be used again later, but that could modify its build state
and we do not have enough context currenlty to know if it's correct.

Differential Revision: https://reviews.llvm.org/D138160
2022-11-17 13:47:46 -08:00
..
Rewrite Fixed a number of typos 2022-08-01 13:13:18 -04:00
ASTConsumers.cpp [clang] Fix JSON AST output when a filter is used 2021-10-10 07:46:17 +05:30
ASTMerge.cpp Revert "[clang] ASTImporter: Fix importing of va_list types and declarations" 2022-10-31 19:34:23 +01:00
ASTUnit.cpp Remove redundant initialization of Optional (NFC) 2022-08-20 21:18:28 -07:00
CMakeLists.txt [clang] Enable output of SARIF diagnostics 2022-08-26 18:49:29 +00:00
ChainedDiagnosticConsumer.cpp
ChainedIncludesSource.cpp [NFC] Make MultiplexExternalSemaSource own sources 2022-09-02 13:57:39 -05:00
CompilerInstance.cpp [clang] Use InMemoryModuleCache for readASTFileControlBlock NFC 2022-11-17 13:47:46 -08:00
CompilerInvocation.cpp The handling of 'funsafe-math-optimizations' doesn't update the 'MathErrno' 2022-11-11 10:24:12 -05:00
CreateInvocationFromCommandLine.cpp [clang][driver] Introduce new -fdriver-only flag 2022-06-13 13:30:56 +02:00
DependencyFile.cpp [Frontend] -MP: remove blank lines 2022-10-28 20:46:27 -07:00
DependencyGraph.cpp [clang][lex] NFCI: Use FileEntryRef in PPCallbacks::InclusionDirective() 2022-04-14 10:46:12 +02:00
DiagnosticRenderer.cpp
FrontendAction.cpp [clang] Use InMemoryModuleCache for readASTFileControlBlock NFC 2022-11-17 13:47:46 -08:00
FrontendActions.cpp [clang] Use InMemoryModuleCache for readASTFileControlBlock NFC 2022-11-17 13:47:46 -08:00
FrontendOptions.cpp [HLSL] Infer language from file extension 2022-08-23 20:52:29 -05:00
HeaderIncludeGen.cpp [clang] Inclusive language: change instances of blacklist/whitelist to allowlist/ignorelist 2021-11-12 15:46:16 +00:00
InitPreprocessor.cpp Use TI.hasBuiltinAtomic() when setting ATOMIC_*_LOCK_FREE values. NFCI 2022-11-15 12:42:19 +00:00
InterfaceStubFunctionsConsumer.cpp [ifs] Prepare llvm-ifs for elfabi/ifs merging. 2021-07-19 11:23:00 -07:00
LayoutOverrideSource.cpp [Driver, Frontend] Use StringRef::contains (NFC) 2021-10-19 08:54:02 -07:00
LogDiagnosticPrinter.cpp Remove a few effectively-unused FileEntry APIs. NFC 2022-04-07 16:45:47 +02:00
ModuleDependencyCollector.cpp [clang][lex] NFCI: Use FileEntryRef in PPCallbacks::InclusionDirective() 2022-04-14 10:46:12 +02:00
MultiplexConsumer.cpp [Clang] Override method ModuleImportRead in MultiplexASTDeserializationListener 2022-04-11 08:38:37 -04:00
PrecompiledPreamble.cpp [Frontend] when attaching a preamble, don't generate the long predefines buffer. 2022-05-09 15:55:32 +02:00
PrintPreprocessedOutput.cpp [clang] Use std::size instead of llvm::array_lengthof 2022-09-08 17:20:25 -06:00
SARIFDiagnostic.cpp [clang] Better warning-fix follow-up to D131632 2022-08-26 18:29:20 -04:00
SARIFDiagnosticPrinter.cpp [clang] Enable output of SARIF diagnostics 2022-08-26 18:49:29 +00:00
SerializedDiagnosticPrinter.cpp [clang] Remove redundant member initialization (NFC) 2022-01-02 10:20:23 -08:00
SerializedDiagnosticReader.cpp [clang] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 09:12:46 -07:00
TestModuleFileExtension.cpp [NFC][clang] Return underlying strings directly instead of OS.str() 2021-12-09 16:05:46 -08:00
TestModuleFileExtension.h [modules] Use `HashBuilder` and `MD5` for the module hash. 2021-09-03 11:13:36 -07:00
TextDiagnostic.cpp Use llvm::none_of (NFC) 2022-08-14 16:25:39 -07:00
TextDiagnosticBuffer.cpp
TextDiagnosticPrinter.cpp
VerifyDiagnosticConsumer.cpp [clang][lex] NFC: Simplify calls to `LookupFile` 2022-01-18 16:02:18 +01:00