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