/llvm-project/clang/lib/Serialization/ |
H A D | ModuleManager.cpp | 359 ModuleFile *CurrentModule = Queue.pop_back_val(); in visit() 360 VisitOrder.push_back(CurrentModule); in visit() 364 for (ModuleFile *M : llvm::reverse(CurrentModule->Imports)) { in visit() 396 ModuleFile *CurrentModule = VisitOrder[I]; in visit() 398 if (State->VisitNumber[CurrentModule->Index] == VisitNumber) in visit() 402 assert(State->VisitNumber[CurrentModule->Index] == VisitNumber - 1); in visit() 403 State->VisitNumber[CurrentModule->Index] = VisitNumber; in visit() 404 if (!Visitor(*CurrentModule)) in visit() 410 ModuleFile *NextModule = CurrentModule; in visit() 358 ModuleFile *CurrentModule = Queue.pop_back_val(); visit() local 395 ModuleFile *CurrentModule = VisitOrder[I]; visit() local
|
H A D | ASTReader.cpp | 5981 Module *CurrentModule = nullptr; in ReadSubmoduleBlock() 6018 if (!CurrentModule && Kind != SUBMODULE_METADATA && in ReadSubmoduleBlock() 6053 CurrentModule = std::invoke(CreateModule, &ModMap, Name, ParentModule, in ParseLanguageOptions() 6063 if (OptionalFileEntryRef CurFile = CurrentModule->getASTFile()) { in ParseLanguageOptions() 6071 << CurrentModule->getTopLevelModuleName() << CurFile->getName() in ParseTargetOptions() 6078 CurrentModule->setASTFile(F.File); in ParseTargetOptions() 6079 CurrentModule->PresumedModuleMapFile = F.ModuleMapPath; in ParseTargetOptions() 6082 CurrentModule->Kind = Kind; in ParseTargetOptions() 6089 CurrentModule->DefinitionLoc = DefinitionLoc; 6090 CurrentModule 5721 Module *CurrentModule = nullptr; ReadSubmoduleBlock() local [all...] |
H A D | GeneratePCH.cpp | 48 M = PP.getHeaderSearchInfo().lookupModule(PP.getLangOpts().CurrentModule, in getEmittingModule()
|
H A D | ASTWriter.cpp | 241 const Module *CurrentModule = Q.front(); in GetAffectingModuleMaps() 244 for (const Module *ImportedModule : CurrentModule->Imports) in GetAffectingModuleMaps() 246 for (const Module *UndeclaredModule : CurrentModule->UndeclaredUses) in GetAffectingModuleMaps() 249 for (auto *M : CurrentModule->submodules()) in GetAffectingModuleMaps() 1634 AddString(LangOpts.CurrentModule, Record); in WriteControlBlock() 2913 !Top->fullModuleNameIs(StringRef(getLangOpts().CurrentModule)))) in WriteSubmodules() 214 const Module *CurrentModule = Q.front(); GetAffectingModuleMaps() local
|
/llvm-project/clang/lib/Sema/ |
H A D | SemaModule.cpp | 78 /// CurrentModule. 81 /// CurrentModule. Since currently it is expensive to decide whether two module 85 Module *CurrentModule, in isImportingModuleUnitFromSameModule() 100 if (!CurrentModule) in isImportingModuleUnitFromSameModule() 109 if (!CurrentModule->isModulePartitionImplementation()) in isImportingModuleUnitFromSameModule() 112 if (Ctx.isInSameModule(Imported, CurrentModule)) { in isImportingModuleUnitFromSameModule() 130 Module *Imported, Module *CurrentModule, in makeTransitiveImportsVisible() 153 if (isImportingModuleUnitFromSameModule(Ctx, Importing, CurrentModule, in makeTransitiveImportsVisible() 189 StringRef HUName = getLangOpts().CurrentModule; in HandleStartOfHeaderUnit() 193 const_cast<LangOptions &>(getLangOpts()).CurrentModule in HandleStartOfHeaderUnit() 86 isImportingModuleUnitFromSameModule(ASTContext & Ctx,Module * Imported,Module * CurrentModule,Module * & FoundPrimaryModuleInterface) isImportingModuleUnitFromSameModule() argument 131 makeTransitiveImportsVisible(ASTContext & Ctx,VisibleModuleSet & VisibleModules,Module * Imported,Module * CurrentModule,SourceLocation ImportLoc,bool IsImportingPrimaryModuleInterface=false) makeTransitiveImportsVisible() argument [all...] |
H A D | Sema.cpp | 1291 if (Module *CurrentModule = getCurrentModule(); in ActOnEndOfTranslationUnit() 1292 CurrentModule && CurrentModule->isInterfaceOrPartition()) { in ActOnEndOfTranslationUnit() 1306 CurrentModule->NamedModuleHasInit = in ActOnEndOfTranslationUnit() 1307 DoesModNeedInit(CurrentModule) || in ActOnEndOfTranslationUnit() 1308 llvm::any_of(CurrentModule->submodules(), in ActOnEndOfTranslationUnit() 1315 if (Module *CurrentModule = PP.getCurrentModule()) { in ActOnEndOfTranslationUnit() 1319 Stack.push_back(CurrentModule); in ActOnEndOfTranslationUnit() 1269 if (Module *CurrentModule = getCurrentModule(); ActOnEndOfTranslationUnit() local 1293 if (Module *CurrentModule = PP.getCurrentModule()) { ActOnEndOfTranslationUnit() local
|
/llvm-project/clang-tools-extra/modularize/ |
H A D | ModuleAssistant.cpp | 172 Module *CurrentModule = RootModule; in addModuleDescription() 205 Module *SubModule = CurrentModule->findSubModule(Stem); in addModuleDescription() 208 CurrentModule->SubModules.push_back(SubModule); in addModuleDescription() 210 CurrentModule = SubModule; in addModuleDescription() 213 CurrentModule->HeaderFileNames.push_back(FilePath); in addModuleDescription() 170 Module *CurrentModule = RootModule; addModuleDescription() local
|
/llvm-project/clang/lib/Frontend/ |
H A D | FrontendAction.cpp | 160 CI.getLangOpts().CurrentModule, SourceLocation(), /*AllowSearch*/false); in getCurrentModule() 491 if (CI.getLangOpts().CurrentModule.empty()) { in prepareToBuildModule() 503 Module *M = HS.lookupModule(CI.getLangOpts().CurrentModule, SourceLocation(), in prepareToBuildModule() 507 << CI.getLangOpts().CurrentModule << ModuleMapFilename; in prepareToBuildModule() 553 SourceMgr.pushModuleBuildStack(CI.getLangOpts().CurrentModule, in prepareToBuildModule() 667 AST->getLangOpts().CurrentModule, SourceLocation(), in BeginSourceFile() 863 CI.getLangOpts().CurrentModule = CI.getLangOpts().ModuleName; in BeginSourceFile() 881 CI.getLangOpts().CurrentModule = CI.getLangOpts().ModuleName; in BeginSourceFile() 896 auto *CurrentModule = prepareToBuildModule(CI, Input.getFile()); in BeginSourceFile() 897 if (!CurrentModule) in BeginSourceFile() local [all...] |
H A D | FrontendActions.cpp | 255 HS.getCachedModuleFileName(CI.getLangOpts().CurrentModule, in CreateOutputFile() 888 if (LO.CPlusPlusModules && !LO.CurrentModule.empty()) { in ExecuteAction() 894 if (MF.ModuleName != LO.CurrentModule) in ExecuteAction() 896 << LO.CurrentModule << "\n"; in ExecuteAction() 921 if (M->Name == LO.CurrentModule) { in ExecuteAction() 923 Out << " " << ModuleKindName(M->Kind) << " '" << LO.CurrentModule in ExecuteAction()
|
H A D | CompilerInstance.cpp | 1201 Invocation->getLangOpts().CurrentModule = std::string(ModuleName); 2023 if (LastModuleImportResult && ModuleName != getLangOpts().CurrentModule) in loadModule() 2040 } else if (ModuleName == getLangOpts().CurrentModule) { in loadModule() 2158 if (ModuleName != getLangOpts().CurrentModule) { in loadModule()
|
/llvm-project/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 …]
|
/llvm-project/clang/lib/Basic/ |
H A D | Module.cpp | 158 StringRef CurrentModule = LangOpts.CurrentModule; 164 CurrentModule == LangOpts.ModuleName && in isForBuilding() 165 !CurrentModule.ends_with("_Private") && in isForBuilding() 169 return TopLevelName == CurrentModule; in isForBuilding() 162 StringRef CurrentModule = LangOpts.CurrentModule; isForBuilding() local
|
H A D | LangOptions.cpp | 45 CurrentModule.clear(); in resetNonModularOptions()
|
/llvm-project/clang/lib/CodeGen/ |
H A D | ObjectFilePCHContainerOperations.cpp |
|
/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/ |
H A D | LVCodeViewReader.cpp | 1084 if (CurrentModule != Modi) { in createScopes() 1088 CurrentModule = Modi; in createScopes() 1115 if (LVScope *Scope = getScopeForModule(CurrentModule)) { in createScopes()
|
/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Readers/ |
H A D | LVCodeViewReader.h | 117 int32_t CurrentModule = -1;
|
/llvm-project/clang/lib/ExtractAPI/Serialization/ |
H A D | SymbolGraphSerializer.cpp | 929 auto *CurrentModule = ModuleForCurrentSymbol; in traverseObjCCategoryRecord() 937 ModuleForCurrentSymbol = CurrentModule; in traverseObjCCategoryRecord() 931 auto *CurrentModule = ModuleForCurrentSymbol; traverseObjCCategoryRecord() local
|
/llvm-project/clang/lib/Lex/ |
H A D | ModuleMap.cpp | 880 if (LangOpts.CurrentModule == Name) in createGlobalModuleFragmentForModuleUnit() 942 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createModuleForImplementationUnit() 960 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createModuleForImplementationUnit() 984 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in inferFrameworkLink() 1107 if (LangOpts.CurrentModule == ModuleName) in inferFrameworkModule() 2093 Map.LangOpts.CurrentModule == ModuleName && in parseModuleDecl()
|
H A D | PPMacroExpansion.cpp | 383 if (!getLangOpts().CurrentModule.empty()) in RegisterBuiltinMacros() 1984 (II->getName() == getLangOpts().CurrentModule); in ExpandBuiltinMacro() 1988 OS << getLangOpts().CurrentModule; in ExpandBuiltinMacro() 1989 IdentifierInfo *ModuleII = getIdentifierInfo(getLangOpts().CurrentModule); in ExpandBuiltinMacro()
|
H A D | PPLexerChange.cpp | 789 LeavingMod->getTopLevelModuleName() != getLangOpts().CurrentModule)) { in LeaveSubmodule()
|
H A D | Preprocessor.cpp | 528 return getHeaderSearchInfo().lookupModule(getLangOpts().CurrentModule); in getCurrentModule()
|
H A D | PPDirectives.cpp | 898 return getLangOpts().CurrentModule.empty() in getHeaderToIncludeForDiagnostics() 900 : HeaderInfo.lookupModule(getLangOpts().CurrentModule, Loc); in getHeaderToIncludeForDiagnostics()
|
/llvm-project/clang/lib/Tooling/DependencyScanning/ |
H A D | ModuleDepCollector.cpp | 377 if (Module *CurrentModule = PP.getCurrentModuleImplementation()) in applyDiscoveredDependencies() 381 .getModuleMapFileForUniquing(CurrentModule)) in applyDiscoveredDependencies() 365 if (Module *CurrentModule = PP.getCurrentModuleImplementation()) applyDiscoveredDependencies() local
|
/llvm-project/llvm/lib/Transforms/IPO/ |
H A D | SampleProfile.cpp | 356 : CurrentReader(Reader), CurrentModule(M), in GUIDToFuncNameMapper() 361 for (const auto &F : CurrentModule) { in GUIDToFuncNameMapper() 416 Module &CurrentModule; 412 Module &CurrentModule; global() member in __anond82771cb0111::GUIDToFuncNameMapper
|
/llvm-project/clang/include/clang/Basic/ |
H A D | LangOptions.h | 555 std::string CurrentModule; 516 std::string CurrentModule; global() variable
|