aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Transforms/IPO/InlinerPass.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Transforms/IPO/InlinerPass.h')
-rw-r--r--include/llvm/Transforms/IPO/InlinerPass.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Transforms/IPO/InlinerPass.h b/include/llvm/Transforms/IPO/InlinerPass.h
index 26cf4e4..d34641d 100644
--- a/include/llvm/Transforms/IPO/InlinerPass.h
+++ b/include/llvm/Transforms/IPO/InlinerPass.h
@@ -55,6 +55,11 @@ struct Inliner : public CallGraphSCCPass {
///
virtual int getInlineCost(CallSite CS) = 0;
+ // getInlineFudgeFactor - Return a > 1.0 factor if the inliner should use a
+ // higher threshold to determine if the function call should be inlined.
+ ///
+ virtual float getInlineFudgeFactor(CallSite CS) = 0;
+
private:
// InlineThreshold - Cache the value here for easy access.
unsigned InlineThreshold;