• Home
  • Raw
  • Download

Lines Matching refs:BinaryOperator

21 Instruction *InstCombiner::commonShiftTransforms(BinaryOperator &I) {  in commonShiftTransforms()
303 BinaryOperator &I) { in FoldShiftByConstant()
335 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(Op0)) in FoldShiftByConstant()
338 return BinaryOperator::CreateMul(BO->getOperand(0), in FoldShiftByConstant()
394 if (BinaryOperator *Op0BO = dyn_cast<BinaryOperator>(Op0)) { in FoldShiftByConstant()
415 return BinaryOperator::CreateAnd(X, ConstantInt::get(I.getContext(), in FoldShiftByConstant()
425 cast<BinaryOperator>(Op0BOOp1)->getOperand(0)->hasOneUse()) { in FoldShiftByConstant()
432 return BinaryOperator::Create(Op0BO->getOpcode(), YS, XM); in FoldShiftByConstant()
448 return BinaryOperator::CreateAnd(X, ConstantInt::get(I.getContext(), in FoldShiftByConstant()
457 cast<BinaryOperator>(Op0BO->getOperand(0)) in FoldShiftByConstant()
465 return BinaryOperator::Create(Op0BO->getOpcode(), XM, YS); in FoldShiftByConstant()
509 return BinaryOperator::Create(Op0BO->getOpcode(), NewShift, in FoldShiftByConstant()
517 BinaryOperator *ShiftOp = dyn_cast<BinaryOperator>(Op0); in FoldShiftByConstant()
543 return BinaryOperator::Create(I.getOpcode(), X, in FoldShiftByConstant()
552 return BinaryOperator::CreateAnd(X, in FoldShiftByConstant()
559 return BinaryOperator::CreateAnd(X, in FoldShiftByConstant()
573 return BinaryOperator::CreateAnd(Shift, in FoldShiftByConstant()
584 return BinaryOperator::CreateAnd(Shift, in FoldShiftByConstant()
600 return BinaryOperator::CreateAnd(Shift, in FoldShiftByConstant()
610 return BinaryOperator::CreateAnd(Shift, in FoldShiftByConstant()
620 Instruction *InstCombiner::visitShl(BinaryOperator &I) { in visitShl()
653 return BinaryOperator::CreateShl(ConstantExpr::getShl(C1, C2), A); in visitShl()
658 Instruction *InstCombiner::visitLShr(BinaryOperator &I) { in visitLShr()
698 Instruction *InstCombiner::visitAShr(BinaryOperator &I) { in visitAShr()
744 return BinaryOperator::CreateLShr(Op0, Op1); in visitAShr()