commit | 4974f8f5951b6307f251ad00050dd6481ab5f9c9 | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Tue Nov 20 16:47:59 2018 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Tue Nov 20 16:47:59 2018 +0000 |
tree | 755417a2773aea92a6f6e240813f131e801d864f | |
parent | 40bfd6fe1ec8f201e70ccb76ec726e96e5d90caa [diff] |
[APInt] Add methods for saturated add and sub This adds the sadd_sat, uadd_sat, ssub_sat, usub_sat methods for performing saturating additions and subtractions to APInt. Split out from D54237. Patch by: nikic (Nikita Popov) Differential Revision: https://reviews.llvm.org/D54332 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347324 91177308-0d34-0410-b5e6-96231b3b80d8