llvm::emitInlinedIntoBasedOnCost

Emit an ORE inlined-into message based on default-heuristic cost IC.

Synopsis

Declared in <llvm/Analysis/InlineAdvisor.h>

void
emitInlinedIntoBasedOnCost(
    OptimizationRemarkEmitter& ORE,
    DebugLoc DLoc,
    BasicBlock const* Block,
    Function const& Callee,
    Function const& Caller,
    InlineCost const& IC,
    bool ForProfileContext = false,
    char const* PassName = nullptr);

Parameters

NameDescription
ORERemark emitter that receives the message.
DLocDebug location of the original call site.
BlockBasic block containing the original call site.
CalleeFunction that was inlined.
CallerFunction that received the inlined body.
ICInline cost used to format the remark.
ForProfileContextWhether the remark is for profile context.
PassNameOptional pass name override for the remark.