reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/CodeGen/GlobalISel/LegalizerHelper.cpp
   88     return LI.legalizeIntrinsic(MI, MRI, MIRBuilder) ? Legalized
   90   auto Step = LI.getAction(MI, MRI);
  115     return LI.legalizeCustom(MI, MRI, MIRBuilder, Observer) ? Legalized
  126     VRegs.push_back(MRI.createGenericVirtualRegister(Ty));
  144       VRegs.push_back(MRI.createGenericVirtualRegister(MainTy));
  160     Register NewReg = MRI.createGenericVirtualRegister(MainTy);
  167     Register NewReg = MRI.createGenericVirtualRegister(LeftoverTy);
  218   Register CurResultReg = MRI.createGenericVirtualRegister(ResultTy);
  223     Register NewResultReg = MRI.createGenericVirtualRegister(ResultTy);
  232       DstReg : MRI.createGenericVirtualRegister(ResultTy);
  491   LLT LLTy = MRI.getType(MI.getOperand(0).getReg());
  539     unsigned FromSize = MRI.getType(MI.getOperand(1).getReg()).getSizeInBits();
  540     unsigned ToSize = MRI.getType(MI.getOperand(0).getReg()).getSizeInBits();
  551     unsigned FromSize = MRI.getType(MI.getOperand(1).getReg()).getSizeInBits();
  552     unsigned ToSize = MRI.getType(MI.getOperand(0).getReg()).getSizeInBits();
  564     unsigned FromSize = MRI.getType(MI.getOperand(1).getReg()).getSizeInBits();
  565     unsigned ToSize = MRI.getType(MI.getOperand(0).getReg()).getSizeInBits();
  579     unsigned FromSize = MRI.getType(MI.getOperand(1).getReg()).getSizeInBits();
  580     unsigned ToSize = MRI.getType(MI.getOperand(0).getReg()).getSizeInBits();
  602   uint64_t SizeOp0 = MRI.getType(MI.getOperand(0).getReg()).getSizeInBits();
  621     if(MRI.getType(DstReg).isVector())
  629     LLT Ty = MRI.getType(MI.getOperand(0).getReg());
  665     LLT SrcTy = MRI.getType(SrcReg);
  687     LLT SrcTy = MRI.getType(MI.getOperand(1).getReg());
  707     uint64_t SizeOp1 = MRI.getType(MI.getOperand(1).getReg()).getSizeInBits();
  733       Register DstReg = MRI.createGenericVirtualRegister(NarrowTy);
  734       Register CarryOut = MRI.createGenericVirtualRegister(LLT::scalar(1));
  747     if(MRI.getType(DstReg).isVector())
  766     Register DstReg = MRI.createGenericVirtualRegister(NarrowTy);
  767     Register BorrowOut = MRI.createGenericVirtualRegister(LLT::scalar(1));
  773       DstReg = MRI.createGenericVirtualRegister(NarrowTy);
  774       BorrowOut = MRI.createGenericVirtualRegister(LLT::scalar(1));
  796     LLT DstTy = MRI.getType(DstReg);
  801       Register TmpReg = MRI.createGenericVirtualRegister(NarrowTy);
  817     Register TmpReg = MRI.createGenericVirtualRegister(NarrowTy);
  842     LLT SrcTy = MRI.getType(SrcReg);
  853       Register TmpReg = MRI.createGenericVirtualRegister(NarrowTy);
  927       DstRegs[i] = MRI.createGenericVirtualRegister(NarrowTy);
  951     uint64_t SrcSize = MRI.getType(MI.getOperand(2).getReg()).getSizeInBits();
  956     Register LHSL = MRI.createGenericVirtualRegister(NarrowTy);
  957     Register LHSH = MRI.createGenericVirtualRegister(NarrowTy);
  960     Register RHSL = MRI.createGenericVirtualRegister(NarrowTy);
  961     Register RHSH = MRI.createGenericVirtualRegister(NarrowTy);
  966     LLT ResTy = MRI.getType(MI.getOperand(0).getReg());
 1005       Register DstExt = MRI.createGenericVirtualRegister(NarrowTy);
 1028       Register SrcReg = MRI.createGenericVirtualRegister(NarrowTy);
 1099   Register DstExt = MRI.createGenericVirtualRegister(WideTy);
 1108   Register DstTrunc = MRI.createGenericVirtualRegister(NarrowTy);
 1117   Register DstExt = MRI.createGenericVirtualRegister(WideTy);
 1127   LLT OldTy = MRI.getType(MO.getReg());
 1147   Register MoreReg = MRI.createGenericVirtualRegister(MoreTy);
 1160   LLT DstTy = MRI.getType(DstReg);
 1165   LLT SrcTy = MRI.getType(Src1);
 1183       assert(MRI.getType(SrcReg) == LLT::scalar(PartSize));
 1188         MRI.createGenericVirtualRegister(WideTy);
 1283   LLT SrcTy = MRI.getType(SrcReg);
 1288   LLT DstTy = MRI.getType(Dst0Reg);
 1320   LLT SrcTy = MRI.getType(SrcReg);
 1322   LLT DstTy = MRI.getType(DstReg);
 1434     LLT OrigTy = MRI.getType(MI.getOperand(0).getReg());
 1463     LLT CurTy = MRI.getType(SrcReg);
 1494     Register ShrReg = MRI.createGenericVirtualRegister(WideTy);
 1495     Register DstExt = MRI.createGenericVirtualRegister(WideTy);
 1496     Register ShiftAmtReg = MRI.createGenericVirtualRegister(WideTy);
 1503     LLT Ty = MRI.getType(DstReg);
 1519     LLT Ty = MRI.getType(DstReg);
 1522     Register DstExt = MRI.createGenericVirtualRegister(WideTy);
 1616       bool IsVec = MRI.getType(MI.getOperand(1).getReg()).isVector();
 1662     LLT Ty = MRI.getType(MI.getOperand(0).getReg());
 1777       LLT VecTy = MRI.getType(VecReg);
 1802       LLT VecTy = MRI.getType(VecReg);
 1918     Register QuotReg = MRI.createGenericVirtualRegister(Ty);
 1924     Register ProdReg = MRI.createGenericVirtualRegister(Ty);
 1949     Register HiPart = MRI.createGenericVirtualRegister(Ty);
 1955     Register Zero = MRI.createGenericVirtualRegister(Ty);
 1961       Register Shifted = MRI.createGenericVirtualRegister(Ty);
 1962       Register ShiftAmt = MRI.createGenericVirtualRegister(Ty);
 2018     Register Neg = MRI.createGenericVirtualRegister(Ty);
 2044     LLT DstTy = MRI.getType(DstReg);
 2076         LLT PtrTy = MRI.getType(PtrReg);
 2079         Register LargeLdReg = MRI.createGenericVirtualRegister(AnyExtTy);
 2080         Register SmallLdReg = MRI.createGenericVirtualRegister(AnyExtTy);
 2086         Register GEPReg = MRI.createGenericVirtualRegister(PtrTy);
 2105           MRI.createGenericVirtualRegister(LLT::scalar(MMO.getSizeInBits()));
 2135     LLT SrcTy = MRI.getType(SrcReg);
 2155     LLT PtrTy = MRI.getType(PtrReg);
 2158     Register GEPReg = MRI.createGenericVirtualRegister(PtrTy);
 2196     Register TmpRes = MRI.createGenericVirtualRegister(Ty);
 2197     Register ZExtCarryIn = MRI.createGenericVirtualRegister(Ty);
 2226     Register TmpRes = MRI.createGenericVirtualRegister(Ty);
 2227     Register ZExtBorrowIn = MRI.createGenericVirtualRegister(Ty);
 2228     Register LHS_EQ_RHS = MRI.createGenericVirtualRegister(LLT::scalar(1));
 2229     Register LHS_ULT_RHS = MRI.createGenericVirtualRegister(LLT::scalar(1));
 2265     LLT DstTy = MRI.getType(DstReg);
 2266     Register TmpRes = MRI.createGenericVirtualRegister(DstTy);
 2291   unsigned Size = MRI.getType(DstReg).getSizeInBits();
 2299     Register TmpReg = MRI.createGenericVirtualRegister(NarrowTy);
 2321   const LLT DstTy = MRI.getType(DstReg);
 2334     Register AccumDstReg = MRI.createGenericVirtualRegister(DstTy);
 2342         Register PartOpReg = MRI.createGenericVirtualRegister(NarrowTy);
 2347       Register PartDstReg = MRI.createGenericVirtualRegister(NarrowTy);
 2350       Register PartInsertReg = MRI.createGenericVirtualRegister(DstTy);
 2358       Register PartOpReg = MRI.createGenericVirtualRegister(EltTy);
 2364     Register PartDstReg = MRI.createGenericVirtualRegister(EltTy);
 2383     Register DstReg = MRI.createGenericVirtualRegister(NarrowTy);
 2429   LLT DstTy = MRI.getType(DstReg);
 2447     LLT SrcTyI = MRI.getType(SrcReg);
 2461         Register PartDstReg = MRI.createGenericVirtualRegister(NarrowTy0);
 2469         Register PartDstReg = MRI.createGenericVirtualRegister(LeftoverTy0);
 2510   LLT DstTy = MRI.getType(DstReg);
 2511   LLT SrcTy = MRI.getType(SrcReg);
 2533     Register DstReg = MRI.createGenericVirtualRegister(NarrowTy0);
 2556   LLT DstTy = MRI.getType(DstReg);
 2557   LLT SrcTy = MRI.getType(Src0Reg);
 2597     Register DstReg = MRI.createGenericVirtualRegister(NarrowTy0);
 2627   LLT DstTy = MRI.getType(DstReg);
 2628   LLT CondTy = MRI.getType(CondReg);
 2675     Register DstReg = MRI.createGenericVirtualRegister(NarrowTy0);
 2694   LLT PhiTy = MRI.getType(DstReg);
 2714     Register PartDstReg = MRI.createGenericVirtualRegister(Ty);
 2766   LLT SrcTy = MRI.getType(SrcReg);
 2768   LLT DstTy = MRI.getType(MI.getOperand(0).getReg());
 2803   LLT DstTy = MRI.getType(DstReg);
 2874   LLT ValTy = MRI.getType(ValReg);
 2893   const LLT OffsetTy = LLT::scalar(MRI.getType(AddrReg).getScalarSizeInBits());
 2917         Register Dst = MRI.createGenericVirtualRegister(PartTy);
 3045   Register InL = MRI.createGenericVirtualRegister(HalfTy);
 3046   Register InH = MRI.createGenericVirtualRegister(HalfTy);
 3141   LLT DstTy = MRI.getType(DstReg);
 3146   LLT ShiftAmtTy = MRI.getType(Amt);
 3159           getOpcodeDef(TargetOpcode::G_CONSTANT, Amt, MRI)) {
 3169   Register InL = MRI.createGenericVirtualRegister(HalfTy);
 3170   Register InH = MRI.createGenericVirtualRegister(HalfTy);
 3313     if (MRI.getType(MI.getOperand(1).getReg()).isVector())
 3326     LLT DstTy = MRI.getType(MI.getOperand(0).getReg());
 3336       MIB.addDef(MRI.createGenericVirtualRegister(DstTy));
 3418   LLT Ty = MRI.getType(DstReg);
 3422   unsigned SrcSize = MRI.getType(Src1).getSizeInBits();
 3455   int64_t SizeOp1 = MRI.getType(MI.getOperand(1).getReg()).getSizeInBits();
 3468   uint64_t OpSize = MRI.getType(OpReg).getSizeInBits();
 3475     } else if (SrcStart == OpStart && NarrowTy == MRI.getType(OpReg)) {
 3496       SegReg = MRI.createGenericVirtualRegister(LLT::scalar(SegSize));
 3504   if(MRI.getType(DstReg).isVector())
 3519   uint64_t SizeOp0 = MRI.getType(MI.getOperand(0).getReg()).getSizeInBits();
 3535   uint64_t OpSize = MRI.getType(OpReg).getSizeInBits();
 3543     } else if (DstStart == OpStart && NarrowTy == MRI.getType(OpReg)) {
 3568       SegReg = MRI.createGenericVirtualRegister(LLT::scalar(SegSize));
 3572     Register DstReg = MRI.createGenericVirtualRegister(NarrowTy);
 3579   if(MRI.getType(DstReg).isVector())
 3591   LLT DstTy = MRI.getType(DstReg);
 3635   LLT CondTy = MRI.getType(CondReg);
 3640   LLT DstTy = MRI.getType(DstReg);
 3797   assert(MRI.getType(Src) == S64 && MRI.getType(Dst) == S32);
 3797   assert(MRI.getType(Src) == S64 && MRI.getType(Dst) == S32);
 3849   LLT DstTy = MRI.getType(Dst);
 3850   LLT SrcTy = MRI.getType(Src);
 3870   LLT DstTy = MRI.getType(Dst);
 3871   LLT SrcTy = MRI.getType(Src);
 3908   LLT DstTy = MRI.getType(Dst);
 3909   LLT SrcTy = MRI.getType(Src);
 3968   LLT CmpType = MRI.getType(Dst).changeElementSize(1);
 3983   const LLT Src0Ty = MRI.getType(Src0);
 3984   const LLT Src1Ty = MRI.getType(Src1);
 4033   LLT Ty = MRI.getType(Dst);
 4042     if (!isKnownNeverSNaN(Src0, MRI))
 4045     if (!isKnownNeverSNaN(Src1, MRI))
 4059   LLT Ty = MRI.getType(DstReg);
 4073   LLT SrcTy = MRI.getType(SrcReg);
 4076   LLT DstTy = MRI.getType(Dst0Reg);
 4107   LLT Src0Ty = MRI.getType(Src0Reg);
 4108   LLT DstTy = MRI.getType(DstReg);
 4170   LLT PtrTy = MRI.getType(Dst);
 4202   LLT DstTy = MRI.getType(Dst);
 4203   LLT SrcTy = MRI.getType(Src);
 4235   LLT DstTy = MRI.getType(Src);
 4236   LLT InsertTy = MRI.getType(InsertSrc);
 4276   LLT Ty = MRI.getType(Dst0);
 4277   LLT BoolTy = MRI.getType(Dst1);