Home
last modified time | relevance | path

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

12345

/freebsd-12.1/contrib/llvm/lib/LTO/
H A DLTOBackend.cpp210 MPM.run(Mod, MAM); in runNewPMPasses()
255 MPM.run(Mod, MAM); in runNewPMCustomPasses()
281 passes.run(Mod); in runOldPMPasses()
300 unsigned Task, Module &Mod) { in codegen() argument
330 CodeGenPasses.run(Mod); in codegen()
386 Mod.setTargetTriple(C.OverrideTriple); in initAndLookupTarget()
387 else if (Mod.getTargetTriple().empty()) in initAndLookupTarget()
388 Mod.setTargetTriple(C.DefaultTriple); in initAndLookupTarget()
434 codegen(C, TM.get(), AddStream, 0, *Mod); in backend()
437 std::move(Mod)); in backend()
[all …]
H A DLTOCodeGenerator.cpp134 void LTOCodeGenerator::setAsmUndefinedRefs(LTOModule *Mod) { in setAsmUndefinedRefs() argument
135 const std::vector<StringRef> &undefs = Mod->getAsmUndefinedRefs(); in setAsmUndefinedRefs()
140 bool LTOCodeGenerator::addModule(LTOModule *Mod) { in addModule() argument
141 assert(&Mod->getModule().getContext() == &Context && in addModule()
144 bool ret = TheLinker->linkInModule(Mod->takeModule()); in addModule()
145 setAsmUndefinedRefs(Mod); in addModule()
153 void LTOCodeGenerator::setModule(std::unique_ptr<LTOModule> Mod) { in setModule() argument
154 assert(&Mod->getModule().getContext() == &Context && in setModule()
159 MergedModule = Mod->takeModule(); in setModule()
161 setAsmUndefinedRefs(&*Mod); in setModule()
H A DLTO.cpp620 RegularLTOState::AddedModule Mod; in addRegularLTO() local
627 Mod.M = std::move(*MOrErr); in addRegularLTO()
638 Mod.Keep.push_back(&GV); in addRegularLTO()
677 Mod.Keep.push_back(GV); in addRegularLTO()
697 Mod.Keep.push_back(GV); in addRegularLTO()
729 return std::move(Mod); in addRegularLTO()
735 for (GlobalValue *GV : Mod.Keep) { in linkRegularLTO()
1184 for (auto &Mod : ThinLTO.ModuleMap) in runThinLTO() local
1185 if (!ModuleToDefinedGVSummaries.count(Mod.first)) in runThinLTO()
1255 for (auto &Mod : ThinLTO.ModuleMap) { in runThinLTO() local
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Lex/
H A DModuleMap.cpp74 PendingLinkAsModule[Mod->ExportAsModule].insert(Mod->Name); in addLinkAsDependency()
162 for (; Mod; Mod = Mod->Parent) { in appendSubframeworkPaths()
163 if (Mod->IsFramework) in appendSubframeworkPaths()
164 Paths.push_back(Mod->Name); in appendSubframeworkPaths()
268 excludeHeader(Mod, H); in resolveHeader()
286 Mod->markUnavailable(); in resolveHeader()
294 Mod->isPartOfFramework() || !Mod->IsSystem || Header.IsUmbrella || in resolveAsBuiltinHeader()
310 addHeader(Mod, H, Role); in resolveAsBuiltinHeader()
887 Mod->LinkLibraries.push_back(Module::LinkLibrary(Mod->Name, in inferFrameworkLink()
919 return Mod; in inferFrameworkModule()
[all …]
H A DPPLexerChange.cpp258 const Module &Mod, SmallVectorImpl<const Module *> &SubMods) { in collectAllSubModulesWithUmbrellaHeader() argument
259 if (Mod.getUmbrellaHeader()) in collectAllSubModulesWithUmbrellaHeader()
260 SubMods.push_back(&Mod); in collectAllSubModulesWithUmbrellaHeader()
261 for (auto *M : Mod.submodules()) in collectAllSubModulesWithUmbrellaHeader()
265 void Preprocessor::diagnoseMissingHeaderInUmbrellaDir(const Module &Mod) { in diagnoseMissingHeaderInUmbrellaDir() argument
266 assert(Mod.getUmbrellaHeader() && "Module must use umbrella header"); in diagnoseMissingHeaderInUmbrellaDir()
273 const DirectoryEntry *Dir = Mod.getUmbrellaDir().Entry; in diagnoseMissingHeaderInUmbrellaDir()
295 << Mod.getFullModuleName() << RelativePath; in diagnoseMissingHeaderInUmbrellaDir()
531 if (Module *Mod = getCurrentModule()) { in HandleEndOfFile() local
533 collectAllSubModulesWithUmbrellaHeader(*Mod, AllMods); in HandleEndOfFile()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Lex/
H A DModuleMap.h117 void resolveLinkAsDependencies(Module *Mod);
121 void addLinkAsDependency(Module *Mod);
314 void addUnresolvedHeader(Module *Mod,
447 void resolveHeaderDirectives(Module *Mod) const;
612 bool resolveExports(Module *Mod, bool Complain);
622 bool resolveUses(Module *Mod, bool Complain);
632 bool resolveConflicts(Module *Mod, bool Complain);
636 void setUmbrellaHeader(Module *Mod, const FileEntry *UmbrellaHeader,
641 void setUmbrellaDir(Module *Mod, const DirectoryEntry *UmbrellaDir,
646 void addHeader(Module *Mod, Module::Header Header,
[all …]
H A DModuleLoader.h129 virtual void makeModuleVisible(Module *Mod,
168 void makeModuleVisible(Module *Mod, Module::NameVisibilityKind Visibility, in makeModuleVisible() argument
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp82 Module *Mod = nullptr; member in __anone600ddc80111::AMDGPUPromoteAlloca
140 Mod = &M; in doInitialization()
141 DL = &Mod->getDataLayout(); in doInitialization()
241 Type *I32Ty = Type::getInt32Ty(Mod->getContext()); in getLocalSizeYZ()
254 MDNode *MD = MDNode::get(Mod->getContext(), None); in getLocalSizeYZ()
643 const DataLayout &DL = Mod->getDataLayout(); in hasSufficientLocalMem()
647 for (GlobalVariable &GV : Mod->globals()) { in hasSufficientLocalMem()
757 const DataLayout &DL = Mod->getDataLayout(); in handleAlloca()
794 *Mod, GVTy, false, GlobalValue::InternalLinkage, in handleAlloca()
817 Constant::getNullValue(Type::getInt32Ty(Mod->getContext())), in handleAlloca()
[all …]
H A DAMDGPUHSAMetadataStreamer.h45 virtual void begin(const Module &Mod) = 0;
82 void emitPrintf(const Module &Mod);
116 void begin(const Module &Mod) override;
154 void emitPrintf(const Module &Mod);
182 void begin(const Module &Mod) override;
H A DAMDGPULowerKernelAttributes.cpp45 Module *Mod = nullptr; member in __anon2a3069c70111::AMDGPULowerKernelAttributes
69 Mod = &M; in doInitialization()
93 const DataLayout &DL = Mod->getDataLayout(); in processUse()
243 Function *DispatchPtr = Mod->getFunction(DispatchPtrName); in runOnModule()
/freebsd-12.1/contrib/llvm/lib/DebugInfo/PDB/Native/
H A DModuleDebugStream.cpp33 : Mod(Module), Stream(std::move(Stream)) {} in ModuleDebugStreamRef()
40 uint32_t SymbolSize = Mod.getSymbolDebugInfoByteSize(); in reload()
41 uint32_t C11Size = Mod.getC11LineInfoByteSize(); in reload()
42 uint32_t C13Size = Mod.getC13LineInfoByteSize(); in reload()
H A DDbiModuleDescriptorBuilder.cpp45 Layout.Mod = ModIndex; in DbiModuleDescriptorBuilder()
107 Layout.SC.Imod = Layout.Mod; in finalize()
112 (void)Layout.Mod; // Set in constructor in finalize()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Frontend/Rewrite/
H A DInclusionRewriter.cpp85 void WriteImplicitModuleImport(const Module *Mod);
146 void InclusionRewriter::WriteImplicitModuleImport(const Module *Mod) { in WriteImplicitModuleImport() argument
147 OS << "#pragma clang module import " << Mod->getFullModuleName(true) in WriteImplicitModuleImport()
476 if (const Module *Mod = FindModuleAtLocation(Loc)) in Process() local
477 WriteImplicitModuleImport(Mod); in Process()
479 const Module *Mod = FindEnteredModule(Loc); in Process() local
480 if (Mod) in Process()
482 << Mod->getFullModuleName(true) << "\n"; in Process()
487 if (Mod) in Process()
489 << Mod->getFullModuleName(true) << "*/\n"; in Process()
/freebsd-12.1/contrib/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-12.1/contrib/llvm/tools/clang/lib/Index/
H A DIndexingContext.cpp83 static void reportModuleReferences(const Module *Mod, in reportModuleReferences() argument
87 if (!Mod) in reportModuleReferences()
89 reportModuleReferences(Mod->Parent, IdLocs.drop_back(), ImportD, in reportModuleReferences()
91 DataConsumer.handleModuleOccurence(ImportD, Mod, in reportModuleReferences()
127 const Module *Mod = ImportD->getImportedModule(); in importedModule() local
128 if (!ImportD->isImplicit() && Mod->Parent && !IdLocs.empty()) { in importedModule()
129 reportModuleReferences(Mod->Parent, IdLocs.drop_back(), ImportD, in importedModule()
137 return DataConsumer.handleModuleOccurence(ImportD, Mod, Roles, Loc); in importedModule()
/freebsd-12.1/contrib/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()
198 EngineBuilder builder(std::move(Mod)); in LLVMCreateMCJITCompilerForModule()
264 Module *Mod = unwrap(M); in LLVMRemoveModule() local
265 unwrap(EE)->removeModule(Mod); in LLVMRemoveModule()
266 *OutMod = wrap(Mod); in LLVMRemoveModule()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Basic/
H A DModule.cpp330 Module *Mod = *I; in getExportedModules() local
331 if (!Mod->IsExplicit) in getExportedModules()
332 Exported.push_back(Mod); in getExportedModules()
340 Module *Mod = Exports[I].getPointer(); in getExportedModules() local
343 Exported.push_back(Mod); in getExportedModules()
368 Module *Mod = Imports[I]; in getExportedModules() local
374 if (Mod == Restriction || Mod->isSubModuleOf(Restriction)) { in getExportedModules()
384 Exported.push_back(Mod); in getExportedModules()
/freebsd-12.1/contrib/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRMCExpr.cpp195 [this](ModifierEntry const &Mod) { return Mod.VariantKind == Kind; }); in getName() argument
206 [&Name](ModifierEntry const &Mod) { return Mod.Spelling == Name; }); in getKindByName() argument
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/Orc/
H A DOrcCBindings.cpp72 LLVMModuleRef Mod, in LLVMOrcAddEagerlyCompiledIR() argument
76 std::unique_ptr<Module> M(unwrap(Mod)); in LLVMOrcAddEagerlyCompiledIR()
87 LLVMModuleRef Mod, in LLVMOrcAddLazilyCompiledIR() argument
91 std::unique_ptr<Module> M(unwrap(Mod)); in LLVMOrcAddLazilyCompiledIR()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/
H A DModule.h415 for (const Module *Mod = this; Mod; Mod = Mod->Parent) in isPartOfFramework() local
416 if (Mod->IsFramework) in isPartOfFramework()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Serialization/
H A DASTReader.h559 ModuleFile *Mod = nullptr; member
564 : Mod(Mod), Decls(Decls) {} in FileDeclsInfo()
590 ModuleFile *Mod; member
694 Module *Mod; member
1265 ModuleFile *Mod; member
1269 ImportedModule(ModuleFile *Mod, in ImportedModule()
1272 : Mod(Mod), ImportedBy(ImportedBy), ImportLoc(ImportLoc) {} in ImportedModule()
1396 ModuleFile *Mod = nullptr; variable
1403 : iterator_adaptor_base(Pos), Reader(Reader), Mod(Mod) {} in ModuleDeclIterator()
1412 assert(Reader == RHS.Reader && Mod == RHS.Mod);
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Index/
H A DUSRGeneration.h83 bool generateFullUSRForModule(const Module *Mod, raw_ostream &OS);
91 bool generateUSRFragmentForModule(const Module *Mod, raw_ostream &OS);
/freebsd-12.1/contrib/llvm/include/llvm-c/
H A DOrcBindings.h97 LLVMModuleRef Mod,
106 LLVMModuleRef Mod,
/freebsd-12.1/contrib/llvm/tools/lli/
H A Dlli.cpp392 Module *Mod = Owner.get(); in main() local
393 if (!Mod) in main()
399 Mod->setModuleIdentifier(CacheName); in main()
407 ExitOnErr(Mod->materializeAll()); in main()
427 Mod->setTargetTriple(Triple::normalize(TargetTriple)); in main()
522 if (RemoteMCJIT && Triple(Mod->getTargetTriple()).isOSCygMing()) { in main()
523 addCygMingExtraModule(*EE, Context, Mod->getTargetTriple()); in main()
562 Function *EntryFn = Mod->getFunction(EntryFunc); in main()
599 Constant *Exit = Mod->getOrInsertFunction("exit", Type::getVoidTy(Context), in main()
/freebsd-12.1/contrib/llvm/lib/Object/
H A DIRSymtab.cpp127 storage::Module Mod; in addModule() local
128 Mod.Begin = Syms.size(); in addModule()
129 Mod.End = Syms.size() + Msymtab.symbols().size(); in addModule()
130 Mod.UncBegin = Uncommons.size(); in addModule()
131 Mods.push_back(Mod); in addModule()

12345