summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lldbdwarf.py
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2019-11-08 17:19:56 +0300
committerRoman Lebedev <lebedev.ri@gmail.com>2019-11-08 17:52:43 +0300
commit5a9fd76d2f7cd831cb02a33ea6a267256e37f69c (patch)
tree802532d5741da04aa1906efc675970757d90bbf4 /lldb/packages/Python/lldbsuite/test/lldbdwarf.py
parent9ca363d89c103b06b986f87c0eaf3e8a00b06947 (diff)
downloadbcm5719-llvm-5a9fd76d2f7cd831cb02a33ea6a267256e37f69c.tar.gz
bcm5719-llvm-5a9fd76d2f7cd831cb02a33ea6a267256e37f69c.zip
[ConstantRange] Add umul_sat()/smul_sat() methods
Summary: To be used in `ConstantRange::mulWithNoOverflow()`, may in future be useful for when saturating shift/mul ops are added. These are precise as far as i can tell. I initially though i will need `APInt::[us]mul_sat()` for these, but it turned out much simpler to do what `ConstantRange::multiply()` does - perform multiplication in twice the bitwidth, and then truncate. Though here we want saturating signed truncation. Reviewers: nikic, reames, spatel Reviewed By: nikic Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D69994
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbdwarf.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud