Change APFloat::convertFromInteger to take the incoming
authorDale Johannesen <dalej@apple.com>
Fri, 21 Sep 2007 22:09:37 +0000 (22:09 +0000)
committerDale Johannesen <dalej@apple.com>
Fri, 21 Sep 2007 22:09:37 +0000 (22:09 +0000)
commit910993e8dc49a25d9da3b53de4a82568c14e91cc
tree3dbc8815c0b1b48e3bdaf73a2b46004c3827bbcf
parent3f65f02d25b920c3cef4dd8a8fc8fc76cad1236e
Change APFloat::convertFromInteger to take the incoming
bit width instead of number of words allocated, which
makes it actually work for int->APF conversions.
Adjust callers.  Add const to one of the APInt constructors
to prevent surprising match when called with const
argument.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42210 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APInt.h
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/ExecutionEngine/ExecutionEngine.cpp
lib/Support/APFloat.cpp
lib/Support/APInt.cpp