Lines Matching refs:getMRI
127 assert(Res.getLLTTy(*getMRI()).isPointer() && "expected ptr dst type"); in buildDynStackAlloc()
129 Res.addDefToMIB(*getMRI(), MIB); in buildDynStackAlloc()
137 assert(Res.getLLTTy(*getMRI()).isPointer() && "invalid operand type"); in buildFrameIndex()
139 Res.addDefToMIB(*getMRI(), MIB); in buildFrameIndex()
146 assert(Res.getLLTTy(*getMRI()).isPointer() && "invalid operand type"); in buildGlobalValue()
147 assert(Res.getLLTTy(*getMRI()).getAddressSpace() == in buildGlobalValue()
152 Res.addDefToMIB(*getMRI(), MIB); in buildGlobalValue()
183 assert(Res.getLLTTy(*getMRI()).getScalarType().isPointer() && in buildPtrAdd()
184 Res.getLLTTy(*getMRI()) == Op0.getLLTTy(*getMRI()) && "type mismatch"); in buildPtrAdd()
185 assert(Op1.getLLTTy(*getMRI()).getScalarType().isScalar() && "invalid offset type"); in buildPtrAdd()
201 Res = getMRI()->createGenericVirtualRegister(getMRI()->getType(Op0)); in materializePtrAdd()
209 LLT PtrTy = Res.getLLTTy(*getMRI()); in buildMaskLowPtrBits()
211 Register MaskReg = getMRI()->createGenericVirtualRegister(MaskTy); in buildMaskLowPtrBits()
219 LLT ResTy = Res.getLLTTy(*getMRI()); in buildPadVectorWithUndefElements()
220 LLT Op0Ty = Op0.getLLTTy(*getMRI()); in buildPadVectorWithUndefElements()
242 LLT ResTy = Res.getLLTTy(*getMRI()); in buildDeleteTrailingVectorElements()
243 LLT Op0Ty = Op0.getLLTTy(*getMRI()); in buildDeleteTrailingVectorElements()
263 assert(getMRI()->getType(Tgt).isPointer() && "invalid branch destination"); in buildBrIndirect()
270 assert(getMRI()->getType(TablePtr).isPointer() && in buildBrJT()
285 LLT Ty = Res.getLLTTy(*getMRI()); in buildConstant()
292 .addDef(getMRI()->createGenericVirtualRegister(EltTy)) in buildConstant()
299 Res.addDefToMIB(*getMRI(), Const); in buildConstant()
307 Res.getLLTTy(*getMRI()).getScalarSizeInBits()); in buildConstant()
314 LLT Ty = Res.getLLTTy(*getMRI()); in buildFConstant()
325 .addDef(getMRI()->createGenericVirtualRegister(EltTy)) in buildFConstant()
333 Res.addDefToMIB(*getMRI(), Const); in buildFConstant()
346 LLT DstTy = Res.getLLTTy(*getMRI()); in buildFConstant()
362 assert(Tst.getLLTTy(*getMRI()).isScalar() && "invalid operand type"); in buildBrCond()
378 LLT Ty = Dst.getLLTTy(*getMRI()); in buildLoad()
388 assert(Res.getLLTTy(*getMRI()).isValid() && "invalid operand type"); in buildLoadInstr()
389 assert(Addr.getLLTTy(*getMRI()).isPointer() && "invalid operand type"); in buildLoadInstr()
392 Res.addDefToMIB(*getMRI(), MIB); in buildLoadInstr()
401 LLT LoadTy = Dst.getLLTTy(*getMRI()); in buildLoadFromOffset()
408 LLT PtrTy = BasePtr.getLLTTy(*getMRI()); in buildLoadFromOffset()
418 assert(Val.getLLTTy(*getMRI()).isValid() && "invalid operand type"); in buildStore()
419 assert(Addr.getLLTTy(*getMRI()).isPointer() && "invalid operand type"); in buildStore()
436 LLT Ty = Val.getLLTTy(*getMRI()); in buildStore()
472 unsigned ExtOp = getBoolExtOp(getMRI()->getType(Op.getReg()).isVector(), IsFP); in buildBoolExt()
499 assert(Res.getLLTTy(*getMRI()).isScalar() || in buildExtOrTrunc()
500 Res.getLLTTy(*getMRI()).isVector()); in buildExtOrTrunc()
501 assert(Res.getLLTTy(*getMRI()).isScalar() == in buildExtOrTrunc()
502 Op.getLLTTy(*getMRI()).isScalar()); in buildExtOrTrunc()
505 if (Res.getLLTTy(*getMRI()).getSizeInBits() > in buildExtOrTrunc()
506 Op.getLLTTy(*getMRI()).getSizeInBits()) in buildExtOrTrunc()
508 else if (Res.getLLTTy(*getMRI()).getSizeInBits() < in buildExtOrTrunc()
509 Op.getLLTTy(*getMRI()).getSizeInBits()) in buildExtOrTrunc()
512 assert(Res.getLLTTy(*getMRI()) == Op.getLLTTy(*getMRI())); in buildExtOrTrunc()
535 LLT ResTy = Res.getLLTTy(*getMRI()); in buildZExtInReg()
543 LLT SrcTy = Src.getLLTTy(*getMRI()); in buildCast()
544 LLT DstTy = Dst.getLLTTy(*getMRI()); in buildCast()
564 LLT SrcTy = Src.getLLTTy(*getMRI()); in buildExtract()
565 LLT DstTy = Dst.getLLTTy(*getMRI()); in buildExtract()
580 Dst.addDefToMIB(*getMRI(), Extract); in buildExtract()
619 unsigned NumReg = Op.getLLTTy(*getMRI()).getSizeInBits() / Res.getSizeInBits(); in buildUnmerge()
648 LLT EltTy = Res.getLLTTy(*getMRI()).getElementType(); in buildBuildVectorConstant()
656 SmallVector<SrcOp, 8> TmpVec(Res.getLLTTy(*getMRI()).getNumElements(), Src); in buildSplatVector()
672 LLT DstTy = Res.getLLTTy(*getMRI()); in buildShuffleSplat()
673 assert(Src.getLLTTy(*getMRI()) == DstTy.getElementType() && in buildShuffleSplat()
686 LLT DstTy = Res.getLLTTy(*getMRI()); in buildShuffleVector()
687 LLT Src1Ty = Src1.getLLTTy(*getMRI()); in buildShuffleVector()
688 LLT Src2Ty = Src2.getLLTTy(*getMRI()); in buildShuffleVector()
714 assert(Index + Op.getLLTTy(*getMRI()).getSizeInBits() <= in buildInsert()
715 Res.getLLTTy(*getMRI()).getSizeInBits() && in buildInsert()
718 if (Res.getLLTTy(*getMRI()).getSizeInBits() == in buildInsert()
719 Op.getLLTTy(*getMRI()).getSizeInBits()) { in buildInsert()
745 Result.addDefToMIB(*getMRI(), MIB); in buildIntrinsic()
802 LLT OldValResTy = getMRI()->getType(OldValRes); in buildAtomicCmpXchgWithSuccess()
803 LLT SuccessResTy = getMRI()->getType(SuccessRes); in buildAtomicCmpXchgWithSuccess()
804 LLT AddrTy = getMRI()->getType(Addr); in buildAtomicCmpXchgWithSuccess()
805 LLT CmpValTy = getMRI()->getType(CmpVal); in buildAtomicCmpXchgWithSuccess()
806 LLT NewValTy = getMRI()->getType(NewVal); in buildAtomicCmpXchgWithSuccess()
830 LLT OldValResTy = getMRI()->getType(OldValRes); in buildAtomicCmpXchg()
831 LLT AddrTy = getMRI()->getType(Addr); in buildAtomicCmpXchg()
832 LLT CmpValTy = getMRI()->getType(CmpVal); in buildAtomicCmpXchg()
833 LLT NewValTy = getMRI()->getType(NewVal); in buildAtomicCmpXchg()
856 LLT OldValResTy = OldValRes.getLLTTy(*getMRI()); in buildAtomicRMW()
857 LLT AddrTy = Addr.getLLTTy(*getMRI()); in buildAtomicRMW()
858 LLT ValTy = Val.getLLTTy(*getMRI()); in buildAtomicRMW()
867 OldValRes.addDefToMIB(*getMRI(), MIB); in buildAtomicRMW()
981 assert(getMRI()->getType(Res).isPointer() && "invalid res type"); in buildBlockAddress()
1033 DstOps[0].getLLTTy(*getMRI()), SrcOps[0].getLLTTy(*getMRI()), in buildInstr()
1034 SrcOps[1].getLLTTy(*getMRI()), SrcOps[2].getLLTTy(*getMRI())); in buildInstr()
1042 validateUnaryOp(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1043 SrcOps[0].getLLTTy(*getMRI())); in buildInstr()
1066 validateBinaryOp(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1067 SrcOps[0].getLLTTy(*getMRI()), in buildInstr()
1068 SrcOps[1].getLLTTy(*getMRI())); in buildInstr()
1078 validateShiftOp(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1079 SrcOps[0].getLLTTy(*getMRI()), in buildInstr()
1080 SrcOps[1].getLLTTy(*getMRI())); in buildInstr()
1088 validateTruncExt(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1089 SrcOps[0].getLLTTy(*getMRI()), true); in buildInstr()
1095 validateTruncExt(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1096 SrcOps[0].getLLTTy(*getMRI()), false); in buildInstr()
1102 assert(DstOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1103 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() && "invalid bitcast"); in buildInstr()
1124 assert(SrcOps[1].getLLTTy(*getMRI()) == SrcOps[2].getLLTTy(*getMRI()) && in buildInstr()
1127 LLT Op0Ty = SrcOps[1].getLLTTy(*getMRI()); in buildInstr()
1128 LLT DstTy = DstOps[0].getLLTTy(*getMRI()); in buildInstr()
1142 return Op.getLLTTy(*getMRI()) == in buildInstr()
1143 DstOps[0].getLLTTy(*getMRI()); in buildInstr()
1147 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1148 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
1157 return Op.getLLTTy(*getMRI()) == in buildInstr()
1158 SrcOps[0].getLLTTy(*getMRI()); in buildInstr()
1162 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1163 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
1167 if (DstOps[0].getLLTTy(*getMRI()).isVector()) { in buildInstr()
1168 if (SrcOps[0].getLLTTy(*getMRI()).isVector()) in buildInstr()
1177 assert(SrcOps[0].getLLTTy(*getMRI()).isVector() && "Invalid operand type"); in buildInstr()
1178 assert((DstOps[0].getLLTTy(*getMRI()).isScalar() || in buildInstr()
1179 DstOps[0].getLLTTy(*getMRI()).isPointer()) && in buildInstr()
1181 assert(SrcOps[1].getLLTTy(*getMRI()).isScalar() && "Invalid operand type"); in buildInstr()
1182 assert(SrcOps[0].getLLTTy(*getMRI()).getElementType() == in buildInstr()
1183 DstOps[0].getLLTTy(*getMRI()) && in buildInstr()
1190 assert(DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
1191 SrcOps[0].getLLTTy(*getMRI()).isVector() && "Invalid operand type"); in buildInstr()
1192 assert(DstOps[0].getLLTTy(*getMRI()).getElementType() == in buildInstr()
1193 SrcOps[1].getLLTTy(*getMRI()) && in buildInstr()
1195 assert(SrcOps[2].getLLTTy(*getMRI()).isScalar() && "Invalid index"); in buildInstr()
1196 assert(DstOps[0].getLLTTy(*getMRI()).getNumElements() == in buildInstr()
1197 SrcOps[0].getLLTTy(*getMRI()).getNumElements() && in buildInstr()
1205 assert(DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
1209 return Op.getLLTTy(*getMRI()) == in buildInstr()
1210 SrcOps[0].getLLTTy(*getMRI()); in buildInstr()
1214 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1215 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
1223 assert(DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
1227 return Op.getLLTTy(*getMRI()) == in buildInstr()
1228 SrcOps[0].getLLTTy(*getMRI()); in buildInstr()
1231 if (SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1232 DstOps[0].getLLTTy(*getMRI()).getElementType().getSizeInBits()) in buildInstr()
1242 return (Op.getLLTTy(*getMRI()).isVector() && in buildInstr()
1243 Op.getLLTTy(*getMRI()) == in buildInstr()
1244 SrcOps[0].getLLTTy(*getMRI())); in buildInstr()
1248 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1249 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
1256 assert(DstOps[0].getLLTTy(*getMRI()).isScalar() && "Invalid operand"); in buildInstr()
1257 assert((DstOps[0].getLLTTy(*getMRI()) == SrcOps[0].getLLTTy(*getMRI())) && in buildInstr()
1258 (DstOps[0].getLLTTy(*getMRI()) == SrcOps[1].getLLTTy(*getMRI())) && in buildInstr()
1260 assert(DstOps[1].getLLTTy(*getMRI()).isScalar() && "Invalid operand"); in buildInstr()
1261 assert(DstOps[1].getLLTTy(*getMRI()) == SrcOps[2].getLLTTy(*getMRI()) && in buildInstr()
1269 Op.addDefToMIB(*getMRI(), MIB); in buildInstr()