Lines Matching refs:CastTy
1482 void LegalizerHelper::bitcastSrc(MachineInstr &MI, LLT CastTy, unsigned OpIdx) { in bitcastSrc() argument
1484 Op.setReg(MIRBuilder.buildBitcast(CastTy, Op).getReg(0)); in bitcastSrc()
1487 void LegalizerHelper::bitcastDst(MachineInstr &MI, LLT CastTy, unsigned OpIdx) { in bitcastDst() argument
1489 Register CastDst = MRI.createGenericVirtualRegister(CastTy); in bitcastDst()
2724 LLT CastTy) { in bitcastExtractVectorElt() argument
2735 unsigned NewNumElts = CastTy.isVector() ? CastTy.getNumElements() : 1; in bitcastExtractVectorElt()
2738 LLT NewEltTy = CastTy.isVector() ? CastTy.getElementType() : CastTy; in bitcastExtractVectorElt()
2739 Register CastVec = MIRBuilder.buildBitcast(CastTy, SrcVec).getReg(0); in bitcastExtractVectorElt()
2810 if (CastTy.isVector()) { in bitcastExtractVectorElt()
2864 LLT CastTy) { in bitcastInsertVectorElt() argument
2877 LLT NewEltTy = CastTy.isVector() ? CastTy.getElementType() : CastTy; in bitcastInsertVectorElt()
2881 unsigned NewNumElts = CastTy.isVector() ? CastTy.getNumElements() : 1; in bitcastInsertVectorElt()
2884 Register CastVec = MIRBuilder.buildBitcast(CastTy, SrcVec).getReg(0); in bitcastInsertVectorElt()
2902 if (CastTy.isVector()) { in bitcastInsertVectorElt()
2913 if (CastTy.isVector()) { in bitcastInsertVectorElt()
2915 CastTy, CastVec, InsertedElt, ScaledIdx).getReg(0); in bitcastInsertVectorElt()
3163 LegalizerHelper::bitcast(MachineInstr &MI, unsigned TypeIdx, LLT CastTy) { in bitcast() argument
3171 if (MMO.getMemoryType().getSizeInBits() != CastTy.getSizeInBits()) in bitcast()
3175 bitcastDst(MI, CastTy, 0); in bitcast()
3176 MMO.setType(CastTy); in bitcast()
3187 if (MMO.getMemoryType().getSizeInBits() != CastTy.getSizeInBits()) in bitcast()
3191 bitcastSrc(MI, CastTy, 0); in bitcast()
3192 MMO.setType(CastTy); in bitcast()
3207 bitcastSrc(MI, CastTy, 2); in bitcast()
3208 bitcastSrc(MI, CastTy, 3); in bitcast()
3209 bitcastDst(MI, CastTy, 0); in bitcast()
3217 bitcastSrc(MI, CastTy, 1); in bitcast()
3218 bitcastSrc(MI, CastTy, 2); in bitcast()
3219 bitcastDst(MI, CastTy, 0); in bitcast()
3224 return bitcastExtractVectorElt(MI, TypeIdx, CastTy); in bitcast()
3226 return bitcastInsertVectorElt(MI, TypeIdx, CastTy); in bitcast()