1 //===-- FunctionInlining.h - Functions that perform Inlining -----*- C++ -*--=//
3 // This family of functions is useful for performing function inlining.
5 //===----------------------------------------------------------------------===//
7 #ifndef LLVM_TRANSFORMS_FUNCTION_INLINING_H
8 #define LLVM_TRANSFORMS_FUNCTION_INLINING_H
11 // InlineFunction - This function forcibly inlines the called function into the
12 // basic block of the caller. This returns true if it is not possible to inline
13 // this call. The program is still in a well defined state if this occurs
16 // Note that this only does one level of inlining. For example, if the
17 // instruction 'call B' is inlined, and 'B' calls 'C', then the call to 'C' now
18 // exists in the instruction stream. Similiarly this will inline a recursive
19 // function by one level.
21 bool InlineFunction(CallInst *C);