reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
468 unsigned Opcode = MI.getOpcode(); 469 const MCInstrDesc &Desc = MI.getDesc(); 473 MachineFunction &MF = *MI.getParent()->getParent(); 482 Offset += MI.getOperand(FrameRegIdx+1).getImm(); 485 if (Offset == 0 && getInstrPredicate(MI, PredReg) == ARMCC::AL && 486 !MI.definesRegister(ARM::CPSR)) { 488 MI.setDesc(TII.get(ARM::tMOVr)); 489 MI.getOperand(FrameRegIdx).ChangeToRegister(FrameReg, false); 491 do MI.RemoveOperand(FrameRegIdx+1); 492 while (MI.getNumOperands() > FrameRegIdx+1); 493 MachineInstrBuilder MIB(*MI.getParent()->getParent(), &MI); 493 MachineInstrBuilder MIB(*MI.getParent()->getParent(), &MI); 503 MI.setDesc(TII.get(ARM::t2SUBri)); 505 MI.setDesc(TII.get(ARM::t2ADDri)); 510 MI.getOperand(FrameRegIdx).ChangeToRegister(FrameReg, false); 511 MI.getOperand(FrameRegIdx+1).ChangeToImmediate(Offset); 514 MI.addOperand(MachineOperand::CreateReg(0, false)); 520 (!HasCCOut || MI.getOperand(MI.getNumOperands()-1).getReg() == 0)) { 520 (!HasCCOut || MI.getOperand(MI.getNumOperands()-1).getReg() == 0)) { 522 MI.setDesc(TII.get(NewOpc)); 523 MI.getOperand(FrameRegIdx).ChangeToRegister(FrameReg, false); 524 MI.getOperand(FrameRegIdx+1).ChangeToImmediate(Offset); 527 MI.RemoveOperand(MI.getNumOperands()-1); 527 MI.RemoveOperand(MI.getNumOperands()-1); 542 MI.getOperand(FrameRegIdx+1).ChangeToImmediate(ThisImmVal); 545 MI.addOperand(MachineOperand::CreateReg(0, false)); 555 Register OffsetReg = MI.getOperand(FrameRegIdx + 1).getReg(); 557 MI.getOperand(FrameRegIdx).ChangeToRegister(FrameReg, false); 561 MI.RemoveOperand(FrameRegIdx+1); 562 MI.getOperand(FrameRegIdx+1).ChangeToImmediate(0); 573 Offset += MI.getOperand(FrameRegIdx+1).getImm(); 585 const MachineOperand &OffOp = MI.getOperand(FrameRegIdx+1); 599 const MachineOperand &OffOp = MI.getOperand(FrameRegIdx+1); 614 Offset += MI.getOperand(FrameRegIdx + 1).getImm(); 626 Offset += MI.getOperand(FrameRegIdx + 1).getImm() * 4; 632 Offset += MI.getOperand(FrameRegIdx + 1).getImm() * 4; 641 MI.setDesc(TII.get(NewOpc)); 643 MachineOperand &ImmOp = MI.getOperand(FrameRegIdx+1); 662 MI.getOperand(FrameRegIdx).ChangeToRegister(FrameReg, false); 685 MI.setDesc(TII.get(positiveOffsetOpcode(NewOpc)));