| /freebsd/contrib/llvm-project/llvm/lib/LTO/ |
| H A D | LTOBackend.cpp | 239 static void runNewPMPasses(const Config &Conf, Module &Mod, TargetMachine *TM, in runNewPMPasses() argument 274 StandardInstrumentations SI(Mod.getContext(), Conf.DebugPassManager, in runNewPMPasses() 354 MPM.run(Mod, MAM); in runNewPMPasses() 357 static bool isEmptyModule(const Module &Mod) { in isEmptyModule() argument 361 return Mod.empty() && Mod.global_empty() && Mod.named_metadata_empty() && in isEmptyModule() 362 Mod.getModuleInlineAsm().empty(); in isEmptyModule() 365 bool lto::opt(const Config &Conf, TargetMachine *TM, unsigned Task, Module &Mod, in opt() argument 382 llvm::embedBitcodeInModule(Mod, llvm::MemoryBufferRef(), in opt() 391 if (!isEmptyModule(Mod)) { in opt() 393 runNewPMPasses(Conf, Mod, TM, Conf.OptLevel, IsThinLTO, ExportSummary, in opt() [all …]
|
| H A D | LTOCodeGenerator.cpp | 137 void LTOCodeGenerator::setAsmUndefinedRefs(LTOModule *Mod) { in setAsmUndefinedRefs() argument 138 AsmUndefinedRefs.insert_range(Mod->getAsmUndefinedRefs()); in setAsmUndefinedRefs() 141 bool LTOCodeGenerator::addModule(LTOModule *Mod) { in addModule() argument 142 assert(&Mod->getModule().getContext() == &Context && in addModule() 145 bool ret = TheLinker->linkInModule(Mod->takeModule()); in addModule() 146 setAsmUndefinedRefs(Mod); in addModule() 154 void LTOCodeGenerator::setModule(std::unique_ptr<LTOModule> Mod) { in setModule() argument 155 assert(&Mod->getModule().getContext() == &Context && in setModule() 160 MergedModule = Mod->takeModule(); in setModule() 162 setAsmUndefinedRefs(&*Mod); in setModule()
|
| H A D | ThinLTOCodeGenerator.cpp | 189 auto &Mod = Input->getSingleBitcodeModule(); in loadModuleFromInput() local 192 Lazy ? Mod.getLazyModule(Context, in loadModuleFromInput() 194 : Mod.parseModule(Context); in loadModuleFromInput() 197 SMDiagnostic Err = SMDiagnostic(Mod.getModuleIdentifier(), in loadModuleFromInput() 603 for (auto &Mod : Modules) { in linkCombinedIndex() local 604 auto &M = Mod->getSingleBitcodeModule(); in linkCombinedIndex() 605 if (Error Err = M.readSummary(*CombinedIndex, Mod->getName())) { in linkCombinedIndex() 979 for (auto &Mod : Modules) { in run() local 985 auto TheModule = loadModuleFromInput(Mod.get(), Context, false, in run() 1108 for (auto &Mod : Modules) in run() local [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaModule.cpp | 214 Module *Mod = Map.createHeaderUnit(StartOfTU, HUName, H); in HandleStartOfHeaderUnit() local 215 assert(Mod && "module creation should not fail"); in HandleStartOfHeaderUnit() 218 ModuleScopes.back().Module = Mod; in HandleStartOfHeaderUnit() 219 VisibleModules.setVisible(Mod, StartOfTU); in HandleStartOfHeaderUnit() 225 TU->setLocalOwningModule(Mod); in HandleStartOfHeaderUnit() 393 Module *Mod; // The module we are creating. in ActOnModuleDecl() local 407 Mod = M; in ActOnModuleDecl() 412 Mod = Map.createModuleForInterfaceUnit(ModuleLoc, ModuleName); in ActOnModuleDecl() 414 Mod->Kind = Module::ModulePartitionInterface; in ActOnModuleDecl() 415 assert(Mod && "module creation should not fail"); in ActOnModuleDecl() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Lex/ |
| H A D | ModuleMap.cpp | 51 void ModuleMap::resolveLinkAsDependencies(Module *Mod) { in resolveLinkAsDependencies() argument 52 auto PendingLinkAs = PendingLinkAsModule.find(Mod->Name); in resolveLinkAsDependencies() 62 void ModuleMap::addLinkAsDependency(Module *Mod) { in addLinkAsDependency() argument 63 if (findModule(Mod->ExportAsModule)) in addLinkAsDependency() 64 Mod->UseExportAsModuleLinkName = true; in addLinkAsDependency() 66 PendingLinkAsModule[Mod->ExportAsModule].insert(Mod->Name); in addLinkAsDependency() 107 ModuleMap::resolveExport(Module *Mod, in resolveExport() argument 117 Module *Context = resolveModuleId(Unresolved.Id, Mod, Complain); in resolveExport() 124 Module *ModuleMap::resolveModuleId(const ModuleId &Id, Module *Mod, in resolveModuleId() argument 127 Module *Context = lookupModuleUnqualified(Id[0].first, Mod); in resolveModuleId() [all …]
|
| H A D | PPLexerChange.cpp | 276 const Module &Mod, SmallVectorImpl<const Module *> &SubMods) { in collectAllSubModulesWithUmbrellaHeader() argument 277 if (Mod.getUmbrellaHeaderAsWritten()) in collectAllSubModulesWithUmbrellaHeader() 278 SubMods.push_back(&Mod); in collectAllSubModulesWithUmbrellaHeader() 279 for (auto *M : Mod.submodules()) in collectAllSubModulesWithUmbrellaHeader() 283 void Preprocessor::diagnoseMissingHeaderInUmbrellaDir(const Module &Mod) { in diagnoseMissingHeaderInUmbrellaDir() argument 285 Mod.getUmbrellaHeaderAsWritten(); in diagnoseMissingHeaderInUmbrellaDir() 294 OptionalDirectoryEntryRef Dir = Mod.getEffectiveUmbrellaDir(); in diagnoseMissingHeaderInUmbrellaDir() 316 << Mod.getFullModuleName() << RelativePath; in diagnoseMissingHeaderInUmbrellaDir() 582 if (Module *Mod = getCurrentModule()) { in HandleEndOfFile() local 584 collectAllSubModulesWithUmbrellaHeader(*Mod, AllMods); in HandleEndOfFile()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | SanitizerBinaryMetadata.cpp | 131 : Mod(M), Options(transformOptionsFromCl(std::move(Opts))), in SanitizerBinaryMetadata() 144 const auto CM = Mod.getCodeModel(); in getVersion() 177 Module &Mod; member in __anon0ee657d00111::SanitizerBinaryMetadata 190 for (Function &F : Mod) in run() 224 Mod, StructorPrefix + ".module_ctor", in run() 230 Mod, StructorPrefix + ".module_dtor", in run() 239 Ctor->setComdat(Mod.getOrInsertComdat(Ctor->getName())); in run() 240 Dtor->setComdat(Mod.getOrInsertComdat(Dtor->getName())); in run() 249 appendToGlobalCtors(Mod, Ctor, kCtorDtorPriority, CtorComdatKey); in run() 250 appendToGlobalDtors(Mod, Dtor, kCtorDtorPriority, DtorComdatKey); in run() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Lex/ |
| H A D | ModuleMap.h | 119 void resolveLinkAsDependencies(Module *Mod); 123 void addLinkAsDependency(Module *Mod); 292 resolveExport(Module *Mod, const Module::UnresolvedExportDecl &Unresolved, 306 Module *resolveModuleId(const ModuleId &Id, Module *Mod, bool Complain) const; 315 void addUnresolvedHeader(Module *Mod, 456 void resolveHeaderDirectives(Module *Mod, 673 bool resolveExports(Module *Mod, bool Complain); 683 bool resolveUses(Module *Mod, bool Complain); 693 bool resolveConflicts(Module *Mod, bool Complain); 697 setUmbrellaHeaderAsWritten(Module *Mod, FileEntryRef UmbrellaHeader, [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/ |
| H A D | ModuleDebugStream.cpp | 32 : Mod(Module), Stream(std::move(Stream)) {} in ModuleDebugStreamRef() 39 if (Mod.getModuleStreamIndex() != llvm::pdb::kInvalidStreamIndex) { in reload() 50 uint32_t SymbolSize = Mod.getSymbolDebugInfoByteSize(); in reloadSerialize() 51 uint32_t C11Size = Mod.getC11LineInfoByteSize(); in reloadSerialize() 52 uint32_t C13Size = Mod.getC13LineInfoByteSize(); in reloadSerialize()
|
| /freebsd/contrib/llvm-project/llvm/lib/Passes/ |
| H A D | PassBuilderBindings.cpp | 51 static LLVMErrorRef runPasses(Module *Mod, Function *Fun, const char *Passes, in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 78 StandardInstrumentations SI(Mod->getContext(), Debug, VerifyEach); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 95 MPM.run(*Mod, MAM); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() 106 Module *Mod = unwrap(M); in LLVMRunPasses() local 107 return runPasses(Mod, nullptr, Passes, Machine, PassOpts); in LLVMRunPasses()
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
| H A D | InclusionRewriter.cpp | 88 void WriteImplicitModuleImport(const Module *Mod); 147 void InclusionRewriter::WriteImplicitModuleImport(const Module *Mod) { in WriteImplicitModuleImport() argument 148 OS << "#pragma clang module import " << Mod->getFullModuleName(true) in WriteImplicitModuleImport() 435 if (const Module *Mod = FindModuleAtLocation(Loc)) in Process() local 436 WriteImplicitModuleImport(Mod); in Process() 438 const Module *Mod = FindEnteredModule(Loc); in Process() local 439 if (Mod) in Process() 441 << Mod->getFullModuleName(true) << "\n"; in Process() 446 if (Mod) in Process() 448 << Mod->getFullModuleName(true) << "*/\n"; in Process()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULateCodeGenPrepare.cpp | 76 Module &Mod; member in __anon9f65155b0111::LiveRegOptimizer 166 LiveRegOptimizer(Module &Mod, const GCNSubtarget &ST) in LiveRegOptimizer() argument 167 : Mod(Mod), DL(Mod.getDataLayout()), ST(ST), in LiveRegOptimizer() 168 ConvertToScalar(Type::getInt32Ty(Mod.getContext())) {} in LiveRegOptimizer() 209 return IntegerType::get(Mod.getContext(), ConvertScalarSize); in calculateConvertType() 211 return VectorType::get(Type::getIntNTy(Mod.getContext(), ConvertScalarSize), in calculateConvertType() 264 Builder.CreateTrunc(V, IntegerType::get(Mod.getContext(), NewSize))); in convertFromOptType() 271 Type::getIntNTy(Mod.getContext(), NewVTy->getScalarSizeInBits()), in convertFromOptType()
|
| H A D | AMDGPUHSAMetadataStreamer.h | 51 virtual void begin(const Module &Mod, 101 void emitPrintf(const Module &Mod); 138 void begin(const Module &Mod,
|
| /freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/ |
| H A D | ExecutionEngineBindings.cpp | 183 std::unique_ptr<Module> Mod(unwrap(M)); in LLVMCreateMCJITCompilerForModule() local 185 if (Mod) in LLVMCreateMCJITCompilerForModule() 188 for (auto &F : *Mod) { in LLVMCreateMCJITCompilerForModule() 196 EngineBuilder builder(std::move(Mod)); in LLVMCreateMCJITCompilerForModule() 262 Module *Mod = unwrap(M); in LLVMRemoveModule() local 263 unwrap(EE)->removeModule(Mod); in LLVMRemoveModule() 264 *OutMod = wrap(Mod); in LLVMRemoveModule()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/ |
| H A D | AVRMCAsmInfo.cpp | 53 llvm::find_if(ModifierNames, [&Name](ModifierEntry const &Mod) { in parseSpecifier() argument 54 return Mod.Spelling == Name; in parseSpecifier() 65 llvm::find_if(ModifierNames, [this](ModifierEntry const &Mod) { in getName() argument 66 return Mod.specifier == getSpecifier(); in getName()
|
| /freebsd/contrib/llvm-project/clang/lib/Index/ |
| H A D | IndexingContext.cpp | 104 static void reportModuleReferences(const Module *Mod, in reportModuleReferences() argument 108 if (!Mod) in reportModuleReferences() 110 reportModuleReferences(Mod->Parent, IdLocs.drop_back(), ImportD, in reportModuleReferences() 113 ImportD, Mod, (SymbolRoleSet)SymbolRole::Reference, IdLocs.back()); in reportModuleReferences() 147 const Module *Mod = ImportD->getImportedModule(); in importedModule() local 148 if (!ImportD->isImplicit() && Mod->Parent && !IdLocs.empty()) { in importedModule() 149 reportModuleReferences(Mod->Parent, IdLocs.drop_back(), ImportD, in importedModule() 157 return DataConsumer.handleModuleOccurrence(ImportD, Mod, Roles, Loc); in importedModule()
|
| H A D | IndexingAction.cpp | 241 serialization::ModuleFile &Mod, in indexPreprocessorModuleMacros() argument 247 if (OwningMod && OwningMod->getASTFile() == Mod.File) { in indexPreprocessorModuleMacros() 294 void index::indexModuleFile(serialization::ModuleFile &Mod, ASTReader &Reader, in indexModuleFile() argument 303 indexPreprocessorModuleMacros(Reader.getPreprocessor(), Mod, DataConsumer); in indexModuleFile() 306 for (const Decl *D : Reader.getModuleFileLevelDecls(Mod)) { in indexModuleFile()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/LTO/legacy/ |
| H A D | LTOModule.h | 52 std::unique_ptr<Module> Mod; member 116 const Module &getModule() const { return *Mod; } in getModule() 117 Module &getModule() { return *Mod; } in getModule() 119 std::unique_ptr<Module> takeModule() { return std::move(Mod); } in takeModule()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Serialization/ |
| H A D | ASTDeserializationListener.h | 63 virtual void ModuleRead(serialization::SubmoduleID ID, Module *Mod) {} in ModuleRead() argument 121 void ModuleRead(serialization::SubmoduleID ID, Module *Mod) override { in ModuleRead() argument 123 Previous->ModuleRead(ID, Mod); in ModuleRead()
|
| H A D | ASTReader.h | 642 ModuleFile *Mod = nullptr; member 646 FileDeclsInfo(ModuleFile *Mod, in FileDeclsInfo() 648 : Mod(Mod), Decls(Decls) {} in FileDeclsInfo() 694 ModuleFile *Mod; member 816 Module *Mod; member 1528 ModuleFile *Mod; member 1532 ImportedModule(ModuleFile *Mod, in ImportedModule() 1535 : Mod(Mod), ImportedBy(ImportedBy), ImportLoc(ImportLoc) {} in ImportedModule() 1652 getModulePreprocessedEntities(ModuleFile &Mod) const; 1664 ModuleFile *Mod = nullptr; variable [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/ |
| H A D | Module.cpp | 388 Module *Mod = *I; in getExportedModules() local 389 if (!Mod->IsExplicit) in getExportedModules() 390 Exported.push_back(Mod); in getExportedModules() 398 Module *Mod = Exports[I].getPointer(); in getExportedModules() local 401 Exported.push_back(Mod); in getExportedModules() 426 Module *Mod = Imports[I]; in getExportedModules() local 432 if (Mod == Restriction || Mod->isSubModuleOf(Restriction)) { in getExportedModules() 442 Exported.push_back(Mod); in getExportedModules()
|
| /freebsd/contrib/llvm-project/clang/utils/TableGen/ |
| H A D | SveEmitter.cpp | 142 void applyModifier(char Mod); 652 void SVEType::applyModifier(char Mod) { in applyModifier() argument 653 switch (Mod) { in applyModifier() 942 char Mod = Proto[0]; in getProtoModifier() local 943 if (Mod == '2' || Mod == '3' || Mod == '4') { in getProtoModifier() 944 NumVectors = Mod - '0'; in getProtoModifier() 945 Mod = 'd'; in getProtoModifier() 947 Mod = Proto[2]; in getProtoModifier() 953 return {Mod, NumVectors}; in getProtoModifier() 987 char Mod; in Intrinsic() local [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/ |
| H A D | MarkupFilter.cpp | 101 << formatv("overlapping mmap: #{0:x} [{1:x}-{2:x}]\n", M->Mod->ID, in tryMMap() 111 if (!MIL || MIL->Mod != MMap.Mod) { in tryMMap() 115 beginModuleInfoLine(MMap.Mod); in tryMMap() 264 MMap->Mod->BuildID, {MMap->getModuleRelativeAddr(*Addr)}); in tryPC() 321 Symbolizer.symbolizeInlinedCode(MMap->Mod->BuildID, {MRA}); in tryBackTrace() 355 printValue(MMap->Mod->Name); in tryBackTrace() 384 MMap->Mod->BuildID, {MMap->getModuleRelativeAddr(*Addr)}); in tryData()
|
| /freebsd/contrib/llvm-project/clang/include/clang/Index/ |
| H A D | USRGeneration.h | 88 bool generateFullUSRForModule(const Module *Mod, raw_ostream &OS); 96 bool generateUSRFragmentForModule(const Module *Mod, raw_ostream &OS);
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | Module.h | 626 for (const Module *Mod = this; Mod; Mod = Mod->Parent) in isPartOfFramework() local 627 if (Mod->IsFramework) in isPartOfFramework()
|