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

Name

Description

Num

Number of bytes to allocate.

B

IR builder used to create the call.

TLI

Target library info describing available libcalls.

NewFunc

LibFunc identifying which operator new to call.

HotCold

Hot/cold hint argument for the allocator.

Created with MrDocs