ΒΆllvm::InlineResult InlineFunction(
    llvm::CallSite CS,
    llvm::InlineFunctionInfo& IFI,
    llvm::AAResults* CalleeAAR = nullptr,
    bool InsertLifetime = true,
    llvm::Function* ForwardVarArgsTo = nullptr)

Description

This function inlines the called function into the basic block of the caller. This returns false if it is not possible to inline this call. The program is still in a well defined state if this occurs though. Note that this only does one level of inlining. For example, if the instruction 'call B' is inlined, and 'B' calls 'C', then the call to 'C' now exists in the instruction stream. Similarly this will inline a recursive function by one level.

Declared at: llvm/include/llvm/Transforms/Utils/Cloning.h:235

Parameters

llvm::CallSite CS
llvm::InlineFunctionInfo& IFI
llvm::AAResults* CalleeAAR = nullptr
bool InsertLifetime = true
llvm::Function* ForwardVarArgsTo = nullptr