Home
last modified time | relevance | path

Searched refs:MMI (Results 1 – 25 of 95) sorted by relevance

1234

/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineModuleInfo.cpp58 : TM(std::move(MMI.TM)), in MachineModuleInfo()
63 ObjFileMMI = MMI.ObjFileMMI; in MachineModuleInfo()
64 CurCallSite = MMI.CurCallSite; in MachineModuleInfo()
66 TheModule = MMI.TheModule; in MachineModuleInfo()
152 MachineModuleInfo &MMI = in runOnFunction() local
214 MMI.initialize(); in doInitialization()
215 MMI.TheModule = &M; in doInitialization()
234 MMI.finalize(); in doFinalization()
242 MachineModuleInfo MMI(TM); in run() local
243 MMI.TheModule = &M; in run()
[all …]
H A DMachineOutliner.cpp486 MachineModuleInfo &MMI);
728 MachineFunction &MF = MMI.getOrCreateMachineFunction(*F); in createOutlinedFunction()
984 MachineModuleInfo &MMI) { in populateMapper() argument
998 MachineFunction *MF = MMI.getMachineFunction(F); in populateMapper()
1057 const Module &M, const MachineModuleInfo &MMI, in initSizeRemarkInfo() argument
1062 MachineFunction *MF = MMI.getMachineFunction(F); in initSizeRemarkInfo()
1073 const Module &M, const MachineModuleInfo &MMI, in emitInstrCountChangedRemark() argument
1079 MachineFunction *MF = MMI.getMachineFunction(F); in emitInstrCountChangedRemark()
1175 populateMapper(Mapper, M, MMI); in doOutline()
1193 initSizeRemarkInfo(M, MMI, FunctionToInstrCount); in doOutline()
[all …]
H A DMachineDebugify.cpp33 bool applyDebugifyMetadataToMachineFunction(MachineModuleInfo &MMI, in applyDebugifyMetadataToMachineFunction() argument
35 MachineFunction *MaybeMF = MMI.getMachineFunction(F); in applyDebugifyMetadataToMachineFunction()
177 MachineModuleInfo &MMI = in runOnModule() local
182 return applyDebugifyMetadataToMachineFunction(MMI, DIB, F); in runOnModule()
H A DMachineStripDebug.cpp43 MachineModuleInfo &MMI = in runOnModule() local
48 MachineFunction *MaybeMF = MMI.getMachineFunction(F); in runOnModule()
H A DMachineCheckDebugify.cpp39 MachineModuleInfo &MMI = in runOnModule() local
54 MachineFunction *MF = MMI.getMachineFunction(F); in runOnModule()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRAsmPrinter.cpp237 const AVRTargetMachine &TM = (const AVRTargetMachine &)MMI->getTarget(); in doFinalization()
293 MMI->getContext().getOrCreateSymbol(StringRef("__tmp_reg__")), in emitStartOfAsmFile()
297 MMI->getContext().getOrCreateSymbol(StringRef("__zero_reg__")), in emitStartOfAsmFile()
301 MMI->getContext().getOrCreateSymbol(StringRef("__SREG__")), in emitStartOfAsmFile()
302 MCConstantExpr::create(SubTM->getIORegSREG(), MMI->getContext())); in emitStartOfAsmFile()
306 MMI->getContext().getOrCreateSymbol(StringRef("__SP_H__")), in emitStartOfAsmFile()
307 MCConstantExpr::create(SubTM->getIORegSPH(), MMI->getContext())); in emitStartOfAsmFile()
310 MMI->getContext().getOrCreateSymbol(StringRef("__SP_L__")), in emitStartOfAsmFile()
311 MCConstantExpr::create(SubTM->getIORegSPL(), MMI->getContext())); in emitStartOfAsmFile()
315 MMI->getContext().getOrCreateSymbol(StringRef("__EIND__")), in emitStartOfAsmFile()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86IndirectThunks.cpp72 bool insertThunks(MachineModuleInfo &MMI, MachineFunction &MF);
83 bool insertThunks(MachineModuleInfo &MMI, MachineFunction &MF) { in insertThunks()
84 createThunkFunction(MMI, R11LVIThunkName); in insertThunks()
129 static bool runTIs(MachineModuleInfo &MMI, MachineFunction &MF, in runTIs() argument
133 Modified |= std::get<ThunkInserterT>(ThunkInserters).run(MMI, MF)...}; in runTIs()
140 bool RetpolineThunkInserter::insertThunks(MachineModuleInfo &MMI, in insertThunks() argument
142 if (MMI.getTarget().getTargetTriple().getArch() == Triple::x86_64) in insertThunks()
143 createThunkFunction(MMI, R11RetpolineName); in insertThunks()
147 createThunkFunction(MMI, Name); in insertThunks()
275 auto &MMI = getAnalysis<MachineModuleInfoWrapperPass>().getMMI(); in runOnMachineFunction() local
[all …]
H A DX86TargetObjectFile.cpp20 MachineModuleInfo *MMI, MCStreamer &Streamer) const { in getTTypeGlobalReference() argument
33 GV, Encoding, TM, MMI, Streamer); in getTTypeGlobalReference()
38 MachineModuleInfo *MMI) const { in getCFIPersonalitySymbol()
44 int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const { in getIndirectSymViaGOTPCRel() argument
62 int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const { in getIndirectSymViaGOTPCRel() argument
H A DX86TargetObjectFile.h23 MachineModuleInfo *MMI,
30 MachineModuleInfo *MMI) const override;
35 MachineModuleInfo *MMI,
59 MachineModuleInfo *MMI,
H A DX86CallFrameOptimization.cpp475 auto MMI = Context.ArgStoreVector.begin(), MME = Context.ArgStoreVector.end(); in collectCallInfo() local
476 for (; MMI != MME; ++MMI, Context.ExpectedDist += SlotSize) in collectCallInfo()
477 if (*MMI == nullptr) in collectCallInfo()
481 if (MMI == Context.ArgStoreVector.begin()) in collectCallInfo()
486 for (; MMI != MME; ++MMI) in collectCallInfo()
487 if (*MMI != nullptr) in collectCallInfo()
H A DX86AsmPrinter.cpp231 MMI->getObjFileInfo<MachineModuleInfoMachO>().getGVStubEntry(Sym); in PrintSymbolOperand()
862 MCSection *Nt = MMI->getContext().getELFSection( in emitStartOfAsmFile()
889 MCSymbol *S = MMI->getContext().getOrCreateSymbol(StringRef("@feat.00")); in emitStartOfAsmFile()
922 S, MCConstantExpr::create(Feat00Value, MMI->getContext())); in emitStartOfAsmFile()
956 static void emitNonLazyStubs(MachineModuleInfo *MMI, MCStreamer &OutStreamer) { in emitNonLazyStubs() argument
959 MMI->getObjFileInfo<MachineModuleInfoMachO>(); in emitNonLazyStubs()
967 OutStreamer.switchSection(MMI->getContext().getMachOSection( in emitNonLazyStubs()
985 emitNonLazyStubs(MMI, *OutStreamer); in emitEndOfAsmFile()
997 if (MMI->usesMSVCFloatingPoint()) { in emitEndOfAsmFile()
1013 MCSymbol *S = MMI->getContext().getOrCreateSymbol(SymbolName); in emitEndOfAsmFile()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DIndirectThunks.h35 void createThunkFunction(MachineModuleInfo &MMI, StringRef Name,
44 bool run(MachineModuleInfo &MMI, MachineFunction &MF);
49 MachineModuleInfo &MMI, StringRef Name, bool Comdat, in createThunkFunction() argument
54 Module &M = const_cast<Module &>(*MMI.getModule()); in createThunkFunction()
83 MachineFunction &MF = MMI.getOrCreateMachineFunction(*F); in createThunkFunction()
94 bool ThunkInserter<Derived, InsertedThunksTy>::run(MachineModuleInfo &MMI, in run() argument
110 InsertedThunks |= getDerived().insertThunks(MMI, MF); in run()
H A DMachineModuleInfo.h204 MachineModuleInfo MMI; variable
217 MachineModuleInfo &getMMI() { return MMI; } in getMMI()
218 const MachineModuleInfo &getMMI() const { return MMI; } in getMMI()
H A DTargetLoweringObjectFileImpl.h91 MachineModuleInfo *MMI,
97 MachineModuleInfo *MMI) const override;
142 MachineModuleInfo *MMI,
148 MachineModuleInfo *MMI) const override;
154 MachineModuleInfo *MMI,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetObjectFile.cpp30 int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const { in getIndirectSymViaGOTPCRel() argument
44 MachineModuleInfo *MMI, MCStreamer &Streamer) const { in getTTypeGlobalReference() argument
60 GV, Encoding, TM, MMI, Streamer); in getTTypeGlobalReference()
65 MachineModuleInfo *MMI) const { in getCFIPersonalitySymbol()
71 int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const { in getIndirectSymViaGOTPCRel() argument
H A DAArch64TargetObjectFile.h30 MachineModuleInfo *MMI,
42 MachineModuleInfo *MMI,
47 MachineModuleInfo *MMI) const override;
52 MachineModuleInfo *MMI,
H A DAArch64LowerHomogeneousPrologEpilog.cpp48 AArch64LowerHomogeneousPE(Module *M, MachineModuleInfo *MMI) in AArch64LowerHomogeneousPE() argument
49 : M(M), MMI(MMI) {} in AArch64LowerHomogeneousPE()
56 MachineModuleInfo *MMI; member in __anon27235ee20111::AArch64LowerHomogeneousPE
107 MachineModuleInfo *MMI = in runOnModule() local
109 return AArch64LowerHomogeneousPE(&M, MMI).run(); in runOnModule()
118 MachineFunction *MF = MMI->getMachineFunction(F); in run()
181 MachineFunction &MF = MMI->getOrCreateMachineFunction(*F); in createFrameHelperMachineFunction()
322 auto &MF = createFrameHelperMachineFunction(M, MMI, Name); in getOrCreateFrameHelper()
511 getOrCreateFrameHelper(M, MMI, Regs, FrameHelperType::Epilog); in lowerEpilog()
590 M, MMI, Regs, FrameHelperType::PrologFrame, *FpOffset); in lowerProlog()
[all …]
H A DAArch64SLSHardening.cpp194 bool insertThunks(MachineModuleInfo &MMI, MachineFunction &MF);
202 bool SLSBLRThunkInserter::insertThunks(MachineModuleInfo &MMI, in insertThunks() argument
208 createThunkFunction(MMI, T.Name, ComdatThunks); in insertThunks()
423 static bool runTIs(MachineModuleInfo &MMI, MachineFunction &MF, in runTIs() argument
427 Modified |= std::get<ThunkInserterT>(ThunkInserters).run(MMI, MF)...}; in runTIs()
447 auto &MMI = getAnalysis<MachineModuleInfoWrapperPass>().getMMI(); in runOnMachineFunction() local
448 return runTIs(MMI, MF, TIs); in runOnMachineFunction()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDebugHandlerBase.cpp100 DebugHandlerBase::DebugHandlerBase(AsmPrinter *A) : Asm(A), MMI(Asm->MMI) {} in DebugHandlerBase()
236 static bool hasDebugInfo(const MachineModuleInfo *MMI, in hasDebugInfo() argument
238 if (!MMI->hasDebugInfo()) in hasDebugInfo()
253 if (!Asm || !hasDebugInfo(MMI, MF)) { in beginFunction()
349 if (!Asm || !MMI->hasDebugInfo()) in beginInstruction()
368 PrevLabel = MMI->getContext().createTempSymbol(); in beginInstruction()
375 if (!Asm || !MMI->hasDebugInfo()) in endInstruction()
402 PrevLabel = MMI->getContext().createTempSymbol(); in endInstruction()
410 if (Asm && hasDebugInfo(MMI, MF)) in endFunction()
H A DAsmPrinterInlineAsm.cpp47 MCContext &Context = MMI->getContext(); in addInlineAsmDiagBuffer()
99 SourceMgr &SrcMgr = *MMI->getContext().getInlineSourceManager(); in emitInlineAsm()
134 MachineModuleInfo *MMI, const MCAsmInfo *MAI, in EmitInlineAsmStr() argument
152 AsmPrinterVariant = MMI->getTarget().unqualifiedInlineAsmVariant(); in EmitInlineAsmStr()
301 MMI->getContext().registerInlineAsmLabel(Sym); in EmitInlineAsmStr()
317 MMI->getModule()->getContext().emitError(LocCookie, Msg.str()); in EmitInlineAsmStr()
370 EmitInlineAsmStr(AsmStr, MI, MMI, MAI, AP, LocCookie, OS); in emitInlineAsm()
403 MMI->getModule()->getContext().diagnose(DiagnosticInfoInlineAsm( in emitInlineAsm()
405 MMI->getModule()->getContext().diagnose( in emitInlineAsm()
411 MMI->getModule()->getContext().diagnose(DiagnosticInfoInlineAsm( in emitInlineAsm()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMachineModuleInfo.cpp20 AMDGPUMachineModuleInfo::AMDGPUMachineModuleInfo(const MachineModuleInfo &MMI) in AMDGPUMachineModuleInfo() argument
21 : MachineModuleInfoELF(MMI) { in AMDGPUMachineModuleInfo()
22 LLVMContext &CTX = MMI.getModule()->getContext(); in AMDGPUMachineModuleInfo()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/Sparc/
H A DSparcTargetObjectFile.cpp25 MachineModuleInfo *MMI, MCStreamer &Streamer) const { in getTTypeGlobalReference() argument
28 MachineModuleInfoELF &ELFMMI = MMI->getObjFileInfo<MachineModuleInfoELF>(); in getTTypeGlobalReference()
46 MMI, Streamer); in getTTypeGlobalReference()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyMCLowerPrePass.cpp76 MachineModuleInfo &MMI = MMIWP->getMMI(); in runOnModule() local
77 MachineModuleInfoWasm &MMIW = MMI.getObjFileInfo<MachineModuleInfoWasm>(); in runOnModule()
80 MachineFunction *MF = MMI.getMachineFunction(F); in runOnModule()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVDuplicatesTracker.cpp35 MachineModuleInfo *MMI = nullptr) { in buildDepsGraph() argument
75 if (MMI) { in buildDepsGraph()
76 const Module *M = MMI->getModule(); in buildDepsGraph()
78 const MachineFunction *MF = MMI->getMachineFunction(*F); in buildDepsGraph()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMSLSHardening.cpp189 ArmInsertedThunks insertThunks(MachineModuleInfo &MMI, MachineFunction &MF);
197 ArmInsertedThunks SLSBLRThunkInserter::insertThunks(MachineModuleInfo &MMI, in insertThunks() argument
205 createThunkFunction(MMI, T.Name, ComdatThunks, in insertThunks()
415 static bool runTIs(MachineModuleInfo &MMI, MachineFunction &MF, in runTIs() argument
419 Modified |= std::get<ThunkInserterT>(ThunkInserters).run(MMI, MF)...}; in runTIs()
439 auto &MMI = getAnalysis<MachineModuleInfoWrapperPass>().getMMI(); in runOnMachineFunction() local
440 return runTIs(MMI, MF, TIs); in runOnMachineFunction()

1234