Go to file
Craig Topper a92fd0bebb [APInt] Add a utility method to change the bit width and storage size of an APInt.
Summary:
This adds a resize method to APInt that manages deleting/allocating storage for an APInt and changes its bit width. Use this to simplify code in copy assignment and divide.

The assignment code in particular was overly complicated. Treating every possible case as a separate implementation. I'm also pretty sure the clearUnusedBits code at the end was unnecessary. Since we always copying whole words from the source APInt. All unused bits should be clear in the source.

Reviewers: hans, RKSimon

Reviewed By: RKSimon

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D33073

llvm-svn: 302863
2017-05-12 01:46:01 +00:00
clang [tooling] RefactoringCallbacks code cleanup 2017-05-12 00:16:56 +00:00
clang-tools-extra [clang-tidy][CMake] Make clang-tidy usable as distribution component 2017-05-10 16:20:54 +00:00
compiler-rt [XRay][compiler-rt] Remove unused variable after refactoring 2017-05-12 01:43:20 +00:00
debuginfo-tests Add additional CHECKs to safestack.c. 2017-04-17 17:57:05 +00:00
libclc math: Implement sinh function 2017-02-25 02:46:53 +00:00
libcxx Fix or move tests with non-standard assumptions 2017-05-12 01:44:51 +00:00
libcxxabi [Libcxxabi]: Support using compiler-rt for MinGW64 2017-05-11 21:16:29 +00:00
libunwind [CMake][libunwind] Fix the -target and -gcc-toolchain flag handling 2017-04-16 06:08:44 +00:00
lld Detemplate compareSections. NFC. 2017-05-11 23:37:55 +00:00
lldb xfail TestClassTemplateParameterPack on gcc to mollify lldb-x86_64-ubuntu-14.04-cmake. 2017-05-11 23:38:21 +00:00
llgo benchcomp: Add a mode for analyzing file sizes. 2017-04-03 19:13:12 +00:00
llvm [APInt] Add a utility method to change the bit width and storage size of an APInt. 2017-05-12 01:46:01 +00:00
openmp [OpenMP] Changes in the plugin interface 2017-05-10 14:12:36 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly [DeLICM] Use input access heuristic for mapped PHI WRITEs. 2017-05-11 22:56:59 +00:00