Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:ConstantExpr

33   return ConstantExpr::getAdd(C, ConstantInt::get(C->getType(), 1));
37 return ConstantExpr::getSub(C, ConstantInt::get(C->getType(), 1));
41 return cast<ConstantInt>(ConstantExpr::getExtractElement(V, Idx));
59 Result = ConstantExpr::getAdd(In1, In2);
94 Result = ConstantExpr::getSub(In1, In2);
286 Elt = ConstantExpr::getExtractValue(Elt, LaterIndices);
289 if (AndCst) Elt = ConstantExpr::getAnd(Elt, AndCst);
696 (isa<ConstantExpr>(GEPLHS) || GEPLHS->hasOneUse()) &&
697 (isa<ConstantExpr>(GEPRHS) || GEPRHS->hasOneUse())) {
736 ConstantExpr::getSub(ConstantInt::getAllOnesValue(CI->getType()), CI);
744 return new ICmpInst(ICmpInst::ICMP_ULT, X, ConstantExpr::getNeg(CI));
757 return new ICmpInst(ICmpInst::ICMP_SGT, X, ConstantExpr::getSub(SMax, CI));
768 return new ICmpInst(ICmpInst::ICMP_SLT, X, ConstantExpr::getSub(SMax, C));
803 Constant *Prod = ConstantExpr::getMul(CmpRHS, DivRHS);
808 bool ProdOV = (DivIsSigned ? ConstantExpr::getSDiv(Prod, DivRHS) :
809 ConstantExpr::getUDiv(Prod, DivRHS)) != CmpRHS;
841 LoBound = ConstantExpr::getNeg(SubOne(RangeSize));
853 ConstantInt *DivNeg =cast<ConstantInt>(ConstantExpr::getNeg(RangeSize));
859 RangeSize = cast<ConstantInt>(ConstantExpr::getNeg(RangeSize));
863 HiBound = cast<ConstantInt>(ConstantExpr::getNeg(RangeSize));
1119 ConstantExpr::getZExt(AndCST, Cast->getSrcTy()));
1122 ConstantExpr::getZExt(RHS, Cast->getSrcTy()));
1135 ConstantExpr::getTrunc(AndCST, Ty));
1138 ConstantExpr::getTrunc(RHS, Ty));
1175 NewCst = ConstantExpr::getLShr(RHS, ShAmt);
1177 NewCst = ConstantExpr::getShl(RHS, ShAmt);
1181 if (ConstantExpr::get(Shift->getOpcode(),
1196 NewAndCST = ConstantExpr::getLShr(AndCST, ShAmt);
1198 NewAndCST = ConstantExpr::getShl(AndCST, ShAmt);
1292 ConstantExpr::getShl(ConstantExpr::getLShr(RHS, ShAmt),
1305 ConstantExpr::getLShr(RHS, ShAmt));
1317 ConstantExpr::getLShr(RHS, ShAmt));
1345 Constant *NCI = ConstantExpr::getTrunc(
1346 ConstantExpr::getAShr(RHS,
1445 ConstantExpr::getSub(RHS, BOp1C));
1467 ConstantExpr::getXor(RHS, BOC));
1479 ConstantExpr::getSub(BOp0C, RHS));
1490 Constant *NotCI = ConstantExpr::getNot(RHS);
1491 if (!ConstantExpr::getAnd(BOC, NotCI)->isNullValue())
1529 Constant *NegX = ConstantExpr::getNeg(BOC);
1589 RHSOp = ConstantExpr::getIntToPtr(RHSC, SrcTy);
1641 Constant *Res1 = ConstantExpr::getTrunc(CI, SrcTy);
1642 Constant *Res2 = ConstantExpr::getCast(LHSCI->getOpcode(),
2257 Op1 = ConstantExpr
2259 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC);
2328 Op1 = ConstantExpr::getBitCast(Op1C, Op0->getType());
2550 return new ICmpInst(I.getPredicate(), ConstantExpr::getNot(RHSC), A);
2819 ? ConstantExpr::getFPToUI(RHSC, IntTy)
2820 : ConstantExpr::getFPToSI(RHSC, IntTy);
2823 ? ConstantExpr::getUIToFP(RHSInt, RHSC->getType()) == RHSC
2824 : ConstantExpr::getSIToFP(RHSInt, RHSC->getType()) == RHSC;
2999 Op1 = ConstantExpr::getCompare(I.getPredicate(), C, RHSC);
3005 Op2 = ConstantExpr::getCompare(I.getPredicate(), C, RHSC);
3021 ConstantExpr::getFNeg(RHSC));