llvm::emitHotColdSizeReturningNew

Emit a call to the hot/cold size-returning operator new function.

Synopsis

Declared in <llvm/Transforms/Utils/BuildLibCalls.h>

Value*
emitHotColdSizeReturningNew(
    Value* Num,
    IRBuilderBase& B,
    TargetLibraryInfo const* TLI,
    LibFunc NewFunc,
    Value* HotCold);

Return Value

The size-returning new call, or null if unavailable.

Parameters

NameDescription
NumNumber of bytes to allocate.
BIR builder used to create the call.
TLITarget library info describing available libcalls.
NewFuncLibFunc identifying which operator new to call.
HotColdHot/cold hint argument for the allocator.