Home
last modified time | relevance | path

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

12

/llvm-project/clang/lib/Serialization/
H A DModuleManager.cpp359 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 DASTReader.cpp5981 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 DGeneratePCH.cpp48 M = PP.getHeaderSearchInfo().lookupModule(PP.getLangOpts().CurrentModule, in getEmittingModule()
H A DASTWriter.cpp241 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 DSemaModule.cpp78 /// 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 DSema.cpp1291 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 DModuleAssistant.cpp172 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 DFrontendAction.cpp160 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 DFrontendActions.cpp255 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 DCompilerInstance.cpp1201 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 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 …]
/llvm-project/clang/lib/Basic/
H A DModule.cpp158 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 DLangOptions.cpp45 CurrentModule.clear(); in resetNonModularOptions()
/llvm-project/clang/lib/CodeGen/
H A DObjectFilePCHContainerOperations.cpp
/llvm-project/llvm/lib/DebugInfo/LogicalView/Readers/
H A DLVCodeViewReader.cpp1084 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 DLVCodeViewReader.h117 int32_t CurrentModule = -1;
/llvm-project/clang/lib/ExtractAPI/Serialization/
H A DSymbolGraphSerializer.cpp929 auto *CurrentModule = ModuleForCurrentSymbol; in traverseObjCCategoryRecord()
937 ModuleForCurrentSymbol = CurrentModule; in traverseObjCCategoryRecord()
931 auto *CurrentModule = ModuleForCurrentSymbol; traverseObjCCategoryRecord() local
/llvm-project/clang/lib/Lex/
H A DModuleMap.cpp880 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 DPPMacroExpansion.cpp383 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 DPPLexerChange.cpp789 LeavingMod->getTopLevelModuleName() != getLangOpts().CurrentModule)) { in LeaveSubmodule()
H A DPreprocessor.cpp528 return getHeaderSearchInfo().lookupModule(getLangOpts().CurrentModule); in getCurrentModule()
H A DPPDirectives.cpp898 return getLangOpts().CurrentModule.empty() in getHeaderToIncludeForDiagnostics()
900 : HeaderInfo.lookupModule(getLangOpts().CurrentModule, Loc); in getHeaderToIncludeForDiagnostics()
/llvm-project/clang/lib/Tooling/DependencyScanning/
H A DModuleDepCollector.cpp377 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 DSampleProfile.cpp356 : 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 DLangOptions.h555 std::string CurrentModule;
516 std::string CurrentModule; global() variable

12