Lines Matching refs:MachineInstr
57 int calcInstrDist(const MachineInstr &First, const MachineInstr &Last);
63 bool chooseBestLEA(const SmallVectorImpl<MachineInstr *> &List,
64 const MachineInstr &MI, MachineInstr *&LEA,
72 bool isLEA(const MachineInstr &MI);
78 bool isSimilarMemOp(const MachineInstr &MI1, unsigned N1,
79 const MachineInstr &MI2, unsigned N2,
84 SmallVectorImpl<MachineInstr *> &List);
87 bool removeRedundantAddrCalc(const SmallVectorImpl<MachineInstr *> &List);
100 int OptimizeLEAPass::calcInstrDist(const MachineInstr &First, in calcInstrDist()
101 const MachineInstr &Last) { in calcInstrDist()
121 bool OptimizeLEAPass::chooseBestLEA(const SmallVectorImpl<MachineInstr *> &List, in chooseBestLEA()
122 const MachineInstr &MI, MachineInstr *&LEA, in chooseBestLEA()
186 bool OptimizeLEAPass::isLEA(const MachineInstr &MI) { in isLEA()
194 bool OptimizeLEAPass::isSimilarMemOp(const MachineInstr &MI1, unsigned N1, in isSimilarMemOp()
195 const MachineInstr &MI2, unsigned N2, in isSimilarMemOp()
221 SmallVectorImpl<MachineInstr *> &List) { in findLEAs()
224 List.push_back(const_cast<MachineInstr *>(&MI)); in findLEAs()
232 const SmallVectorImpl<MachineInstr *> &List) { in removeRedundantAddrCalc()
240 MachineInstr &MI = *I++; in removeRedundantAddrCalc()
258 MachineInstr *DefMI; in removeRedundantAddrCalc()
312 SmallVector<MachineInstr *, 16> LEAs; in runOnMachineFunction()