Lines Matching refs:MF

150   bool runOnMachineFunction(MachineFunction &MF) override;
164 MachineFunction &MF, in updateBranches() argument
166 const TargetInstrInfo *TII = MF.getSubtarget().getInstrInfo(); in updateBranches()
168 for (auto &MBB : MF) { in updateBranches()
198 const MachineFunction &MF, const StringMap<StringRef> FuncAliasMap, in getBBClusterInfoForFunction() argument
202 auto FuncName = MF.getName(); in getBBClusterInfoForFunction()
218 V.resize(MF.getNumBlockIDs()); in getBBClusterInfoForFunction()
221 if (bbClusterInfo.MBBNumber >= MF.getNumBlockIDs()) in getBBClusterInfoForFunction()
238 assignSections(MachineFunction &MF, in assignSections() argument
240 assert(MF.hasBBSections() && "BB Sections is not set for function."); in assignSections()
246 for (auto &MBB : MF) { in assignSections()
251 if (MF.getTarget().getBBSectionsType() == llvm::BasicBlockSection::All || in assignSections()
279 for (auto &MBB : MF) in assignSections()
285 MachineFunction &MF, MachineBasicBlockComparator MBBCmp) { in sortBasicBlocksAndUpdateBranches() argument
287 MF.getNumBlockIDs()); in sortBasicBlocksAndUpdateBranches()
288 for (auto &MBB : MF) in sortBasicBlocksAndUpdateBranches()
291 MF.sort(MBBCmp); in sortBasicBlocksAndUpdateBranches()
294 MF.assignBeginEndSections(); in sortBasicBlocksAndUpdateBranches()
299 updateBranches(MF, PreLayoutFallThroughs); in sortBasicBlocksAndUpdateBranches()
306 static bool avoidZeroOffsetLandingPad(MachineFunction &MF) { in avoidZeroOffsetLandingPad() argument
307 for (auto &MBB : MF) { in avoidZeroOffsetLandingPad()
312 MCInst Nop = MF.getSubtarget().getInstrInfo()->getNop(); in avoidZeroOffsetLandingPad()
314 MF.getSubtarget().getInstrInfo()->get(Nop.getOpcode())); in avoidZeroOffsetLandingPad()
326 static bool hasInstrProfHashMismatch(MachineFunction &MF) { in hasInstrProfHashMismatch() argument
331 auto *Existing = MF.getFunction().getMetadata(LLVMContext::MD_annotation); in hasInstrProfHashMismatch()
342 bool BasicBlockSections::runOnMachineFunction(MachineFunction &MF) { in runOnMachineFunction() argument
343 auto BBSectionsType = MF.getTarget().getBBSectionsType(); in runOnMachineFunction()
354 hasInstrProfHashMismatch(MF)) in runOnMachineFunction()
361 MF.RenumberBlocks(); in runOnMachineFunction()
364 MF.setBBSectionsType(BBSectionsType); in runOnMachineFunction()
370 !getBBClusterInfoForFunction(MF, FuncAliasMap, ProgramBBClusterInfo, in runOnMachineFunction()
373 MF.setBBSectionsType(BBSectionsType); in runOnMachineFunction()
374 assignSections(MF, FuncBBClusterInfo); in runOnMachineFunction()
378 auto EntryBBSectionID = MF.front().getSectionID(); in runOnMachineFunction()
413 sortBasicBlocksAndUpdateBranches(MF, Comparator); in runOnMachineFunction()
414 avoidZeroOffsetLandingPad(MF); in runOnMachineFunction()