Lines Matching refs:UseMI
194 const auto *UseMI = MO.getParent(); in tryChangeVGPRtoSGPRinCopy() local
195 if (UseMI == &MI) in tryChangeVGPRtoSGPRinCopy()
197 if (MO.isDef() || UseMI->getParent() != MI.getParent() || in tryChangeVGPRtoSGPRinCopy()
198 UseMI->getOpcode() <= TargetOpcode::GENERIC_OP_END) in tryChangeVGPRtoSGPRinCopy()
201 unsigned OpIdx = UseMI->getOperandNo(&MO); in tryChangeVGPRtoSGPRinCopy()
202 if (OpIdx >= UseMI->getDesc().getNumOperands() || in tryChangeVGPRtoSGPRinCopy()
203 !TII->isOperandLegal(*UseMI, OpIdx, &Src)) in tryChangeVGPRtoSGPRinCopy()
802 const MachineInstr *UseMI = Use.getParent(); in processPHINode() local
803 AllAGPRUses &= (UseMI->isCopy() && in processPHINode()
804 TRI->isAGPR(*MRI, UseMI->getOperand(0).getReg())) || in processPHINode()
806 if (UseMI->isCopy() || UseMI->isRegSequence()) { in processPHINode()
807 if (UseMI->isCopy() && in processPHINode()
808 UseMI->getOperand(0).getReg().isPhysical() && in processPHINode()
809 !TRI->isSGPRReg(*MRI, UseMI->getOperand(0).getReg())) { in processPHINode()
812 if (Visited.insert(UseMI).second) in processPHINode()
813 worklist.insert(UseMI); in processPHINode()
818 if (UseMI->isPHI()) { in processPHINode()
827 TII->getOpRegClass(*UseMI, UseMI->getOperandNo(&Use)); in processPHINode()