Lines Matching refs:SetResult
2580 auto SetResult = [&](Value *OpResult, Constant *OverflowVal, bool ReuseName) { in OptimizeOverflowCheck() local
2601 return SetResult(Builder->CreateNUWAdd(LHS, RHS), Builder->getFalse(), in OptimizeOverflowCheck()
2605 return SetResult(Builder->CreateAdd(LHS, RHS), Builder->getTrue(), true); in OptimizeOverflowCheck()
2611 return SetResult(LHS, Builder->getFalse(), false); in OptimizeOverflowCheck()
2617 return SetResult(Builder->CreateNSWAdd(LHS, RHS), Builder->getFalse(), in OptimizeOverflowCheck()
2626 return SetResult(LHS, Builder->getFalse(), false); in OptimizeOverflowCheck()
2630 return SetResult(Builder->CreateNSWSub(LHS, RHS), Builder->getFalse(), in OptimizeOverflowCheck()
2634 return SetResult(Builder->CreateNUWSub(LHS, RHS), Builder->getFalse(), in OptimizeOverflowCheck()
2643 return SetResult(Builder->CreateNUWMul(LHS, RHS), Builder->getFalse(), in OptimizeOverflowCheck()
2646 return SetResult(Builder->CreateMul(LHS, RHS), Builder->getTrue(), true); in OptimizeOverflowCheck()
2651 return SetResult(RHS, UndefValue::get(Builder->getInt1Ty()), false); in OptimizeOverflowCheck()
2655 return SetResult(RHS, Builder->getFalse(), false); in OptimizeOverflowCheck()
2659 return SetResult(LHS, Builder->getFalse(), false); in OptimizeOverflowCheck()
2663 return SetResult(Builder->CreateNSWMul(LHS, RHS), Builder->getFalse(), in OptimizeOverflowCheck()