Lines Matching refs:NumBits
571 static bool canEvaluateShifted(Value *V, unsigned NumBits, bool IsLeftShift, in canEvaluateShifted() argument
590 return canEvaluateShifted(I->getOperand(0), NumBits, IsLeftShift, IC, I) && in canEvaluateShifted()
591 canEvaluateShifted(I->getOperand(1), NumBits, IsLeftShift, IC, I); in canEvaluateShifted()
595 return canEvaluateShiftedShift(NumBits, IsLeftShift, I, IC, CxtI); in canEvaluateShifted()
601 return canEvaluateShifted(TrueVal, NumBits, IsLeftShift, IC, SI) && in canEvaluateShifted()
602 canEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in canEvaluateShifted()
610 if (!canEvaluateShifted(IncValue, NumBits, IsLeftShift, IC, PN)) in canEvaluateShifted()
618 MulConst->isNegatedPowerOf2() && MulConst->countr_zero() == NumBits; in canEvaluateShifted()
688 static Value *getShiftedValue(Value *V, unsigned NumBits, bool isLeftShift, in getShiftedValue() argument
693 return IC.Builder.CreateShl(C, NumBits); in getShiftedValue()
695 return IC.Builder.CreateLShr(C, NumBits); in getShiftedValue()
708 0, getShiftedValue(I->getOperand(0), NumBits, isLeftShift, IC, DL)); in getShiftedValue()
710 1, getShiftedValue(I->getOperand(1), NumBits, isLeftShift, IC, DL)); in getShiftedValue()
715 return foldShiftedShift(cast<BinaryOperator>(I), NumBits, isLeftShift, in getShiftedValue()
720 1, getShiftedValue(I->getOperand(1), NumBits, isLeftShift, IC, DL)); in getShiftedValue()
722 2, getShiftedValue(I->getOperand(2), NumBits, isLeftShift, IC, DL)); in getShiftedValue()
730 PN->setIncomingValue(i, getShiftedValue(PN->getIncomingValue(i), NumBits, in getShiftedValue()
739 APInt Mask = APInt::getLowBitsSet(TypeWidth, TypeWidth - NumBits); in getShiftedValue()