InlineFunction overloads
Declared in <llvm/Transforms/Utils/Cloning.h>
Inline the callee of CB into its caller's basic block.
InlineResult
InlineFunction(
CallBase& CB,
InlineFunctionInfo& IFI,
bool MergeAttributes = false,
AAResults* CalleeAAR = nullptr,
bool InsertLifetime = true,
bool TrackInlineHistory = false,
Function* ForwardVarArgsTo = nullptr,
OptimizationRemarkEmitter* ORE = nullptr);
» more...
Inline CB while also updating a contextual profile.
InlineResult
InlineFunction(
CallBase& CB,
InlineFunctionInfo& IFI,
PGOContextualProfile& CtxProf,
bool MergeAttributes = false,
AAResults* CalleeAAR = nullptr,
bool InsertLifetime = true,
bool TrackInlineHistory = false,
Function* ForwardVarArgsTo = nullptr,
OptimizationRemarkEmitter* ORE = nullptr);
» more...
Success if the call was inlined, otherwise a failure reason.
| Name | Description |
|---|---|
| CB | Call site whose callee should be inlined. |
| IFI | Inlining context and result collector. |
| 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. |
| CtxProf | Contextual profile to update for the inlined callsite. |