Lines Matching defs:Res
429 if (Constant *Res = FoldReinterpretLoadFromConstPtr(C, DL))
430 return FoldBitCast(Res, LoadTy, DL);
585 Constant *Res = ConstantInt::get(CE->getContext(), StrVal);
587 Res = ConstantExpr::getBitCast(Res, Ty);
588 return Res;
754 Constant *Res = ConstantExpr::getPtrToInt(Ptr, CE->getType());
755 Res = ConstantExpr::getSub(Res, CE->getOperand(1));
756 Res = ConstantExpr::getIntToPtr(Res, ResultTy);
757 if (ConstantExpr *ResCE = dyn_cast<ConstantExpr>(Res))
758 Res = ConstantFoldConstantExpression(ResCE, DL, TLI);
759 return Res;
1719 APInt Res;
1724 Res = Op1->getValue().sadd_ov(Op2->getValue(), Overflow);
1727 Res = Op1->getValue().uadd_ov(Op2->getValue(), Overflow);
1730 Res = Op1->getValue().ssub_ov(Op2->getValue(), Overflow);
1733 Res = Op1->getValue().usub_ov(Op2->getValue(), Overflow);
1736 Res = Op1->getValue().smul_ov(Op2->getValue(), Overflow);
1739 Res = Op1->getValue().umul_ov(Op2->getValue(), Overflow);
1743 ConstantInt::get(Ty->getContext(), Res),