Searched refs:OverflowingBinaryOperator (Results 1 – 15 of 15) sorted by relevance
71 class OverflowingBinaryOperator : public Operator {79 ~OverflowingBinaryOperator(); // do not implement105 static inline bool classof(const OverflowingBinaryOperator *) { return true; } in classof() argument189 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Add> {193 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Sub> {197 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Mul> {201 : public ConcreteOperator<OverflowingBinaryOperator, Instruction::Shl> {
35 if (OverflowingBinaryOperator *BO = in FoldPHIArgBinOpIntoPHI()36 dyn_cast<OverflowingBinaryOperator>(FirstInst)) { in FoldPHIArgBinOpIntoPHI()59 isNUW = cast<OverflowingBinaryOperator>(I)->hasNoUnsignedWrap(); in FoldPHIArgBinOpIntoPHI()61 isNSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in FoldPHIArgBinOpIntoPHI()419 if (OverflowingBinaryOperator *BO = in FoldPHIArgOpIntoPHI()420 dyn_cast<OverflowingBinaryOperator>(FirstInst)) { in FoldPHIArgOpIntoPHI()443 isNUW = cast<OverflowingBinaryOperator>(I)->hasNoUnsignedWrap(); in FoldPHIArgOpIntoPHI()445 isNSW = cast<OverflowingBinaryOperator>(I)->hasNoSignedWrap(); in FoldPHIArgOpIntoPHI()
232 if (isa<OverflowingBinaryOperator>(BO)) { in FoldSelectIntoOp()267 if (isa<OverflowingBinaryOperator>(BO)) { in FoldSelectIntoOp()
717 if (cast<OverflowingBinaryOperator>(Op0)->hasNoSignedWrap()) in visitAShr()
34 OverflowingBinaryOperator *OBI = dyn_cast<OverflowingBinaryOperator>(Val); in DecomposeSimpleLinearExpr()
2272 if (BO0 && isa<OverflowingBinaryOperator>(BO0)) in visitICmpInst()2276 if (BO1 && isa<OverflowingBinaryOperator>(BO1)) in visitICmpInst()
1781 unsigned Flags = (HasNUW ? OverflowingBinaryOperator::NoUnsignedWrap : 0) | in getAdd()1782 (HasNSW ? OverflowingBinaryOperator::NoSignedWrap : 0); in getAdd()1792 unsigned Flags = (HasNUW ? OverflowingBinaryOperator::NoUnsignedWrap : 0) | in getSub()1793 (HasNSW ? OverflowingBinaryOperator::NoSignedWrap : 0); in getSub()1803 unsigned Flags = (HasNUW ? OverflowingBinaryOperator::NoUnsignedWrap : 0) | in getMul()1804 (HasNSW ? OverflowingBinaryOperator::NoSignedWrap : 0); in getMul()1852 unsigned Flags = (HasNUW ? OverflowingBinaryOperator::NoUnsignedWrap : 0) | in getShl()1853 (HasNSW ? OverflowingBinaryOperator::NoSignedWrap : 0); in getShl()
1699 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(b); in setHasNoUnsignedWrap()1703 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(b); in setHasNoSignedWrap()1711 return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap(); in hasNoUnsignedWrap()1715 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); in hasNoSignedWrap()
663 if (const OverflowingBinaryOperator *OBO = in WriteOptimizationInfo()664 dyn_cast<OverflowingBinaryOperator>(U)) { in WriteOptimizationInfo()
445 OverflowingBinaryOperator *OBO = cast<OverflowingBinaryOperator>(I); in ComputeMaskedBits()
1092 cast<OverflowingBinaryOperator>(Op0)->hasNoUnsignedWrap()) in SimplifyLShrInst()1122 cast<OverflowingBinaryOperator>(Op0)->hasNoSignedWrap()) in SimplifyAShrInst()
921 if (const OverflowingBinaryOperator *OBO = in CloneIVUser()922 dyn_cast<OverflowingBinaryOperator>(NarrowBO)) { in CloneIVUser()
499 if (const OverflowingBinaryOperator *OBO = in GetOptimizationFlags()500 dyn_cast<OverflowingBinaryOperator>(V)) { in GetOptimizationFlags()
1317 Flags |= OverflowingBinaryOperator::NoSignedWrap; in ParseConstants()1319 Flags |= OverflowingBinaryOperator::NoUnsignedWrap; in ParseConstants()
2224 if (NUW) Flags |= OverflowingBinaryOperator::NoUnsignedWrap; in ParseValID()2225 if (NSW) Flags |= OverflowingBinaryOperator::NoSignedWrap; in ParseValID()