From 8f51da42e704e0d64699e4a1b32d070a30b35bb9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 19 Nov 2002 20:43:24 +0000 Subject: [PATCH] Move inlining pass to IPO.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4761 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Transforms/FunctionInlining.h | 4 ---- include/llvm/Transforms/IPO.h | 5 +++++ 2 files changed, 5 insertions(+), 4 deletions(-) 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 -- 2.50.1