diff options
| author | Philip Reames <listmail@philipreames.com> | 2016-02-26 22:08:18 +0000 |
|---|---|---|
| committer | Philip Reames <listmail@philipreames.com> | 2016-02-26 22:08:18 +0000 |
| commit | ba31312f6395774e7c0d801a7abb876048e4a1ba (patch) | |
| tree | 1795edc90fdc4238b7badd223d5d471ad5b9a973 /llvm/include | |
| parent | 915c5ecee16658544c5a35eabd7cbc404cdedd0d (diff) | |
| download | bcm5719-llvm-ba31312f6395774e7c0d801a7abb876048e4a1ba.tar.gz bcm5719-llvm-ba31312f6395774e7c0d801a7abb876048e4a1ba.zip | |
[ConstantRange] Add umin/smin operators
This was split off from http://reviews.llvm.org/D17184.
Reviewed by: Sanjoy
llvm-svn: 262080
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/IR/ConstantRange.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/include/llvm/IR/ConstantRange.h b/llvm/include/llvm/IR/ConstantRange.h index f2a77765dcf..5038ae13b6a 100644 --- a/llvm/include/llvm/IR/ConstantRange.h +++ b/llvm/include/llvm/IR/ConstantRange.h @@ -254,6 +254,14 @@ public: ConstantRange umax(const ConstantRange &Other) const; /// Return a new range representing the possible values resulting + /// from a signed minimum of a value in this range and a value in \p Other. + ConstantRange smin(const ConstantRange &Other) const; + + /// Return a new range representing the possible values resulting + /// from an unsigned minimum of a value in this range and a value in \p Other. + ConstantRange umin(const ConstantRange &Other) const; + + /// Return a new range representing the possible values resulting /// from an unsigned division of a value in this range and a value in /// \p Other. ConstantRange udiv(const ConstantRange &Other) const; |

