Lines Matching refs:ConstantExpr
24 return ConstantExpr::getAdd(C, ConstantInt::get(C->getType(), 1)); in AddOne()
183 return BinaryOperator::CreateMul(X, ConstantExpr::getAdd(C1, C2)); in visitAdd()
293 ConstantExpr::getTrunc(RHSC, LHSConv->getOperand(0)->getType()); in visitAdd()
295 ConstantExpr::getSExt(CI, I.getType()) == RHSC && in visitAdd()
366 ConstantExpr::getFPToSI(CFP, LHSConv->getOperand(0)->getType()); in visitFAdd()
368 ConstantExpr::getSIToFP(CI, I.getType()) == CFP && in visitFAdd()
434 ConstantExpr::getIntegerCast(OpC, IntPtrTy, true /*SExt*/); in EmitGEPOffset()
435 Scale = ConstantExpr::getMul(OC, Scale, isInBounds/*NUW*/); in EmitGEPOffset()
470 ConstantExpr *CstGEP = 0; in OptimizePointerDifference()
480 } else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(RHS)) { in OptimizePointerDifference()
496 } else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(LHS)) { in OptimizePointerDifference()
589 return BinaryOperator::CreateSub(ConstantExpr::getSub(C, C2), X); in visitSub()
624 return BinaryOperator::CreateSDiv(X, ConstantExpr::getNeg(C)); in visitSub()
633 Constant *CP1 = ConstantExpr::getSub(ConstantInt::get(I.getType(),1), CI); in visitSub()
640 C = ConstantExpr::getSub(One, ConstantExpr::getShl(One, CI)); in visitSub()
655 Value *NewMul = Builder->CreateMul(A, ConstantExpr::getNeg(CI)); in visitSub()
667 return BinaryOperator::CreateMul(X, ConstantExpr::getSub(C1, C2)); in visitSub()