Add some things needed by the llvm-gcc version supporting bit accurate integer
authorReid Spencer <rspencer@reidspencer.com>
Sun, 13 May 2007 23:44:59 +0000 (23:44 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 13 May 2007 23:44:59 +0000 (23:44 +0000)
commit19dc32a2d422ac0aafd047514e3e5e727796696e
tree5fc3fd6136231d28fda221c83f4abe84faeeebd1
parent9273418777fb0c25da9067d6eec57402a504e94e
Add some things needed by the llvm-gcc version supporting bit accurate integer
types:
1. Functions to compute div/rem at the same time.
2. Further assurance that an APInt with 0 bitwidth cannot be constructed.
3. Left and right rotate operations.
4. An exactLogBase2 function which requires an exact power of two or it
   returns -1.

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