Home
last modified time | relevance | path

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

1234

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineModuleInfo.cpp57 MachineModuleInfo::MachineModuleInfo(MachineModuleInfo &&MMI) in MachineModuleInfo() argument
58 : TM(std::move(MMI.TM)), in MachineModuleInfo()
61 MachineFunctions(std::move(MMI.MachineFunctions)) { in MachineModuleInfo()
63 ObjFileMMI = MMI.ObjFileMMI; in MachineModuleInfo()
64 CurCallSite = MMI.CurCallSite; in MachineModuleInfo()
65 ExternalContext = MMI.ExternalContext; in MachineModuleInfo()
66 TheModule = MMI.TheModule; in MachineModuleInfo()
152 MachineModuleInfo &MMI = in runOnFunction() local
154 MMI.deleteMachineFunctionFor(F); in runOnFunction()
173 : ImmutablePass(ID), MMI(TM) { in MachineModuleInfoWrapperPass()
[all …]
H A DMachineOutliner.cpp493 MachineModuleInfo &MMI);
499 void initSizeRemarkInfo(const Module &M, const MachineModuleInfo &MMI,
505 emitInstrCountChangedRemark(const Module &M, const MachineModuleInfo &MMI,
734 MachineModuleInfo &MMI = getAnalysis<MachineModuleInfoWrapperPass>().getMMI(); in createOutlinedFunction() local
735 MachineFunction &MF = MMI.getOrCreateMachineFunction(*F); in createOutlinedFunction()
992 MachineModuleInfo &MMI) { in populateMapper() argument
1006 MachineFunction *MF = MMI.getMachineFunction(F); in populateMapper()
1065 const Module &M, const MachineModuleInfo &MMI, in initSizeRemarkInfo() argument
1070 MachineFunction *MF = MMI.getMachineFunction(F); in initSizeRemarkInfo()
1081 const Module &M, const MachineModuleInfo &MMI, in emitInstrCountChangedRemark() argument
[all …]
H A DMachineDebugify.cpp33 bool applyDebugifyMetadataToMachineFunction(MachineModuleInfo &MMI, in applyDebugifyMetadataToMachineFunction() argument
35 MachineFunction *MaybeMF = MMI.getMachineFunction(F); in applyDebugifyMetadataToMachineFunction()
193 MachineModuleInfo &MMI = in runOnModule() local
198 return applyDebugifyMetadataToMachineFunction(MMI, DIB, F); in runOnModule()
H A DMachineFunctionAnalysis.cpp36 auto &MMI = FAM.getResult<ModuleAnalysisManagerFunctionProxy>(F) in run() local
40 F, *TM, STI, Context.generateMachineFunctionNum(F), MMI); in run()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetObjectFile.cpp34 int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const { in getIndirectSymViaGOTPCRel() argument
48 MachineModuleInfo *MMI, MCStreamer &Streamer) const { in getTTypeGlobalReference() argument
64 GV, Encoding, TM, MMI, Streamer); in getTTypeGlobalReference()
69 MachineModuleInfo *MMI) const { in getCFIPersonalitySymbol()
75 int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const { in getIndirectSymViaGOTPCRel() argument
98 MCContext &Ctx, const TargetMachine &TM, MachineModuleInfo *MMI, in getAuthPtrSlotSymbolHelper() argument
101 const DataLayout &DL = MMI->getModule()->getDataLayout(); in getAuthPtrSlotSymbolHelper()
122 const TargetMachine &TM, MachineModuleInfo *MMI, const MCSymbol *RawSym, in getAuthPtrSlotSymbol() argument
124 auto &ELFMMI = MMI->getObjFileInfo<MachineModuleInfoELF>(); in getAuthPtrSlotSymbol()
125 return getAuthPtrSlotSymbolHelper(getContext(), TM, MMI, ELFMMI, RawSym, Key, in getAuthPtrSlotSymbol()
[all …]
H A DAArch64TargetObjectFile.h31 MachineModuleInfo *MMI,
35 MachineModuleInfo *MMI, const MCSymbol *RawSym,
48 MachineModuleInfo *MMI,
53 MachineModuleInfo *MMI) const override;
58 MachineModuleInfo *MMI,
65 MachineModuleInfo *MMI, const MCSymbol *RawSym,
H A DAArch64LowerHomogeneousPrologEpilog.cpp49 AArch64LowerHomogeneousPE(Module *M, MachineModuleInfo *MMI) in AArch64LowerHomogeneousPE() argument
50 : M(M), MMI(MMI) {} in AArch64LowerHomogeneousPE()
57 MachineModuleInfo *MMI; member in __anonc07af6ac0111::AArch64LowerHomogeneousPE
108 MachineModuleInfo *MMI = in runOnModule() local
110 return AArch64LowerHomogeneousPE(&M, MMI).run(); in runOnModule()
119 MachineFunction *MF = MMI->getMachineFunction(F); in run()
162 MachineModuleInfo *MMI, in createFrameHelperMachineFunction() argument
182 MachineFunction &MF = MMI->getOrCreateMachineFunction(*F); in createFrameHelperMachineFunction()
313 static Function *getOrCreateFrameHelper(Module *M, MachineModuleInfo *MMI, in getOrCreateFrameHelper() argument
323 auto &MF = createFrameHelperMachineFunction(M, MMI, Name); in getOrCreateFrameHelper()
[all …]
H A DAArch64SLSHardening.cpp148 ThunksSet insertThunks(MachineModuleInfo &MMI, MachineFunction &MF,
155 bool hardenReturnsAndBRs(MachineModuleInfo &MMI, MachineBasicBlock &MBB);
156 bool hardenBLRs(MachineModuleInfo &MMI, MachineBasicBlock &MBB,
159 void convertBLRToBL(MachineModuleInfo &MMI, MachineBasicBlock &MBB,
243 ThunksSet SLSHardeningInserter::insertThunks(MachineModuleInfo &MMI, in insertThunks() argument
250 hardenReturnsAndBRs(MMI, MBB); in insertThunks()
252 hardenBLRs(MMI, MBB, ExistingThunks); in insertThunks()
257 bool SLSHardeningInserter::hardenReturnsAndBRs(MachineModuleInfo &MMI, in hardenReturnsAndBRs() argument
384 MachineModuleInfo &MMI, MachineBasicBlock &MBB, in convertBLRToBL() argument
445 createThunkFunction(MMI, ThunkName, ComdatThunks, TargetAttrs); in convertBLRToBL()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DIndirectThunks.h77 void createThunkFunction(MachineModuleInfo &MMI, StringRef Name,
96 InsertedThunksTy insertThunks(MachineModuleInfo &MMI, MachineFunction &MF,
115 bool run(MachineModuleInfo &MMI, MachineFunction &MF);
120 MachineModuleInfo &MMI, StringRef Name, bool Comdat, in createThunkFunction() argument
125 Module &M = const_cast<Module &>(*MMI.getModule()); in createThunkFunction()
154 MachineFunction &MF = MMI.getOrCreateMachineFunction(*F); in createThunkFunction()
165 bool ThunkInserter<Derived, InsertedThunksTy>::run(MachineModuleInfo &MMI, in run() argument
177 InsertedThunks |= getDerived().insertThunks(MMI, MF, InsertedThunks); in run()
202 auto &MMI = getAnalysis<MachineModuleInfoWrapperPass>().getMMI(); in runOnMachineFunction() local
203 return runTIs(MMI, MF, TIs); in runOnMachineFunction()
[all …]
H A DMachineModuleInfo.h210 MachineModuleInfo MMI; variable
223 MachineModuleInfo &getMMI() { return MMI; } in getMMI()
224 const MachineModuleInfo &getMMI() const { return MMI; } in getMMI()
236 MachineModuleInfo &MMI; variable
240 MachineModuleInfo &MMI; variable
241 Result(MachineModuleInfo &MMI) : MMI(MMI) {} in Result() argument
245 MachineModuleInfo &getMMI() { return MMI; } in getMMI()
254 MachineModuleAnalysis(MachineModuleInfo &MMI) : MMI(MMI) {} in MachineModuleAnalysis() argument
H A DTargetLoweringObjectFileImpl.h91 MachineModuleInfo *MMI,
97 MachineModuleInfo *MMI) const override;
142 MachineModuleInfo *MMI,
148 MachineModuleInfo *MMI) const override;
154 MachineModuleInfo *MMI,
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRAsmPrinter.cpp238 const AVRTargetMachine &TM = (const AVRTargetMachine &)MMI->getTarget(); in doFinalization()
287 const AVRTargetMachine &TM = (const AVRTargetMachine &)MMI->getTarget(); in emitStartOfAsmFile()
294 MMI->getContext().getOrCreateSymbol(StringRef("__tmp_reg__")), in emitStartOfAsmFile()
295 MCConstantExpr::create(SubTM->getRegTmpIndex(), MMI->getContext())); in emitStartOfAsmFile()
298 MMI->getContext().getOrCreateSymbol(StringRef("__zero_reg__")), in emitStartOfAsmFile()
299 MCConstantExpr::create(SubTM->getRegZeroIndex(), MMI->getContext())); in emitStartOfAsmFile()
302 MMI->getContext().getOrCreateSymbol(StringRef("__SREG__")), in emitStartOfAsmFile()
303 MCConstantExpr::create(SubTM->getIORegSREG(), MMI->getContext())); in emitStartOfAsmFile()
307 MMI->getContext().getOrCreateSymbol(StringRef("__SP_H__")), in emitStartOfAsmFile()
308 MCConstantExpr::create(SubTM->getIORegSPH(), MMI->getContext())); in emitStartOfAsmFile()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86IndirectThunks.cpp70 bool insertThunks(MachineModuleInfo &MMI, MachineFunction &MF,
80 bool insertThunks(MachineModuleInfo &MMI, MachineFunction &MF, in insertThunks()
84 createThunkFunction(MMI, R11LVIThunkName); in insertThunks()
119 bool RetpolineThunkInserter::insertThunks(MachineModuleInfo &MMI, in insertThunks() argument
124 if (MMI.getTarget().getTargetTriple().getArch() == Triple::x86_64) in insertThunks()
125 createThunkFunction(MMI, R11RetpolineName); in insertThunks()
129 createThunkFunction(MMI, Name); in insertThunks()
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 {
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.cpp230 MMI->getObjFileInfo<MachineModuleInfoMachO>().getGVStubEntry(Sym); in PrintSymbolOperand()
861 MCSection *Nt = MMI->getContext().getELFSection( in emitStartOfAsmFile()
888 MCSymbol *S = MMI->getContext().getOrCreateSymbol(StringRef("@feat.00")); in emitStartOfAsmFile()
921 S, MCConstantExpr::create(Feat00Value, MMI->getContext())); in emitStartOfAsmFile()
955 static void emitNonLazyStubs(MachineModuleInfo *MMI, MCStreamer &OutStreamer) { in emitNonLazyStubs() argument
958 MMI->getObjFileInfo<MachineModuleInfoMachO>(); in emitNonLazyStubs()
966 OutStreamer.switchSection(MMI->getContext().getMachOSection( in emitNonLazyStubs()
984 emitNonLazyStubs(MMI, *OutStreamer); in emitEndOfAsmFile()
996 if (MMI->usesMSVCFloatingPoint()) { in emitEndOfAsmFile()
1012 MCSymbol *S = MMI->getContext().getOrCreateSymbol(SymbolName); in emitEndOfAsmFile()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DDebugHandlerBase.cpp101 DebugHandlerBase::DebugHandlerBase(AsmPrinter *A) : Asm(A), MMI(Asm->MMI) {} in DebugHandlerBase()
244 static bool hasDebugInfo(const MachineModuleInfo *MMI, in hasDebugInfo() argument
246 if (!MMI->hasDebugInfo()) in hasDebugInfo()
261 if (!Asm || !hasDebugInfo(MMI, MF)) { in beginFunction()
357 if (!Asm || !MMI->hasDebugInfo()) in beginInstruction()
376 PrevLabel = MMI->getContext().createTempSymbol(); in beginInstruction()
383 if (!Asm || !MMI->hasDebugInfo()) in endInstruction()
410 PrevLabel = MMI->getContext().createTempSymbol(); in endInstruction()
418 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()
135 MachineModuleInfo *MMI, const MCAsmInfo *MAI, in EmitInlineAsmStr() argument
153 AsmPrinterVariant = MMI->getTarget().unqualifiedInlineAsmVariant(); in EmitInlineAsmStr()
302 MMI->getContext().registerInlineAsmLabel(Sym); in EmitInlineAsmStr()
318 MMI->getModule()->getContext().emitError(LocCookie, msg); in EmitInlineAsmStr()
371 EmitInlineAsmStr(AsmStr, MI, MMI, MAI, AP, LocCookie, OS); in emitInlineAsm()
404 MMI->getModule()->getContext().diagnose(DiagnosticInfoInlineAsm( in emitInlineAsm()
406 MMI->getModule()->getContext().diagnose( in emitInlineAsm()
412 MMI->getModule()->getContext().diagnose(DiagnosticInfoInlineAsm( in emitInlineAsm()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUMachineModuleInfo.cpp21 AMDGPUMachineModuleInfo::AMDGPUMachineModuleInfo(const MachineModuleInfo &MMI) in AMDGPUMachineModuleInfo() argument
22 : MachineModuleInfoELF(MMI) { in AMDGPUMachineModuleInfo()
23 LLVMContext &CTX = MMI.getModule()->getContext(); in AMDGPUMachineModuleInfo()
/freebsd/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/contrib/llvm-project/llvm/lib/Target/WebAssembly/
H A DWebAssemblyMCLowerPrePass.cpp77 MachineModuleInfo &MMI = MMIWP->getMMI(); in runOnModule() local
78 MachineModuleInfoWasm &MMIW = MMI.getObjFileInfo<MachineModuleInfoWasm>(); in runOnModule()
81 MachineFunction *MF = MMI.getMachineFunction(F); in runOnModule()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVDuplicatesTracker.cpp35 MachineModuleInfo *MMI = nullptr) { in buildDepsGraph() argument
83 if (MMI) { in buildDepsGraph()
84 const Module *M = MMI->getModule(); in buildDepsGraph()
86 const MachineFunction *MF = MMI->getMachineFunction(*F); in buildDepsGraph()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetObjectFile.cpp62 int64_t Offset, MachineModuleInfo *MMI, MCStreamer &Streamer) const { in getIndirectSymViaGOTPCRel() argument
78 MachineModuleInfo *MMI, MCStreamer &Streamer) const { in getTTypeGlobalReference() argument
81 GV, Encoding, TM, MMI, Streamer); in getTTypeGlobalReference()
H A DARMTargetObjectFile.h32 MachineModuleInfo *MMI,
40 MachineModuleInfo *MMI,

1234