llvm::emitInlinedInto

Emit an ORE message that Callee was inlined into Caller.

Synopsis

Declared in <llvm/Analysis/InlineAdvisor.h>

void
emitInlinedInto(
    OptimizationRemarkEmitter& ORE,
    DebugLoc DLoc,
    BasicBlock const* Block,
    Function const& Callee,
    Function const& Caller,
    bool IsMandatory,
    function_ref<void(OptimizationRemark&)> ExtraContext = {},
    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.
IsMandatoryWhether the inlining was mandatory.
ExtraContextOptional callback to append extra remark context.
PassNameOptional pass name override for the remark.