Lines Matching refs:getMRI
129 assert(Res.getLLTTy(*getMRI()).isPointer() && "expected ptr dst type"); in buildDynStackAlloc()
131 Res.addDefToMIB(*getMRI(), MIB); in buildDynStackAlloc()
139 assert(Res.getLLTTy(*getMRI()).isPointer() && "invalid operand type"); in buildFrameIndex()
141 Res.addDefToMIB(*getMRI(), MIB); in buildFrameIndex()
148 assert(Res.getLLTTy(*getMRI()).isPointer() && "invalid operand type"); in buildGlobalValue()
149 assert(Res.getLLTTy(*getMRI()).getAddressSpace() == in buildGlobalValue()
154 Res.addDefToMIB(*getMRI(), MIB); in buildGlobalValue()
185 assert(Res.getLLTTy(*getMRI()).getScalarType().isPointer() && in buildPtrAdd()
186 Res.getLLTTy(*getMRI()) == Op0.getLLTTy(*getMRI()) && "type mismatch"); in buildPtrAdd()
187 assert(Op1.getLLTTy(*getMRI()).getScalarType().isScalar() && "invalid offset type"); in buildPtrAdd()
203 Res = getMRI()->createGenericVirtualRegister(getMRI()->getType(Op0)); in materializePtrAdd()
211 LLT PtrTy = Res.getLLTTy(*getMRI()); in buildMaskLowPtrBits()
213 Register MaskReg = getMRI()->createGenericVirtualRegister(MaskTy); in buildMaskLowPtrBits()
223 assert(getMRI()->getType(Tgt).isPointer() && "invalid branch destination"); in buildBrIndirect()
230 assert(getMRI()->getType(TablePtr).isPointer() && in buildBrJT()
257 LLT Ty = Res.getLLTTy(*getMRI()); in buildConstant()
264 .addDef(getMRI()->createGenericVirtualRegister(EltTy)) in buildConstant()
271 Res.addDefToMIB(*getMRI(), Const); in buildConstant()
279 Res.getLLTTy(*getMRI()).getScalarSizeInBits()); in buildConstant()
286 LLT Ty = Res.getLLTTy(*getMRI()); in buildFConstant()
297 .addDef(getMRI()->createGenericVirtualRegister(EltTy)) in buildFConstant()
305 Res.addDefToMIB(*getMRI(), Const); in buildFConstant()
318 LLT DstTy = Res.getLLTTy(*getMRI()); in buildFConstant()
334 assert(Tst.getLLTTy(*getMRI()).isScalar() && "invalid operand type"); in buildBrCond()
350 LLT Ty = Dst.getLLTTy(*getMRI()); in buildLoad()
360 assert(Res.getLLTTy(*getMRI()).isValid() && "invalid operand type"); in buildLoadInstr()
361 assert(Addr.getLLTTy(*getMRI()).isPointer() && "invalid operand type"); in buildLoadInstr()
364 Res.addDefToMIB(*getMRI(), MIB); in buildLoadInstr()
373 LLT LoadTy = Dst.getLLTTy(*getMRI()); in buildLoadFromOffset()
380 LLT PtrTy = BasePtr.getLLTTy(*getMRI()); in buildLoadFromOffset()
390 assert(Val.getLLTTy(*getMRI()).isValid() && "invalid operand type"); in buildStore()
391 assert(Addr.getLLTTy(*getMRI()).isPointer() && "invalid operand type"); in buildStore()
408 LLT Ty = Val.getLLTTy(*getMRI()); in buildStore()
444 unsigned ExtOp = getBoolExtOp(getMRI()->getType(Op.getReg()).isVector(), IsFP); in buildBoolExt()
454 assert(Res.getLLTTy(*getMRI()).isScalar() || in buildExtOrTrunc()
455 Res.getLLTTy(*getMRI()).isVector()); in buildExtOrTrunc()
456 assert(Res.getLLTTy(*getMRI()).isScalar() == in buildExtOrTrunc()
457 Op.getLLTTy(*getMRI()).isScalar()); in buildExtOrTrunc()
460 if (Res.getLLTTy(*getMRI()).getSizeInBits() > in buildExtOrTrunc()
461 Op.getLLTTy(*getMRI()).getSizeInBits()) in buildExtOrTrunc()
463 else if (Res.getLLTTy(*getMRI()).getSizeInBits() < in buildExtOrTrunc()
464 Op.getLLTTy(*getMRI()).getSizeInBits()) in buildExtOrTrunc()
467 assert(Res.getLLTTy(*getMRI()) == Op.getLLTTy(*getMRI())); in buildExtOrTrunc()
490 LLT ResTy = Res.getLLTTy(*getMRI()); in buildZExtInReg()
498 LLT SrcTy = Src.getLLTTy(*getMRI()); in buildCast()
499 LLT DstTy = Dst.getLLTTy(*getMRI()); in buildCast()
519 LLT SrcTy = Src.getLLTTy(*getMRI()); in buildExtract()
520 LLT DstTy = Dst.getLLTTy(*getMRI()); in buildExtract()
535 Dst.addDefToMIB(*getMRI(), Extract); in buildExtract()
549 assert(getMRI()->getType(Res).isValid() && "invalid operand type"); in buildSequence()
551 assert(getMRI()->getType(Op).isValid() && "invalid operand type"); in buildSequence()
554 LLT ResTy = getMRI()->getType(Res); in buildSequence()
555 LLT OpTy = getMRI()->getType(Ops[0]); in buildSequence()
559 if (getMRI()->getType(Ops[i]) != OpTy || Indices[i] != i * OpSize) { in buildSequence()
570 Register ResIn = getMRI()->createGenericVirtualRegister(ResTy); in buildSequence()
576 : getMRI()->createGenericVirtualRegister(ResTy); in buildSequence()
615 unsigned NumReg = Op.getLLTTy(*getMRI()).getSizeInBits() / Res.getSizeInBits(); in buildUnmerge()
618 TmpVec.push_back(getMRI()->createGenericVirtualRegister(Res)); in buildUnmerge()
643 SmallVector<SrcOp, 8> TmpVec(Res.getLLTTy(*getMRI()).getNumElements(), Src); in buildSplatVector()
659 LLT DstTy = Res.getLLTTy(*getMRI()); in buildShuffleSplat()
660 assert(Src.getLLTTy(*getMRI()) == DstTy.getElementType() && in buildShuffleSplat()
673 LLT DstTy = Res.getLLTTy(*getMRI()); in buildShuffleVector()
674 LLT Src1Ty = Src1.getLLTTy(*getMRI()); in buildShuffleVector()
675 LLT Src2Ty = Src2.getLLTTy(*getMRI()); in buildShuffleVector()
700 assert(Index + Op.getLLTTy(*getMRI()).getSizeInBits() <= in buildInsert()
701 Res.getLLTTy(*getMRI()).getSizeInBits() && in buildInsert()
704 if (Res.getLLTTy(*getMRI()).getSizeInBits() == in buildInsert()
705 Op.getLLTTy(*getMRI()).getSizeInBits()) { in buildInsert()
731 Result.addDefToMIB(*getMRI(), MIB); in buildIntrinsic()
788 LLT OldValResTy = getMRI()->getType(OldValRes); in buildAtomicCmpXchgWithSuccess()
789 LLT SuccessResTy = getMRI()->getType(SuccessRes); in buildAtomicCmpXchgWithSuccess()
790 LLT AddrTy = getMRI()->getType(Addr); in buildAtomicCmpXchgWithSuccess()
791 LLT CmpValTy = getMRI()->getType(CmpVal); in buildAtomicCmpXchgWithSuccess()
792 LLT NewValTy = getMRI()->getType(NewVal); in buildAtomicCmpXchgWithSuccess()
816 LLT OldValResTy = getMRI()->getType(OldValRes); in buildAtomicCmpXchg()
817 LLT AddrTy = getMRI()->getType(Addr); in buildAtomicCmpXchg()
818 LLT CmpValTy = getMRI()->getType(CmpVal); in buildAtomicCmpXchg()
819 LLT NewValTy = getMRI()->getType(NewVal); in buildAtomicCmpXchg()
842 LLT OldValResTy = OldValRes.getLLTTy(*getMRI()); in buildAtomicRMW()
843 LLT AddrTy = Addr.getLLTTy(*getMRI()); in buildAtomicRMW()
844 LLT ValTy = Val.getLLTTy(*getMRI()); in buildAtomicRMW()
853 OldValRes.addDefToMIB(*getMRI(), MIB); in buildAtomicRMW()
953 assert(getMRI()->getType(Res).isPointer() && "invalid res type"); in buildBlockAddress()
1005 DstOps[0].getLLTTy(*getMRI()), SrcOps[0].getLLTTy(*getMRI()), in buildInstr()
1006 SrcOps[1].getLLTTy(*getMRI()), SrcOps[2].getLLTTy(*getMRI())); in buildInstr()
1014 validateUnaryOp(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1015 SrcOps[0].getLLTTy(*getMRI())); in buildInstr()
1038 validateBinaryOp(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1039 SrcOps[0].getLLTTy(*getMRI()), in buildInstr()
1040 SrcOps[1].getLLTTy(*getMRI())); in buildInstr()
1050 validateShiftOp(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1051 SrcOps[0].getLLTTy(*getMRI()), in buildInstr()
1052 SrcOps[1].getLLTTy(*getMRI())); in buildInstr()
1060 validateTruncExt(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1061 SrcOps[0].getLLTTy(*getMRI()), true); in buildInstr()
1067 validateTruncExt(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1068 SrcOps[0].getLLTTy(*getMRI()), false); in buildInstr()
1074 assert(DstOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1075 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() && "invalid bitcast"); in buildInstr()
1096 assert(SrcOps[1].getLLTTy(*getMRI()) == SrcOps[2].getLLTTy(*getMRI()) && in buildInstr()
1099 LLT Op0Ty = SrcOps[1].getLLTTy(*getMRI()); in buildInstr()
1100 LLT DstTy = DstOps[0].getLLTTy(*getMRI()); in buildInstr()
1114 return Op.getLLTTy(*getMRI()) == in buildInstr()
1115 DstOps[0].getLLTTy(*getMRI()); in buildInstr()
1119 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1120 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
1129 return Op.getLLTTy(*getMRI()) == in buildInstr()
1130 SrcOps[0].getLLTTy(*getMRI()); in buildInstr()
1134 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1135 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
1139 if (DstOps[0].getLLTTy(*getMRI()).isVector()) { in buildInstr()
1140 if (SrcOps[0].getLLTTy(*getMRI()).isVector()) in buildInstr()
1149 assert(SrcOps[0].getLLTTy(*getMRI()).isVector() && "Invalid operand type"); in buildInstr()
1150 assert((DstOps[0].getLLTTy(*getMRI()).isScalar() || in buildInstr()
1151 DstOps[0].getLLTTy(*getMRI()).isPointer()) && in buildInstr()
1153 assert(SrcOps[1].getLLTTy(*getMRI()).isScalar() && "Invalid operand type"); in buildInstr()
1154 assert(SrcOps[0].getLLTTy(*getMRI()).getElementType() == in buildInstr()
1155 DstOps[0].getLLTTy(*getMRI()) && in buildInstr()
1162 assert(DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
1163 SrcOps[0].getLLTTy(*getMRI()).isVector() && "Invalid operand type"); in buildInstr()
1164 assert(DstOps[0].getLLTTy(*getMRI()).getElementType() == in buildInstr()
1165 SrcOps[1].getLLTTy(*getMRI()) && in buildInstr()
1167 assert(SrcOps[2].getLLTTy(*getMRI()).isScalar() && "Invalid index"); in buildInstr()
1168 assert(DstOps[0].getLLTTy(*getMRI()).getNumElements() == in buildInstr()
1169 SrcOps[0].getLLTTy(*getMRI()).getNumElements() && in buildInstr()
1177 assert(DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
1181 return Op.getLLTTy(*getMRI()) == in buildInstr()
1182 SrcOps[0].getLLTTy(*getMRI()); in buildInstr()
1186 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1187 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
1195 assert(DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
1199 return Op.getLLTTy(*getMRI()) == in buildInstr()
1200 SrcOps[0].getLLTTy(*getMRI()); in buildInstr()
1203 if (SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1204 DstOps[0].getLLTTy(*getMRI()).getElementType().getSizeInBits()) in buildInstr()
1214 return (Op.getLLTTy(*getMRI()).isVector() && in buildInstr()
1215 Op.getLLTTy(*getMRI()) == in buildInstr()
1216 SrcOps[0].getLLTTy(*getMRI())); in buildInstr()
1220 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1221 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
1228 assert(DstOps[0].getLLTTy(*getMRI()).isScalar() && "Invalid operand"); in buildInstr()
1229 assert((DstOps[0].getLLTTy(*getMRI()) == SrcOps[0].getLLTTy(*getMRI())) && in buildInstr()
1230 (DstOps[0].getLLTTy(*getMRI()) == SrcOps[1].getLLTTy(*getMRI())) && in buildInstr()
1232 assert(DstOps[1].getLLTTy(*getMRI()).isScalar() && "Invalid operand"); in buildInstr()
1233 assert(DstOps[1].getLLTTy(*getMRI()) == SrcOps[2].getLLTTy(*getMRI()) && in buildInstr()
1241 Op.addDefToMIB(*getMRI(), MIB); in buildInstr()