| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ModuleManager.cpp | 378 ModuleFile *CurrentModule = Queue.pop_back_val(); in visit() local 379 VisitOrder.push_back(CurrentModule); in visit() 383 for (ModuleFile *M : llvm::reverse(CurrentModule->Imports)) { in visit() 415 ModuleFile *CurrentModule = VisitOrder[I]; in visit() local 417 if (State->VisitNumber[CurrentModule->Index] == VisitNumber) in visit() 421 assert(State->VisitNumber[CurrentModule->Index] == VisitNumber - 1); in visit() 422 State->VisitNumber[CurrentModule->Index] = VisitNumber; in visit() 423 if (!Visitor(*CurrentModule)) in visit() 429 ModuleFile *NextModule = CurrentModule; in visit()
|
| H A D | GeneratePCH.cpp | 53 PP.getLangOpts().CurrentModule, SourceLocation(), in HandleTranslationUnit()
|
| H A D | ASTReader.cpp | 5504 Module *CurrentModule = nullptr; in ReadSubmoduleBlock() local 5575 CurrentModule = in ReadSubmoduleBlock() 5604 CurrentModule->setASTFile(F.File); in ReadSubmoduleBlock() 5608 CurrentModule->Kind = Kind; in ReadSubmoduleBlock() 5611 CurrentModule->IsSystem = IsSystem || CurrentModule->IsSystem; in ReadSubmoduleBlock() 5627 CurrentModule->Conflicts.clear(); in ReadSubmoduleBlock() 5636 CurrentModule->IsUnimportable = in ReadSubmoduleBlock() 5638 CurrentModule->IsAvailable = !CurrentModule->IsUnimportable; in ReadSubmoduleBlock() 5719 Unresolved.Mod = CurrentModule; in ReadSubmoduleBlock() 5731 Unresolved.Mod = CurrentModule; in ReadSubmoduleBlock() [all …]
|
| H A D | ASTWriter.cpp | 194 auto *CurrentModule = ModulesToProcess.pop_back_val(); in GetAllModuleMaps() local 195 ProcessedModules.insert(CurrentModule); in GetAllModuleMaps() 198 HS.getModuleMap().getModuleMapFileForUniquing(CurrentModule); in GetAllModuleMaps() 205 for (auto *ImportedModule : (CurrentModule)->Imports) { in GetAllModuleMaps() 213 for (const Module *UndeclaredModule : CurrentModule->UndeclaredUses) in GetAllModuleMaps() 1343 AddString(LangOpts.CurrentModule, Record); in WriteControlBlock() 2673 !Top->fullModuleNameIs(StringRef(getLangOpts().CurrentModule)))) in getLocalOrImportedSubmoduleID()
|
| /llvm-project-15.0.7/clang-tools-extra/modularize/ |
| H A D | ModuleAssistant.cpp | 170 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()
|
| /llvm-project-15.0.7/clang/lib/Frontend/ |
| H A D | FrontendAction.cpp | 148 CI.getLangOpts().CurrentModule, SourceLocation(), /*AllowSearch*/false); in getCurrentModule() 479 if (CI.getLangOpts().CurrentModule.empty()) { in prepareToBuildModule() 495 << CI.getLangOpts().CurrentModule << ModuleMapFilename; in prepareToBuildModule() 536 SourceMgr.pushModuleBuildStack(CI.getLangOpts().CurrentModule, in prepareToBuildModule() 650 AST->getLangOpts().CurrentModule, SourceLocation(), in BeginSourceFile() 838 CI.getLangOpts().CurrentModule = CI.getLangOpts().ModuleName; in BeginSourceFile() 856 CI.getLangOpts().CurrentModule = CI.getLangOpts().ModuleName; in BeginSourceFile() 871 auto *CurrentModule = prepareToBuildModule(CI, Input.getFile()); in BeginSourceFile() local 872 if (!CurrentModule) in BeginSourceFile() 875 CurrentModule->PresumedModuleMapFile = PresumedModuleMapFile; in BeginSourceFile() [all …]
|
| H A D | FrontendActions.cpp | 239 HS.getCachedModuleFileName(CI.getLangOpts().CurrentModule, in CreateOutputFile() 328 HS.getModuleMap().createHeaderModule(CI.getLangOpts().CurrentModule, Headers); in BeginSourceFileAction() 878 if (LO.CPlusPlusModules && !LO.CurrentModule.empty()) { in ExecuteAction() 885 if (MF.ModuleName != LO.CurrentModule) in ExecuteAction() 887 << LO.CurrentModule << "\n"; in ExecuteAction() 912 if (M->Name == LO.CurrentModule) { in ExecuteAction() 914 Out << " " << ModuleKindName(M->Kind) << " '" << LO.CurrentModule in ExecuteAction()
|
| H A D | CompilerInstance.cpp | 1171 Invocation->getLangOpts()->CurrentModule = std::string(ModuleName); 1955 if (LastModuleImportResult && ModuleName != getLangOpts().CurrentModule) in loadModule() 1967 } else if (ModuleName == getLangOpts().CurrentModule) { in loadModule() 2082 if (ModuleName != getLangOpts().CurrentModule) { in loadModule()
|
| H A D | CompilerInvocation.cpp | 477 LangOpts.CurrentModule = LangOpts.ModuleName; in FixupInvocation()
|
| /llvm-project-15.0.7/llvm/examples/Kaleidoscope/MCJIT/complete/ |
| H A D | toy.cpp | 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() 1025 if (CurrentModule) { in closeCurrentModule() [all …]
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaModule.cpp | 113 StringRef HUName = getLangOpts().CurrentModule; in HandleStartOfHeaderUnit() 116 const_cast<LangOptions &>(getLangOpts()).CurrentModule = HUName.str(); in HandleStartOfHeaderUnit() 252 if (!getLangOpts().CurrentModule.empty() && in ActOnModuleDecl() 253 getLangOpts().CurrentModule != ModuleName) { in ActOnModuleDecl() 258 << getLangOpts().CurrentModule; in ActOnModuleDecl() 261 const_cast<LangOptions&>(getLangOpts()).CurrentModule = ModuleName; in ActOnModuleDecl() 498 if (Mod->getTopLevelModuleName() == getLangOpts().CurrentModule && in ActOnModuleImport() 503 << Mod->getFullModuleName() << getLangOpts().CurrentModule; in ActOnModuleImport() 567 getLangOpts().CurrentModule, ExportLoc, false, false); in ActOnModuleImport() 615 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 | 1595 llvm::StringRef(getLangOpts().CurrentModule).split(':').first) { in isUsableModule()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | ObjectFilePCHContainerOperations.cpp | 160 LangOpts.CurrentModule.empty() ? MainFileName : LangOpts.CurrentModule; in PCHContainerGenerator()
|
| H A D | CodeGenModule.cpp | 2558 if (M->getTopLevelModuleName() == getLangOpts().CurrentModule && in EmitModuleLinkOptions()
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseAST.cpp | 180 !S.getLangOpts().CurrentModule.empty()) { in ParseAST()
|
| /llvm-project-15.0.7/clang/lib/Lex/ |
| H A D | PPDirectives.cpp | 118 static bool isForModuleBuilding(Module *M, StringRef CurrentModule, in isForModuleBuilding() argument 124 if (M->getTopLevelModule()->IsFramework && CurrentModule == ModuleName && in isForModuleBuilding() 125 !CurrentModule.endswith("_Private") && TopLevelName.endswith("_Private")) in isForModuleBuilding() 128 return TopLevelName == CurrentModule; in isForModuleBuilding() 874 return getLangOpts().CurrentModule.empty() in getModuleForLocation() 876 : HeaderInfo.lookupModule(getLangOpts().CurrentModule, Loc); in getModuleForLocation() 2220 getLangOpts().CurrentModule, in HandleHeaderIncludeOrImport() 2553 isForModuleBuilding(SM, getLangOpts().CurrentModule, in HandleHeaderIncludeOrImport()
|
| H A D | PPMacroExpansion.cpp | 397 if (!getLangOpts().CurrentModule.empty()) in RegisterBuiltinMacros() 1834 (II->getName() == getLangOpts().CurrentModule); in ExpandBuiltinMacro() 1838 OS << getLangOpts().CurrentModule; in ExpandBuiltinMacro() 1839 IdentifierInfo *ModuleII = getIdentifierInfo(getLangOpts().CurrentModule); in ExpandBuiltinMacro()
|
| H A D | ModuleMap.cpp | 824 if (LangOpts.CurrentModule == Name) in findOrCreateModule() 857 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createModuleForInterfaceUnit() 884 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createHeaderModule() 907 assert(LangOpts.CurrentModule == Name && "module name mismatch"); in createHeaderUnit() 1042 if (LangOpts.CurrentModule == ModuleName) in inferFrameworkModule() 1980 Map.LangOpts.CurrentModule == ModuleName && in parseModuleDecl()
|
| H A D | PPLexerChange.cpp | 775 LeavingMod->getTopLevelModuleName() != getLangOpts().CurrentModule)) { in LeaveSubmodule()
|
| H A D | Preprocessor.cpp | 535 return getHeaderSearchInfo().lookupModule(getLangOpts().CurrentModule); in getCurrentModule()
|
| H A D | Pragma.cpp | 1688 StringRef Current = PP.getLangOpts().CurrentModule; in HandlePragma()
|
| /llvm-project-15.0.7/clang/lib/Basic/ |
| H A D | LangOptions.cpp | 37 CurrentModule.clear(); in resetNonModularOptions()
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | LangOptions.h | 417 std::string CurrentModule; variable
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | SampleProfile.cpp | 314 : CurrentReader(Reader), CurrentModule(M), in GUIDToFuncNameMapper() 319 for (const auto &F : CurrentModule) { in GUIDToFuncNameMapper() 374 Module &CurrentModule; member in __anonb9d8ce480111::GUIDToFuncNameMapper
|