diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-04-24 17:37:10 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-04-24 17:37:10 +0000 |
commit | 1dec2811040cec45972dd926ccfa6f34c6f489b2 (patch) | |
tree | 6722f51aa46add8d5395e9c91d5528e132df1842 /lldb/packages/Python/lldbsuite/test/python_api/section | |
parent | 0ab4f06bf11ab0d295f1d249f75a804b96fa2b2a (diff) | |
download | bcm5719-llvm-1dec2811040cec45972dd926ccfa6f34c6f489b2.tar.gz bcm5719-llvm-1dec2811040cec45972dd926ccfa6f34c6f489b2.zip |
[APInt] Simplify the zext and sext methods
This replaces a hand written copy loop with a call to memcpy for both zext and sext.
For sext, it replaces multiple if/else blocks propagating sign information forward. Now we just do a copy, a sign extension on the last copied word, a memset, and clearUnusedBits.
Differential Revision: https://reviews.llvm.org/D32417
llvm-svn: 301201
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/section')
0 files changed, 0 insertions, 0 deletions