Lines Matching refs:VT

145     bool isTypeLegal(Type *Ty, MVT &VT);
146 bool isLoadTypeLegal(Type *Ty, MVT &VT);
152 bool PPCEmitLoad(MVT VT, unsigned &ResultReg, Address &Addr,
155 bool PPCEmitStore(MVT VT, unsigned SrcReg, Address &Addr);
157 void PPCSimplifyAddress(Address &Addr, MVT VT, bool &UseOffset,
161 unsigned PPCMaterializeFP(const ConstantFP *CFP, MVT VT);
162 unsigned PPCMaterializeGV(const GlobalValue *GV, MVT VT);
163 unsigned PPCMaterializeInt(const Constant *C, MVT VT, bool UseSExt = true);
168 unsigned PPCMoveToIntReg(const Instruction *I, MVT VT,
170 unsigned PPCMoveToFPReg(MVT VT, unsigned SrcReg, bool IsSigned);
260 bool PPCFastISel::isTypeLegal(Type *Ty, MVT &VT) { in isTypeLegal() argument
265 VT = Evt.getSimpleVT(); in isTypeLegal()
269 return TLI.isTypeLegal(VT); in isTypeLegal()
274 bool PPCFastISel::isLoadTypeLegal(Type *Ty, MVT &VT) { in isLoadTypeLegal() argument
275 if (isTypeLegal(Ty, VT)) return true; in isLoadTypeLegal()
279 if (VT == MVT::i8 || VT == MVT::i16 || VT == MVT::i32) { in isLoadTypeLegal()
401 void PPCFastISel::PPCSimplifyAddress(Address &Addr, MVT VT, bool &UseOffset, in PPCSimplifyAddress() argument
420 IntegerType *OffsetTy = ((VT == MVT::i32) ? Type::getInt32Ty(*Context) in PPCSimplifyAddress()
432 bool PPCFastISel::PPCEmitLoad(MVT VT, unsigned &ResultReg, Address &Addr, in PPCEmitLoad() argument
448 (VT == MVT::f64 ? &PPC::F8RCRegClass : in PPCEmitLoad()
449 (VT == MVT::f32 ? &PPC::F4RCRegClass : in PPCEmitLoad()
450 (VT == MVT::i64 ? &PPC::G8RC_and_G8RC_NOX0RegClass : in PPCEmitLoad()
455 switch (VT.SimpleTy) { in PPCEmitLoad()
490 PPCSimplifyAddress(Addr, VT, UseOffset, IndexReg); in PPCEmitLoad()
563 MVT VT; in SelectLoad() local
564 if (!isLoadTypeLegal(I->getType(), VT)) in SelectLoad()
580 if (!PPCEmitLoad(VT, ResultReg, Addr, RC)) in SelectLoad()
587 bool PPCFastISel::PPCEmitStore(MVT VT, unsigned SrcReg, Address &Addr) { in PPCEmitStore() argument
595 switch (VT.SimpleTy) { in PPCEmitStore()
623 PPCSimplifyAddress(Addr, VT, UseOffset, IndexReg); in PPCEmitStore()
705 MVT VT; in SelectStore() local
706 if (!isLoadTypeLegal(Op0->getType(), VT)) in SelectStore()
719 if (!PPCEmitStore(VT, SrcReg, Addr)) in SelectStore()
1037 unsigned PPCFastISel::PPCMoveToIntReg(const Instruction *I, MVT VT, in PPCMoveToIntReg() argument
1053 if (VT == MVT::i32) in PPCMoveToIntReg()
1063 if (!PPCEmitLoad(VT, ResultReg, Addr, RC, !IsSigned)) in PPCMoveToIntReg()
1866 unsigned PPCFastISel::PPCMaterializeFP(const ConstantFP *CFP, MVT VT) { in PPCMaterializeFP() argument
1868 if (VT != MVT::f32 && VT != MVT::f64) in PPCMaterializeFP()
1875 unsigned DestReg = createResultReg(TLI.getRegClassFor(VT)); in PPCMaterializeFP()
1881 (VT == MVT::f32) ? 4 : 8, Align); in PPCMaterializeFP()
1883 unsigned Opc = (VT == MVT::f32) ? PPC::LFS : PPC::LFD; in PPCMaterializeFP()
1918 unsigned PPCFastISel::PPCMaterializeGV(const GlobalValue *GV, MVT VT) { in PPCMaterializeGV() argument
1919 assert(VT == MVT::i64 && "Non-address!"); in PPCMaterializeGV()
2065 unsigned PPCFastISel::PPCMaterializeInt(const Constant *C, MVT VT, in PPCMaterializeInt() argument
2069 if (VT == MVT::i1 && PPCSubTarget->useCRBits()) { in PPCMaterializeInt()
2077 if (VT != MVT::i64 && VT != MVT::i32 && VT != MVT::i16 && in PPCMaterializeInt()
2078 VT != MVT::i8 && VT != MVT::i1) in PPCMaterializeInt()
2081 const TargetRegisterClass *RC = ((VT == MVT::i64) ? &PPC::G8RCRegClass : in PPCMaterializeInt()
2087 unsigned Opc = (VT == MVT::i64) ? PPC::LI8 : PPC::LI; in PPCMaterializeInt()
2097 if (VT == MVT::i64) in PPCMaterializeInt()
2099 else if (VT == MVT::i32) in PPCMaterializeInt()
2112 MVT VT = CEVT.getSimpleVT(); in fastMaterializeConstant() local
2115 return PPCMaterializeFP(CFP, VT); in fastMaterializeConstant()
2117 return PPCMaterializeGV(GV, VT); in fastMaterializeConstant()
2119 return PPCMaterializeInt(C, VT, VT != MVT::i1); in fastMaterializeConstant()
2130 MVT VT; in fastMaterializeAlloca() local
2131 if (!isLoadTypeLegal(AI->getType(), VT)) return 0; in fastMaterializeAlloca()
2157 MVT VT; in tryToFoldLoadIntoMI() local
2158 if (!isLoadTypeLegal(LI->getType(), VT)) in tryToFoldLoadIntoMI()
2171 if ((VT == MVT::i8 && MB <= 56) || in tryToFoldLoadIntoMI()
2172 (VT == MVT::i16 && MB <= 48) || in tryToFoldLoadIntoMI()
2173 (VT == MVT::i32 && MB <= 32)) in tryToFoldLoadIntoMI()
2182 if ((VT == MVT::i8 && MB <= 24) || in tryToFoldLoadIntoMI()
2183 (VT == MVT::i16 && MB <= 16)) in tryToFoldLoadIntoMI()
2197 if (VT != MVT::i16 && VT != MVT::i8) in tryToFoldLoadIntoMI()
2204 if (VT != MVT::i32 && VT != MVT::i16 && VT != MVT::i8) in tryToFoldLoadIntoMI()
2217 if (!PPCEmitLoad(VT, ResultReg, Addr, nullptr, IsZExt)) in tryToFoldLoadIntoMI()
2236 unsigned PPCFastISel::fastEmit_i(MVT Ty, MVT VT, unsigned Opc, uint64_t Imm) { in fastEmit_i() argument
2243 if (VT == MVT::i1 && PPCSubTarget->useCRBits()) { in fastEmit_i()
2250 if (VT != MVT::i64 && VT != MVT::i32 && VT != MVT::i16 && in fastEmit_i()
2251 VT != MVT::i8 && VT != MVT::i1) in fastEmit_i()
2254 const TargetRegisterClass *RC = ((VT == MVT::i64) ? &PPC::G8RCRegClass : in fastEmit_i()
2256 if (VT == MVT::i64) in fastEmit_i()