Lines Matching refs:ConstantInt
49 Value *Rem = Builder->CreateAnd(A, ConstantInt::get(I.getType(), *B-1), in commonShiftTransforms()
67 auto *SecondShiftConst = dyn_cast<ConstantInt>(SecondShift->getOperand(1)); in canEvaluateShiftedShift()
128 ConstantInt *CI = nullptr; in CanEvaluateShifted()
222 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); in GetShiftedValue()
231 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()
242 ConstantInt::get(BO->getContext(), Mask)); in GetShiftedValue()
253 BO->setOperand(1, ConstantInt::get(BO->getType(), in GetShiftedValue()
265 ConstantInt *CI = cast<ConstantInt>(BO->getOperand(1)); in GetShiftedValue()
274 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()
284 ConstantInt::get(BO->getContext(), Mask)); in GetShiftedValue()
295 BO->setOperand(1, ConstantInt::get(BO->getType(), in GetShiftedValue()
326 ConstantInt *COp1 = nullptr; in FoldShiftByConstant()
328 COp1 = dyn_cast_or_null<ConstantInt>(CV->getSplatValue()); in FoldShiftByConstant()
330 COp1 = dyn_cast_or_null<ConstantInt>(CV->getSplatValue()); in FoldShiftByConstant()
332 COp1 = dyn_cast<ConstantInt>(Op1); in FoldShiftByConstant()
379 isa<ConstantInt>(TrOp->getOperand(1))) { in FoldShiftByConstant()
406 ConstantInt::get(I.getContext(), MaskV), in FoldShiftByConstant()
418 ConstantInt *CC; in FoldShiftByConstant()
438 Constant *Mask = ConstantInt::get(I.getContext(), Bits); in FoldShiftByConstant()
474 Constant *Mask = ConstantInt::get(I.getContext(), Bits); in FoldShiftByConstant()
501 if (ConstantInt *Op0C = dyn_cast<ConstantInt>(Op0BO->getOperand(1))) { in FoldShiftByConstant()
547 if (ShiftOp && isa<ConstantInt>(ShiftOp->getOperand(1))) { in FoldShiftByConstant()
561 ConstantInt *ShiftAmt1C = cast<ConstantInt>(ShiftOp->getOperand(1)); in FoldShiftByConstant()
582 ConstantInt::get(Ty, AmtSum)); in FoldShiftByConstant()
591 ConstantInt::get(I.getContext(), Mask)); in FoldShiftByConstant()
604 ConstantInt *ShiftDiffCst = ConstantInt::get(Ty, ShiftDiff); in FoldShiftByConstant()
615 ConstantInt *ShiftDiffCst = ConstantInt::get(Ty, ShiftDiff); in FoldShiftByConstant()
627 ConstantInt::get(I.getContext(),Mask)); in FoldShiftByConstant()
636 ConstantInt *ShiftDiffCst = ConstantInt::get(Ty, ShiftDiff); in FoldShiftByConstant()
653 ConstantInt *ShiftDiffCst = ConstantInt::get(Ty, ShiftDiff); in FoldShiftByConstant()
663 ConstantInt *ShiftDiffCst = ConstantInt::get(Ty, ShiftDiff); in FoldShiftByConstant()
675 ConstantInt::get(I.getContext(),Mask)); in FoldShiftByConstant()
684 ConstantInt *ShiftDiffCst = ConstantInt::get(Ty, ShiftDiff); in FoldShiftByConstant()
708 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(I.getOperand(1))) { in visitShl()
751 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in visitLShr()
764 Constant *RHS = ConstantInt::getSigned(Op0->getType(), isCtPop ? -1:0); in visitLShr()
795 if (ConstantInt *Op1C = dyn_cast<ConstantInt>(Op1)) { in visitAShr()