Home
last modified time | relevance | path

Searched refs:Mod (Results 1 – 25 of 157) sorted by relevance

1234567

/freebsd-src/contrib/llvm-project/llvm/lib/LTO/
H A DLTOBackend.cpp233 static void runNewPMPasses(const Config &Conf, Module &Mod, TargetMachine *TM, in createTargetMachine()
268 StandardInstrumentations SI(Mod.getContext(), Conf.DebugPassManager, in runNewPMPasses()
338 MPM.run(Mod, MAM); in runNewPMPasses()
341 bool lto::opt(const Config &Conf, TargetMachine *TM, unsigned Task, Module &Mod, in runNewPMPasses()
358 llvm::embedBitcodeInModule(Mod, llvm::MemoryBufferRef(), in opt()
363 runNewPMPasses(Conf, Mod, TM, Conf.OptLevel, IsThinLTO, ExportSummary, in opt()
365 return !Conf.PostOptModuleHook || Conf.PostOptModuleHook(Task, Mod); in opt()
369 AddStreamFn AddStream, unsigned Task, Module &Mod,
371 if (Conf.PreCodeGenModuleHook && !Conf.PreCodeGenModuleHook(Task, Mod)) in codegen() argument
375 llvm::embedBitcodeInModule(Mod, llv in codegen()
237 runNewPMPasses(const Config & Conf,Module & Mod,TargetMachine * TM,unsigned OptLevel,bool IsThinLTO,ModuleSummaryIndex * ExportSummary,const ModuleSummaryIndex * ImportSummary) runNewPMPasses() argument
343 opt(const Config & Conf,TargetMachine * TM,unsigned Task,Module & Mod,bool IsThinLTO,ModuleSummaryIndex * ExportSummary,const ModuleSummaryIndex * ImportSummary,const std::vector<uint8_t> & CmdArgs) opt() argument
430 splitCodeGen(const Config & C,TargetMachine * TM,AddStreamFn AddStream,unsigned ParallelCodeGenParallelismLevel,Module & Mod,const ModuleSummaryIndex & CombinedIndex) splitCodeGen() argument
480 initAndLookupTarget(const Config & C,Module & Mod) initAndLookupTarget() argument
505 backend(const Config & C,AddStreamFn AddStream,unsigned ParallelCodeGenParallelismLevel,Module & Mod,ModuleSummaryIndex & CombinedIndex) backend() argument
530 dropDeadSymbols(Module & Mod,const GVSummaryMapTy & DefinedGlobals,const ModuleSummaryIndex & Index) dropDeadSymbols() argument
552 thinBackend(const Config & Conf,unsigned Task,AddStreamFn AddStream,Module & Mod,const ModuleSummaryIndex & CombinedIndex,const FunctionImporter::ImportMapTy & ImportList,const GVSummaryMapTy & DefinedGlobals,MapVector<StringRef,BitcodeModule> * ModuleMap,const std::vector<uint8_t> & CmdArgs) thinBackend() argument
587 __anon585fe4f70802(Module &Mod, TargetMachine *TM, std::unique_ptr<ToolOutputFile> DiagnosticOutputFile) thinBackend() argument
[all...]
H A DLTOCodeGenerator.cpp149 void LTOCodeGenerator::setAsmUndefinedRefs(LTOModule *Mod) {
150 for (const StringRef &Undef : Mod->getAsmUndefinedRefs()) in setAsmUndefinedRefs() argument
154 bool LTOCodeGenerator::addModule(LTOModule *Mod) {
155 assert(&Mod->getModule().getContext() == &Context && in addModule() argument
158 bool ret = TheLinker->linkInModule(Mod->takeModule()); in addModule()
159 setAsmUndefinedRefs(Mod); in addModule()
167 void LTOCodeGenerator::setModule(std::unique_ptr<LTOModule> Mod) {
168 assert(&Mod->getModule().getContext() == &Context && in setModule() argument
173 MergedModule = Mod->takeModule(); in setModule()
175 setAsmUndefinedRefs(&*Mod); in setModule()
[all...]
H A DThinLTOCodeGenerator.cpp196 auto &Mod = Input->getSingleBitcodeModule(); in loadModuleFromInput()
199 Lazy ? Mod.getLazyModule(Context, in loadModuleFromInput()
201 : Mod.parseModule(Context); in loadModuleFromInput()
204 SMDiagnostic Err = SMDiagnostic(Mod.getModuleIdentifier(), in loadModuleFromInput()
613 for (auto &Mod : Modules) {
614 auto &M = Mod->getSingleBitcodeModule();
615 if (Error Err = M.readSummary(*CombinedIndex, Mod->getName())) {
990 for (auto &Mod : Modules) { in run()
996 auto TheModule = loadModuleFromInput(Mod.get(), Context, false, in run()
1123 for (auto &Mod in run()
195 auto &Mod = Input->getSingleBitcodeModule(); loadModuleFromInput() local
621 for (auto &Mod : Modules) { linkCombinedIndex() local
994 for (auto &Mod : Modules) { run() local
1127 for (auto &Mod : Modules) run() local
1140 auto &Mod = Modules[IndexCount]; run() local
[all...]
H A DLTO.cpp821 RegularLTOState::AddedModule Mod; in addRegularLTO()
828 Mod.M = std::move(*MOrErr); in addRegularLTO()
848 Mod.Keep.push_back(&GV); in addRegularLTO()
888 Mod.Keep.push_back(GV); in addRegularLTO()
908 Mod.Keep.push_back(GV); in addRegularLTO()
969 return std::move(Mod); in linkRegularLTO()
972 Error LTO::linkRegularLTO(RegularLTOState::AddedModule Mod, in linkRegularLTO()
975 for (GlobalValue *GV : Mod.Keep) { in linkRegularLTO()
1005 return RegularLTO.Mover->move(std::move(Mod.M), Keep, nullptr, in addThinLTO()
1198 void lto::updateMemProfAttributes(Module &Mod, in updateMemProfAttributes()
807 RegularLTOState::AddedModule Mod; addRegularLTO() local
958 linkRegularLTO(RegularLTOState::AddedModule Mod,bool LivenessFromIndex) linkRegularLTO() argument
1184 updateMemProfAttributes(Module & Mod,const ModuleSummaryIndex & Index) updateMemProfAttributes() argument
1680 for (auto &Mod : ThinLTO.ModuleMap) runThinLTO() local
1821 auto &Mod = *(ModuleMap.begin() + I); runThinLTO() local
1845 for (auto &Mod : ModuleMap) runThinLTO() local
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/Sema/
H A DSemaModule.cpp209 Module *Mod = Map.createHeaderUnit(StartOfTU, HUName, H); in ActOnModuleDecl()
210 assert(Mod && "module creation should not fail"); in ActOnModuleDecl()
213 ModuleScopes.back().Module = Mod; in ActOnModuleDecl()
214 VisibleModules.setVisible(Mod, StartOfTU); in ActOnModuleDecl()
220 TU->setLocalOwningModule(Mod); in ActOnModuleDecl()
390 Module *Mod; // The module we are creating. in ActOnModuleDecl()
404 Mod = M; in ActOnModuleDecl()
409 Mod = Map.createModuleForInterfaceUnit(ModuleLoc, ModuleName); in ActOnModuleDecl()
411 Mod->Kind = Module::ModulePartitionInterface; in ActOnModuleDecl()
412 assert(Mod in ActOnModuleDecl()
123 Module *Mod = Map.createHeaderUnit(StartOfTU, HUName, H); HandleStartOfHeaderUnit() local
304 Module *Mod; // The module we are creating. ActOnModuleDecl() local
527 Module *Mod = getModuleLoader().loadModule( ActOnModuleImport() local
552 ActOnModuleImport(SourceLocation StartLoc,SourceLocation ExportLoc,SourceLocation ImportLoc,Module * Mod,ModuleIdPath Path) ActOnModuleImport() argument
628 ActOnModuleInclude(SourceLocation DirectiveLoc,Module * Mod) ActOnModuleInclude() argument
633 BuildModuleInclude(SourceLocation DirectiveLoc,Module * Mod) BuildModuleInclude() argument
667 ActOnModuleBegin(SourceLocation DirectiveLoc,Module * Mod) ActOnModuleBegin() argument
691 ActOnModuleEnd(SourceLocation EomLoc,Module * Mod) ActOnModuleEnd() argument
732 createImplicitModuleImportForErrorRecovery(SourceLocation Loc,Module * Mod) createImplicitModuleImportForErrorRecovery() argument
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/Lex/
H A DModuleMap.cpp58 void ModuleMap::resolveLinkAsDependencies(Module *Mod) { in resolveLinkAsDependencies() argument
59 auto PendingLinkAs = PendingLinkAsModule.find(Mod->Name); in resolveLinkAsDependencies()
69 void ModuleMap::addLinkAsDependency(Module *Mod) { in addLinkAsDependency() argument
70 if (findModule(Mod->ExportAsModule)) in addLinkAsDependency()
71 Mod->UseExportAsModuleLinkName = true; in addLinkAsDependency()
73 PendingLinkAsModule[Mod->ExportAsModule].insert(Mod->Name); in addLinkAsDependency()
114 ModuleMap::resolveExport(Module *Mod, in resolveExport() argument
124 Module *Context = resolveModuleId(Unresolved.Id, Mod, Complain); in resolveExport()
131 Module *ModuleMap::resolveModuleId(const ModuleId &Id, Module *Mod, in resolveModuleId() argument
163 appendSubframeworkPaths(Module * Mod,SmallVectorImpl<char> & Path) appendSubframeworkPaths() argument
295 resolveHeader(Module * Mod,const Module::UnresolvedHeaderDirective & Header,bool & NeedsFramework) resolveHeader() argument
334 resolveAsBuiltinHeader(Module * Mod,const Module::UnresolvedHeaderDirective & Header) resolveAsBuiltinHeader() argument
982 inferFrameworkLink(Module * Mod) inferFrameworkLink() argument
1017 if (Module *Mod = lookupModuleQualified(ModuleName, Parent)) inferFrameworkModule() local
1188 setUmbrellaHeaderAsWritten(Module * Mod,FileEntryRef UmbrellaHeader,const Twine & NameAsWritten,const Twine & PathRelativeToRootModuleDirectory) setUmbrellaHeaderAsWritten() argument
1203 setUmbrellaDirAsWritten(Module * Mod,DirectoryEntryRef UmbrellaDir,const Twine & NameAsWritten,const Twine & PathRelativeToRootModuleDirectory) setUmbrellaDirAsWritten() argument
1212 addUnresolvedHeader(Module * Mod,Module::UnresolvedHeaderDirective Header,bool & NeedsFramework) addUnresolvedHeader() argument
1265 resolveHeaderDirectives(Module * Mod,std::optional<const FileEntry * > File) const resolveHeaderDirectives() argument
1283 addHeader(Module * Mod,Module::Header Header,ModuleHeaderRole Role,bool Imported) addHeader() argument
1394 resolveExports(Module * Mod,bool Complain) resolveExports() argument
1407 resolveUses(Module * Mod,bool Complain) resolveUses() argument
1421 resolveConflicts(Module * Mod,bool Complain) resolveConflicts() argument
[all...]
H A DPPLexerChange.cpp283 const Module &Mod, SmallVectorImpl<const Module *> &SubMods) { in collectAllSubModulesWithUmbrellaHeader() argument
284 if (Mod.getUmbrellaHeaderAsWritten()) in collectAllSubModulesWithUmbrellaHeader()
285 SubMods.push_back(&Mod); in collectAllSubModulesWithUmbrellaHeader()
286 for (auto *M : Mod.submodules()) in collectAllSubModulesWithUmbrellaHeader()
290 void Preprocessor::diagnoseMissingHeaderInUmbrellaDir(const Module &Mod) { in diagnoseMissingHeaderInUmbrellaDir() argument
292 Mod.getUmbrellaHeaderAsWritten(); in diagnoseMissingHeaderInUmbrellaDir()
301 OptionalDirectoryEntryRef Dir = Mod.getEffectiveUmbrellaDir(); in diagnoseMissingHeaderInUmbrellaDir()
323 << Mod.getFullModuleName() << RelativePath; in diagnoseMissingHeaderInUmbrellaDir()
589 if (Module *Mod = getCurrentModule()) { in HandleEndOfFile()
591 collectAllSubModulesWithUmbrellaHeader(*Mod, AllMod in HandleEndOfFile()
590 if (Module *Mod = getCurrentModule()) { HandleEndOfFile() local
[all...]
/freebsd-src/contrib/llvm-project/clang/include/clang/Lex/
H A DModuleMap.h120 void resolveLinkAsDependencies(Module *Mod);
124 void addLinkAsDependency(Module *Mod);
293 /// \param Mod The module in which we're resolving the export declaration.
303 resolveExport(Module *Mod, const Module::UnresolvedExportDecl &Unresolved,
310 /// \param Mod The module in which we're resolving the module-id.
317 Module *resolveModuleId(const ModuleId &Id, Module *Mod, bool Complain) const;
321 /// \param Mod The module in which we're adding the unresolved header
324 /// \param NeedsFramework If Mod is not a framework but a missing header would
325 /// be found in case Mod was, set it to true. False otherwise.
326 void addUnresolvedHeader(Module *Mod,
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DSanitizerBinaryMetadata.cpp132 : Mod(M), Options(transformOptionsFromCl(std::move(Opts))), in SanitizerBinaryMetadata()
146 const auto CM = Mod.getCodeModel(); in getVersion()
179 Module &Mod;
192 for (Function &F : Mod) in run()
226 Mod, StructorPrefix + ".module_ctor", in run()
232 Mod, StructorPrefix + ".module_dtor", in run()
241 Ctor->setComdat(Mod.getOrInsertComdat(Ctor->getName())); in run()
242 Dtor->setComdat(Mod.getOrInsertComdat(Dtor->getName())); in run()
251 appendToGlobalCtors(Mod, Ctor, kCtorDtorPriority, CtorComdatKey); in runOn()
252 appendToGlobalDtors(Mod, Dto in runOn()
178 Module &Mod; global() member in __anon6407de220111::SanitizerBinaryMetadata
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DModuleDebugStream.cpp34 : Mod(Module), Stream(std::move(Stream)) {} in ModuleDebugStreamRef()
41 if (Mod.getModuleStreamIndex() != llvm::pdb::kInvalidStreamIndex) { in reload()
52 uint32_t SymbolSize = Mod.getSymbolDebugInfoByteSize(); in reloadSerialize()
53 uint32_t C11Size = Mod.getC11LineInfoByteSize(); in reloadSerialize()
54 uint32_t C13Size = Mod.getC13LineInfoByteSize(); in reloadSerialize()
/freebsd-src/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DInclusionRewriter.cpp88 void WriteImplicitModuleImport(const Module *Mod);
147 void InclusionRewriter::WriteImplicitModuleImport(const Module *Mod) { in WriteImplicitModuleImport()
148 OS << "#pragma clang module import " << Mod->getFullModuleName(true) in WriteImplicitModuleImport()
435 if (const Module *Mod = FindModuleAtLocation(Loc)) in Process()
436 WriteImplicitModuleImport(Mod); in Process() local
438 const Module *Mod = FindEnteredModule(Loc); in Process()
439 if (Mod) in Process()
441 << Mod->getFullModuleName(true) << "\n"; in Process()
446 if (Mod) in Process()
448 << Mod in Process()
146 WriteImplicitModuleImport(const Module * Mod) WriteImplicitModuleImport() argument
433 if (const Module *Mod = FindModuleAtLocation(Loc)) Process() local
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRMCExpr.cpp198 llvm::find_if(ModifierNames, [this](ModifierEntry const &Mod) { in getName()
199 return Mod.VariantKind == Kind; in getName() argument
210 llvm::find_if(ModifierNames, [&Name](ModifierEntry const &Mod) { in getKindByName()
211 return Mod.Spelling == Name; in getKindByName() argument
/freebsd-src/contrib/llvm-project/llvm/include/llvm/LTO/legacy/
H A DLTOModule.h51 std::unique_ptr<Module> Mod; member
115 const Module &getModule() const { return *Mod; } in getModule()
116 Module &getModule() { return *Mod; } in getModule()
118 std::unique_ptr<Module> takeModule() { return std::move(Mod); } in takeModule()
/freebsd-src/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngineBindings.cpp184 std::unique_ptr<Module> Mod(unwrap(M)); in LLVMCreateMCJITCompilerForModule() local
186 if (Mod) in LLVMCreateMCJITCompilerForModule()
189 for (auto &F : *Mod) { in LLVMCreateMCJITCompilerForModule()
197 EngineBuilder builder(std::move(Mod)); in LLVMCreateMCJITCompilerForModule()
263 Module *Mod = unwrap(M); in LLVMRemoveModule() local
264 unwrap(EE)->removeModule(Mod); in LLVMRemoveModule()
265 *OutMod = wrap(Mod); in LLVMRemoveModule()
/freebsd-src/contrib/llvm-project/clang/lib/Index/
H A DIndexingContext.cpp92 static void reportModuleReferences(const Module *Mod, in reportModuleReferences() argument
96 if (!Mod) in reportModuleReferences()
98 reportModuleReferences(Mod->Parent, IdLocs.drop_back(), ImportD, in reportModuleReferences()
101 ImportD, Mod, (SymbolRoleSet)SymbolRole::Reference, IdLocs.back()); in reportModuleReferences()
135 const Module *Mod = ImportD->getImportedModule(); in importedModule() local
136 if (!ImportD->isImplicit() && Mod->Parent && !IdLocs.empty()) { in importedModule()
137 reportModuleReferences(Mod->Parent, IdLocs.drop_back(), ImportD, in importedModule()
145 return DataConsumer.handleModuleOccurrence(ImportD, Mod, Roles, Loc); in importedModule()
H A DIndexingAction.cpp243 serialization::ModuleFile &Mod, in indexPreprocessorModuleMacros() argument
249 if (OwningMod && OwningMod->getASTFile() == Mod.File) { in indexPreprocessorModuleMacros()
296 void index::indexModuleFile(serialization::ModuleFile &Mod, ASTReader &Reader, in indexModuleFile() argument
305 indexPreprocessorModuleMacros(Reader.getPreprocessor(), Mod, DataConsumer); in indexModuleFile()
308 for (const Decl *D : Reader.getModuleFileLevelDecls(Mod)) { in indexModuleFile()
/freebsd-src/contrib/llvm-project/llvm/include/llvm/Support/
H A DModRef.h33 Mod = 2, enumerator
35 ModRef = Ref | Mod,
49 return static_cast<int>(MRI) & static_cast<int>(ModRefInfo::Mod); in isModSet()
128 return MemoryEffectsBase(ModRefInfo::Mod); in writeOnly()
/freebsd-src/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTReader.h581 ModuleFile *Mod = nullptr;
585 FileDeclsInfo(ModuleFile *Mod, in FileDeclsInfo()
587 : Mod(Mod), Decls(Decls) {}
613 ModuleFile *Mod;
708 Module *Mod;
1349 ModuleFile *Mod;
1353 ImportedModule(ModuleFile *Mod,
1356 : Mod(Mod), ImportedB
580 ModuleFile *Mod = nullptr; global() member
611 ModuleFile *Mod; global() member
715 Module *Mod; global() member
1352 ModuleFile *Mod; global() member
1483 ModuleFile *Mod = nullptr; global() variable
1488 ModuleDeclIterator(ASTReader * Reader,ModuleFile * Mod,const serialization::LocalDeclID * Pos) ModuleDeclIterator() argument
[all...]
/freebsd-src/contrib/llvm-project/llvm/lib/Passes/
H A DPassBuilderBindings.cpp55 Module *Mod = unwrap(M); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
69 StandardInstrumentations SI(Mod->getContext(), Debug, VerifyEach); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
79 MPM.run(*Mod, MAM); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
54 Module *Mod = unwrap(M); DEFINE_SIMPLE_CONVERSION_FUNCTIONS() local
/freebsd-src/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUHSAMetadataStreamer.h50 virtual void begin(const Module &Mod,
99 void emitPrintf(const Module &Mod);
135 void begin(const Module &Mod,
H A DAMDGPULateCodeGenPrepare.cpp47 Module *Mod = nullptr; member in __anon934510ad0111::AMDGPULateCodeGenPrepare
90 Module *Mod = nullptr; in doInitialization()
143 LiveRegOptimizer(Module *Mod, const GCNSubtarget *ST) : Mod(Mod), ST(ST) { in visitLoadInst()
144 DL = &Mod->getDataLayout(); in visitLoadInst()
145 ConvertToScalar = Type::getInt32Ty(Mod->getContext()); in visitLoadInst()
152 Mod = &M; in visitLoadInst()
153 DL = &Mod->getDataLayout(); in visitLoadInst()
175 LiveRegOptimizer LRO(Mod, in visitLoadInst()
[all...]
H A DAMDGPUPromoteAlloca.cpp80 Module *Mod = nullptr;
302 Mod = F.getParent(); in GEPToVectorIndex()
303 DL = &Mod->getDataLayout(); in GEPToVectorIndex()
977 Intrinsic::getDeclaration(Mod, Intrinsic::r600_read_local_size_y); in getWorkitemID()
979 Intrinsic::getDeclaration(Mod, Intrinsic::r600_read_local_size_z); in getWorkitemID()
1025 Intrinsic::getDeclaration(Mod, Intrinsic::amdgcn_dispatch_ptr); in isCallPromotable()
1035 Type *I32Ty = Type::getInt32Ty(Mod->getContext()); in binaryOpIsDerivedFromSameAlloca()
1048 MDNode *MD = MDNode::get(Mod->getContext(), std::nullopt); in binaryOpIsDerivedFromSameAlloca()
1087 Function *WorkitemIdFn = Intrinsic::getDeclaration(Mod, IntrID); in collectUsesWithPtrTypes()
1294 for (GlobalVariable &GV : Mod in hasSufficientLocalMem()
71 Module *Mod = nullptr; global() member in __anonc02305150111::AMDGPUPromoteAllocaImpl
[all...]
/freebsd-src/contrib/llvm-project/clang/utils/TableGen/
H A DSveEmitter.cpp142 void applyModifier(char Mod);
598 void SVEType::applyModifier(char Mod) { in applyModifier()
599 switch (Mod) { in applyModifier()
941 char Mod = Proto[0];
942 if (Mod == '2' || Mod == '3' || Mod == '4') { in Intrinsic()
943 NumVectors = Mod - '0'; in Intrinsic()
944 Mod = 'd'; in Intrinsic()
946 Mod in Intrinsic()
577 applyModifier(char Mod) applyModifier() argument
920 char Mod = Proto[0]; getProtoModifier() local
953 char Mod; Intrinsic() local
1196 char Mod; createIntrinsic() local
[all...]
/freebsd-src/contrib/llvm-project/clang/lib/Basic/
H A DModule.cpp407 Module *Mod = *I; in getExportedModules()
408 if (!Mod->IsExplicit) in getExportedModules()
409 Exported.push_back(Mod); in getExportedModules()
417 Module *Mod = Exports[I].getPointer(); in getExportedModules()
420 Exported.push_back(Mod); in getExportedModules()
445 Module *Mod = Imports[I]; in getExportedModules()
451 if (Mod == Restriction || Mod->isSubModuleOf(Restriction)) { in getExportedModules()
461 Exported.push_back(Mod); in buildVisibleModulesCache()
403 Module *Mod = *I; getExportedModules() local
413 Module *Mod = Exports[I].getPointer(); getExportedModules() local
441 Module *Mod = Imports[I]; getExportedModules() local
/freebsd-src/contrib/llvm-project/clang/include/clang/Index/
H A DUSRGeneration.h82 bool generateFullUSRForModule(const Module *Mod, raw_ostream &OS);
90 bool generateUSRFragmentForModule(const Module *Mod, raw_ostream &OS);

1234567