• Home
  • Raw
  • Download

Lines Matching refs:ConstantExpr

31   return ConstantExpr::getAdd(C, ConstantInt::get(C->getType(), 1));  in AddOne()
35 return ConstantExpr::getSub(C, ConstantInt::get(C->getType(), 1)); in SubOne()
39 return cast<ConstantInt>(ConstantExpr::getExtractElement(V, Idx)); in ExtractElement()
57 Result = ConstantExpr::getAdd(In1, In2); in AddWithOverflow()
92 Result = ConstantExpr::getSub(In1, In2); in SubWithOverflow()
279 Elt = ConstantExpr::getExtractValue(Elt, LaterIndices); in FoldCmpLoadFromIndexedGlobal()
282 if (AndCst) Elt = ConstantExpr::getAnd(Elt, AndCst); in FoldCmpLoadFromIndexedGlobal()
667 (isa<ConstantExpr>(GEPLHS) || GEPLHS->hasOneUse()) && in FoldGEPICmp()
668 (isa<ConstantExpr>(GEPRHS) || GEPRHS->hasOneUse())) { in FoldGEPICmp()
707 ConstantExpr::getSub(ConstantInt::getAllOnesValue(CI->getType()), CI); in FoldICmpAddOpCst()
715 return new ICmpInst(ICmpInst::ICMP_ULT, X, ConstantExpr::getNeg(CI)); in FoldICmpAddOpCst()
728 return new ICmpInst(ICmpInst::ICMP_SGT, X, ConstantExpr::getSub(SMax, CI)); in FoldICmpAddOpCst()
739 return new ICmpInst(ICmpInst::ICMP_SLT, X, ConstantExpr::getSub(SMax, C)); in FoldICmpAddOpCst()
774 Constant *Prod = ConstantExpr::getMul(CmpRHS, DivRHS); in FoldICmpDivCst()
779 bool ProdOV = (DivIsSigned ? ConstantExpr::getSDiv(Prod, DivRHS) : in FoldICmpDivCst()
780 ConstantExpr::getUDiv(Prod, DivRHS)) != CmpRHS; in FoldICmpDivCst()
812 LoBound = ConstantExpr::getNeg(SubOne(RangeSize)); in FoldICmpDivCst()
824 ConstantInt *DivNeg =cast<ConstantInt>(ConstantExpr::getNeg(RangeSize)); in FoldICmpDivCst()
830 RangeSize = cast<ConstantInt>(ConstantExpr::getNeg(RangeSize)); in FoldICmpDivCst()
834 HiBound = cast<ConstantInt>(ConstantExpr::getNeg(RangeSize)); in FoldICmpDivCst()
1091 ConstantExpr::getZExt(AndCST, Cast->getSrcTy())); in visitICmpInstWithInstAndIntCst()
1094 ConstantExpr::getZExt(RHS, Cast->getSrcTy())); in visitICmpInstWithInstAndIntCst()
1107 ConstantExpr::getTrunc(AndCST, Ty)); in visitICmpInstWithInstAndIntCst()
1110 ConstantExpr::getTrunc(RHS, Ty)); in visitICmpInstWithInstAndIntCst()
1147 NewCst = ConstantExpr::getLShr(RHS, ShAmt); in visitICmpInstWithInstAndIntCst()
1149 NewCst = ConstantExpr::getShl(RHS, ShAmt); in visitICmpInstWithInstAndIntCst()
1153 if (ConstantExpr::get(Shift->getOpcode(), in visitICmpInstWithInstAndIntCst()
1168 NewAndCST = ConstantExpr::getLShr(AndCST, ShAmt); in visitICmpInstWithInstAndIntCst()
1170 NewAndCST = ConstantExpr::getShl(AndCST, ShAmt); in visitICmpInstWithInstAndIntCst()
1254 ConstantExpr::getShl(ConstantExpr::getLShr(RHS, ShAmt), in visitICmpInstWithInstAndIntCst()
1267 ConstantExpr::getLShr(RHS, ShAmt)); in visitICmpInstWithInstAndIntCst()
1279 ConstantExpr::getLShr(RHS, ShAmt)); in visitICmpInstWithInstAndIntCst()
1387 ConstantExpr::getSub(RHS, BOp1C)); in visitICmpInstWithInstAndIntCst()
1409 ConstantExpr::getXor(RHS, BOC)); in visitICmpInstWithInstAndIntCst()
1421 ConstantExpr::getSub(BOp0C, RHS)); in visitICmpInstWithInstAndIntCst()
1432 Constant *NotCI = ConstantExpr::getNot(RHS); in visitICmpInstWithInstAndIntCst()
1433 if (!ConstantExpr::getAnd(BOC, NotCI)->isNullValue()) in visitICmpInstWithInstAndIntCst()
1471 Constant *NegX = ConstantExpr::getNeg(BOC); in visitICmpInstWithInstAndIntCst()
1531 RHSOp = ConstantExpr::getIntToPtr(RHSC, SrcTy); in visitICmpInstWithCastAndCast()
1583 Constant *Res1 = ConstantExpr::getTrunc(CI, SrcTy); in visitICmpInstWithCastAndCast()
1584 Constant *Res2 = ConstantExpr::getCast(LHSCI->getOpcode(), in visitICmpInstWithCastAndCast()
2173 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
2175 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
2244 Op1 = ConstantExpr::getBitCast(Op1C, Op0->getType()); in visitICmpInst()
2449 return new ICmpInst(I.getPredicate(), ConstantExpr::getNot(RHSC), A); in visitICmpInst()
2692 ? ConstantExpr::getFPToUI(RHSC, IntTy) in FoldFCmp_IntToFP_Cst()
2693 : ConstantExpr::getFPToSI(RHSC, IntTy); in FoldFCmp_IntToFP_Cst()
2696 ? ConstantExpr::getUIToFP(RHSInt, RHSC->getType()) == RHSC in FoldFCmp_IntToFP_Cst()
2697 : ConstantExpr::getSIToFP(RHSInt, RHSC->getType()) == RHSC; in FoldFCmp_IntToFP_Cst()
2868 Op1 = ConstantExpr::getCompare(I.getPredicate(), C, RHSC); in visitFCmpInst()
2874 Op2 = ConstantExpr::getCompare(I.getPredicate(), C, RHSC); in visitFCmpInst()
2890 ConstantExpr::getFNeg(RHSC)); in visitFCmpInst()