| /openbsd-src/gnu/llvm/clang/lib/Serialization/ |
| H A D | ModuleManager.cpp | 369 ModuleFile *CurrentModule = Queue.pop_back_val(); in visit() local 370 VisitOrder.push_back(CurrentModule); in visit() 374 for (ModuleFile *M : llvm::reverse(CurrentModule->Imports)) { in visit() 406 ModuleFile *CurrentModule = VisitOrder[I]; in visit() local 408 if (State->VisitNumber[CurrentModule->Index] == VisitNumber) in visit() 412 assert(State->VisitNumber[CurrentModule->Index] == VisitNumber - 1); in visit() 413 State->VisitNumber[CurrentModule->Index] = VisitNumber; in visit() 414 if (!Visitor(*CurrentModule)) in visit() 420 ModuleFile *NextModule = CurrentModule; in visit()
|
| H A D | GeneratePCH.cpp | 53 PP.getLangOpts().CurrentModule, SourceLocation(), in HandleTranslationUnit()
|
| H A D | ASTReader.cpp | 5520 Module *CurrentModule = nullptr; in ReadSubmoduleBlock() local 5557 if (!CurrentModule && Kind != SUBMODULE_METADATA && in ReadSubmoduleBlock() 5591 CurrentModule = in ReadSubmoduleBlock() 5605 if (const FileEntry *CurFile = CurrentModule->getASTFile()) { in ReadSubmoduleBlock() 5613 << CurrentModule->getTopLevelModuleName() << CurFile->getName() in ReadSubmoduleBlock() 5620 CurrentModule->setASTFile(F.File); in ReadSubmoduleBlock() 5621 CurrentModule->PresumedModuleMapFile = F.ModuleMapPath; in ReadSubmoduleBlock() 5624 CurrentModule->Kind = Kind; in ReadSubmoduleBlock() 5625 CurrentModule->Signature = F.Signature; in ReadSubmoduleBlock() 5626 CurrentModule->IsFromModuleFile = true; in ReadSubmoduleBlock() [all …]
|
| H A D | ASTWriter.cpp | 219 for (const Module *CurrentModule : ModulesToProcess) { in GetAffectingModuleMaps() local 220 ProcessModuleOnce(CurrentModule); in GetAffectingModuleMaps() 221 for (const Module *ImportedModule : CurrentModule->Imports) in GetAffectingModuleMaps() 223 for (const Module *UndeclaredModule : CurrentModule->UndeclaredUses) in GetAffectingModuleMaps() 1389 AddString(LangOpts.CurrentModule, Record); in WriteControlBlock() 2684 !Top->fullModuleNameIs(StringRef(getLangOpts().CurrentModule)))) in getLocalOrImportedSubmoduleID()
|
| /openbsd-src/gnu/llvm/clang/lib/Frontend/ |
| H A D | FrontendAction.cpp | 154 CI.getLangOpts().CurrentModule, SourceLocation(), /*AllowSearch*/false); in getCurrentModule() 485 if (CI.getLangOpts().CurrentModule.empty()) { in prepareToBuildModule() 497 Module *M = HS.lookupModule(CI.getLangOpts().CurrentModule, SourceLocation(), in prepareToBuildModule() 501 << CI.getLangOpts().CurrentModule << ModuleMapFilename; in prepareToBuildModule() 542 SourceMgr.pushModuleBuildStack(CI.getLangOpts().CurrentModule, in prepareToBuildModule() 655 AST->getLangOpts().CurrentModule, SourceLocation(), in BeginSourceFile() 850 CI.getLangOpts().CurrentModule = CI.getLangOpts().ModuleName; in BeginSourceFile() 868 CI.getLangOpts().CurrentModule = CI.getLangOpts().ModuleName; in BeginSourceFile() 883 auto *CurrentModule = prepareToBuildModule(CI, Input.getFile()); in BeginSourceFile() local 884 if (!CurrentModule) in BeginSourceFile() [all …]
|
| H A D | FrontendActions.cpp | 240 HS.getCachedModuleFileName(CI.getLangOpts().CurrentModule, in CreateOutputFile() 811 if (LO.CPlusPlusModules && !LO.CurrentModule.empty()) { in ExecuteAction() 818 if (MF.ModuleName != LO.CurrentModule) in ExecuteAction() 820 << LO.CurrentModule << "\n"; in ExecuteAction() 845 if (M->Name == LO.CurrentModule) { in ExecuteAction() 847 Out << " " << ModuleKindName(M->Kind) << " '" << LO.CurrentModule in ExecuteAction()
|
| H A D | CompilerInstance.cpp | 1181 Invocation->getLangOpts()->CurrentModule = std::string(ModuleName); 1969 if (LastModuleImportResult && ModuleName != getLangOpts().CurrentModule) in loadModule() 1981 } else if (ModuleName == getLangOpts().CurrentModule) { in loadModule() 2089 if (ModuleName != getLangOpts().CurrentModule) { in loadModule()
|
| H A D | CompilerInvocation.cpp | 480 LangOpts.CurrentModule = LangOpts.ModuleName; in FixupInvocation()
|
| /openbsd-src/gnu/llvm/llvm/examples/Kaleidoscope/MCJIT/complete/ |
| H A D | toy.cpp | 797 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 …]
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaModule.cpp | 114 StringRef HUName = getLangOpts().CurrentModule; in HandleStartOfHeaderUnit() 117 const_cast<LangOptions &>(getLangOpts()).CurrentModule = HUName.str(); in HandleStartOfHeaderUnit() 301 if (!getLangOpts().CurrentModule.empty() && in ActOnModuleDecl() 302 getLangOpts().CurrentModule != ModuleName) { in ActOnModuleDecl() 307 << getLangOpts().CurrentModule; in ActOnModuleDecl() 310 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ModuleName; in ActOnModuleDecl() 351 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ""; in ActOnModuleDecl() 355 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ModuleName; in ActOnModuleDecl() 558 << Mod->getFullModuleName() << getLangOpts().CurrentModule; in ActOnModuleImport() 662 getLangOpts().CurrentModule, DirectiveLoc, false, false); in BuildModuleInclude()
|
| H A D | Sema.cpp | 1230 if (Module *CurrentModule = PP.getCurrentModule()) { in ActOnEndOfTranslationUnit() local 1234 Stack.push_back(CurrentModule); in ActOnEndOfTranslationUnit()
|
| H A D | SemaLookup.cpp | 1597 llvm::StringRef(getLangOpts().CurrentModule).split(':').first) { in isUsableModule()
|
| /openbsd-src/gnu/llvm/clang/lib/Basic/ |
| H A D | Module.cpp | 159 StringRef CurrentModule = LangOpts.CurrentModule; in isForBuilding() local 164 CurrentModule == LangOpts.ModuleName && in isForBuilding() 165 !CurrentModule.endswith("_Private") && TopLevelName.endswith("_Private")) in isForBuilding() 168 return TopLevelName == CurrentModule; in isForBuilding()
|
| H A D | LangOptions.cpp | 37 CurrentModule.clear(); in resetNonModularOptions()
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | ObjectFilePCHContainerOperations.cpp | 160 LangOpts.CurrentModule.empty() ? MainFileName : LangOpts.CurrentModule; in PCHContainerGenerator()
|
| H A D | CodeGenModule.cpp | 2687 if (M->getTopLevelModuleName() == getLangOpts().CurrentModule && in EmitModuleLinkOptions()
|
| /openbsd-src/gnu/llvm/clang/lib/Tooling/DependencyScanning/ |
| H A D | ModuleDepCollector.cpp | 230 if (Module *CurrentModule = PP.getCurrentModuleImplementation()) in applyDiscoveredDependencies() local 234 .getModuleMapFileForUniquing(CurrentModule)) in applyDiscoveredDependencies()
|
| /openbsd-src/gnu/llvm/clang/lib/Lex/ |
| H A D | PPMacroExpansion.cpp | 399 if (!getLangOpts().CurrentModule.empty()) in RegisterBuiltinMacros() 1848 (II->getName() == getLangOpts().CurrentModule); in ExpandBuiltinMacro() 1852 OS << getLangOpts().CurrentModule; in ExpandBuiltinMacro() 1853 IdentifierInfo *ModuleII = getIdentifierInfo(getLangOpts().CurrentModule); in ExpandBuiltinMacro()
|
| H A D | ModuleMap.cpp | 845 if (LangOpts.CurrentModule == Name) in findOrCreateModule() 877 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createModuleForInterfaceUnit() 904 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createHeaderUnit() 1041 if (LangOpts.CurrentModule == ModuleName) in inferFrameworkModule() 2014 Map.LangOpts.CurrentModule == ModuleName && in parseModuleDecl()
|
| H A D | PPLexerChange.cpp | 776 LeavingMod->getTopLevelModuleName() != getLangOpts().CurrentModule)) { in LeaveSubmodule()
|
| H A D | Preprocessor.cpp | 524 return getHeaderSearchInfo().lookupModule(getLangOpts().CurrentModule); in getCurrentModule()
|
| H A D | PPDirectives.cpp | 855 return getLangOpts().CurrentModule.empty() in getModuleForLocation() 857 : HeaderInfo.lookupModule(getLangOpts().CurrentModule, Loc); in getModuleForLocation()
|
| H A D | Pragma.cpp | 1706 StringRef Current = PP.getLangOpts().CurrentModule; in HandlePragma()
|
| /openbsd-src/gnu/llvm/clang/include/clang/Basic/ |
| H A D | LangOptions.h | 437 std::string CurrentModule; variable
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/ |
| H A D | SampleProfile.cpp | 325 : CurrentReader(Reader), CurrentModule(M), in GUIDToFuncNameMapper() 330 for (const auto &F : CurrentModule) { in GUIDToFuncNameMapper() 385 Module &CurrentModule; member in __anon75a028af0111::GUIDToFuncNameMapper
|