Lines Matching refs:BO

219     BinaryOperator *BO = cast<BinaryOperator>(I);  in GetShiftedValue()  local
220 unsigned TypeWidth = BO->getType()->getScalarSizeInBits(); in GetShiftedValue()
223 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); in GetShiftedValue()
232 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()
233 BO->setHasNoUnsignedWrap(false); in GetShiftedValue()
234 BO->setHasNoSignedWrap(false); in GetShiftedValue()
242 V = IC.Builder->CreateAnd(BO->getOperand(0), in GetShiftedValue()
243 ConstantInt::get(BO->getContext(), Mask)); in GetShiftedValue()
245 VI->moveBefore(BO); in GetShiftedValue()
246 VI->takeName(BO); in GetShiftedValue()
254 BO->setOperand(1, ConstantInt::get(BO->getType(), in GetShiftedValue()
256 BO->setHasNoUnsignedWrap(false); in GetShiftedValue()
257 BO->setHasNoSignedWrap(false); in GetShiftedValue()
258 return BO; in GetShiftedValue()
261 BinaryOperator *BO = cast<BinaryOperator>(I); in GetShiftedValue() local
262 unsigned TypeWidth = BO->getType()->getScalarSizeInBits(); in GetShiftedValue()
264 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); in GetShiftedValue()
271 return Constant::getNullValue(BO->getType()); in GetShiftedValue()
273 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()
274 BO->setIsExact(false); in GetShiftedValue()
283 ConstantInt::get(BO->getContext(), Mask)); in GetShiftedValue()
294 BO->setOperand(1, ConstantInt::get(BO->getType(), in GetShiftedValue()
296 BO->setIsExact(false); in GetShiftedValue()
297 return BO; in GetShiftedValue()
355 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0)) in FoldShiftByConstant() local
356 if (BO->getOpcode() == Instruction::Mul && isLeftShift) in FoldShiftByConstant()
357 if (Constant *BOOp = dyn_cast<Constant>(BO->getOperand(1))) in FoldShiftByConstant()
358 return BinaryOperator::CreateMul(BO->getOperand(0), in FoldShiftByConstant()