reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/Transforms/InstCombine/InstCombineCalls.cpp
 2081     Type *Ty = SI->getType();
 2082     Value *Arg0 = SI->getLHS();
 2083     Value *Arg1 = SI->getRHS();
 2086     OverflowResult OR = computeOverflow(SI->getBinaryOp(), SI->isSigned(),
 2086     OverflowResult OR = computeOverflow(SI->getBinaryOp(), SI->isSigned(),
 2087                                         Arg0, Arg1, SI);
 2092         if (SI->isSigned())
 2093           return BinaryOperator::CreateNSW(SI->getBinaryOp(), Arg0, Arg1);
 2095           return BinaryOperator::CreateNUW(SI->getBinaryOp(), Arg0, Arg1);
 2098         APInt Min = APSInt::getMinValue(BitWidth, !SI->isSigned());
 2099         return replaceInstUsesWith(*SI, ConstantInt::get(Ty, Min));
 2103         APInt Max = APSInt::getMaxValue(BitWidth, !SI->isSigned());
 2104         return replaceInstUsesWith(*SI, ConstantInt::get(Ty, Max));