Support: Write ScaledNumbers::getRounded()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 20 Jun 2014 01:30:43 +0000 (01:30 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 20 Jun 2014 01:30:43 +0000 (01:30 +0000)
commit16e592a6fe237900a7fa347c732f29395013fc34
tree66a4eaed0c841721e093500d237d9fef612352d5
parentc577e71bf580d344970406915e050a301ae8a28d
Support: Write ScaledNumbers::getRounded()

Start extracting helper functions out of -block-freq's `UnsignedFloat`
into `Support/ScaledNumber.h` with the eventual goal of moving and
renaming the class to `ScaledNumber`.

The bike shed about names is still being painted, but I'm going with
this for now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211333 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/BlockFrequencyInfoImpl.h
include/llvm/Support/ScaledNumber.h [new file with mode: 0644]
unittests/Support/CMakeLists.txt
unittests/Support/ScaledNumberTest.cpp [new file with mode: 0644]