Home
last modified time | relevance | path

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

1234567

/freebsd/contrib/llvm-project/llvm/lib/LTO/
H A DLTOBackend.cpp233 static void runNewPMPasses(const Config &Conf, Module &Mod, TargetMachine *TM, in runNewPMPasses() argument
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 opt() argument
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, in codegen() argument
371 if (Conf.PreCodeGenModuleHook && !Conf.PreCodeGenModuleHook(Task, Mod)) in codegen()
375 llvm::embedBitcodeInModule(Mod, llvm::MemoryBufferRef(), in codegen()
[all …]
H A DLTOCodeGenerator.cpp149 void LTOCodeGenerator::setAsmUndefinedRefs(LTOModule *Mod) { in setAsmUndefinedRefs() argument
150 for (const StringRef &Undef : Mod->getAsmUndefinedRefs()) in setAsmUndefinedRefs()
154 bool LTOCodeGenerator::addModule(LTOModule *Mod) { in addModule() argument
155 assert(&Mod->getModule().getContext() == &Context && in addModule()
158 bool ret = TheLinker->linkInModule(Mod->takeModule()); in addModule()
159 setAsmUndefinedRefs(Mod); in addModule()
167 void LTOCodeGenerator::setModule(std::unique_ptr<LTOModule> Mod) { in setModule() argument
168 assert(&Mod->getModule().getContext() == &Context && in setModule()
173 MergedModule = Mod->takeModule(); in setModule()
175 setAsmUndefinedRefs(&*Mod); in setModule()
H A DThinLTOCodeGenerator.cpp196 auto &Mod = Input->getSingleBitcodeModule(); in loadModuleFromInput() local
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) { in linkCombinedIndex() local
614 auto &M = Mod->getSingleBitcodeModule(); in linkCombinedIndex()
615 if (Error Err = M.readSummary(*CombinedIndex, Mod->getName())) { in linkCombinedIndex()
990 for (auto &Mod : Modules) { in run() local
996 auto TheModule = loadModuleFromInput(Mod.get(), Context, false, in run()
1123 for (auto &Mod : Modules) in run() local
[all …]
H A DLTO.cpp821 RegularLTOState::AddedModule Mod; in addRegularLTO() local
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 addRegularLTO()
972 Error LTO::linkRegularLTO(RegularLTOState::AddedModule Mod, in linkRegularLTO() argument
975 for (GlobalValue *GV : Mod.Keep) { in linkRegularLTO()
1005 return RegularLTO.Mover->move(std::move(Mod.M), Keep, nullptr, in linkRegularLTO()
1198 void lto::updateMemProfAttributes(Module &Mod, in updateMemProfAttributes() argument
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaModule.cpp209 Module *Mod = Map.createHeaderUnit(StartOfTU, HUName, H); in HandleStartOfHeaderUnit() local
210 assert(Mod && "module creation should not fail"); in HandleStartOfHeaderUnit()
213 ModuleScopes.back().Module = Mod; in HandleStartOfHeaderUnit()
214 VisibleModules.setVisible(Mod, StartOfTU); in HandleStartOfHeaderUnit()
220 TU->setLocalOwningModule(Mod); in HandleStartOfHeaderUnit()
390 Module *Mod; // The module we are creating. in ActOnModuleDecl() local
404 Mod = M; in ActOnModuleDecl()
409 Mod = Map.createModuleForInterfaceUnit(ModuleLoc, ModuleName); in ActOnModuleDecl()
411 Mod->Kind = Module::ModulePartitionInterface; in ActOnModuleDecl()
412 assert(Mod && "module creation should not fail"); in ActOnModuleDecl()
[all …]
/freebsd/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
134 Module *Context = lookupModuleUnqualified(Id[0].first, Mod); in resolveModuleId()
[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() local
591 collectAllSubModulesWithUmbrellaHeader(*Mod, AllMods); in HandleEndOfFile()
/freebsd/contrib/llvm-project/clang/include/clang/Lex/
H A DModuleMap.h120 void resolveLinkAsDependencies(Module *Mod);
124 void addLinkAsDependency(Module *Mod);
303 resolveExport(Module *Mod, const Module::UnresolvedExportDecl &Unresolved,
317 Module *resolveModuleId(const ModuleId &Id, Module *Mod, bool Complain) const;
326 void addUnresolvedHeader(Module *Mod,
467 void resolveHeaderDirectives(Module *Mod,
669 bool resolveExports(Module *Mod, bool Complain);
679 bool resolveUses(Module *Mod, bool Complain);
689 bool resolveConflicts(Module *Mod, bool Complain);
693 setUmbrellaHeaderAsWritten(Module *Mod, FileEntryRef UmbrellaHeader,
[all …]
/freebsd/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; member in __anon0ee657d00111::SanitizerBinaryMetadata
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 run()
252 appendToGlobalDtors(Mod, Dtor, kCtorDtorPriority, DtorComdatKey); in run()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULateCodeGenPrepare.cpp47 Module *Mod = nullptr; member in __anon9f65155b0111::AMDGPULateCodeGenPrepare
90 Module *Mod = nullptr; member in __anon9f65155b0111::LiveRegOptimizer
143 LiveRegOptimizer(Module *Mod, const GCNSubtarget *ST) : Mod(Mod), ST(ST) { in LiveRegOptimizer() argument
144 DL = &Mod->getDataLayout(); in LiveRegOptimizer()
145 ConvertToScalar = Type::getInt32Ty(Mod->getContext()); in LiveRegOptimizer()
152 Mod = &M; in doInitialization()
153 DL = &Mod->getDataLayout(); in doInitialization()
175 LiveRegOptimizer LRO(Mod, &ST); in runOnFunction()
203 return IntegerType::get(Mod->getContext(), ConvertScalarSize); in calculateConvertType()
205 return VectorType::get(Type::getIntNTy(Mod->getContext(), ConvertScalarSize), in calculateConvertType()
[all …]
H A DAMDGPUHSAMetadataStreamer.h50 virtual void begin(const Module &Mod,
99 void emitPrintf(const Module &Mod);
135 void begin(const Module &Mod,
H A DAMDGPUPromoteAlloca.cpp80 Module *Mod = nullptr; member in __anon98b3e5030111::AMDGPUPromoteAllocaImpl
302 Mod = F.getParent(); in run()
303 DL = &Mod->getDataLayout(); in run()
977 Intrinsic::getDeclaration(Mod, Intrinsic::r600_read_local_size_y); in getLocalSizeYZ()
979 Intrinsic::getDeclaration(Mod, Intrinsic::r600_read_local_size_z); in getLocalSizeYZ()
1025 Intrinsic::getDeclaration(Mod, Intrinsic::amdgcn_dispatch_ptr); in getLocalSizeYZ()
1035 Type *I32Ty = Type::getInt32Ty(Mod->getContext()); in getLocalSizeYZ()
1048 MDNode *MD = MDNode::get(Mod->getContext(), std::nullopt); in getLocalSizeYZ()
1087 Function *WorkitemIdFn = Intrinsic::getDeclaration(Mod, IntrID); in getWorkitemID()
1294 for (GlobalVariable &GV : Mod->globals()) { in hasSufficientLocalMem()
[all …]
/freebsd/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/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() 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/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/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/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRMCExpr.cpp198 llvm::find_if(ModifierNames, [this](ModifierEntry const &Mod) { in getName() argument
199 return Mod.VariantKind == Kind; in getName()
210 llvm::find_if(ModifierNames, [&Name](ModifierEntry const &Mod) { in getKindByName() argument
211 return Mod.Spelling == Name; in getKindByName()
/freebsd/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/contrib/llvm-project/clang/lib/Basic/
H A DModule.cpp407 Module *Mod = *I; in getExportedModules() local
408 if (!Mod->IsExplicit) in getExportedModules()
409 Exported.push_back(Mod); in getExportedModules()
417 Module *Mod = Exports[I].getPointer(); in getExportedModules() local
420 Exported.push_back(Mod); in getExportedModules()
445 Module *Mod = Imports[I]; in getExportedModules() local
451 if (Mod == Restriction || Mod->isSubModuleOf(Restriction)) { in getExportedModules()
461 Exported.push_back(Mod); in getExportedModules()
/freebsd/contrib/llvm-project/clang/include/clang/Serialization/
H A DASTReader.h581 ModuleFile *Mod = nullptr; member
585 FileDeclsInfo(ModuleFile *Mod, in FileDeclsInfo()
587 : Mod(Mod), Decls(Decls) {} in FileDeclsInfo()
613 ModuleFile *Mod; member
708 Module *Mod; member
1349 ModuleFile *Mod; member
1353 ImportedModule(ModuleFile *Mod, in ImportedModule()
1356 : Mod(Mod), ImportedBy(ImportedBy), ImportLoc(ImportLoc) {} in ImportedModule()
1467 getModulePreprocessedEntities(ModuleFile &Mod) const;
1479 ModuleFile *Mod = nullptr; variable
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Passes/
H A DPassBuilderBindings.cpp55 Module *Mod = unwrap(M); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS() local
69 StandardInstrumentations SI(Mod->getContext(), Debug, VerifyEach); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
79 MPM.run(*Mod, MAM); in DEFINE_SIMPLE_CONVERSION_FUNCTIONS()
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DSveEmitter.cpp142 void applyModifier(char Mod);
598 void SVEType::applyModifier(char Mod) { in applyModifier() argument
599 switch (Mod) { in applyModifier()
941 char Mod = Proto[0]; in getProtoModifier() local
942 if (Mod == '2' || Mod == '3' || Mod == '4') { in getProtoModifier()
943 NumVectors = Mod - '0'; in getProtoModifier()
944 Mod = 'd'; in getProtoModifier()
946 Mod = Proto[2]; in getProtoModifier()
952 return {Mod, NumVectors}; in getProtoModifier()
975 char Mod; in Intrinsic() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/Index/
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/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/contrib/llvm-project/llvm/lib/DebugInfo/Symbolize/
H A DMarkupFilter.cpp104 << formatv("overlapping mmap: #{0:x} [{1:x}-{2:x}]\n", M->Mod->ID, in tryMMap()
114 if (!MIL || MIL->Mod != MMap.Mod) { in tryMMap()
118 beginModuleInfoLine(MMap.Mod); in tryMMap()
267 MMap->Mod->BuildID, {MMap->getModuleRelativeAddr(*Addr)}); in tryPC()
324 Symbolizer.symbolizeInlinedCode(MMap->Mod->BuildID, {MRA}); in tryBackTrace()
358 printValue(MMap->Mod->Name); in tryBackTrace()
387 MMap->Mod->BuildID, {MMap->getModuleRelativeAddr(*Addr)}); in tryData()

1234567