Lines Matching refs:Instr

76                                             MachineInstr &Instr,
574 static ARMCC::CondCodes GetCondCode(MachineInstr &Instr) { in GetCondCode() argument
575 assert(IsVCMP(Instr.getOpcode()) && "Inst must be a VCMP"); in GetCondCode()
576 return ARMCC::CondCodes(Instr.getOperand(3).getImm()); in GetCondCode()
607 static bool IsWritingToVCCR(MachineInstr &Instr) { in IsWritingToVCCR() argument
608 if (Instr.getNumOperands() == 0) in IsWritingToVCCR()
610 MachineOperand &Dst = Instr.getOperand(0); in IsWritingToVCCR()
616 MachineRegisterInfo &RegInfo = Instr.getMF()->getRegInfo(); in IsWritingToVCCR()
630 MachineBasicBlock &MBB, MachineInstr &Instr, MachineOperand &User, in ReplaceRegisterUseWithVPNOT() argument
635 BuildMI(MBB, &Instr, Instr.getDebugLoc(), TII->get(ARM::MVE_VPNOT)) in ReplaceRegisterUseWithVPNOT()
856 for (MachineInstr &Instr : MBB.instrs()) { in ReplaceVCMPsByVPNOTs()
858 if (MachineOperand *MO = Instr.findRegisterUseOperand( in ReplaceVCMPsByVPNOTs()
867 if (getVPTInstrPredicate(Instr) != ARMVCC::None) in ReplaceVCMPsByVPNOTs()
871 if (!IsVCMP(Instr.getOpcode())) { in ReplaceVCMPsByVPNOTs()
873 if (IsWritingToVCCR(Instr)) in ReplaceVCMPsByVPNOTs()
878 if (!PrevVCMP || !IsVPNOTEquivalent(Instr, *PrevVCMP)) { in ReplaceVCMPsByVPNOTs()
879 PrevVCMP = &Instr; in ReplaceVCMPsByVPNOTs()
889 BuildMI(MBB, &Instr, Instr.getDebugLoc(), TII->get(ARM::MVE_VPNOT)) in ReplaceVCMPsByVPNOTs()
890 .add(Instr.getOperand(0)) in ReplaceVCMPsByVPNOTs()
895 Instr.dump()); in ReplaceVCMPsByVPNOTs()
904 DeadInstructions.push_back(&Instr); in ReplaceVCMPsByVPNOTs()
926 for (MachineInstr &Instr : MBB.instrs()) { in ReplaceConstByVPNOTs()
928 int PIdx = llvm::findFirstVPTPredOperandIdx(Instr); in ReplaceConstByVPNOTs()
931 Register VPR = Instr.getOperand(PIdx + 1).getReg(); in ReplaceConstByVPNOTs()
961 Instr.getOperand(PIdx + 1).setReg(LastVPTReg); in ReplaceConstByVPNOTs()
967 LLVM_DEBUG(dbgs() << "Reusing predicate: in " << Instr); in ReplaceConstByVPNOTs()
972 auto VPNot = BuildMI(MBB, &Instr, Instr.getDebugLoc(), in ReplaceConstByVPNOTs()
978 Instr.getOperand(PIdx + 1).setReg(NewVPR); in ReplaceConstByVPNOTs()
985 << Instr); in ReplaceConstByVPNOTs()