Lines Matching refs:getMRI

137   assert(Res.getLLTTy(*getMRI()).isPointer() && "expected ptr dst type");  in buildDynStackAlloc()
139 Res.addDefToMIB(*getMRI(), MIB); in buildDynStackAlloc()
147 assert(Res.getLLTTy(*getMRI()).isPointer() && "invalid operand type"); in buildFrameIndex()
149 Res.addDefToMIB(*getMRI(), MIB); in buildFrameIndex()
156 assert(Res.getLLTTy(*getMRI()).isPointer() && "invalid operand type"); in buildGlobalValue()
157 assert(Res.getLLTTy(*getMRI()).getAddressSpace() == in buildGlobalValue()
162 Res.addDefToMIB(*getMRI(), MIB); in buildGlobalValue()
169 assert(Res.getLLTTy(*getMRI()).isPointer() && "invalid operand type"); in buildConstantPool()
171 Res.addDefToMIB(*getMRI(), MIB); in buildConstantPool()
202 assert(Res.getLLTTy(*getMRI()).getScalarType().isPointer() && in buildPtrAdd()
203 Res.getLLTTy(*getMRI()) == Op0.getLLTTy(*getMRI()) && "type mismatch"); in buildPtrAdd()
204 assert(Op1.getLLTTy(*getMRI()).getScalarType().isScalar() && "invalid offset type"); in buildPtrAdd()
220 Res = getMRI()->createGenericVirtualRegister(getMRI()->getType(Op0)); in materializePtrAdd()
228 LLT PtrTy = Res.getLLTTy(*getMRI()); in buildMaskLowPtrBits()
230 Register MaskReg = getMRI()->createGenericVirtualRegister(MaskTy); in buildMaskLowPtrBits()
238 LLT ResTy = Res.getLLTTy(*getMRI()); in buildPadVectorWithUndefElements()
239 LLT Op0Ty = Op0.getLLTTy(*getMRI()); in buildPadVectorWithUndefElements()
269 LLT ResTy = Res.getLLTTy(*getMRI()); in buildDeleteTrailingVectorElements()
270 LLT Op0Ty = Op0.getLLTTy(*getMRI()); in buildDeleteTrailingVectorElements()
290 assert(getMRI()->getType(Tgt).isPointer() && "invalid branch destination"); in buildBrIndirect()
297 assert(getMRI()->getType(TablePtr).isPointer() && in buildBrJT()
312 LLT Ty = Res.getLLTTy(*getMRI()); in buildConstant()
322 .addDef(getMRI()->createGenericVirtualRegister(EltTy)) in buildConstant()
329 Res.addDefToMIB(*getMRI(), Const); in buildConstant()
337 Res.getLLTTy(*getMRI()).getScalarSizeInBits()); in buildConstant()
344 LLT Ty = Res.getLLTTy(*getMRI()); in buildFConstant()
358 .addDef(getMRI()->createGenericVirtualRegister(EltTy)) in buildFConstant()
366 Res.addDefToMIB(*getMRI(), Const); in buildFConstant()
379 LLT DstTy = Res.getLLTTy(*getMRI()); in buildFConstant()
395 assert(Tst.getLLTTy(*getMRI()).isScalar() && "invalid operand type"); in buildBrCond()
411 LLT Ty = Dst.getLLTTy(*getMRI()); in buildLoad()
421 assert(Res.getLLTTy(*getMRI()).isValid() && "invalid operand type"); in buildLoadInstr()
422 assert(Addr.getLLTTy(*getMRI()).isPointer() && "invalid operand type"); in buildLoadInstr()
425 Res.addDefToMIB(*getMRI(), MIB); in buildLoadInstr()
434 LLT LoadTy = Dst.getLLTTy(*getMRI()); in buildLoadFromOffset()
441 LLT PtrTy = BasePtr.getLLTTy(*getMRI()); in buildLoadFromOffset()
451 assert(Val.getLLTTy(*getMRI()).isValid() && "invalid operand type"); in buildStore()
452 assert(Addr.getLLTTy(*getMRI()).isPointer() && "invalid operand type"); in buildStore()
469 LLT Ty = Val.getLLTTy(*getMRI()); in buildStore()
505 unsigned ExtOp = getBoolExtOp(getMRI()->getType(Op.getReg()).isVector(), IsFP); in buildBoolExt()
532 assert(Res.getLLTTy(*getMRI()).isScalar() || in buildExtOrTrunc()
533 Res.getLLTTy(*getMRI()).isVector()); in buildExtOrTrunc()
534 assert(Res.getLLTTy(*getMRI()).isScalar() == in buildExtOrTrunc()
535 Op.getLLTTy(*getMRI()).isScalar()); in buildExtOrTrunc()
538 if (Res.getLLTTy(*getMRI()).getSizeInBits() > in buildExtOrTrunc()
539 Op.getLLTTy(*getMRI()).getSizeInBits()) in buildExtOrTrunc()
541 else if (Res.getLLTTy(*getMRI()).getSizeInBits() < in buildExtOrTrunc()
542 Op.getLLTTy(*getMRI()).getSizeInBits()) in buildExtOrTrunc()
545 assert(Res.getLLTTy(*getMRI()) == Op.getLLTTy(*getMRI())); in buildExtOrTrunc()
568 LLT ResTy = Res.getLLTTy(*getMRI()); in buildZExtInReg()
576 LLT SrcTy = Src.getLLTTy(*getMRI()); in buildCast()
577 LLT DstTy = Dst.getLLTTy(*getMRI()); in buildCast()
597 LLT SrcTy = Src.getLLTTy(*getMRI()); in buildExtract()
598 LLT DstTy = Dst.getLLTTy(*getMRI()); in buildExtract()
613 Dst.addDefToMIB(*getMRI(), Extract); in buildExtract()
653 if (DstOp.getLLTTy(*getMRI()).isVector()) { in getOpcodeForMerge()
654 if (SrcOps[0].getLLTTy(*getMRI()).isVector()) in getOpcodeForMerge()
674 unsigned NumReg = Op.getLLTTy(*getMRI()).getSizeInBits() / Res.getSizeInBits(); in buildUnmerge()
703 LLT EltTy = Res.getLLTTy(*getMRI()).getElementType(); in buildBuildVectorConstant()
711 SmallVector<SrcOp, 8> TmpVec(Res.getLLTTy(*getMRI()).getNumElements(), Src); in buildSplatVector()
722 if (TmpVec[0].getLLTTy(*getMRI()).getSizeInBits() == in buildBuildVectorTrunc()
723 Res.getLLTTy(*getMRI()).getElementType().getSizeInBits()) in buildBuildVectorTrunc()
730 LLT DstTy = Res.getLLTTy(*getMRI()); in buildShuffleSplat()
731 assert(Src.getLLTTy(*getMRI()) == DstTy.getElementType() && in buildShuffleSplat()
744 LLT DstTy = Res.getLLTTy(*getMRI()); in buildShuffleVector()
745 LLT Src1Ty = Src1.getLLTTy(*getMRI()); in buildShuffleVector()
746 LLT Src2Ty = Src2.getLLTTy(*getMRI()); in buildShuffleVector()
772 assert(Index + Op.getLLTTy(*getMRI()).getSizeInBits() <= in buildInsert()
773 Res.getLLTTy(*getMRI()).getSizeInBits() && in buildInsert()
776 if (Res.getLLTTy(*getMRI()).getSizeInBits() == in buildInsert()
777 Op.getLLTTy(*getMRI()).getSizeInBits()) { in buildInsert()
820 Result.addDefToMIB(*getMRI(), MIB); in buildIntrinsic()
884 LLT OldValResTy = getMRI()->getType(OldValRes); in buildAtomicCmpXchgWithSuccess()
885 LLT SuccessResTy = getMRI()->getType(SuccessRes); in buildAtomicCmpXchgWithSuccess()
886 LLT AddrTy = getMRI()->getType(Addr); in buildAtomicCmpXchgWithSuccess()
887 LLT CmpValTy = getMRI()->getType(CmpVal); in buildAtomicCmpXchgWithSuccess()
888 LLT NewValTy = getMRI()->getType(NewVal); in buildAtomicCmpXchgWithSuccess()
912 LLT OldValResTy = getMRI()->getType(OldValRes); in buildAtomicCmpXchg()
913 LLT AddrTy = getMRI()->getType(Addr); in buildAtomicCmpXchg()
914 LLT CmpValTy = getMRI()->getType(CmpVal); in buildAtomicCmpXchg()
915 LLT NewValTy = getMRI()->getType(NewVal); in buildAtomicCmpXchg()
938 LLT OldValResTy = OldValRes.getLLTTy(*getMRI()); in buildAtomicRMW()
939 LLT AddrTy = Addr.getLLTTy(*getMRI()); in buildAtomicRMW()
940 LLT ValTy = Val.getLLTTy(*getMRI()); in buildAtomicRMW()
949 OldValRes.addDefToMIB(*getMRI(), MIB); in buildAtomicRMW()
1075 assert(getMRI()->getType(Res).isPointer() && "invalid res type"); in buildBlockAddress()
1127 DstOps[0].getLLTTy(*getMRI()), SrcOps[0].getLLTTy(*getMRI()), in buildInstr()
1128 SrcOps[1].getLLTTy(*getMRI()), SrcOps[2].getLLTTy(*getMRI())); in buildInstr()
1136 validateUnaryOp(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1137 SrcOps[0].getLLTTy(*getMRI())); in buildInstr()
1160 validateBinaryOp(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1161 SrcOps[0].getLLTTy(*getMRI()), in buildInstr()
1162 SrcOps[1].getLLTTy(*getMRI())); in buildInstr()
1172 validateShiftOp(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1173 SrcOps[0].getLLTTy(*getMRI()), in buildInstr()
1174 SrcOps[1].getLLTTy(*getMRI())); in buildInstr()
1182 validateTruncExt(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1183 SrcOps[0].getLLTTy(*getMRI()), true); in buildInstr()
1189 validateTruncExt(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1190 SrcOps[0].getLLTTy(*getMRI()), false); in buildInstr()
1196 assert(DstOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1197 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() && "invalid bitcast"); in buildInstr()
1218 assert(SrcOps[1].getLLTTy(*getMRI()) == SrcOps[2].getLLTTy(*getMRI()) && in buildInstr()
1221 LLT Op0Ty = SrcOps[1].getLLTTy(*getMRI()); in buildInstr()
1222 LLT DstTy = DstOps[0].getLLTTy(*getMRI()); in buildInstr()
1236 return Op.getLLTTy(*getMRI()) == in buildInstr()
1237 DstOps[0].getLLTTy(*getMRI()); in buildInstr()
1241 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1242 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
1251 return Op.getLLTTy(*getMRI()) == in buildInstr()
1252 SrcOps[0].getLLTTy(*getMRI()); in buildInstr()
1256 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1257 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
1259 assert(!DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
1266 assert(SrcOps[0].getLLTTy(*getMRI()).isVector() && "Invalid operand type"); in buildInstr()
1267 assert((DstOps[0].getLLTTy(*getMRI()).isScalar() || in buildInstr()
1268 DstOps[0].getLLTTy(*getMRI()).isPointer()) && in buildInstr()
1270 assert(SrcOps[1].getLLTTy(*getMRI()).isScalar() && "Invalid operand type"); in buildInstr()
1271 assert(SrcOps[0].getLLTTy(*getMRI()).getElementType() == in buildInstr()
1272 DstOps[0].getLLTTy(*getMRI()) && in buildInstr()
1279 assert(DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
1280 SrcOps[0].getLLTTy(*getMRI()).isVector() && "Invalid operand type"); in buildInstr()
1281 assert(DstOps[0].getLLTTy(*getMRI()).getElementType() == in buildInstr()
1282 SrcOps[1].getLLTTy(*getMRI()) && in buildInstr()
1284 assert(SrcOps[2].getLLTTy(*getMRI()).isScalar() && "Invalid index"); in buildInstr()
1285 assert(DstOps[0].getLLTTy(*getMRI()).getNumElements() == in buildInstr()
1286 SrcOps[0].getLLTTy(*getMRI()).getNumElements() && in buildInstr()
1294 assert(DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
1298 return Op.getLLTTy(*getMRI()) == in buildInstr()
1299 SrcOps[0].getLLTTy(*getMRI()); in buildInstr()
1303 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1304 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
1312 assert(DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
1316 return Op.getLLTTy(*getMRI()) == in buildInstr()
1317 SrcOps[0].getLLTTy(*getMRI()); in buildInstr()
1328 return (Op.getLLTTy(*getMRI()).isVector() && in buildInstr()
1329 Op.getLLTTy(*getMRI()) == in buildInstr()
1330 SrcOps[0].getLLTTy(*getMRI())); in buildInstr()
1334 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1335 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
1342 assert(DstOps[0].getLLTTy(*getMRI()).isScalar() && "Invalid operand"); in buildInstr()
1343 assert((DstOps[0].getLLTTy(*getMRI()) == SrcOps[0].getLLTTy(*getMRI())) && in buildInstr()
1344 (DstOps[0].getLLTTy(*getMRI()) == SrcOps[1].getLLTTy(*getMRI())) && in buildInstr()
1346 assert(DstOps[1].getLLTTy(*getMRI()).isScalar() && "Invalid operand"); in buildInstr()
1347 assert(DstOps[1].getLLTTy(*getMRI()) == SrcOps[2].getLLTTy(*getMRI()) && in buildInstr()
1355 Op.addDefToMIB(*getMRI(), MIB); in buildInstr()