• Home
  • Raw
  • Download

Lines Matching refs:BinaryOperator

86 Instruction *InstCombiner::visitAdd(BinaryOperator &I) {  in visitAdd()
102 return BinaryOperator::CreateXor(LHS, RHS); in visitAdd()
137 return BinaryOperator::CreateAShr(NewShl, ShAmt); in visitAdd()
147 return BinaryOperator::CreateXor(LHS, RHS); in visitAdd()
151 BinaryOperator *New = in visitAdd()
152 BinaryOperator::CreateShl(LHS, ConstantInt::get(I.getType(), 1)); in visitAdd()
163 return BinaryOperator::CreateNeg(NewAdd); in visitAdd()
166 return BinaryOperator::CreateSub(RHS, LHSV); in visitAdd()
172 return BinaryOperator::CreateSub(LHS, V); in visitAdd()
178 return BinaryOperator::CreateMul(RHS, AddOne(C2)); in visitAdd()
183 return BinaryOperator::CreateMul(X, ConstantExpr::getAdd(C1, C2)); in visitAdd()
188 return BinaryOperator::CreateMul(LHS, AddOne(C2)); in visitAdd()
203 return BinaryOperator::CreateOr(LHS, RHS); in visitAdd()
225 return BinaryOperator::CreateMul(W, NewAdd); in visitAdd()
233 return BinaryOperator::CreateSub(SubOne(CRHS), X); in visitAdd()
252 return BinaryOperator::CreateAnd(NewAdd, C2); in visitAdd()
324 Instruction *InstCombiner::visitFAdd(BinaryOperator &I) { in visitFAdd()
344 return BinaryOperator::CreateFSub(RHS, LHSV); in visitFAdd()
349 return BinaryOperator::CreateFSub(LHS, V); in visitFAdd()
529 Instruction *InstCombiner::visitSub(BinaryOperator &I) { in visitSub()
542 BinaryOperator *Res = BinaryOperator::CreateAdd(Op0, V); in visitSub()
549 return BinaryOperator::CreateXor(Op0, Op1); in visitSub()
553 return BinaryOperator::CreateNot(Op1); in visitSub()
559 return BinaryOperator::CreateAdd(X, AddOne(C)); in visitSub()
568 return BinaryOperator::CreateAShr(X, CI); in visitSub()
573 return BinaryOperator::CreateLShr(X, CI); in visitSub()
589 return BinaryOperator::CreateSub(ConstantExpr::getSub(C, C2), X); in visitSub()
597 return BinaryOperator::CreateNeg(Y); in visitSub()
601 return BinaryOperator::CreateNeg(Y); in visitSub()
611 return BinaryOperator::CreateAdd(Op0, in visitSub()
618 return BinaryOperator::CreateAnd(Op0, in visitSub()
624 return BinaryOperator::CreateSDiv(X, ConstantExpr::getNeg(C)); in visitSub()
629 return BinaryOperator::CreateShl(XNeg, Y); in visitSub()
634 return BinaryOperator::CreateMul(Op0, CP1); in visitSub()
641 return BinaryOperator::CreateMul(Op0, C); in visitSub()
649 return BinaryOperator::CreateAdd(Op0, Builder->CreateMul(A, B)); in visitSub()
656 return BinaryOperator::CreateAdd(Op0, NewMul); in visitSub()
663 return BinaryOperator::CreateMul(Op1, SubOne(C1)); in visitSub()
667 return BinaryOperator::CreateMul(X, ConstantExpr::getSub(C1, C2)); in visitSub()
689 Instruction *InstCombiner::visitFSub(BinaryOperator &I) { in visitFSub()
694 return BinaryOperator::CreateFAdd(Op0, V); in visitFSub()