Move inlining pass to IPO.h
authorChris Lattner <sabre@nondot.org>
Tue, 19 Nov 2002 20:43:24 +0000 (20:43 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 19 Nov 2002 20:43:24 +0000 (20:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4761 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/FunctionInlining.h
include/llvm/Transforms/IPO.h

index e68b08136e636457ad02ce66fbacfeaefd9381af..f9ef10bd11e2a19db5785ce043e24eca347c687e 100644 (file)
@@ -8,10 +8,6 @@
 #define LLVM_TRANSFORMS_FUNCTION_INLINING_H
 
 class CallInst;
-class Pass;
-
-Pass *createFunctionInliningPass();
-
 // InlineFunction - This function forcibly inlines the called function into the
 // basic block of the caller.  This returns true if it is not possible to inline
 // this call.  The program is still in a well defined state if this occurs 
index 5f96a0986dc4d5e4b885d6968ff1f02d0164c9c0..ba8fd02d9cdd615b029b32404b5a9836e7c9af23 100644 (file)
@@ -55,6 +55,11 @@ Pass *createFunctionExtractionPass(Function *F);
 //
 Pass *createFunctionResolvingPass();
 
+//===----------------------------------------------------------------------===//
+// createFunctionInliningPass - Return a new pass object that uses a heuristic
+// to inline direct function calls to small functions.
+//
+Pass *createFunctionInliningPass();
 
 //===----------------------------------------------------------------------===//
 // createInternalizePass - This pass loops over all of the functions in the