/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | WasmException.cpp | 36 if (!Asm->MF->getLandingPads().empty()) { 37 auto *NonConstMF = const_cast<MachineFunction *>(Asm->MF); 44 void WasmException::endFunction(const MachineFunction *MF) { argument 46 for (const LandingPadInfo &Info : MF->getLandingPads()) { 47 if (MF->hasWasmLandingPadIndex(Info.LandingPadBlock)) { 81 MachineFunction &MF = *Asm->MF; local 86 if (!MF.hasWasmLandingPadIndex(LPad)) 90 unsigned LPadIndex = MF.getWasmLandingPadIndex(LPad);
|
H A D | WasmException.h | 27 void beginFunction(const MachineFunction *MF) override {} 29 void endFunction(const MachineFunction *MF) override;
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | PatchableFunction.cpp | 57 bool PatchableFunction::runOnMachineFunction(MachineFunction &MF) { argument 58 if (MF.getFunction().hasFnAttribute("patchable-function-entry")) { 59 MachineBasicBlock &FirstMBB = *MF.begin(); 60 const TargetInstrInfo *TII = MF.getSubtarget().getInstrInfo(); 72 if (!MF.getFunction().hasFnAttribute("patchable-function")) 76 Attribute PatchAttr = MF.getFunction().getFnAttribute("patchable-function"); 81 auto &FirstMBB = *MF.begin(); 86 auto *TII = MF.getSubtarget().getInstrInfo(); 96 MF.ensureAlignment(Align(16));
|
H A D | LiveRegUnits.cpp | 86 const MachineFunction &MF) { 87 const MachineRegisterInfo &MRI = MF.getRegInfo(); 92 void LiveRegUnits::addPristines(const MachineFunction &MF) { argument 93 const MachineFrameInfo &MFI = MF.getFrameInfo(); 101 addCalleeSavedRegs(*this, MF); 112 addCalleeSavedRegs(Pristine, MF); 120 const MachineFunction &MF = *MBB.getParent(); local 122 addPristines(MF); 130 const MachineFrameInfo &MFI = MF.getFrameInfo(); 132 addCalleeSavedRegs(*this, MF); 85 addCalleeSavedRegs(LiveRegUnits &LiveUnits, const MachineFunction &MF) argument 137 const MachineFunction &MF = *MBB.getParent(); local [all...] |
H A D | MachineSizeOpts.cpp | 48 const MachineFunction *MF, 51 if (auto FunctionCount = MF->getFunction().getEntryCount()) 54 for (const auto &MBB : *MF) 64 const MachineFunction *MF, 67 if (auto FunctionCount = MF->getFunction().getEntryCount()) 71 for (const auto &MBB : *MF) 80 static bool isFunctionColdInCallGraph(const MachineFunction *MF, argument 83 return machine_size_opts_detail::isFunctionColdInCallGraph(MF, PSI, MBFI); 87 const MachineFunction *MF, 91 CutOff, MF, PS 47 isFunctionColdInCallGraph( const MachineFunction *MF, ProfileSummaryInfo *PSI, const MachineBlockFrequencyInfo &MBFI) argument 62 isFunctionHotInCallGraphNthPercentile( int PercentileCutoff, const MachineFunction *MF, ProfileSummaryInfo *PSI, const MachineBlockFrequencyInfo &MBFI) argument 85 isFunctionHotInCallGraphNthPercentile( int CutOff, const MachineFunction *MF, ProfileSummaryInfo *PSI, const MachineBlockFrequencyInfo &MBFI) argument 108 shouldOptimizeForSize(const MachineFunction *MF, ProfileSummaryInfo *PSI, const MachineBlockFrequencyInfo *MBFI, PGSOQueryType QueryType) argument [all...] |
H A D | CFIInstrInserter.cpp | 51 bool runOnMachineFunction(MachineFunction &MF) override { 52 if (!MF.needsFrameMoves()) 55 MBBVector.resize(MF.getNumBlockIDs()); 56 calculateCFAInfo(MF); variable 59 if (unsigned ErrorNum = verify(MF)) 63 bool insertedCFI = insertCFIInstrs(MF); 90 void calculateCFAInfo(MachineFunction &MF); 103 bool insertCFIInstrs(MachineFunction &MF); 116 unsigned verify(MachineFunction &MF); 126 void CFIInstrInserter::calculateCFAInfo(MachineFunction &MF) { argument 245 insertCFIInstrs(MachineFunction &MF) argument 310 verify(MachineFunction &MF) argument [all...] |
H A D | MIRNamerPass.cpp | 52 bool runOnMachineFunction(MachineFunction &MF) override { 55 if (MF.empty()) 58 VRegRenamer Renamer(MF.getRegInfo()); 61 ReversePostOrderTraversal<MachineBasicBlock *> RPOT(&*MF.begin());
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | Mips16RegisterInfo.h | 25 bool requiresRegisterScavenging(const MachineFunction &MF) const override; 27 bool requiresFrameIndexScavenging(const MachineFunction &MF) const override; 29 bool useFPForScavengingIndex(const MachineFunction &MF) const override;
|
H A D | MipsModuleISelDAGToDAG.cpp | 40 bool runOnMachineFunction(MachineFunction &MF) override; 46 bool MipsModuleDAGToDAGISel::runOnMachineFunction(MachineFunction &MF) { argument 50 TM.resetSubtarget(&MF);
|
H A D | Mips16FrameLowering.cpp | 42 void Mips16FrameLowering::emitPrologue(MachineFunction &MF, argument 44 MachineFrameInfo &MFI = MF.getFrameInfo(); 58 MachineModuleInfo &MMI = MF.getMMI(); 65 unsigned CFIIndex = MF.addFrameInst( 80 unsigned CFIIndex = MF.addFrameInst( 86 if (hasFP(MF)) 91 void Mips16FrameLowering::emitEpilogue(MachineFunction &MF, argument 94 MachineFrameInfo &MFI = MF.getFrameInfo(); 103 if (hasFP(MF)) 117 MachineFunction *MF local 162 determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const argument [all...] |
H A D | Mips16FrameLowering.h | 25 void emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 26 void emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const override; 38 bool hasReservedCallFrame(const MachineFunction &MF) const override; 40 void determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs,
|
H A D | MipsSERegisterInfo.h | 26 bool requiresRegisterScavenging(const MachineFunction &MF) const override; 28 bool requiresFrameIndexScavenging(const MachineFunction &MF) const override;
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Sparc/ |
H A D | LeonPasses.cpp | 40 bool InsertNOPLoad::runOnMachineFunction(MachineFunction &MF) { argument 41 Subtarget = &MF.getSubtarget<SparcSubtarget>(); 46 for (auto MFI = MF.begin(), E = MF.end(); MFI != E; ++MFI) { 77 bool DetectRoundChange::runOnMachineFunction(MachineFunction &MF) { argument 78 Subtarget = &MF.getSubtarget<SparcSubtarget>(); 81 for (auto MFI = MF.begin(), E = MF.end(); MFI != E; ++MFI) { 127 bool FixAllFDIVSQRT::runOnMachineFunction(MachineFunction &MF) { argument 128 Subtarget = &MF [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | R600RegisterInfo.h | 27 BitVector getReservedRegs(const MachineFunction &MF) const override; 28 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override; 29 Register getFrameRegister(const MachineFunction &MF) const override;
|
H A D | R600AsmPrinter.cpp | 44 void R600AsmPrinter::EmitProgramInfoR600(const MachineFunction &MF) { argument 47 const R600Subtarget &STM = MF.getSubtarget<R600Subtarget>(); 49 const R600MachineFunctionInfo *MFI = MF.getInfo<R600MachineFunctionInfo>(); 51 for (const MachineBasicBlock &MBB : MF) { 73 switch (MF.getFunction().getCallingConv()) { 82 switch (MF.getFunction().getCallingConv()) { 97 if (AMDGPU::isCompute(MF.getFunction().getCallingConv())) { 103 bool R600AsmPrinter::runOnMachineFunction(MachineFunction &MF) { argument 107 MF.ensureAlignment(Align(256)); 109 SetupMachineFunction(MF); [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/BPF/ |
H A D | BPFRegisterInfo.cpp | 33 BPFRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { 37 BitVector BPFRegisterInfo::getReservedRegs(const MachineFunction &MF) const { 44 static void WarnSize(int Offset, MachineFunction &MF, DebugLoc& DL) argument 47 const Function &F = MF.getFunction(); 64 MachineFunction &MF = *MBB.getParent(); local 80 Register FrameReg = getFrameRegister(MF); 82 const TargetInstrInfo &TII = *MF.getSubtarget().getInstrInfo(); 85 int Offset = MF.getFrameInfo().getObjectOffset(FrameIndex); 87 WarnSize(Offset, MF, DL); 96 int Offset = MF [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/VE/ |
H A D | VEISelDAGToDAG.cpp | 39 bool runOnMachineFunction(MachineFunction &MF) override { 40 Subtarget = &MF.getSubtarget<VESubtarget>(); 41 return SelectionDAGISel::runOnMachineFunction(MF);
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/MSP430/ |
H A D | MSP430FrameLowering.cpp | 28 bool MSP430FrameLowering::hasFP(const MachineFunction &MF) const { 29 const MachineFrameInfo &MFI = MF.getFrameInfo(); 31 return (MF.getTarget().Options.DisableFramePointerElim(MF) || 32 MF.getFrameInfo().hasVarSizedObjects() || 36 bool MSP430FrameLowering::hasReservedCallFrame(const MachineFunction &MF) const { 37 return !MF.getFrameInfo().hasVarSizedObjects(); 40 void MSP430FrameLowering::emitPrologue(MachineFunction &MF, argument 42 assert(&MF.front() == &MBB && "Shrink-wrapping not yet supported"); 43 MachineFrameInfo &MFI = MF 106 emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const argument 190 MachineFunction &MF = *MBB.getParent(); local 216 MachineFunction &MF = *MBB.getParent(); local 225 eliminateCallFramePseudoInstr( MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument 290 processFunctionBeforeFrameFinalized(MachineFunction &MF, RegScavenger *) const argument [all...] |
/freebsd-11-stable/tools/tools/ath/athalq/ |
H A D | ar5416_ds_tdma.c | 38 #define MF(_v, _f) ( !! ((_v) & (_f))) macro 49 if (MF(txs.u.tx.status[9], AR_TxDone) == 0) 55 MF(txs.u.tx.status[9], AR_TxDone), 68 MF(txs.u.tx.status[0], AR_TxBaStatus)); 72 MF(txs.u.tx.status[1], AR_FrmXmitOK), 73 MF(txs.u.tx.status[1], AR_ExcessiveRetries), 74 MF(txs.u.tx.status[1], AR_FIFOUnderrun), 75 MF(txs.u.tx.status[1], AR_Filtered)); 78 MF(txs.u.tx.status[1], AR_TxDelimUnderrun), 79 MF(tx [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Lanai/ |
H A D | LanaiFrameLowering.cpp | 27 void LanaiFrameLowering::determineFrameLayout(MachineFunction &MF) const { 28 MachineFrameInfo &MFI = MF.getFrameInfo(); 35 unsigned StackAlign = LRI->needsStackRealignment(MF) ? MFI.getMaxAlignment() 50 if (!(hasReservedCallFrame(MF) && MFI.adjustsStack())) 63 void LanaiFrameLowering::replaceAdjDynAllocPseudo(MachineFunction &MF) const { 66 unsigned MaxCallFrameSize = MF.getFrameInfo().getMaxCallFrameSize(); 68 for (MachineFunction::iterator MBB = MF.begin(), E = MF.end(); MBB != E; 91 void LanaiFrameLowering::emitPrologue(MachineFunction &MF, argument 93 assert(&MF 197 determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/RISCV/ |
H A D | RISCVFrameLowering.cpp | 26 bool RISCVFrameLowering::hasFP(const MachineFunction &MF) const { 27 const TargetRegisterInfo *RegInfo = MF.getSubtarget().getRegisterInfo(); 29 const MachineFrameInfo &MFI = MF.getFrameInfo(); 30 return MF.getTarget().Options.DisableFramePointerElim(MF) || 31 RegInfo->needsStackRealignment(MF) || MFI.hasVarSizedObjects() || 35 bool RISCVFrameLowering::hasBP(const MachineFunction &MF) const { 36 const MachineFrameInfo &MFI = MF.getFrameInfo(); 39 return MFI.hasVarSizedObjects() && TRI->needsStackRealignment(MF); 43 void RISCVFrameLowering::determineFrameLayout(MachineFunction &MF) cons 108 emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const argument 245 emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const argument 303 getFrameIndexReference(const MachineFunction &MF, int FI, unsigned &FrameReg) const argument 353 determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const argument 398 processFunctionBeforeFrameFinalized( MachineFunction &MF, RegScavenger *RS) const argument 424 eliminateCallFramePseudoInstr( MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator MI) const argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZInstrBuilder.h | 28 MachineFunction &MF = *MI->getParent()->getParent(); local 29 MachineFrameInfo &MFFrame = MF.getFrameInfo(); 37 MachineMemOperand *MMO = MF.getMachineMemOperand( 38 MachinePointerInfo::getFixedStack(MF, FI, Offset), Flags,
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/WebAssembly/ |
H A D | WebAssemblyRegisterInfo.h | 35 const MCPhysReg *getCalleeSavedRegs(const MachineFunction *MF) const override; 36 BitVector getReservedRegs(const MachineFunction &MF) const override; 42 Register getFrameRegister(const MachineFunction &MF) const override; 45 getPointerRegClass(const MachineFunction &MF,
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64FrameLowering.cpp | 184 static unsigned estimateRSStackSizeLimit(MachineFunction &MF) { argument 188 for (MachineBasicBlock &MBB : MF) { 216 static unsigned getFixedObjectSize(const MachineFunction &MF, argument 227 const unsigned UnwindHelpObject = (MF.hasEHFunclets() ? 8 : 0); 233 static StackOffset getSVEStackSize(const MachineFunction &MF) { argument 234 const AArch64FunctionInfo *AFI = MF.getInfo<AArch64FunctionInfo>(); 238 bool AArch64FrameLowering::canUseRedZone(const MachineFunction &MF) const { 243 if (MF.getFunction().hasFnAttribute(Attribute::NoRedZone)) 246 const MachineFrameInfo &MFI = MF.getFrameInfo(); 247 const AArch64FunctionInfo *AFI = MF 296 eliminateCallFramePseudoInstr( MachineFunction &MF, MachineBasicBlock &MBB, MachineBasicBlock::iterator I) const argument 406 MachineFunction *MF = MBB->getParent(); local 436 const MachineFunction *MF = MBB.getParent(); local 449 windowsRequiresStackProbe(MachineFunction &MF, uint64_t StackSizeInBytes) argument 466 shouldCombineCSRLocalStackBump( MachineFunction &MF, uint64_t StackBumpBytes) const argument 508 MachineFunction &MF = *MBB->getParent(); local 836 ShouldSignWithAKey(MachineFunction &MF) argument 847 needsWinCFI(const MachineFunction &MF) argument 853 isTargetDarwin(const MachineFunction &MF) argument 857 isTargetWindows(const MachineFunction &MF) argument 875 emitPrologue(MachineFunction &MF, MachineBasicBlock &MBB) const argument 1337 InsertReturnAddressAuth(MachineFunction &MF, MachineBasicBlock &MBB) argument 1377 emitEpilogue(MachineFunction &MF, MachineBasicBlock &MBB) const argument 1665 getFrameIndexReference(const MachineFunction &MF, int FI, unsigned &FrameReg) const argument 1676 getNonLocalFrameIndexReference( const MachineFunction &MF, int FI) const argument 1681 getFPOffset(const MachineFunction &MF, int64_t ObjectOffset) argument 1694 getStackOffset(const MachineFunction &MF, int64_t ObjectOffset) argument 1699 getSEHFrameIndexOffset(const MachineFunction &MF, int FI) const argument 1709 resolveFrameIndexReference( const MachineFunction &MF, int FI, unsigned &FrameReg, bool PreferFP, bool ForSimm) const argument 1720 resolveFrameOffsetReference( const MachineFunction &MF, int64_t ObjectOffset, bool isFixed, bool isSVE, unsigned &FrameReg, bool PreferFP, bool ForSimm) const argument 1855 getPrologueDeath(MachineFunction &MF, unsigned Reg) argument 1865 produceCompactUnwindFrame(MachineFunction &MF) argument 1941 computeCalleeSaveRegisterPairs( MachineFunction &MF, const std::vector<CalleeSavedInfo> &CSI, const TargetRegisterInfo *TRI, SmallVectorImpl<RegPairInfo> &RegPairs, bool &NeedShadowCallStackProlog, bool NeedsFrameRecord) argument 2089 MachineFunction &MF = *MBB.getParent(); local 2231 MachineFunction &MF = *MBB.getParent(); local 2346 determineCalleeSaves(MachineFunction &MF, BitVector &SavedRegs, RegScavenger *RS) const argument 2613 processFunctionBeforeFrameFinalized( MachineFunction &MF, RegScavenger *RS) const argument 2666 getFrameIndexReferencePreferSP( const MachineFunction &MF, int FI, unsigned &FrameReg, bool IgnoreSPUpdates) const argument [all...] |
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
H A D | NVPTXPeephole.cpp | 57 bool runOnMachineFunction(MachineFunction &MF) override; 75 auto &MF = *MBB.getParent(); local 82 const auto &MRI = MF.getRegInfo(); 106 auto &MF = *MBB.getParent(); local 107 const auto &MRI = MF.getRegInfo(); 108 const TargetInstrInfo *TII = MF.getSubtarget().getInstrInfo(); 112 BuildMI(MF, Root.getDebugLoc(), TII->get(Prev.getOpcode()), 126 bool NVPTXPeephole::runOnMachineFunction(MachineFunction &MF) { argument 127 if (skipFunction(MF.getFunction())) 132 for (auto &MBB : MF) { [all...] |