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)
commit9c62dd583b0dc969dd7e87c58e7102685b9654ed
tree597354032a1a02dd5dbc1581e066a78dfe139830
parent8366cebeb52a0d9ea9408de1b62f3551b0f6aa89
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.

llvm-svn: 211333
llvm/include/llvm/Analysis/BlockFrequencyInfoImpl.h
llvm/include/llvm/Support/ScaledNumber.h [new file with mode: 0644]
llvm/unittests/Support/CMakeLists.txt
llvm/unittests/Support/ScaledNumberTest.cpp [new file with mode: 0644]