diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-05-28 18:08:06 +0000 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-05-28 18:08:06 +0000 |
commit | 2fb0a820df9c9884b9f42efdd0919b309e2b1204 (patch) | |
tree | c6b6e7bccdf4b9d9ebb7a49719c1e657c2d2ff3f /llvm/lib/IR/ConstantRange.cpp | |
parent | 76696654322bd502cfd4592e48fc6a1782de5694 (diff) | |
download | llvm-2fb0a820df9c9884b9f42efdd0919b309e2b1204.zip llvm-2fb0a820df9c9884b9f42efdd0919b309e2b1204.tar.gz llvm-2fb0a820df9c9884b9f42efdd0919b309e2b1204.tar.bz2 |
[IR] Add SaturatingInst and BinaryOpIntrinsic classes
Based on the suggestion in D62447, this adds a SaturatingInst class
that represents the saturating add/sub family of intrinsics. It
exposes the same interface as WithOverflowInst, for this reason I
have also added a common base class BinaryOpIntrinsic that holds the
actual implementation code and will be useful in some places handling
both overflowing and saturating math.
Differential Revision: https://reviews.llvm.org/D62466
llvm-svn: 361857
Diffstat (limited to 'llvm/lib/IR/ConstantRange.cpp')
0 files changed, 0 insertions, 0 deletions