From: Chris Lattner Date: Tue, 19 Nov 2002 20:43:24 +0000 (+0000) Subject: Move inlining pass to IPO.h X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8f51da42e704e0d64699e4a1b32d070a30b35bb9;p=oota-llvm.git Move inlining pass to IPO.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4761 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Transforms/FunctionInlining.h b/include/llvm/Transforms/FunctionInlining.h index e68b08136e6..f9ef10bd11e 100644 --- a/include/llvm/Transforms/FunctionInlining.h +++ b/include/llvm/Transforms/FunctionInlining.h @@ -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 diff --git a/include/llvm/Transforms/IPO.h b/include/llvm/Transforms/IPO.h index 5f96a0986dc..ba8fd02d9cd 100644 --- a/include/llvm/Transforms/IPO.h +++ b/include/llvm/Transforms/IPO.h @@ -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