Lines Matching refs:MRI

68                                   const MachineRegisterInfo &MRI) {  in opMustUseVOP3Encoding()  argument
71 MRI.getType(MI.getOperand(0).getReg()).getScalarSizeInBits() == 64; in opMustUseVOP3Encoding()
113 static bool allUsesHaveSourceMods(MachineInstr &MI, MachineRegisterInfo &MRI, in allUsesHaveSourceMods() argument
122 for (const MachineInstr &Use : MRI.use_nodbg_instructions(Dst)) { in allUsesHaveSourceMods()
126 if (!opMustUseVOP3Encoding(Use, MRI)) { in allUsesHaveSourceMods()
152 MachineRegisterInfo &MRI) { in isConstantCostlierToNegate() argument
154 if (mi_match(Reg, MRI, m_GFCstOrSplat(FPValReg))) { in isConstantCostlierToNegate()
187 MatchInfo = MRI.getVRegDef(Src); in matchFoldableFneg()
193 if (MRI.hasOneNonDBGUse(Src)) { in matchFoldableFneg()
194 if (allUsesHaveSourceMods(MI, MRI, 0)) in matchFoldableFneg()
198 (allUsesHaveSourceMods(MI, MRI) || in matchFoldableFneg()
199 !allUsesHaveSourceMods(*MatchInfo, MRI))) in matchFoldableFneg()
212 MatchInfo->getOperand(2).getReg(), MRI); in matchFoldableFneg()
268 if (!mi_match(Reg, MRI, m_GFNeg(m_Reg(Reg)))) in applyFoldableFneg()
269 Reg = Builder.buildFNeg(MRI.getType(Reg), Reg).getReg(0); in applyFoldableFneg()
270 replaceRegOpWith(MRI, Op, Reg); in applyFoldableFneg()
277 if (mi_match(XReg, MRI, m_GFNeg(m_Reg(XReg)))) in applyFoldableFneg()
278 replaceRegOpWith(MRI, X, XReg); in applyFoldableFneg()
279 else if (mi_match(YReg, MRI, m_GFNeg(m_Reg(YReg)))) in applyFoldableFneg()
280 replaceRegOpWith(MRI, Y, YReg); in applyFoldableFneg()
282 YReg = Builder.buildFNeg(MRI.getType(YReg), YReg).getReg(0); in applyFoldableFneg()
283 replaceRegOpWith(MRI, Y, YReg); in applyFoldableFneg()
361 if (MRI.hasOneNonDBGUse(MatchInfoDst)) { in applyFoldableFneg()
363 replaceRegWith(MRI, Dst, MatchInfoDst); in applyFoldableFneg()
368 LLT Type = MRI.getType(Dst); in applyFoldableFneg()
369 Register NegatedMatchInfo = MRI.createGenericVirtualRegister(Type); in applyFoldableFneg()
370 replaceRegOpWith(MRI, MatchInfo->getOperand(0), NegatedMatchInfo); in applyFoldableFneg()
373 replaceRegWith(MRI, Dst, NegatedMatchInfo); in applyFoldableFneg()