Convert SampleProfile pass into a Module pass.
authorDiego Novillo <dnovillo@google.com>
Tue, 25 Aug 2015 15:25:11 +0000 (15:25 +0000)
committerDiego Novillo <dnovillo@google.com>
Tue, 25 Aug 2015 15:25:11 +0000 (15:25 +0000)
commiteb6eb153d9dc22bf006f260d3975babe075da5f2
tree11af066b3d6b3da843681186344c84b506ad343d
parent39e2b39af73395ed670502b9d3bc7fff359af247
Convert SampleProfile pass into a Module pass.

Eventually, we will need sample profiles to be incorporated into the
inliner's cost models.  To do this, we need the sample profile pass to
be a module pass.

This patch makes no functional changes beyond the mechanical adjustments
needed to run SampleProfile as a module pass.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245940 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/IPO.h
include/llvm/Transforms/Scalar.h
lib/Transforms/IPO/CMakeLists.txt
lib/Transforms/IPO/IPO.cpp
lib/Transforms/IPO/SampleProfile.cpp [new file with mode: 0644]
lib/Transforms/Scalar/CMakeLists.txt
lib/Transforms/Scalar/SampleProfile.cpp [deleted file]
lib/Transforms/Scalar/Scalar.cpp