diff options
Diffstat (limited to 'include/llvm/Analysis/CodeMetrics.h')
-rw-r--r-- | include/llvm/Analysis/CodeMetrics.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/include/llvm/Analysis/CodeMetrics.h b/include/llvm/Analysis/CodeMetrics.h index 2a03b93fd8..086934d0e6 100644 --- a/include/llvm/Analysis/CodeMetrics.h +++ b/include/llvm/Analysis/CodeMetrics.h @@ -23,11 +23,9 @@ class BasicBlock; class Function; class Instruction; class DataLayout; +class TargetTransformInfo; class Value; -/// \brief Check whether an instruction is likely to be "free" when lowered. -bool isInstructionFree(const Instruction *I, const DataLayout *TD = 0); - /// \brief Check whether a call will lower to something small. /// /// This tests checks whether this callsite will lower to something @@ -87,10 +85,7 @@ struct CodeMetrics { NumInlineCandidates(0), NumVectorInsts(0), NumRets(0) {} /// \brief Add information about a block to the current state. - void analyzeBasicBlock(const BasicBlock *BB, const DataLayout *TD = 0); - - /// \brief Add information about a function to the current state. - void analyzeFunction(Function *F, const DataLayout *TD = 0); + void analyzeBasicBlock(const BasicBlock *BB, const TargetTransformInfo &TTI); }; } |