Clean up handling of always-inline functions in the inliner.
[oota-llvm.git] / include / llvm / Analysis / InlineCost.h
index af07d38169055708102b207e9f82e1424ad7242a..82a3a566c920718a3e42ec730c9dc32304f5c2f1 100644 (file)
@@ -129,6 +129,9 @@ namespace llvm {
     //  Note: This is used by out-of-tree passes, please do not remove without
     //  adding a replacement API.
     InlineCost getInlineCost(CallSite CS, Function *Callee, int Threshold);
+
+    /// \brief Minimal filter to detect invalid constructs for inlining.
+    bool isInlineViable(Function &Callee);
   };
 }