Add a ProfileCount class to represent entry counts.
authorEaswaran Raman <eraman@google.com>
Wed, 17 Jan 2018 22:24:23 +0000 (22:24 +0000)
committerEaswaran Raman <eraman@google.com>
Wed, 17 Jan 2018 22:24:23 +0000 (22:24 +0000)
commite5b8de2f1f4b785fe4105c74aa055e9319ebd9ac
tree735025f7c1b406cf0db165a0255412cc40de212c
parentd109b5e0273565d3af272d8c3660a4ce233f6494
Add a ProfileCount class to represent entry counts.

Summary:
The class wraps a uint64_t and an enum to represent the type of profile
count (real and synthetic) with some helper methods.

Reviewers: davidxl

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D41883

llvm-svn: 322771
llvm/include/llvm/IR/Function.h
llvm/lib/Analysis/BlockFrequencyInfoImpl.cpp
llvm/lib/Analysis/ProfileSummaryInfo.cpp
llvm/lib/IR/Function.cpp
llvm/lib/Transforms/IPO/PartialInlining.cpp
llvm/lib/Transforms/IPO/SampleProfile.cpp
llvm/lib/Transforms/IPO/SyntheticCountsPropagation.cpp
llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
llvm/lib/Transforms/Utils/CodeExtractor.cpp
llvm/lib/Transforms/Utils/InlineFunction.cpp
llvm/unittests/IR/MetadataTest.cpp