Lines Matching refs:PowerOfTwo
359 unsigned &PowerOfTwo, SDValue &NewMulConst) const;
557 unsigned &PowerOfTwo, in canExtractShiftFromMul() argument
575 PowerOfTwo = MaxShift; in canExtractShiftFromMul()
576 while ((MulConstVal % (1 << PowerOfTwo)) != 0) { in canExtractShiftFromMul()
577 --PowerOfTwo; in canExtractShiftFromMul()
578 if (PowerOfTwo == 0) return false; in canExtractShiftFromMul()
582 unsigned NewMulConstVal = MulConstVal / (1 << PowerOfTwo); in canExtractShiftFromMul()
604 unsigned PowerOfTwo = 0; in SelectImmShifterOperand() local
606 if (canExtractShiftFromMul(N, 31, PowerOfTwo, NewMulConst)) { in SelectImmShifterOperand()
612 ARM_AM::getSORegOpc(ARM_AM::lsl, PowerOfTwo), Loc, MVT::i32); in SelectImmShifterOperand()
814 unsigned PowerOfTwo = 0; in SelectLdStSOReg() local
816 if (canExtractShiftFromMul(Offset, 31, PowerOfTwo, NewMulConst)) { in SelectLdStSOReg()
820 ShAmt = PowerOfTwo; in SelectLdStSOReg()
1533 unsigned PowerOfTwo = 0; in SelectT2AddrModeSoReg() local
1535 if (canExtractShiftFromMul(OffReg, 3, PowerOfTwo, NewMulConst)) { in SelectT2AddrModeSoReg()
1539 ShAmt = PowerOfTwo; in SelectT2AddrModeSoReg()