This should generally not be used, use InlineFunction instead.
Declared in <llvm/Transforms/Utils/Cloning.h>
void
InlineFunctionImpl(
CallBase& CB,
InlineFunctionInfo& IFI,
bool MergeAttributes = false,
AAResults* CalleeAAR = nullptr,
bool InsertLifetime = true,
bool TrackInlineHistory = false,
Function* ForwardVarArgsTo = nullptr,
OptimizationRemarkEmitter* ORE = nullptr);
Perform mechanical inlining of CB into the caller.
This does not perform any legality or profitability checks for the inlining. This assumes that CanInlineCallSite was already called, populated IFI, and returned InlineResult::success.
Also assumes that isInlineViable returned InlineResult::success for the called function.
| Name | Description |
|---|---|
| CB | Call site to inline mechanically into its caller. |
| IFI | Inlining context previously populated by CanInlineCallSite. |
| MergeAttributes | Whether to merge callee attributes into the caller. |
| CalleeAAR | Optional alias-analysis results for the callee. |
| InsertLifetime | Whether to insert lifetime markers for inlined allocas. |
| TrackInlineHistory | Whether to record inline history metadata. |
| ForwardVarArgsTo | If set, forward varargs from the callsite to calls to this function. |
| ORE | Optional optimization-remark emitter for diagnostics. |