Home
last modified time | relevance | path

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

123456

/freebsd-13.1/contrib/llvm-project/llvm/lib/LTO/
H A DLTOBackend.cpp306 MPM.run(Mod, MAM); in runNewPMPasses()
339 passes.run(Mod); in runOldPMPasses()
416 CodeGenPasses.run(Mod); in codegen()
432 Mod, ParallelCodeGenParallelismLevel, in splitCodeGen()
476 Mod.setTargetTriple(C.OverrideTriple); in initAndLookupTarget()
477 else if (Mod.getTargetTriple().empty()) in initAndLookupTarget()
478 Mod.setTargetTriple(C.DefaultTriple); in initAndLookupTarget()
526 for (auto &GV : Mod.global_values()) in dropDeadSymbols()
578 [&](Module &Mod, TargetMachine *TM, in thinBackend()
597 Mod.getPIELevel() == PIELevel::Default; in thinBackend()
[all …]
H A DLTOCodeGenerator.cpp137 void LTOCodeGenerator::setAsmUndefinedRefs(LTOModule *Mod) { in setAsmUndefinedRefs() argument
138 const std::vector<StringRef> &undefs = Mod->getAsmUndefinedRefs(); in setAsmUndefinedRefs()
143 bool LTOCodeGenerator::addModule(LTOModule *Mod) { in addModule() argument
144 assert(&Mod->getModule().getContext() == &Context && in addModule()
147 bool ret = TheLinker->linkInModule(Mod->takeModule()); in addModule()
148 setAsmUndefinedRefs(Mod); in addModule()
156 void LTOCodeGenerator::setModule(std::unique_ptr<LTOModule> Mod) { in setModule() argument
157 assert(&Mod->getModule().getContext() == &Context && in setModule()
162 MergedModule = Mod->takeModule(); in setModule()
164 setAsmUndefinedRefs(&*Mod); in setModule()
H A DThinLTOCodeGenerator.cpp194 auto &Mod = Input->getSingleBitcodeModule(); in loadModuleFromInput() local
197 Lazy ? Mod.getLazyModule(Context, in loadModuleFromInput()
199 : Mod.parseModule(Context); in loadModuleFromInput()
202 SMDiagnostic Err = SMDiagnostic(Mod.getModuleIdentifier(), in loadModuleFromInput()
669 for (auto &Mod : Modules) { in linkCombinedIndex() local
670 auto &M = Mod->getSingleBitcodeModule(); in linkCombinedIndex()
1016 for (auto &Mod : Modules) { in run() local
1140 for (auto &Mod : Modules) in run() local
1141 ModulesVec.push_back(&Mod->getSingleBitcodeModule()); in run()
1148 auto &Mod = Modules[IndexCount]; in run() local
[all …]
H A DLTO.cpp713 RegularLTOState::AddedModule Mod; in addRegularLTO() local
720 Mod.M = std::move(*MOrErr); in addRegularLTO()
731 Mod.Keep.push_back(&GV); in addRegularLTO()
771 Mod.Keep.push_back(GV); in addRegularLTO()
791 Mod.Keep.push_back(GV); in addRegularLTO()
850 return std::move(Mod); in addRegularLTO()
856 for (GlobalValue *GV : Mod.Keep) { in linkRegularLTO()
1426 for (auto &Mod : ThinLTO.ModuleMap) in runThinLTO() local
1527 Mod.second, ImportLists[Mod.first], in runThinLTO()
1528 ExportLists[Mod.first], ResolvedODR[Mod.first], in runThinLTO()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaModule.cpp180 Module *Mod; in ActOnModuleDecl() local
193 Mod = M; in ActOnModuleDecl()
210 if (!Mod) { in ActOnModuleDecl()
230 ModuleScopes.back().Module = Mod; in ActOnModuleDecl()
239 TU->setLocalOwningModule(Mod); in ActOnModuleDecl()
324 Module *Mod = in ActOnModuleImport() local
327 if (!Mod) in ActOnModuleImport()
365 Module *ModCheck = Mod; in ActOnModuleImport()
442 ModuleScopes.back().Module = Mod; in ActOnModuleBegin()
506 VisibleModules.isVisible(Mod)) in createImplicitModuleImportForErrorRecovery()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Lex/
H A DModuleMap.cpp73 PendingLinkAsModule[Mod->ExportAsModule].insert(Mod->Name); in addLinkAsDependency()
161 for (; Mod; Mod = Mod->Parent) { in appendSubframeworkPaths()
162 if (Mod->IsFramework) in appendSubframeworkPaths()
163 Paths.push_back(Mod->Name); in appendSubframeworkPaths()
268 excludeHeader(Mod, H); in resolveHeader()
294 Mod->isPartOfFramework() || !Mod->IsSystem || Header.IsUmbrella || in resolveAsBuiltinHeader()
310 addHeader(Mod, H, Role); in resolveAsBuiltinHeader()
923 Mod->LinkLibraries.push_back(Module::LinkLibrary(Mod->Name, in inferFrameworkLink()
955 return Mod; in inferFrameworkModule()
1145 Mod->Umbrella = UmbrellaDir; in setUmbrellaDir()
[all …]
H A DPPLexerChange.cpp259 const Module &Mod, SmallVectorImpl<const Module *> &SubMods) { in collectAllSubModulesWithUmbrellaHeader() argument
260 if (Mod.getUmbrellaHeader()) in collectAllSubModulesWithUmbrellaHeader()
261 SubMods.push_back(&Mod); in collectAllSubModulesWithUmbrellaHeader()
262 for (auto *M : Mod.submodules()) in collectAllSubModulesWithUmbrellaHeader()
266 void Preprocessor::diagnoseMissingHeaderInUmbrellaDir(const Module &Mod) { in diagnoseMissingHeaderInUmbrellaDir() argument
267 const Module::Header &UmbrellaHeader = Mod.getUmbrellaHeader(); in diagnoseMissingHeaderInUmbrellaDir()
276 const DirectoryEntry *Dir = Mod.getUmbrellaDir().Entry; in diagnoseMissingHeaderInUmbrellaDir()
298 << Mod.getFullModuleName() << RelativePath; in diagnoseMissingHeaderInUmbrellaDir()
577 if (Module *Mod = getCurrentModule()) { in HandleEndOfFile() local
579 collectAllSubModulesWithUmbrellaHeader(*Mod, AllMods); in HandleEndOfFile()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Lex/
H A DModuleMap.h121 void resolveLinkAsDependencies(Module *Mod);
125 void addLinkAsDependency(Module *Mod);
318 void addUnresolvedHeader(Module *Mod,
460 void resolveHeaderDirectives(Module *Mod) const;
627 bool resolveExports(Module *Mod, bool Complain);
637 bool resolveUses(Module *Mod, bool Complain);
647 bool resolveConflicts(Module *Mod, bool Complain);
651 void setUmbrellaHeader(Module *Mod, const FileEntry *UmbrellaHeader,
657 void setUmbrellaDir(Module *Mod, const DirectoryEntry *UmbrellaDir,
663 void addHeader(Module *Mod, Module::Header Header,
[all …]
H A DModuleLoader.h133 virtual void makeModuleVisible(Module *Mod,
172 void makeModuleVisible(Module *Mod, Module::NameVisibilityKind Visibility, in makeModuleVisible() argument
/freebsd-13.1/contrib/llvm-project/llvm/lib/DebugInfo/PDB/Native/
H A DModuleDebugStream.cpp33 : Mod(Module), Stream(std::move(Stream)) {} in ModuleDebugStreamRef()
40 if (Mod.getModuleStreamIndex() != llvm::pdb::kInvalidStreamIndex) { in reload()
51 uint32_t SymbolSize = Mod.getSymbolDebugInfoByteSize(); in reloadSerialize()
52 uint32_t C11Size = Mod.getC11LineInfoByteSize(); in reloadSerialize()
53 uint32_t C13Size = Mod.getC13LineInfoByteSize(); in reloadSerialize()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUHSAMetadataStreamer.h44 virtual void begin(const Module &Mod,
79 void emitPrintf(const Module &Mod);
114 void begin(const Module &Mod,
133 void begin(const Module &Mod,
166 void emitPrintf(const Module &Mod);
194 void begin(const Module &Mod,
H A DAMDGPUPromoteAlloca.cpp68 Module *Mod = nullptr; member in __anon56378d370111::AMDGPUPromoteAllocaImpl
165 Mod = F.getParent(); in run()
166 DL = &Mod->getDataLayout(); in run()
265 Type *I32Ty = Type::getInt32Ty(Mod->getContext()); in getLocalSizeYZ()
278 MDNode *MD = MDNode::get(Mod->getContext(), None); in getLocalSizeYZ()
751 for (GlobalVariable &GV : Mod->globals()) { in hasSufficientLocalMem()
773 const DataLayout &DL = Mod->getDataLayout(); in hasSufficientLocalMem()
852 const DataLayout &DL = Mod->getDataLayout(); in handleAlloca()
924 *Mod, GVTy, false, GlobalValue::InternalLinkage, in handleAlloca()
1039 Mod, Intrinsic::objectsize, in handleAlloca()
[all …]
H A DAMDGPUCodeGenPrepare.cpp76 Module *Mod = nullptr; member in __anonb3ed75c90111::AMDGPUCodeGenPrepare
308 const DataLayout &DL = Mod->getDataLayout(); in canWidenScalarExtLoad()
642 Module *Mod) { in optimizeWithRcp() argument
652 Mod, Intrinsic::amdgcn_rcp, Ty); in optimizeWithRcp()
671 Mod, Intrinsic::amdgcn_rcp, Ty); in optimizeWithRcp()
682 Mod, Intrinsic::amdgcn_rcp, Ty); in optimizeWithRcp()
701 Module *Mod) { in optimizeWithFDivFast() argument
796 Builder, Mod); in visitFDiv()
866 const DataLayout &DL = Mod->getDataLayout(); in getDivNumBits()
1383 Mod = &M; in doInitialization()
[all …]
H A DAMDGPULateCodeGenPrepare.cpp45 Module *Mod = nullptr; member in __anona2bdfe0f0111::AMDGPULateCodeGenPrepare
84 Mod = &M; in doInitialization()
85 DL = &Mod->getDataLayout(); in doInitialization()
/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/Rewrite/
H A DInclusionRewriter.cpp90 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()
427 if (const Module *Mod = FindModuleAtLocation(Loc)) in Process() local
428 WriteImplicitModuleImport(Mod); in Process()
430 const Module *Mod = FindEnteredModule(Loc); in Process() local
431 if (Mod) in Process()
433 << Mod->getFullModuleName(true) << "\n"; in Process()
438 if (Mod) in Process()
440 << Mod->getFullModuleName(true) << "*/\n"; in Process()
/freebsd-13.1/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-13.1/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRMCExpr.cpp199 llvm::find_if(ModifierNames, [this](ModifierEntry const &Mod) { in getName() argument
200 return Mod.VariantKind == Kind; in getName()
211 llvm::find_if(ModifierNames, [&Name](ModifierEntry const &Mod) { in getKindByName() argument
212 return Mod.Spelling == Name; in getKindByName()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngineBindings.cpp183 std::unique_ptr<Module> Mod(unwrap(M)); in LLVMCreateMCJITCompilerForModule() local
185 if (Mod) in LLVMCreateMCJITCompilerForModule()
188 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-13.1/contrib/llvm-project/clang/lib/Index/
H A DIndexingContext.cpp94 static void reportModuleReferences(const Module *Mod, in reportModuleReferences() argument
98 if (!Mod) in reportModuleReferences()
100 reportModuleReferences(Mod->Parent, IdLocs.drop_back(), ImportD, in reportModuleReferences()
103 ImportD, Mod, (SymbolRoleSet)SymbolRole::Reference, IdLocs.back()); in reportModuleReferences()
137 const Module *Mod = ImportD->getImportedModule(); in importedModule() local
138 if (!ImportD->isImplicit() && Mod->Parent && !IdLocs.empty()) { in importedModule()
139 reportModuleReferences(Mod->Parent, IdLocs.drop_back(), ImportD, in importedModule()
147 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-13.1/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTReader.h553 ModuleFile *Mod = nullptr; member
558 : Mod(Mod), Decls(Decls) {} in FileDeclsInfo()
584 ModuleFile *Mod; member
688 Module *Mod; member
1284 ModuleFile *Mod; member
1288 ImportedModule(ModuleFile *Mod, in ImportedModule()
1291 : Mod(Mod), ImportedBy(ImportedBy), ImportLoc(ImportLoc) {} in ImportedModule()
1414 ModuleFile *Mod = nullptr; variable
1421 : iterator_adaptor_base(Pos), Reader(Reader), Mod(Mod) {} in ModuleDeclIterator()
1430 assert(Reader == RHS.Reader && Mod == RHS.Mod);
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Basic/
H A DModule.cpp358 Module *Mod = *I; in getExportedModules() local
359 if (!Mod->IsExplicit) in getExportedModules()
360 Exported.push_back(Mod); in getExportedModules()
368 Module *Mod = Exports[I].getPointer(); in getExportedModules() local
371 Exported.push_back(Mod); in getExportedModules()
396 Module *Mod = Imports[I]; in getExportedModules() local
402 if (Mod == Restriction || Mod->isSubModuleOf(Restriction)) { in getExportedModules()
412 Exported.push_back(Mod); in getExportedModules()
/freebsd-13.1/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);
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DModule.h483 for (const Module *Mod = this; Mod; Mod = Mod->Parent) in isPartOfFramework() local
484 if (Mod->IsFramework) in isPartOfFramework()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DLint.cpp126 Module *Mod; member in __anon3b490e4e0111::Lint
136 Lint(Module *Mod, const DataLayout *DL, AliasAnalysis *AA, in Lint() argument
138 : Mod(Mod), DL(DL), AA(AA), AC(AC), DT(DT), TLI(TLI), in Lint()
148 V->printAsOperand(MessagesStr, true, Mod); in WriteValues()
706 auto *Mod = F.getParent(); in run() local
712 Lint L(Mod, DL, AA, AC, DT, TLI); in run()
748 auto *Mod = F.getParent(); in INITIALIZE_PASS_DEPENDENCY() local
754 Lint L(Mod, DL, AA, AC, DT, TLI); in INITIALIZE_PASS_DEPENDENCY()

123456