Lines Matching refs:UseMI
186 const auto *UseMI = MO.getParent(); in tryChangeVGPRtoSGPRinCopy() local
187 if (UseMI == &MI) in tryChangeVGPRtoSGPRinCopy()
189 if (MO.isDef() || UseMI->getParent() != MI.getParent() || in tryChangeVGPRtoSGPRinCopy()
190 UseMI->getOpcode() <= TargetOpcode::GENERIC_OP_END) in tryChangeVGPRtoSGPRinCopy()
193 unsigned OpIdx = UseMI->getOperandNo(&MO); in tryChangeVGPRtoSGPRinCopy()
194 if (OpIdx >= UseMI->getDesc().getNumOperands() || in tryChangeVGPRtoSGPRinCopy()
195 !TII->isOperandLegal(*UseMI, OpIdx, &Src)) in tryChangeVGPRtoSGPRinCopy()
788 const MachineInstr *UseMI = Use.getParent(); in processPHINode() local
789 AllAGPRUses &= (UseMI->isCopy() && in processPHINode()
790 TRI->isAGPR(*MRI, UseMI->getOperand(0).getReg())) || in processPHINode()
792 if (UseMI->isCopy() || UseMI->isRegSequence()) { in processPHINode()
793 if (UseMI->isCopy() && in processPHINode()
794 UseMI->getOperand(0).getReg().isPhysical() && in processPHINode()
795 !TRI->isSGPRReg(*MRI, UseMI->getOperand(0).getReg())) { in processPHINode()
798 if (Visited.insert(UseMI).second) in processPHINode()
799 worklist.insert(UseMI); in processPHINode()
804 if (UseMI->isPHI()) { in processPHINode()
813 TII->getOpRegClass(*UseMI, UseMI->getOperandNo(&Use)); in processPHINode()