Lines Matching refs:CastTy
1407 void LegalizerHelper::bitcastSrc(MachineInstr &MI, LLT CastTy, unsigned OpIdx) { in bitcastSrc() argument
1409 Op.setReg(MIRBuilder.buildBitcast(CastTy, Op).getReg(0)); in bitcastSrc()
1412 void LegalizerHelper::bitcastDst(MachineInstr &MI, LLT CastTy, unsigned OpIdx) { in bitcastDst() argument
1414 Register CastDst = MRI.createGenericVirtualRegister(CastTy); in bitcastDst()
2679 LLT CastTy) { in bitcastExtractVectorElt() argument
2690 unsigned NewNumElts = CastTy.isVector() ? CastTy.getNumElements() : 1; in bitcastExtractVectorElt()
2693 LLT NewEltTy = CastTy.isVector() ? CastTy.getElementType() : CastTy; in bitcastExtractVectorElt()
2694 Register CastVec = MIRBuilder.buildBitcast(CastTy, SrcVec).getReg(0); in bitcastExtractVectorElt()
2765 if (CastTy.isVector()) { in bitcastExtractVectorElt()
2819 LLT CastTy) { in bitcastInsertVectorElt() argument
2832 LLT NewEltTy = CastTy.isVector() ? CastTy.getElementType() : CastTy; in bitcastInsertVectorElt()
2836 unsigned NewNumElts = CastTy.isVector() ? CastTy.getNumElements() : 1; in bitcastInsertVectorElt()
2839 Register CastVec = MIRBuilder.buildBitcast(CastTy, SrcVec).getReg(0); in bitcastInsertVectorElt()
2857 if (CastTy.isVector()) { in bitcastInsertVectorElt()
2868 if (CastTy.isVector()) { in bitcastInsertVectorElt()
2870 CastTy, CastVec, InsertedElt, ScaledIdx).getReg(0); in bitcastInsertVectorElt()
3063 LegalizerHelper::bitcast(MachineInstr &MI, unsigned TypeIdx, LLT CastTy) { in bitcast() argument
3071 if (MMO.getMemoryType().getSizeInBits() != CastTy.getSizeInBits()) in bitcast()
3075 bitcastDst(MI, CastTy, 0); in bitcast()
3076 MMO.setType(CastTy); in bitcast()
3087 if (MMO.getMemoryType().getSizeInBits() != CastTy.getSizeInBits()) in bitcast()
3091 bitcastSrc(MI, CastTy, 0); in bitcast()
3092 MMO.setType(CastTy); in bitcast()
3107 bitcastSrc(MI, CastTy, 2); in bitcast()
3108 bitcastSrc(MI, CastTy, 3); in bitcast()
3109 bitcastDst(MI, CastTy, 0); in bitcast()
3117 bitcastSrc(MI, CastTy, 1); in bitcast()
3118 bitcastSrc(MI, CastTy, 2); in bitcast()
3119 bitcastDst(MI, CastTy, 0); in bitcast()
3124 return bitcastExtractVectorElt(MI, TypeIdx, CastTy); in bitcast()
3126 return bitcastInsertVectorElt(MI, TypeIdx, CastTy); in bitcast()