• Home
  • Raw
  • Download

Lines Matching refs:NumBits

115 static bool CanEvaluateShifted(Value *V, unsigned NumBits, bool IsLeftShift,  in CanEvaluateShifted()  argument
131 if (CI->getZExtValue() == NumBits) { in CanEvaluateShifted()
159 return CanEvaluateShifted(I->getOperand(0), NumBits, IsLeftShift, IC, I) && in CanEvaluateShifted()
160 CanEvaluateShifted(I->getOperand(1), NumBits, IsLeftShift, IC, I); in CanEvaluateShifted()
164 return canEvaluateShiftedShift(NumBits, IsLeftShift, I, IC, CxtI); in CanEvaluateShifted()
170 return CanEvaluateShifted(TrueVal, NumBits, IsLeftShift, IC, SI) && in CanEvaluateShifted()
171 CanEvaluateShifted(FalseVal, NumBits, IsLeftShift, IC, SI); in CanEvaluateShifted()
179 if (!CanEvaluateShifted(IncValue, NumBits, IsLeftShift, IC, PN)) in CanEvaluateShifted()
188 static Value *GetShiftedValue(Value *V, unsigned NumBits, bool isLeftShift, in GetShiftedValue() argument
193 V = IC.Builder->CreateShl(C, NumBits); in GetShiftedValue()
195 V = IC.Builder->CreateLShr(C, NumBits); in GetShiftedValue()
212 0, GetShiftedValue(I->getOperand(0), NumBits, isLeftShift, IC, DL)); in GetShiftedValue()
214 1, GetShiftedValue(I->getOperand(1), NumBits, isLeftShift, IC, DL)); in GetShiftedValue()
227 unsigned NewShAmt = NumBits+CI->getZExtValue(); in GetShiftedValue()
239 if (CI->getValue() == NumBits) { in GetShiftedValue()
240 APInt Mask(APInt::getLowBitsSet(TypeWidth, TypeWidth - NumBits)); in GetShiftedValue()
252 assert(CI->getZExtValue() > NumBits); in GetShiftedValue()
254 CI->getZExtValue() - NumBits)); in GetShiftedValue()
270 unsigned NewShAmt = NumBits+CI->getZExtValue(); in GetShiftedValue()
281 if (CI->getValue() == NumBits) { in GetShiftedValue()
282 APInt Mask(APInt::getHighBitsSet(TypeWidth, TypeWidth - NumBits)); in GetShiftedValue()
294 assert(CI->getZExtValue() > NumBits); in GetShiftedValue()
296 CI->getZExtValue() - NumBits)); in GetShiftedValue()
303 1, GetShiftedValue(I->getOperand(1), NumBits, isLeftShift, IC, DL)); in GetShiftedValue()
305 2, GetShiftedValue(I->getOperand(2), NumBits, isLeftShift, IC, DL)); in GetShiftedValue()
313 PN->setIncomingValue(i, GetShiftedValue(PN->getIncomingValue(i), NumBits, in GetShiftedValue()