From 8d6c0f4deeb0f2ff671df7ae92b75ee1e39acd37 Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Mon, 21 Jan 2013 11:55:09 +0000 Subject: 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 --- include/llvm/Analysis/InlineCost.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/llvm/Analysis') 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; -- cgit v1.2.3