• Home
  • Raw
  • Download

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()
245 LLT Ty = Res.getLLTTy(*getMRI()); in buildConstant()
252 .addDef(getMRI()->createGenericVirtualRegister(EltTy)) in buildConstant()
259 Res.addDefToMIB(*getMRI(), Const); in buildConstant()
267 Res.getLLTTy(*getMRI()).getScalarSizeInBits()); in buildConstant()
274 LLT Ty = Res.getLLTTy(*getMRI()); in buildFConstant()
285 .addDef(getMRI()->createGenericVirtualRegister(EltTy)) in buildFConstant()
293 Res.addDefToMIB(*getMRI(), Const); in buildFConstant()
306 LLT DstTy = Res.getLLTTy(*getMRI()); in buildFConstant()
322 assert(Tst.getLLTTy(*getMRI()).isScalar() && "invalid operand type"); in buildBrCond()
339 TypeSize::Fixed(Dst.getLLTTy(*getMRI()).getSizeInBytes())); in buildLoad()
349 assert(Res.getLLTTy(*getMRI()).isValid() && "invalid operand type"); in buildLoadInstr()
350 assert(Addr.getLLTTy(*getMRI()).isPointer() && "invalid operand type"); in buildLoadInstr()
353 Res.addDefToMIB(*getMRI(), MIB); in buildLoadInstr()
362 LLT LoadTy = Dst.getLLTTy(*getMRI()); in buildLoadFromOffset()
369 LLT PtrTy = BasePtr.getLLTTy(*getMRI()); in buildLoadFromOffset()
379 assert(Val.getLLTTy(*getMRI()).isValid() && "invalid operand type"); in buildStore()
380 assert(Addr.getLLTTy(*getMRI()).isPointer() && "invalid operand type"); in buildStore()
398 TypeSize::Fixed(Val.getLLTTy(*getMRI()).getSizeInBytes())); in buildStore()
434 unsigned ExtOp = getBoolExtOp(getMRI()->getType(Op.getReg()).isVector(), IsFP); in buildBoolExt()
444 assert(Res.getLLTTy(*getMRI()).isScalar() || in buildExtOrTrunc()
445 Res.getLLTTy(*getMRI()).isVector()); in buildExtOrTrunc()
446 assert(Res.getLLTTy(*getMRI()).isScalar() == in buildExtOrTrunc()
447 Op.getLLTTy(*getMRI()).isScalar()); in buildExtOrTrunc()
450 if (Res.getLLTTy(*getMRI()).getSizeInBits() > in buildExtOrTrunc()
451 Op.getLLTTy(*getMRI()).getSizeInBits()) in buildExtOrTrunc()
453 else if (Res.getLLTTy(*getMRI()).getSizeInBits() < in buildExtOrTrunc()
454 Op.getLLTTy(*getMRI()).getSizeInBits()) in buildExtOrTrunc()
457 assert(Res.getLLTTy(*getMRI()) == Op.getLLTTy(*getMRI())); in buildExtOrTrunc()
479 LLT SrcTy = Src.getLLTTy(*getMRI()); in buildCast()
480 LLT DstTy = Dst.getLLTTy(*getMRI()); in buildCast()
500 LLT SrcTy = Src.getLLTTy(*getMRI()); in buildExtract()
501 LLT DstTy = Dst.getLLTTy(*getMRI()); in buildExtract()
516 Dst.addDefToMIB(*getMRI(), Extract); in buildExtract()
530 assert(getMRI()->getType(Res).isValid() && "invalid operand type"); in buildSequence()
532 assert(getMRI()->getType(Op).isValid() && "invalid operand type"); in buildSequence()
535 LLT ResTy = getMRI()->getType(Res); in buildSequence()
536 LLT OpTy = getMRI()->getType(Ops[0]); in buildSequence()
540 if (getMRI()->getType(Ops[i]) != OpTy || Indices[i] != i * OpSize) { in buildSequence()
551 Register ResIn = getMRI()->createGenericVirtualRegister(ResTy); in buildSequence()
557 : getMRI()->createGenericVirtualRegister(ResTy); in buildSequence()
596 unsigned NumReg = Op.getLLTTy(*getMRI()).getSizeInBits() / Res.getSizeInBits(); in buildUnmerge()
599 TmpVec.push_back(getMRI()->createGenericVirtualRegister(Res)); in buildUnmerge()
624 SmallVector<SrcOp, 8> TmpVec(Res.getLLTTy(*getMRI()).getNumElements(), Src); in buildSplatVector()
640 LLT DstTy = Res.getLLTTy(*getMRI()); in buildShuffleSplat()
641 assert(Src.getLLTTy(*getMRI()) == DstTy.getElementType() && in buildShuffleSplat()
654 LLT DstTy = Res.getLLTTy(*getMRI()); in buildShuffleVector()
655 LLT Src1Ty = Src1.getLLTTy(*getMRI()); in buildShuffleVector()
656 LLT Src2Ty = Src2.getLLTTy(*getMRI()); in buildShuffleVector()
680 assert(Index + Op.getLLTTy(*getMRI()).getSizeInBits() <= in buildInsert()
681 Res.getLLTTy(*getMRI()).getSizeInBits() && in buildInsert()
684 if (Res.getLLTTy(*getMRI()).getSizeInBits() == in buildInsert()
685 Op.getLLTTy(*getMRI()).getSizeInBits()) { in buildInsert()
711 Result.addDefToMIB(*getMRI(), MIB); in buildIntrinsic()
768 LLT OldValResTy = getMRI()->getType(OldValRes); in buildAtomicCmpXchgWithSuccess()
769 LLT SuccessResTy = getMRI()->getType(SuccessRes); in buildAtomicCmpXchgWithSuccess()
770 LLT AddrTy = getMRI()->getType(Addr); in buildAtomicCmpXchgWithSuccess()
771 LLT CmpValTy = getMRI()->getType(CmpVal); in buildAtomicCmpXchgWithSuccess()
772 LLT NewValTy = getMRI()->getType(NewVal); in buildAtomicCmpXchgWithSuccess()
796 LLT OldValResTy = getMRI()->getType(OldValRes); in buildAtomicCmpXchg()
797 LLT AddrTy = getMRI()->getType(Addr); in buildAtomicCmpXchg()
798 LLT CmpValTy = getMRI()->getType(CmpVal); in buildAtomicCmpXchg()
799 LLT NewValTy = getMRI()->getType(NewVal); in buildAtomicCmpXchg()
822 LLT OldValResTy = OldValRes.getLLTTy(*getMRI()); in buildAtomicRMW()
823 LLT AddrTy = Addr.getLLTTy(*getMRI()); in buildAtomicRMW()
824 LLT ValTy = Val.getLLTTy(*getMRI()); in buildAtomicRMW()
833 OldValRes.addDefToMIB(*getMRI(), MIB); in buildAtomicRMW()
933 assert(getMRI()->getType(Res).isPointer() && "invalid res type"); in buildBlockAddress()
985 DstOps[0].getLLTTy(*getMRI()), SrcOps[0].getLLTTy(*getMRI()), in buildInstr()
986 SrcOps[1].getLLTTy(*getMRI()), SrcOps[2].getLLTTy(*getMRI())); in buildInstr()
994 validateUnaryOp(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
995 SrcOps[0].getLLTTy(*getMRI())); in buildInstr()
1018 validateBinaryOp(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1019 SrcOps[0].getLLTTy(*getMRI()), in buildInstr()
1020 SrcOps[1].getLLTTy(*getMRI())); in buildInstr()
1030 validateShiftOp(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1031 SrcOps[0].getLLTTy(*getMRI()), in buildInstr()
1032 SrcOps[1].getLLTTy(*getMRI())); in buildInstr()
1040 validateTruncExt(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1041 SrcOps[0].getLLTTy(*getMRI()), true); in buildInstr()
1047 validateTruncExt(DstOps[0].getLLTTy(*getMRI()), in buildInstr()
1048 SrcOps[0].getLLTTy(*getMRI()), false); in buildInstr()
1054 assert(DstOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1055 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() && "invalid bitcast"); in buildInstr()
1076 assert(SrcOps[1].getLLTTy(*getMRI()) == SrcOps[2].getLLTTy(*getMRI()) && in buildInstr()
1079 LLT Op0Ty = SrcOps[1].getLLTTy(*getMRI()); in buildInstr()
1080 LLT DstTy = DstOps[0].getLLTTy(*getMRI()); in buildInstr()
1094 return Op.getLLTTy(*getMRI()) == in buildInstr()
1095 DstOps[0].getLLTTy(*getMRI()); in buildInstr()
1098 assert(DstOps.size() * DstOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1099 SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
1108 return Op.getLLTTy(*getMRI()) == in buildInstr()
1109 SrcOps[0].getLLTTy(*getMRI()); in buildInstr()
1112 assert(SrcOps.size() * SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1113 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
1117 if (DstOps[0].getLLTTy(*getMRI()).isVector()) { in buildInstr()
1118 if (SrcOps[0].getLLTTy(*getMRI()).isVector()) in buildInstr()
1127 assert(SrcOps[0].getLLTTy(*getMRI()).isVector() && "Invalid operand type"); in buildInstr()
1128 assert((DstOps[0].getLLTTy(*getMRI()).isScalar() || in buildInstr()
1129 DstOps[0].getLLTTy(*getMRI()).isPointer()) && in buildInstr()
1131 assert(SrcOps[1].getLLTTy(*getMRI()).isScalar() && "Invalid operand type"); in buildInstr()
1132 assert(SrcOps[0].getLLTTy(*getMRI()).getElementType() == in buildInstr()
1133 DstOps[0].getLLTTy(*getMRI()) && in buildInstr()
1140 assert(DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
1141 SrcOps[0].getLLTTy(*getMRI()).isVector() && "Invalid operand type"); in buildInstr()
1142 assert(DstOps[0].getLLTTy(*getMRI()).getElementType() == in buildInstr()
1143 SrcOps[1].getLLTTy(*getMRI()) && in buildInstr()
1145 assert(SrcOps[2].getLLTTy(*getMRI()).isScalar() && "Invalid index"); in buildInstr()
1146 assert(DstOps[0].getLLTTy(*getMRI()).getNumElements() == in buildInstr()
1147 SrcOps[0].getLLTTy(*getMRI()).getNumElements() && in buildInstr()
1155 assert(DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
1159 return Op.getLLTTy(*getMRI()) == in buildInstr()
1160 SrcOps[0].getLLTTy(*getMRI()); in buildInstr()
1163 assert(SrcOps.size() * SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1164 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
1172 assert(DstOps[0].getLLTTy(*getMRI()).isVector() && in buildInstr()
1176 return Op.getLLTTy(*getMRI()) == in buildInstr()
1177 SrcOps[0].getLLTTy(*getMRI()); in buildInstr()
1180 if (SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1181 DstOps[0].getLLTTy(*getMRI()).getElementType().getSizeInBits()) in buildInstr()
1191 return (Op.getLLTTy(*getMRI()).isVector() && in buildInstr()
1192 Op.getLLTTy(*getMRI()) == in buildInstr()
1193 SrcOps[0].getLLTTy(*getMRI())); in buildInstr()
1196 assert(SrcOps.size() * SrcOps[0].getLLTTy(*getMRI()).getSizeInBits() == in buildInstr()
1197 DstOps[0].getLLTTy(*getMRI()).getSizeInBits() && in buildInstr()
1204 assert(DstOps[0].getLLTTy(*getMRI()).isScalar() && "Invalid operand"); in buildInstr()
1205 assert((DstOps[0].getLLTTy(*getMRI()) == SrcOps[0].getLLTTy(*getMRI())) && in buildInstr()
1206 (DstOps[0].getLLTTy(*getMRI()) == SrcOps[1].getLLTTy(*getMRI())) && in buildInstr()
1208 assert(DstOps[1].getLLTTy(*getMRI()).isScalar() && "Invalid operand"); in buildInstr()
1209 assert(DstOps[1].getLLTTy(*getMRI()) == SrcOps[2].getLLTTy(*getMRI()) && in buildInstr()
1217 Op.addDefToMIB(*getMRI(), MIB); in buildInstr()