Lines Matching refs:WideTy
594 void LegalizerHelper::widenScalarSrc(MachineInstr &MI, LLT WideTy,
597 auto ExtB = MIRBuilder.buildInstr(ExtOpcode, WideTy, MO.getReg());
601 void LegalizerHelper::widenScalarDst(MachineInstr &MI, LLT WideTy,
604 unsigned DstExt = MRI.createGenericVirtualRegister(WideTy);
611 LegalizerHelper::widenScalar(MachineInstr &MI, unsigned TypeIdx, LLT WideTy) {
627 widenScalarSrc(MI, WideTy, 1, TargetOpcode::G_ANYEXT);
628 widenScalarSrc(MI, WideTy, 2, TargetOpcode::G_ANYEXT);
629 widenScalarDst(MI, WideTy);
634 widenScalarSrc(MI, WideTy, 1, TargetOpcode::G_ANYEXT);
637 widenScalarSrc(MI, WideTy, 2, TargetOpcode::G_ZEXT);
638 widenScalarDst(MI, WideTy);
644 widenScalarSrc(MI, WideTy, 1, TargetOpcode::G_SEXT);
645 widenScalarSrc(MI, WideTy, 2, TargetOpcode::G_SEXT);
646 widenScalarDst(MI, WideTy);
651 widenScalarSrc(MI, WideTy, 1, TargetOpcode::G_SEXT);
654 widenScalarSrc(MI, WideTy, 2, TargetOpcode::G_ZEXT);
655 widenScalarDst(MI, WideTy);
662 widenScalarSrc(MI, WideTy, 1, TargetOpcode::G_ZEXT);
663 widenScalarSrc(MI, WideTy, 2, TargetOpcode::G_ZEXT);
664 widenScalarDst(MI, WideTy);
674 widenScalarSrc(MI, WideTy, 2, TargetOpcode::G_ANYEXT);
675 widenScalarSrc(MI, WideTy, 3, TargetOpcode::G_ANYEXT);
676 widenScalarDst(MI, WideTy);
684 widenScalarDst(MI, WideTy);
691 widenScalarSrc(MI, WideTy, 1, TargetOpcode::G_SEXT);
698 widenScalarSrc(MI, WideTy, 1, TargetOpcode::G_ZEXT);
705 widenScalarSrc(MI, WideTy, 1, TargetOpcode::G_ANYEXT);
706 widenScalarDst(MI, WideTy);
715 WideTy.getSizeInBits())
720 widenScalarDst(MI, WideTy);
726 WideTy != LLT::scalar(8))
729 widenScalarSrc(MI, WideTy, 0, TargetOpcode::G_ZEXT);
736 const APInt &Val = SrcMO.getCImm()->getValue().sext(WideTy.getSizeInBits());
739 widenScalarDst(MI, WideTy);
748 switch (WideTy.getSizeInBits()) {
760 widenScalarDst(MI, WideTy, 0, TargetOpcode::G_FPTRUNC);
765 widenScalarSrc(MI, WideTy, 0, TargetOpcode::G_ANYEXT);
771 widenScalarDst(MI, WideTy);
773 widenScalarSrc(MI, WideTy, 2, TargetOpcode::G_FPEXT);
774 widenScalarSrc(MI, WideTy, 3, TargetOpcode::G_FPEXT);
781 widenScalarDst(MI, WideTy);
787 widenScalarSrc(MI, WideTy, 2, ExtOpcode);
788 widenScalarSrc(MI, WideTy, 3, ExtOpcode);
795 widenScalarSrc(MI, WideTy, 2, TargetOpcode::G_SEXT);
805 widenScalarSrc(MI, WideTy, I, TargetOpcode::G_ANYEXT);
810 widenScalarDst(MI, WideTy);