Lines Matching refs:ShAmt
96 ARM_AM::ShiftOpc ShOpcVal, unsigned ShAmt);
473 unsigned ShAmt) { in isShifterOpProfitable() argument
480 (ShAmt == 2 || (Subtarget->isSwift() && ShAmt == 1)); in isShifterOpProfitable()
673 unsigned ShAmt = Log2_32(RHSC); in SelectLdStSOReg() local
675 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, ShAmt, in SelectLdStSOReg()
701 unsigned ShAmt = 0; in SelectLdStSOReg() local
711 ShAmt = Sh->getZExtValue(); in SelectLdStSOReg()
712 if (isShifterOpProfitable(Offset, ShOpcVal, ShAmt)) in SelectLdStSOReg()
715 ShAmt = 0; in SelectLdStSOReg()
733 ShAmt = Sh->getZExtValue(); in SelectLdStSOReg()
734 if (isShifterOpProfitable(N.getOperand(0), ShOpcVal, ShAmt)) { in SelectLdStSOReg()
738 ShAmt = 0; in SelectLdStSOReg()
754 ShAmt = PowerOfTwo; in SelectLdStSOReg()
759 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, ShAmt, ShOpcVal), in SelectLdStSOReg()
784 unsigned ShAmt = Log2_32(RHSC); in SelectAddrMode2Worker() local
786 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, ShAmt, in SelectAddrMode2Worker()
853 unsigned ShAmt = 0; in SelectAddrMode2Worker() local
863 ShAmt = Sh->getZExtValue(); in SelectAddrMode2Worker()
864 if (isShifterOpProfitable(Offset, ShOpcVal, ShAmt)) in SelectAddrMode2Worker()
867 ShAmt = 0; in SelectAddrMode2Worker()
885 ShAmt = Sh->getZExtValue(); in SelectAddrMode2Worker()
886 if (isShifterOpProfitable(N.getOperand(0), ShOpcVal, ShAmt)) { in SelectAddrMode2Worker()
890 ShAmt = 0; in SelectAddrMode2Worker()
899 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, ShAmt, ShOpcVal), in SelectAddrMode2Worker()
918 unsigned ShAmt = 0; in SelectAddrMode2OffsetReg() local
923 ShAmt = Sh->getZExtValue(); in SelectAddrMode2OffsetReg()
924 if (isShifterOpProfitable(N, ShOpcVal, ShAmt)) in SelectAddrMode2OffsetReg()
927 ShAmt = 0; in SelectAddrMode2OffsetReg()
935 Opc = CurDAG->getTargetConstant(ARM_AM::getAM2Opc(AddSub, ShAmt, ShOpcVal), in SelectAddrMode2OffsetReg()
1393 unsigned ShAmt = 0; in SelectT2AddrModeSoReg() local
1409 ShAmt = Sh->getZExtValue(); in SelectT2AddrModeSoReg()
1410 if (ShAmt < 4 && isShifterOpProfitable(OffReg, ShOpcVal, ShAmt)) in SelectT2AddrModeSoReg()
1413 ShAmt = 0; in SelectT2AddrModeSoReg()
1425 ShAmt = PowerOfTwo; in SelectT2AddrModeSoReg()
1429 ShImm = CurDAG->getTargetConstant(ShAmt, SDLoc(N), MVT::i32); in SelectT2AddrModeSoReg()