Lines Matching refs:getMRI

164   assert(getMRI()->getType(Res).isPointer() && "invalid operand type");  in buildFrameIndex()
172 assert(getMRI()->getType(Res).isPointer() && "invalid operand type"); in buildGlobalValue()
173 assert(getMRI()->getType(Res).getAddressSpace() == in buildGlobalValue()
190 assert(getMRI()->getType(Res).isPointer() && in buildGEP()
191 getMRI()->getType(Res) == getMRI()->getType(Op0) && "type mismatch"); in buildGEP()
192 assert(getMRI()->getType(Op1).isScalar() && "invalid offset type"); in buildGEP()
211 Res = getMRI()->createGenericVirtualRegister(getMRI()->getType(Op0)); in materializeGEP()
212 unsigned TmpReg = getMRI()->createGenericVirtualRegister(ValueTy); in materializeGEP()
220 assert(getMRI()->getType(Res).isPointer() && in buildPtrMask()
221 getMRI()->getType(Res) == getMRI()->getType(Op0) && "type mismatch"); in buildPtrMask()
234 assert(getMRI()->getType(Tgt).isPointer() && "invalid branch destination"); in buildBrIndirect()
245 LLT Ty = Res.getLLTTy(*getMRI()); in buildConstant()
255 Res.addDefToMIB(*getMRI(), MIB); in buildConstant()
263 Res.getLLTTy(*getMRI()).getSizeInBits()); in buildConstant()
270 assert(Res.getLLTTy(*getMRI()).isScalar() && "invalid operand type"); in buildFConstant()
273 Res.addDefToMIB(*getMRI(), MIB); in buildFConstant()
280 LLT DstTy = Res.getLLTTy(*getMRI()); in buildFConstant()
289 assert(getMRI()->getType(Tst).isScalar() && "invalid operand type"); in buildBrCond()
303 assert(getMRI()->getType(Res).isValid() && "invalid operand type"); in buildLoadInstr()
304 assert(getMRI()->getType(Addr).isPointer() && "invalid operand type"); in buildLoadInstr()
314 assert(getMRI()->getType(Val).isValid() && "invalid operand type"); in buildStore()
315 assert(getMRI()->getType(Addr).isPointer() && "invalid operand type"); in buildStore()
353 assert(Res.getLLTTy(*getMRI()).isScalar() || in buildExtOrTrunc()
354 Res.getLLTTy(*getMRI()).isVector()); in buildExtOrTrunc()
355 assert(Res.getLLTTy(*getMRI()).isScalar() == in buildExtOrTrunc()
356 Op.getLLTTy(*getMRI()).isScalar()); in buildExtOrTrunc()
359 if (Res.getLLTTy(*getMRI()).getSizeInBits() > in buildExtOrTrunc()
360 Op.getLLTTy(*getMRI()).getSizeInBits()) in buildExtOrTrunc()
362 else if (Res.getLLTTy(*getMRI()).getSizeInBits() < in buildExtOrTrunc()
363 Op.getLLTTy(*getMRI()).getSizeInBits()) in buildExtOrTrunc()
366 assert(Res.getLLTTy(*getMRI()) == Op.getLLTTy(*getMRI())); in buildExtOrTrunc()
388 LLT SrcTy = Src.getLLTTy(*getMRI()); in buildCast()
389 LLT DstTy = Dst.getLLTTy(*getMRI()); in buildCast()
409 assert(getMRI()->getType(Src).isValid() && "invalid operand type"); in buildExtract()
410 assert(getMRI()->getType(Res).isValid() && "invalid operand type"); in buildExtract()
411 assert(Index + getMRI()->getType(Res).getSizeInBits() <= in buildExtract()
412 getMRI()->getType(Src).getSizeInBits() && in buildExtract()
416 if (getMRI()->getType(Res).getSizeInBits() == in buildExtract()
417 getMRI()->getType(Src).getSizeInBits()) { in buildExtract()
436 assert(getMRI()->getType(Res).isValid() && "invalid operand type"); in buildSequence()
438 assert(getMRI()->getType(Op).isValid() && "invalid operand type"); in buildSequence()
441 LLT ResTy = getMRI()->getType(Res); in buildSequence()
442 LLT OpTy = getMRI()->getType(Ops[0]); in buildSequence()
446 if (getMRI()->getType(Ops[i]) != OpTy || Indices[i] != i * OpSize) { in buildSequence()
457 unsigned ResIn = getMRI()->createGenericVirtualRegister(ResTy); in buildSequence()
463 : getMRI()->createGenericVirtualRegister(ResTy); in buildSequence()
530 assert(Index + getMRI()->getType(Op).getSizeInBits() <= in buildInsert()
531 getMRI()->getType(Res).getSizeInBits() && in buildInsert()
534 if (getMRI()->getType(Res).getSizeInBits() == in buildInsert()
535 getMRI()->getType(Op).getSizeInBits()) { in buildInsert()
607 LLT OldValResTy = getMRI()->getType(OldValRes); in buildAtomicCmpXchgWithSuccess()
608 LLT SuccessResTy = getMRI()->getType(SuccessRes); in buildAtomicCmpXchgWithSuccess()
609 LLT AddrTy = getMRI()->getType(Addr); in buildAtomicCmpXchgWithSuccess()
610 LLT CmpValTy = getMRI()->getType(CmpVal); in buildAtomicCmpXchgWithSuccess()
611 LLT NewValTy = getMRI()->getType(NewVal); in buildAtomicCmpXchgWithSuccess()
635 LLT OldValResTy = getMRI()->getType(OldValRes); in buildAtomicCmpXchg()
636 LLT AddrTy = getMRI()->getType(Addr); in buildAtomicCmpXchg()
637 LLT CmpValTy = getMRI()->getType(CmpVal); in buildAtomicCmpXchg()
638 LLT NewValTy = getMRI()->getType(NewVal); in buildAtomicCmpXchg()
661 LLT OldValResTy = getMRI()->getType(OldValRes); in buildAtomicRMW()
662 LLT AddrTy = getMRI()->getType(Addr); in buildAtomicRMW()
663 LLT ValTy = getMRI()->getType(Val); in buildAtomicRMW()
748 assert(getMRI()->getType(Res).isPointer() && "invalid res type"); in buildBlockAddress()
800 DstOps[0].getLLTTy(*getMRI()), SrcOps[0].getLLTTy(*getMRI()), in buildInstr()
801 SrcOps[1].getLLTTy(*getMRI()), SrcOps[2].getLLTTy(*getMRI())); in buildInstr()
820 validateBinaryOp(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
821 SrcOps[0].getLLTTy(*getMRI()), in buildInstr()
822 SrcOps[1].getLLTTy(*getMRI())); in buildInstr()
829 validateTruncExt(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
830 SrcOps[0].getLLTTy(*getMRI()), true); in buildInstr()
836 validateTruncExt(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
837 SrcOps[0].getLLTTy(*getMRI()), false); in buildInstr()
843 assert(DstOps[0].getLLTTy(*getMRI()) == LLT() || in buildInstr()
844 SrcOps[0].getLLTTy(*getMRI()) == LLT() || in buildInstr()
845 DstOps[0].getLLTTy(*getMRI()) == SrcOps[0].getLLTTy(*getMRI())); in buildInstr()
860 assert(SrcOps[1].getLLTTy(*getMRI()) == SrcOps[2].getLLTTy(*getMRI()) && in buildInstr()
863 LLT Op0Ty = SrcOps[1].getLLTTy(*getMRI()); in buildInstr()
864 LLT DstTy = DstOps[0].getLLTTy(*getMRI()); in buildInstr()
878 return Op.getLLTTy(*getMRI()) == in buildInstr()
879 DstOps[0].getLLTTy(*getMRI()); in buildInstr()
882 assert(DstOps.size() * DstOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
883 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
892 return Op.getLLTTy(*getMRI()) == in buildInstr()
893 SrcOps[0].getLLTTy(*getMRI()); in buildInstr()
896 assert(SrcOps.size() * SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
897 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
901 if (DstOps[0].getLLTTy(*getMRI()).isVector()) in buildInstr()
908 assert(SrcOps[0].getLLTTy(*getMRI()).isVector() && "Invalid operand type"); in buildInstr()
909 assert((DstOps[0].getLLTTy(*getMRI()).isScalar() || in buildInstr()
910 DstOps[0].getLLTTy(*getMRI()).isPointer()) && in buildInstr()
912 assert(SrcOps[1].getLLTTy(*getMRI()).isScalar() && "Invalid operand type"); in buildInstr()
913 assert(SrcOps[0].getLLTTy(*getMRI()).getElementType() == in buildInstr()
914 DstOps[0].getLLTTy(*getMRI()) && in buildInstr()
921 assert(DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
922 SrcOps[0].getLLTTy(*getMRI()).isVector() && "Invalid operand type"); in buildInstr()
923 assert(DstOps[0].getLLTTy(*getMRI()).getElementType() == in buildInstr()
924 SrcOps[1].getLLTTy(*getMRI()) && in buildInstr()
926 assert(SrcOps[2].getLLTTy(*getMRI()).isScalar() && "Invalid index"); in buildInstr()
927 assert(DstOps[0].getLLTTy(*getMRI()).getNumElements() == in buildInstr()
928 SrcOps[0].getLLTTy(*getMRI()).getNumElements() && in buildInstr()
936 assert(DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
940 return Op.getLLTTy(*getMRI()) == in buildInstr()
941 SrcOps[0].getLLTTy(*getMRI()); in buildInstr()
944 assert(SrcOps.size() * SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
945 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
953 assert(DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
957 return Op.getLLTTy(*getMRI()) == in buildInstr()
958 SrcOps[0].getLLTTy(*getMRI()); in buildInstr()
961 if (SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
962 DstOps[0].getLLTTy(*getMRI()).getElementType().getSizeInBits()) in buildInstr()
972 return (Op.getLLTTy(*getMRI()).isVector() && in buildInstr()
973 Op.getLLTTy(*getMRI()) == in buildInstr()
974 SrcOps[0].getLLTTy(*getMRI())); in buildInstr()
977 assert(SrcOps.size() * SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
978 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
985 assert(DstOps[0].getLLTTy(*getMRI()).isScalar() && "Invalid operand"); in buildInstr()
986 assert((DstOps[0].getLLTTy(*getMRI()) == SrcOps[0].getLLTTy(*getMRI())) && in buildInstr()
987 (DstOps[0].getLLTTy(*getMRI()) == SrcOps[1].getLLTTy(*getMRI())) && in buildInstr()
989 assert(DstOps[1].getLLTTy(*getMRI()).isScalar() && "Invalid operand"); in buildInstr()
990 assert(DstOps[1].getLLTTy(*getMRI()) == SrcOps[2].getLLTTy(*getMRI()) && in buildInstr()
998 Op.addDefToMIB(*getMRI(), MIB); in buildInstr()