Lines Matching refs:State

169   void Finish(MachineBasicBlock &MBB, MOVEMState &State) {  in Finish()  argument
170 auto MI = State.begin(); in Finish()
171 auto End = State.end(); in Finish()
176 State = MOVEMState(); in Finish()
188 if (State.isLoad()) { in Finish()
190 .addImm(State.getMask()) in Finish()
191 .addImm(State.getFinalOffset()) in Finish()
192 .addReg(State.getBase()); in Finish()
195 .addImm(State.getFinalOffset()) in Finish()
196 .addReg(State.getBase()) in Finish()
197 .addImm(State.getMask()); in Finish()
200 State = MOVEMState(); in Finish()
204 MOVEMState &State, unsigned Mask, int Offset, unsigned Reg, in ProcessMI() argument
206 if (State.hasBase()) { in ProcessMI()
209 MOVEMState Temp = State; in ProcessMI()
210 if (State.isStore() == IsStore && State.getBase() == Reg && in ProcessMI()
211 State.update(Offset, Mask)) { in ProcessMI()
216 State = Temp; in ProcessMI()
217 State.setEnd(MI); in ProcessMI()
218 Finish(MBB, State); in ProcessMI()
219 return ProcessMI(MBB, MI, State, Mask, Offset, Reg, IsStore); in ProcessMI()
225 State.setBegin(MI); in ProcessMI()
226 State.setBase(Reg); in ProcessMI()
227 State.update(Offset, Mask); in ProcessMI()
228 IsStore ? State.setStore() : State.setLoad(); in ProcessMI()
243 MOVEMState State; in runOnMachineFunction() local
256 if (State.hasBase()) { in runOnMachineFunction()
257 State.setEnd(MI); in runOnMachineFunction()
258 Finish(MBB, State); in runOnMachineFunction()
266 Modified |= ProcessMI(MBB, MI, State, Mask, Offset, Reg, true); in runOnMachineFunction()
272 Modified |= ProcessMI(MBB, MI, State, Mask, Offset, Reg, true); in runOnMachineFunction()
278 Modified |= ProcessMI(MBB, MI, State, Mask, Offset, Reg, false); in runOnMachineFunction()
284 Modified |= ProcessMI(MBB, MI, State, Mask, Offset, Reg, false); in runOnMachineFunction()
290 if (State.hasBase()) { in runOnMachineFunction()
291 State.setEnd(MI); in runOnMachineFunction()
292 Finish(MBB, State); in runOnMachineFunction()