Home
last modified time | relevance | path

Searched refs:CurrentModule (Results 1 – 25 of 41) sorted by relevance

12

/external/clang/lib/Serialization/
DModuleManager.cpp333 ModuleFile *CurrentModule = Queue.pop_back_val(); in visit() local
334 VisitOrder.push_back(CurrentModule); in visit()
338 for (auto M = CurrentModule->Imports.rbegin(), in visit()
339 MEnd = CurrentModule->Imports.rend(); in visit()
373 ModuleFile *CurrentModule = VisitOrder[I]; in visit() local
375 if (State->VisitNumber[CurrentModule->Index] == VisitNumber) in visit()
379 assert(State->VisitNumber[CurrentModule->Index] == VisitNumber - 1); in visit()
380 State->VisitNumber[CurrentModule->Index] = VisitNumber; in visit()
381 if (!Visitor(*CurrentModule)) in visit()
387 ModuleFile *NextModule = CurrentModule; in visit()
DASTReader.cpp4424 Module *CurrentModule = nullptr; in ReadSubmoduleBlock() local
4454 if (!CurrentModule && Kind != SUBMODULE_METADATA && in ReadSubmoduleBlock()
4487 CurrentModule = ModMap.findOrCreateModule(Name, ParentModule, IsFramework, in ReadSubmoduleBlock()
4501 if (const FileEntry *CurFile = CurrentModule->getASTFile()) { in ReadSubmoduleBlock()
4505 << CurrentModule->getTopLevelModuleName() in ReadSubmoduleBlock()
4513 CurrentModule->setASTFile(F.File); in ReadSubmoduleBlock()
4516 CurrentModule->Signature = F.Signature; in ReadSubmoduleBlock()
4517 CurrentModule->IsFromModuleFile = true; in ReadSubmoduleBlock()
4518 CurrentModule->IsSystem = IsSystem || CurrentModule->IsSystem; in ReadSubmoduleBlock()
4519 CurrentModule->IsExternC = IsExternC; in ReadSubmoduleBlock()
[all …]
/external/llvm-project/clang/lib/Serialization/
DModuleManager.cpp382 ModuleFile *CurrentModule = Queue.pop_back_val(); in visit() local
383 VisitOrder.push_back(CurrentModule); in visit()
387 for (auto M = CurrentModule->Imports.rbegin(), in visit()
388 MEnd = CurrentModule->Imports.rend(); in visit()
422 ModuleFile *CurrentModule = VisitOrder[I]; in visit() local
424 if (State->VisitNumber[CurrentModule->Index] == VisitNumber) in visit()
428 assert(State->VisitNumber[CurrentModule->Index] == VisitNumber - 1); in visit()
429 State->VisitNumber[CurrentModule->Index] = VisitNumber; in visit()
430 if (!Visitor(*CurrentModule)) in visit()
436 ModuleFile *NextModule = CurrentModule; in visit()
DGeneratePCH.cpp53 PP.getLangOpts().CurrentModule, /*AllowSearch*/ false); in HandleTranslationUnit()
DASTReader.cpp5424 Module *CurrentModule = nullptr; in ReadSubmoduleBlock() local
5465 if (!CurrentModule && Kind != SUBMODULE_METADATA && in ReadSubmoduleBlock()
5500 CurrentModule = in ReadSubmoduleBlock()
5515 if (const FileEntry *CurFile = CurrentModule->getASTFile()) { in ReadSubmoduleBlock()
5520 CurrentModule->getTopLevelModuleName(), CurFile->getName(), in ReadSubmoduleBlock()
5527 CurrentModule->setASTFile(F.File); in ReadSubmoduleBlock()
5528 CurrentModule->PresumedModuleMapFile = F.ModuleMapPath; in ReadSubmoduleBlock()
5531 CurrentModule->Kind = Kind; in ReadSubmoduleBlock()
5532 CurrentModule->Signature = F.Signature; in ReadSubmoduleBlock()
5533 CurrentModule->IsFromModuleFile = true; in ReadSubmoduleBlock()
[all …]
/external/llvm-project/clang-tools-extra/modularize/
DModuleAssistant.cpp170 Module *CurrentModule = RootModule; in addModuleDescription() local
203 Module *SubModule = CurrentModule->findSubModule(Stem); in addModuleDescription()
206 CurrentModule->SubModules.push_back(SubModule); in addModuleDescription()
208 CurrentModule = SubModule; in addModuleDescription()
211 CurrentModule->HeaderFileNames.push_back(FilePath); in addModuleDescription()
/external/llvm-project/llvm/examples/Kaleidoscope/MCJIT/complete/
Dtoy.cpp797 MCJITHelper(LLVMContext& C) : Context(C), CurrentModule(NULL) { in MCJITHelper()
828 Module *CurrentModule; member in MCJITHelper
894 if (*it == CurrentModule) in getFunction()
897 assert(CurrentModule != NULL); in getFunction()
901 Function *PF = CurrentModule->getFunction(FnName); in getFunction()
912 CurrentModule); in getFunction()
921 if (CurrentModule) in getModuleForNewFunction()
922 return CurrentModule; in getModuleForNewFunction()
928 CurrentModule = M; in getModuleForNewFunction()
936 if (M == CurrentModule) in compileModule()
[all …]
/external/llvm/examples/Kaleidoscope/MCJIT/complete/
Dtoy.cpp797 MCJITHelper(LLVMContext& C) : Context(C), CurrentModule(NULL) { in MCJITHelper()
828 Module *CurrentModule; member in MCJITHelper
894 if (*it == CurrentModule) in getFunction()
897 assert(CurrentModule != NULL); in getFunction()
901 Function *PF = CurrentModule->getFunction(FnName); in getFunction()
912 CurrentModule); in getFunction()
921 if (CurrentModule) in getModuleForNewFunction()
922 return CurrentModule; in getModuleForNewFunction()
928 CurrentModule = M; in getModuleForNewFunction()
936 if (M == CurrentModule) in compileModule()
[all …]
/external/llvm-project/clang/lib/Frontend/
DFrontendAction.cpp146 CI.getLangOpts().CurrentModule, /*AllowSearch*/false); in getCurrentModule()
460 if (CI.getLangOpts().CurrentModule.empty()) { in prepareToBuildModule()
472 Module *M = HS.lookupModule(CI.getLangOpts().CurrentModule, in prepareToBuildModule()
476 << CI.getLangOpts().CurrentModule << ModuleMapFilename; in prepareToBuildModule()
517 SourceMgr.pushModuleBuildStack(CI.getLangOpts().CurrentModule, in prepareToBuildModule()
618 AST->getLangOpts().CurrentModule, /*AllowSearch*/ false); in BeginSourceFile()
780 auto *CurrentModule = prepareToBuildModule(CI, Input.getFile()); in BeginSourceFile() local
781 if (!CurrentModule) in BeginSourceFile()
784 CurrentModule->PresumedModuleMapFile = PresumedModuleMapFile; in BeginSourceFile()
791 auto Buffer = getInputBufferForModule(CI, CurrentModule); in BeginSourceFile()
[all …]
DFrontendActions.cpp218 HS.getCachedModuleFileName(CI.getLangOpts().CurrentModule, in CreateOutputFile()
309 HS.getModuleMap().createHeaderModule(CI.getLangOpts().CurrentModule, Headers); in BeginSourceFileAction()
DCompilerInstance.cpp1102 Invocation->getLangOpts()->CurrentModule = std::string(ModuleName);
1880 if (LastModuleImportResult && ModuleName != getLangOpts().CurrentModule) in loadModule()
1892 } else if (ModuleName == getLangOpts().CurrentModule) { in loadModule()
2016 if (ModuleName != getLangOpts().CurrentModule) { in loadModule()
/external/llvm-project/clang/lib/Sema/
DSemaModule.cpp170 if (!getLangOpts().CurrentModule.empty() && in ActOnModuleDecl()
171 getLangOpts().CurrentModule != ModuleName) { in ActOnModuleDecl()
174 << getLangOpts().CurrentModule; in ActOnModuleDecl()
177 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ModuleName; in ActOnModuleDecl()
356 if (Mod->getTopLevelModuleName() == getLangOpts().CurrentModule && in ActOnModuleImport()
361 << Mod->getFullModuleName() << getLangOpts().CurrentModule; in ActOnModuleImport()
/external/clang/lib/Basic/
DLangOptions.cpp36 CurrentModule.clear(); in resetNonModularOptions()
/external/clang/lib/Frontend/
DFrontendActions.cpp296 if (CI.getLangOpts().CurrentModule.empty()) { in BeginSourceFileAction()
311 SourceMgr.pushModuleBuildStack(CI.getLangOpts().CurrentModule, in BeginSourceFileAction()
315 Module = HS.lookupModule(CI.getLangOpts().CurrentModule, in BeginSourceFileAction()
319 << CI.getLangOpts().CurrentModule << Filename; in BeginSourceFileAction()
389 HS.getModuleFileName(CI.getLangOpts().CurrentModule, in ComputeASTConsumerArguments()
DCompilerInstance.cpp953 Invocation->getLangOpts()->CurrentModule = Module->getTopLevelModuleName(); in compileModuleImpl()
1423 if (LastModuleImportResult && ModuleName != getLangOpts().CurrentModule) in loadModule()
1437 } else if (ModuleName == getLangOpts().CurrentModule) { in loadModule()
1617 if (ModuleName != getLangOpts().CurrentModule) { in loadModule()
/external/llvm-project/clang/lib/Basic/
DLangOptions.cpp35 CurrentModule.clear(); in resetNonModularOptions()
/external/clang/include/clang/Basic/
DLangOptions.h107 std::string CurrentModule; variable
/external/llvm-project/clang/lib/CodeGen/
DObjectFilePCHContainerOperations.cpp154 LangOpts.CurrentModule.empty() ? MainFileName : LangOpts.CurrentModule; in PCHContainerGenerator()
/external/llvm-project/clang/lib/Lex/
DPPDirectives.cpp128 static bool isForModuleBuilding(Module *M, StringRef CurrentModule, in isForModuleBuilding() argument
134 if (M->getTopLevelModule()->IsFramework && CurrentModule == ModuleName && in isForModuleBuilding()
135 !CurrentModule.endswith("_Private") && TopLevelName.endswith("_Private")) in isForModuleBuilding()
138 return TopLevelName == CurrentModule; in isForModuleBuilding()
649 return getLangOpts().CurrentModule.empty() in getModuleForLocation()
651 : HeaderInfo.lookupModule(getLangOpts().CurrentModule); in getModuleForLocation()
1961 getLangOpts().CurrentModule, in HandleHeaderIncludeOrImport()
2261 isForModuleBuilding(M, getLangOpts().CurrentModule, in HandleHeaderIncludeOrImport()
DPPMacroExpansion.cpp392 if (!getLangOpts().CurrentModule.empty()) in RegisterBuiltinMacros()
1780 (II->getName() == getLangOpts().CurrentModule); in ExpandBuiltinMacro()
1784 OS << getLangOpts().CurrentModule; in ExpandBuiltinMacro()
1785 IdentifierInfo *ModuleII = getIdentifierInfo(getLangOpts().CurrentModule); in ExpandBuiltinMacro()
DModuleMap.cpp827 if (LangOpts.CurrentModule == Name) in findOrCreateModule()
856 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createModuleForInterfaceUnit()
883 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createHeaderModule()
1029 if (LangOpts.CurrentModule == ModuleName) in inferFrameworkModule()
1950 Map.LangOpts.CurrentModule == ModuleName && in parseModuleDecl()
/external/clang/lib/Lex/
DPPMacroExpansion.cpp334 if (!LangOpts.CurrentModule.empty()) in RegisterBuiltinMacros()
1800 (II->getName() == getLangOpts().CurrentModule); in ExpandBuiltinMacro()
1804 OS << getLangOpts().CurrentModule; in ExpandBuiltinMacro()
1805 IdentifierInfo *ModuleII = getIdentifierInfo(getLangOpts().CurrentModule); in ExpandBuiltinMacro()
/external/llvm-project/clang/include/clang/Basic/
DLangOptions.h291 std::string CurrentModule; variable
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/
DSampleProfile.cpp236 : CurrentReader(Reader), CurrentModule(M), in GUIDToFuncNameMapper()
241 for (const auto &F : CurrentModule) { in GUIDToFuncNameMapper()
296 Module &CurrentModule; member in __anon3d3e97830111::GUIDToFuncNameMapper
/external/llvm-project/llvm/lib/Transforms/IPO/
DSampleProfile.cpp248 : CurrentReader(Reader), CurrentModule(M), in GUIDToFuncNameMapper()
253 for (const auto &F : CurrentModule) { in GUIDToFuncNameMapper()
308 Module &CurrentModule; member in __anon33472e0f0111::GUIDToFuncNameMapper

12