Express APInt::{s,u}{l,g}e(uint64_t) in terms of APInt::{s,u}{l,g}t(uint64_t). NFC.
authorPawel Bylica <chfast@gmail.com>
Thu, 25 Jun 2015 10:23:52 +0000 (10:23 +0000)
committerPawel Bylica <chfast@gmail.com>
Thu, 25 Jun 2015 10:23:52 +0000 (10:23 +0000)
commit780a0c9266692ca159eae149babf229a641725ab
tree1edb0a1329e6e78cc3b7dff228aaf085a3c60829
parente39f000353834255336b9b34f018f7c3ffbf75f5
Express APInt::{s,u}{l,g}e(uint64_t) in terms of APInt::{s,u}{l,g}t(uint64_t). NFC.

This is preparation for http://reviews.llvm.org/D10655: Change APInt comparison with uint64_t.
Some unit tests added also.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240626 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APInt.h
unittests/ADT/APIntTest.cpp