summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-01-21 11:55:09 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-01-21 11:55:09 +0000
commit8d6c0f4deeb0f2ff671df7ae92b75ee1e39acd37 (patch)
treea6e0f902bace0a43e5d9f7dc89ecbc9275d32f3b /include/llvm/Analysis
parent86953b5795007eaa98838297360a6987e33e92e7 (diff)
downloadllvm-8d6c0f4deeb0f2ff671df7ae92b75ee1e39acd37.tar.gz
llvm-8d6c0f4deeb0f2ff671df7ae92b75ee1e39acd37.tar.bz2
llvm-8d6c0f4deeb0f2ff671df7ae92b75ee1e39acd37.tar.xz
Now that the inline cost analysis is a pass, we can easily have it
depend on and use other analyses (as long as they're either immutable passes or CGSCC passes of course -- nothing in the pass manager has been fixed here). Leverage this to thread TargetTransformInfo down through the inline cost analysis. No functionality changed here, this just threads things through. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173031 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r--include/llvm/Analysis/InlineCost.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Analysis/InlineCost.h b/include/llvm/Analysis/InlineCost.h
index 3d81529178..bc7924e10f 100644
--- a/include/llvm/Analysis/InlineCost.h
+++ b/include/llvm/Analysis/InlineCost.h
@@ -23,6 +23,7 @@ namespace llvm {
class CallSite;
class DataLayout;
class Function;
+class TargetTransformInfo;
namespace InlineConstants {
// Various magic constants used to adjust heuristics.
@@ -100,6 +101,7 @@ public:
/// \brief Cost analyzer used by inliner.
class InlineCostAnalysis : public CallGraphSCCPass {
const DataLayout *TD;
+ const TargetTransformInfo *TTI;
public:
static char ID;