Lines Matching refs:CastTy
1831 void LegalizerHelper::bitcastSrc(MachineInstr &MI, LLT CastTy, unsigned OpIdx) { in bitcastSrc() argument
1833 Op.setReg(MIRBuilder.buildBitcast(CastTy, Op).getReg(0)); in bitcastSrc()
1836 void LegalizerHelper::bitcastDst(MachineInstr &MI, LLT CastTy, unsigned OpIdx) { in bitcastDst() argument
1838 Register CastDst = MRI.createGenericVirtualRegister(CastTy); in bitcastDst()
3227 LLT CastTy) { in bitcastExtractVectorElt() argument
3234 unsigned NewNumElts = CastTy.isVector() ? CastTy.getNumElements() : 1; in bitcastExtractVectorElt()
3237 LLT NewEltTy = CastTy.isVector() ? CastTy.getElementType() : CastTy; in bitcastExtractVectorElt()
3238 Register CastVec = MIRBuilder.buildBitcast(CastTy, SrcVec).getReg(0); in bitcastExtractVectorElt()
3309 if (CastTy.isVector()) { in bitcastExtractVectorElt()
3363 LLT CastTy) { in bitcastInsertVectorElt() argument
3372 LLT NewEltTy = CastTy.isVector() ? CastTy.getElementType() : CastTy; in bitcastInsertVectorElt()
3376 unsigned NewNumElts = CastTy.isVector() ? CastTy.getNumElements() : 1; in bitcastInsertVectorElt()
3379 Register CastVec = MIRBuilder.buildBitcast(CastTy, SrcVec).getReg(0); in bitcastInsertVectorElt()
3397 if (CastTy.isVector()) { in bitcastInsertVectorElt()
3408 if (CastTy.isVector()) { in bitcastInsertVectorElt()
3410 CastTy, CastVec, InsertedElt, ScaledIdx).getReg(0); in bitcastInsertVectorElt()
3436 LLT CastTy) { in bitcastConcatVector() argument
3448 if (!LI.isLegal({TargetOpcode::G_BUILD_VECTOR, {CastTy, SrcScalTy}})) { in bitcastConcatVector()
3462 MIRBuilder.buildBuildVector(CastTy, BitcastRegs).getReg(0); in bitcastConcatVector()
3706 LegalizerHelper::bitcast(MachineInstr &MI, unsigned TypeIdx, LLT CastTy) { in bitcast() argument
3714 if (MMO.getMemoryType().getSizeInBits() != CastTy.getSizeInBits()) in bitcast()
3718 bitcastDst(MI, CastTy, 0); in bitcast()
3719 MMO.setType(CastTy); in bitcast()
3733 if (MMO.getMemoryType().getSizeInBits() != CastTy.getSizeInBits()) in bitcast()
3737 bitcastSrc(MI, CastTy, 0); in bitcast()
3738 MMO.setType(CastTy); in bitcast()
3753 bitcastSrc(MI, CastTy, 2); in bitcast()
3754 bitcastSrc(MI, CastTy, 3); in bitcast()
3755 bitcastDst(MI, CastTy, 0); in bitcast()
3763 bitcastSrc(MI, CastTy, 1); in bitcast()
3764 bitcastSrc(MI, CastTy, 2); in bitcast()
3765 bitcastDst(MI, CastTy, 0); in bitcast()
3770 return bitcastExtractVectorElt(MI, TypeIdx, CastTy); in bitcast()
3772 return bitcastInsertVectorElt(MI, TypeIdx, CastTy); in bitcast()
3774 return bitcastConcatVector(MI, TypeIdx, CastTy); in bitcast()