diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-21 15:23:05 +0000 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-21 15:23:05 +0000 |
commit | 198ab6013678e35d6b6cbd9cefad84691ff358b2 (patch) | |
tree | 1f9553127afaab6934d002d68945598c1f638b2b /llvm/lib/Demangle/MicrosoftDemangle.cpp | |
parent | dbc3fbafe7cbf10bac30da4d4b6eb6082fed3daa (diff) | |
download | bcm5719-llvm-198ab6013678e35d6b6cbd9cefad84691ff358b2.tar.gz bcm5719-llvm-198ab6013678e35d6b6cbd9cefad84691ff358b2.zip |
[ConstantRange] Add saturating add/sub methods
Add support for uadd_sat and friends to ConstantRange, so we can
handle uadd.sat and friends in LVI. The implementation is forwarding
to the corresponding APInt methods with appropriate bounds.
One thing worth pointing out here is that the handling of wrapping
ranges is not maximally accurate. A simple example is that adding 0
to a wrapped range will return a full range, rather than the original
wrapped range. The tests also only check that the non-wrapping
envelope is correct and minimal.
Differential Revision: https://reviews.llvm.org/D60946
llvm-svn: 358855
Diffstat (limited to 'llvm/lib/Demangle/MicrosoftDemangle.cpp')
0 files changed, 0 insertions, 0 deletions