reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/CodeGen/AsmPrinter/ARMException.cpp
   71   if (!Asm->MF->getFunction().needsUnwindTableEntry() &&
   95   const MachineFunction *MF = Asm->MF;
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  208   return MF->getFunctionNumber();
  226   assert(MF && "getSubtargetInfo requires a valid MachineFunction!");
  227   return MF->getSubtarget<MCSubtargetInfo>();
  651   const Function &F = MF->getFunction();
  671     EmitAlignment(MF->getAlignment(), &F);
  738     HI.Handler->beginFunction(MF);
  798      << printReg(RegNo, MF->getSubtarget().getRegisterInfo());
  812        << printReg(Op.getReg(), AP.MF->getSubtarget().getRegisterInfo());
  883       const TargetFrameLowering *TFI = AP.MF->getSubtarget().getFrameLowering();
  884       Offset += TFI->getFrameIndexReference(*AP.MF,
  897     OS << printReg(Reg, AP.MF->getSubtarget().getRegisterInfo());
  935       MF->getFunction().needsUnwindTableEntry())
  945   return MAI->usesWindowsCFI() && MF->getFunction().needsUnwindTableEntry();
  967   const std::vector<MCCFIInstruction> &Instrs = MF->getFrameInstructions();
 1036       OwnedMDT->getBase().recalculate(*MF);
 1052   for (auto &MBB : *MF) {
 1137                                       MF->getFunction().getSubprogram(),
 1138                                       &MF->front());
 1155     MF->getSubtarget().getInstrInfo()->getNoop(Noop);
 1165   const Function &F = MF->getFunction();
 1179   if (needFuncLabelsForEHOrDebugInfo(*MF, MMI) ||
 1210     HI.Handler->endFunction(MF);
 1214   emitStackSizeSection(*MF);
 1387   MF = nullptr;
 1655   this->MF = &MF;
 1709   const MachineConstantPool *MCP = MF->getConstantPool();
 1788   const DataLayout &DL = MF->getDataLayout();
 1789   const MachineJumpTableInfo *MJTI = MF->getJumpTableInfo();
 1797   const Function &F = MF->getFunction();
 1826       const TargetLowering *TLI = MF->getSubtarget().getTargetLowering();
 1827       const MCExpr *Base = TLI->getPICJumpTableRelocBaseExpr(MF,JTI,OutContext);
 1871     Value = MF->getSubtarget().getTargetLowering()->LowerCustomJumpTableEntry(
 1911     const TargetLowering *TLI = MF->getSubtarget().getTargetLowering();
 1912     const MCExpr *Base = TLI->getPICJumpTableRelocBaseExpr(MF, UID, OutContext);
 2200                      !MF ? nullptr : MF->getFunction().getParent());
 2200                      !MF ? nullptr : MF->getFunction().getParent());
 2792         MF->getConstantPool()->getConstants()[CPID];
 2794       const DataLayout &DL = MF->getDataLayout();
 2817   return MF->getJTISymbol(JTID, OutContext, isLinkerPrivate);
 2906   assert(MF != nullptr && "Machine function must be valid");
 2907   Context.IsPaddingActive = !MF->hasInlineAsm() &&
 2908                             !MF->getFunction().hasOptSize() &&
 3125   const Function &F = MF->getFunction();
 3128   if (MF->getSubtarget().getTargetTriple().isOSBinFormatELF()) {
 3145   } else if (MF->getSubtarget().getTargetTriple().isOSBinFormatMachO()) {
lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
  129     return MF->getDataLayout().getPointerSize();
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp
  532       const TargetRegisterInfo *TRI = MF->getSubtarget().getRegisterInfo();
  534           !TRI->isAsmClobberable(*MF, MI->getOperand(I + 1).getReg())) {
  579     const DataLayout &DL = MF->getDataLayout();
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
 1144   const MachineFunction &MF = *Asm->MF;
 1177     int FrameOffset = TFI->getFrameIndexReference(*Asm->MF, VI.Slot, FrameReg);
 1211   const TargetRegisterInfo *TRI = Asm->MF->getSubtarget().getRegisterInfo();
 2911   maybeRecordLocation(DL, Asm->MF);
lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
  207   calculateDbgEntityHistory(MF, Asm->MF->getSubtarget().getRegisterInfo(),
lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
   42   if (!Asm->MF->getLandingPads().empty()) {
   43     MachineFunction *NonConstMF = const_cast<MachineFunction*>(Asm->MF);
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
  394     if (Asm->MF->getTarget().getTargetTriple().isNVPTX()) {
  399       const TargetRegisterInfo *RI = Asm->MF->getSubtarget().getRegisterInfo();
  400       MachineLocation Location(RI->getFrameRegister(*Asm->MF));
  642     const TargetFrameLowering *TFI = Asm->MF->getSubtarget().getFrameLowering();
  643     int Offset = TFI->getFrameIndexReference(*Asm->MF, Fragment.FI, FrameReg);
  670           *Asm->MF->getSubtarget().getRegisterInfo(), Cursor, FrameReg);
 1181   const TargetRegisterInfo &TRI = *Asm->MF->getSubtarget().getRegisterInfo();
 1211   const TargetRegisterInfo &TRI = *Asm->MF->getSubtarget().getRegisterInfo();
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
 1267   for (const auto &VI : Asm->MF->getVariableDbgInfo()) {
 2207     const TargetRegisterInfo &TRI = *AP.MF->getSubtarget().getRegisterInfo();
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
   88   return MachineReg == TRI.getFrameRegister(*AP.MF);
lib/CodeGen/AsmPrinter/EHStreamer.cpp
   87   const std::vector<unsigned> &FilterIds = Asm->MF->getFilterIds();
  243   for (const auto &MBB : *Asm->MF) {
  308           unsigned SiteNo = Asm->MF->getCallSiteBeginLabel(BeginLabel);
  350   const MachineFunction *MF = Asm->MF;
  614   const MachineFunction *MF = Asm->MF;
lib/CodeGen/AsmPrinter/WasmException.cpp
   36   if (!Asm->MF->getLandingPads().empty()) {
   37     auto *NonConstMF = const_cast<MachineFunction *>(Asm->MF);
   81   MachineFunction &MF = *Asm->MF;
lib/CodeGen/AsmPrinter/WinException.cpp
  192   const Function &F = Asm->MF->getFunction();
  206     Asm->EmitAlignment(std::max(Asm->MF->getAlignment(), MBB.getAlignment()),
  253   const MachineFunction *MF = Asm->MF;
  338   const TargetFrameLowering &TFI = *Asm->MF->getSubtarget().getFrameLowering();
  342         TFI.getFrameIndexReferencePreferSP(*Asm->MF, FrameIndex, UnusedReg,
  345            Asm->MF->getSubtarget()
  354   int Offset = TFI.getFrameIndexReference(*Asm->MF, FrameIndex, UnusedReg);
  952     const TargetFrameLowering *TFI = Asm->MF->getSubtarget().getFrameLowering();
  953     Offset = TFI->getNonLocalFrameIndexReference(*Asm->MF, FI);
lib/CodeGen/StackMaps.cpp
  105   const TargetRegisterInfo *TRI = AP.MF->getSubtarget().getRegisterInfo();
  111       auto &DL = AP.MF->getDataLayout();
  176       AP.MF ? AP.MF->getSubtarget().getRegisterInfo() : nullptr;
  176       AP.MF ? AP.MF->getSubtarget().getRegisterInfo() : nullptr;
  258   const TargetRegisterInfo *TRI = AP.MF->getSubtarget().getRegisterInfo();
  350   const MachineFrameInfo &MFI = AP.MF->getFrameInfo();
  351   const TargetRegisterInfo *RegInfo = AP.MF->getSubtarget().getRegisterInfo();
  353       MFI.hasVarSizedObjects() || RegInfo->needsStackRealignment(*(AP.MF));
lib/Target/AArch64/AArch64AsmPrinter.cpp
  687   const MachineJumpTableInfo *MJTI = MF->getJumpTableInfo();
  693   const Function &F = MF->getFunction();
  706   auto AFI = MF->getInfo<AArch64FunctionInfo>();
  726   auto AFI = MF->getInfo<AArch64FunctionInfo>();
  731     const TargetLowering *TLI = MF->getSubtarget().getTargetLowering();
  732     const MCExpr *Base = TLI->getPICJumpTableRelocBaseExpr(MF, JTI, OutContext);
  769       MF->getInfo<AArch64FunctionInfo>()->getJumpTableEntryPCRelSymbol(JTIdx);
  773                                       Label, MF->getContext())));
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
  193   const SIMachineFunctionInfo &MFI = *MF->getInfo<SIMachineFunctionInfo>();
  197   const GCNSubtarget &STM = MF->getSubtarget<GCNSubtarget>();
  198   const Function &F = MF->getFunction();
  203     getAmdKernelCode(KernelCode, CurrentProgramInfo, *MF);
  208     HSAMetadataStream->emitKernel(*MF, CurrentProgramInfo);
  212   const SIMachineFunctionInfo &MFI = *MF->getInfo<SIMachineFunctionInfo>();
  234   const MCSubtargetInfo &STI = MF->getSubtarget();
  237   getNameWithPrefix(KernelName, &MF->getFunction());
  239       STI, KernelName, getAmdhsaKernelDescriptor(*MF, CurrentProgramInfo),
  258   const SIMachineFunctionInfo *MFI = MF->getInfo<SIMachineFunctionInfo>();
  259   const GCNSubtarget &STM = MF->getSubtarget<GCNSubtarget>();
  260   if (MFI->isEntryFunction() && STM.isAmdHsaOrMesa(MF->getFunction())) {
  262     getNameWithPrefix(SymbolName, &MF->getFunction()),
  268     DisasmLines.push_back(MF->getName().str() + ":");
 1298                                        *MF->getSubtarget().getRegisterInfo());
lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
  222   const GCNSubtarget &STI = MF->getSubtarget<GCNSubtarget>();
  261   const GCNSubtarget &STI = MF->getSubtarget<GCNSubtarget>();
  355           TmpInst, CodeStream, Fixups, MF->getSubtarget<MCSubtargetInfo>());
  385   const R600Subtarget &STI = MF->getSubtarget<R600Subtarget>();
lib/Target/ARM/ARMAsmPrinter.cpp
  279         const TargetRegisterInfo *TRI = MF->getSubtarget().getRegisterInfo();
  311         const TargetRegisterInfo *TRI = MF->getSubtarget().getRegisterInfo();
  372       const TargetRegisterInfo *TRI = MF->getSubtarget().getRegisterInfo();
  380         const TargetRegisterInfo *TRI = MF->getSubtarget().getRegisterInfo();
  406       const TargetRegisterInfo *TRI = MF->getSubtarget().getRegisterInfo();
  953   const MachineJumpTableInfo *MJTI = MF->getJumpTableInfo();
  996   const MachineJumpTableInfo *MJTI = MF->getJumpTableInfo();
 1024   const MachineJumpTableInfo *MJTI = MF->getJumpTableInfo();
lib/Target/AVR/AVRAsmPrinter.cpp
  108       const AVRSubtarget &STI = MF->getSubtarget<AVRSubtarget>();
lib/Target/Mips/MipsAsmPrinter.cpp
  231       EmitGlobalConstant(MF->getDataLayout(), MCPE.Val.ConstVal);
  330   const MachineFrameInfo &MFI = MF->getFrameInfo();
  331   const TargetRegisterInfo *TRI = MF->getSubtarget().getRegisterInfo();
  378   const TargetRegisterInfo &RI = *MF->getSubtarget().getRegisterInfo();
  380   Register stackReg = RI.getFrameRegister(*MF);
  382   unsigned stackSize = MF->getFrameInfo().getStackSize();
  403     EmitAlignment(std::max(MF->getAlignment(), MIPS_NACL_BUNDLE_ALIGN));
  426   MCInstLowering.Initialize(&MF->getContext());
  428   bool IsNakedFunction = MF->getFunction().hasFnAttribute(Attribute::Naked);
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
  203   LLVMTargetMachine &TM = const_cast<LLVMTargetMachine&>(MF->getTarget());
  205   const NVPTXMachineFunctionInfo *MFI = MF->getInfo<NVPTXMachineFunctionInfo>();
  448     emitGlobals(*MF->getFunction().getParent());
  453   MRI = &MF->getRegInfo();
  454   F = &MF->getFunction();
  460     printReturnValStr(*MF, O);
  465   emitFunctionParamList(*MF, O);
  475   setAndEmitFunctionVirtualRegisters(*MF);
  478     emitInitialRawDwarfLocDirective(*MF);
  495   emitDemotedVars(&MF->getFunction(), O);
 2010                      !MF ? nullptr : MF->getFunction().getParent());
 2010                      !MF ? nullptr : MF->getFunction().getParent());
 2024                        !MF ? nullptr : MF->getFunction().getParent());
 2024                        !MF ? nullptr : MF->getFunction().getParent());
lib/Target/PowerPC/PPCAsmPrinter.cpp
  482   const Module *M = MF->getFunction().getParent();
  541   const Module *M = MF->getFunction().getParent();
  606     MCSymbol *PICBase = MF->getPICBaseSymbol();
  634           MCSymbolRefExpr::create(MF->getPICBaseSymbol(), OutContext);
  651         MF->getInfo<PPCFunctionInfo>()->getPICOffsetSymbol();
  656         MCSymbolRefExpr::create(MF->getPICBaseSymbol(),
 1362        MF->getFunction().getParent()->getPICLevel() == PICLevel::SmallPIC))
 1366     const PPCFunctionInfo *PPCFI = MF->getInfo<PPCFunctionInfo>();
 1369       MCSymbol *PICBase = MF->getPICBaseSymbol();
 1392         && !MF->getRegInfo().use_empty(PPC::X2)) {
 1393       const PPCFunctionInfo *PPCFI = MF->getInfo<PPCFunctionInfo>();
 1502       && !MF->getRegInfo().use_empty(PPC::X2)) {
 1506     const PPCFunctionInfo *PPCFI = MF->getInfo<PPCFunctionInfo>();
lib/Target/Sparc/SparcAsmPrinter.cpp
  274   if (!MF->getSubtarget<SparcSubtarget>().is64Bit())
  277   const MachineRegisterInfo &MRI = MF->getRegInfo();
lib/Target/SystemZ/SystemZAsmPrinter.cpp
  126   SystemZMCInstLower Lower(MF->getContext(), *this);
  322       .addExpr(getTLSGetOffset(MF->getContext()))
  329       .addExpr(getTLSGetOffset(MF->getContext()))
  336       .addExpr(getGlobalOffsetTable(MF->getContext()));
  461     if (MF->getSubtarget<SystemZSubtarget>().hasFastSerialization())
  555   MCContext &Ctx = MF->getContext();
  556   if (MF->getFunction().getFnAttribute("mnop-mcount")
  571     static_cast<const SystemZInstrInfo *>(MF->getSubtarget().getInstrInfo());
  687   SystemZMCInstLower Lower(MF->getContext(), *this);
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
  271   assert(MF->getConstantPool()->getConstants().empty() &&
  280   const Function &F = MF->getFunction();
lib/Target/X86/X86AsmPrinter.cpp
   96           MF->getInfo<X86MachineFunctionInfo>()->getArgumentStackSize());
  172     MF->getPICBaseSymbol()->print(O, MAI);
  178     MF->getPICBaseSymbol()->print(O, MAI);
  196     MF->getPICBaseSymbol()->print(O, MAI);
lib/Target/X86/X86MCInstLower.cpp
 1744   assert(MF->hasWinCFI() && "SEH_ instruction in function without WinCFI?");
 1831   X86MCInstLower MCInstLowering(*MF, *this);
 1833       MF->getSubtarget<X86Subtarget>().getRegisterInfo();
 1966     MCSymbol *PICBase = MF->getPICBaseSymbol();
 1974         MF->getSubtarget<X86Subtarget>().getFrameLowering();
 1975     bool hasFP = FrameLowering->hasFP(*MF);
 2020         MCSymbolRefExpr::create(MF->getPICBaseSymbol(), OutContext);
 2088     assert(MF->hasWinCFI() && "SEH_ instruction in function without WinCFI?");
lib/Target/XCore/XCoreAsmPrinter.cpp
  169   MCInstLowering.Initialize(&MF->getContext());