Home
last modified time | relevance | path

Searched refs:ModuleCache (Results 1 – 25 of 28) sorted by relevance

12

/llvm-project/clang/test/Modules/
H A Dvalidate-system-headers.m1 // RUN: rm -rf %t/ModuleCache
8 …s/usr/include -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/ModuleCache -fdisable-modul…
9 // RUN: cp %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved
15 …s/usr/include -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/ModuleCache -fdisable-modul…
16 // RUN: diff %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved
20 …-module-maps -fmodules-validate-system-headers -fmodules-cache-path=%t/ModuleCache -fdisable-modul…
21 // RUN: not diff %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved
26 // RUN: cp %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved
27 …s/usr/include -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/ModuleCache -fdisable-modul…
28 // RUN: diff %t/ModuleCache/Foo.pcm %t/Foo.pcm.saved
[all …]
H A Dserialized-diags.m11 // RUN: %clang -fmodules -fmodules-cache-path=%t/ModuleCache -I %S/Inputs/ModuleDiags -fsyntax-only…
21 // RUN: not %clang -fmodules -fmodules-cache-path=%t/ModuleCache -I %S/Inputs/ModuleDiags -fsyntax-…
H A Doutofdate-rebuild.m14 // entry from the ModuleCache without notifying its parent ASTReader.
H A Dautolink_private_module.m9 // RUN: %clang_cc1 -emit-llvm -o - -fmodules-cache-path=%t/ModuleCache -fmodules -fimplicit-module-…
/llvm-project/clang/lib/Serialization/
H A DGeneratePCH.cpp26 Preprocessor &PP, InMemoryModuleCache &ModuleCache, StringRef OutputFile, in PCHGenerator() argument
34 Writer(Stream, this->Buffer->Data, ModuleCache, Extensions, in PCHGenerator()
103 InMemoryModuleCache &ModuleCache, in CXX20ModulesGenerator()
108 PP, ModuleCache, OutputFile, llvm::StringRef(), in getEmittingModule()
94 CXX20ModulesGenerator(Preprocessor & PP,InMemoryModuleCache & ModuleCache,StringRef OutputFile,bool GeneratingReducedBMI) CXX20ModulesGenerator() argument
H A DModuleManager.cpp185 NewModule->Buffer = &ModuleCache->addBuiltPCM(FileName, std::move(Buffer)); in addModule()
328 InMemoryModuleCache &ModuleCache, in ModuleManager()
331 : FileMgr(FileMgr), ModuleCache(&ModuleCache), in ModuleManager()
327 ModuleManager(FileManager & FileMgr,InMemoryModuleCache & ModuleCache,const PCHContainerReader & PCHContainerRdr,const HeaderSearch & HeaderSearchInfo) ModuleManager() argument
H A DASTReader.cpp3301 // ModuleCache as when writing. in ReadASTBlock()
3369 // filename for the ModuleCache. in ReadASTBlock()
5126 // If this module has already been finalized in the ModuleCache, we're stuck in InitializeContext()
5653 const InMemoryModuleCache &ModuleCache, in readASTFileControlBlock()
5659 llvm::MemoryBuffer *Buffer = ModuleCache.lookupPCM(Filename); in readASTFileControlBlock()
5949 const InMemoryModuleCache &ModuleCache, in ReadSubmoduleBlock()
5959 return !readASTFileControlBlock(Filename, FileMgr, ModuleCache, in ReadSubmoduleBlock()
10873 ASTReader::ASTReader(Preprocessor &PP, InMemoryModuleCache &ModuleCache, in VisitOMPAcquireClause()
10889 ModuleMgr(PP.getFileManager(), ModuleCache, PCHContainerRdr, in VisitOMPInitClause()
5404 readASTFileControlBlock(StringRef Filename,FileManager & FileMgr,const InMemoryModuleCache & ModuleCache,const PCHContainerReader & PCHContainerRdr,bool FindModuleFileExtensions,ASTReaderListener & Listener,bool ValidateDiagnosticOptions,unsigned ClientLoadCapabilities) readASTFileControlBlock() argument
5697 isAcceptableASTFile(StringRef Filename,FileManager & FileMgr,const InMemoryModuleCache & ModuleCache,const PCHContainerReader & PCHContainerRdr,const LangOptions & LangOpts,const TargetOptions & TargetOpts,const PreprocessorOptions & PPOpts,StringRef ExistingModuleCachePath,bool RequireStrictOptionMatches) isAcceptableASTFile() argument
10306 ASTReader(Preprocessor & PP,InMemoryModuleCache & ModuleCache,ASTContext * Context,const PCHContainerReader & PCHContainerRdr,ArrayRef<std::shared_ptr<ModuleFileExtension>> Extensions,StringRef isysroot,DisableValidationForModuleKind DisableValidationKind,bool AllowASTWithCompilerErrors,bool AllowConfigurationMismatch,bool ValidateSystemInputs,bool ValidateASTInputFilesContent,bool UseGlobalIndex,std::unique_ptr<llvm::Timer> ReadTimer) ASTReader() argument
/llvm-project/llvm/test/tools/dsymutil/X86/
H A Dmodule-warnings.test17 # -fmodules-cache-path=ModuleCache \
22 # RUN: rm -rf %t.dir && mkdir %t.dir && mkdir %t.dir/ModuleCache
24 # RUN: cp %p/../Inputs/module-warnings/Foo.pcm %t.dir/ModuleCache
39 # RUN: rm -rf %t.dir/ModuleCache
H A Dobject-prefix-path.test7 RUN: -object-prefix-map=/ModuleCache=/ModuleCacheRenamed \
12 RUN: -object-prefix-map=/ModuleCache=/ModuleCacheRenamed \
/llvm-project/clang/include/clang/Serialization/
H A DModuleManager.h68 IntrusiveRefCntPtr<InMemoryModuleCache> ModuleCache; variable
136 explicit ModuleManager(FileManager &FileMgr, InMemoryModuleCache &ModuleCache,
309 InMemoryModuleCache &getModuleCache() const { return *ModuleCache; } in getModuleCache()
H A DASTWriter.h120 InMemoryModuleCache &ModuleCache; variable
685 InMemoryModuleCache &ModuleCache,
992 PCHGenerator(Preprocessor &PP, InMemoryModuleCache &ModuleCache,
1016 CXX20ModulesGenerator(Preprocessor &PP, InMemoryModuleCache &ModuleCache,
1021 CXX20ModulesGenerator(Preprocessor &PP, InMemoryModuleCache &ModuleCache,
1023 : CXX20ModulesGenerator(PP, ModuleCache, OutputFile, in addBits()
1034 ReducedBMIGenerator(Preprocessor &PP, InMemoryModuleCache &ModuleCache,
1036 : CXX20ModulesGenerator(PP, ModuleCache, OutputFile,
976 CXX20ModulesGenerator(Preprocessor & PP,InMemoryModuleCache & ModuleCache,StringRef OutputFile) CXX20ModulesGenerator() argument
988 ReducedBMIGenerator(Preprocessor & PP,InMemoryModuleCache & ModuleCache,StringRef OutputFile) ReducedBMIGenerator() argument
H A DASTReader.h1745 ASTReader(Preprocessor &PP, InMemoryModuleCache &ModuleCache,
1958 const InMemoryModuleCache &ModuleCache,
1967 const InMemoryModuleCache &ModuleCache,
/llvm-project/lldb/source/Target/
H A DModuleCache.cpp1 //===-- ModuleCache.cpp ---------------------------------------------------===//
9 #include "lldb/Target/ModuleCache.h"
191 Status ModuleCache::Put(const FileSpec &root_dir_spec, const char *hostname, in Put()
216 Status ModuleCache::Get(const FileSpec &root_dir_spec, const char *hostname, in Get()
272 Status ModuleCache::GetAndPut(const FileSpec &root_dir_spec, in GetAndPut()
H A DCMakeLists.txt26 ModuleCache.cpp
/llvm-project/clang/test/Driver/
H A Dmodules-cache-path.m2 // CHECK-DEFAULT: -fmodules-cache-path={{.*}}clang{{[/\\]+}}ModuleCache
/llvm-project/lldb/include/lldb/Target/
H A DModuleCache.h47 class ModuleCache {
H A DPlatform.h44 class ModuleCache;
1023 const std::unique_ptr<ModuleCache> m_module_cache;
42 class ModuleCache; global() variable
/llvm-project/clang/include/clang/Frontend/
H A DCompilerInstance.h100 IntrusiveRefCntPtr<InMemoryModuleCache> ModuleCache;
750 InMemoryModuleCache &ModuleCache, ASTContext &Context,
899 InMemoryModuleCache &getModuleCache() const { return *ModuleCache; }
99 IntrusiveRefCntPtr<InMemoryModuleCache> ModuleCache; global() variable
H A DASTUnit.h113 IntrusiveRefCntPtr<InMemoryModuleCache> ModuleCache; variable
/llvm-project/llvm/utils/gn/secondary/lldb/source/Target/
H A DBUILD.gn52 "ModuleCache.cpp",
/llvm-project/clang/lib/Frontend/
H A DASTUnit.cpp222 ASTWriterData(InMemoryModuleCache &ModuleCache) in ASTWriterData()
223 : Stream(Buffer), Writer(Stream, Buffer, ModuleCache, {}) {} in ASTWriterData()
832 AST->ModuleCache = new InMemoryModuleCache; in LoadFromASTFile()
864 PP, *AST->ModuleCache, AST->Ctx.get(), PCHContainerRdr, {}, in LoadFromASTFile()
1549 AST->ModuleCache = new InMemoryModuleCache;
1836 AST->ModuleCache = new InMemoryModuleCache; in LoadFromCommandLine()
1847 AST->WriterData.reset(new ASTWriterData(*AST->ModuleCache)); in LoadFromCommandLine()
2382 InMemoryModuleCache ModuleCache; in TranslateStoredDiagnostics()
2383 ASTWriter Writer(Stream, Buffer, ModuleCache, {}); in TranslateStoredDiagnostics()
2373 InMemoryModuleCache ModuleCache; serialize() local
H A DPrecompiledPreamble.cpp295 InMemoryModuleCache &ModuleCache, in PrecompilePreambleConsumer() argument
298 : PCHGenerator(PP, ModuleCache, "", isysroot, std::move(Buffer), in PrecompilePreambleConsumer()
H A DCompilerInstance.cpp72 ModuleCache(SharedModuleCache ? SharedModuleCache in CompilerInstance()
208 assert(ModuleCache.get() == &Reader->getModuleManager().getModuleCache() && in setASTReader()
629 InMemoryModuleCache &ModuleCache, ASTContext &Context, in createPCHExternalASTSource()
638 PP, ModuleCache, &Context, PCHContainerRdr, Extensions, in createPCHExternalASTSource()
1483 // ModuleCache takes care of correctness and locks are only necessary for in compileModuleAndReadASTBehindLock()
1508 // Since ModuleCache takes care of correctness, we try waiting for in compileModuleAndReadASTBehindLock()
628 createPCHExternalASTSource(StringRef Path,StringRef Sysroot,DisableValidationForModuleKind DisableValidation,bool AllowPCHWithCompilerErrors,Preprocessor & PP,InMemoryModuleCache & ModuleCache,ASTContext & Context,const PCHContainerReader & PCHContainerRdr,ArrayRef<std::shared_ptr<ModuleFileExtension>> Extensions,ArrayRef<std::shared_ptr<DependencyCollector>> DependencyCollectors,void * DeserializationListener,bool OwnDeserializationListener,bool Preamble,bool UseGlobalModuleIndex) createPCHExternalASTSource() argument
/llvm-project/lldb/unittests/Target/
H A DModuleCacheTest.cpp16 #include "lldb/Target/ModuleCache.h"
86 ModuleCache mc; in TryGetAndPut()
/llvm-project/clang/lib/CodeGen/
H A DCGDebugInfo.h134 llvm::DenseMap<const Module *, llvm::TrackingMDRef> ModuleCache;
130 llvm::DenseMap<const Module *, llvm::TrackingMDRef> ModuleCache; global() variable

12