llvm::emitHotColdNewNoThrow

Emit a call to the hot/cold nothrow operator new function.

Synopsis

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

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

Return Value

The nothrow new call, or null if unavailable.

Parameters

NameDescription
NumNumber of bytes to allocate.
NoThrowNothrow tag argument for the allocator.
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.