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

Synopsis

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

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

Return Value

The aligned nothrow new call, or null if unavailable.

Parameters

Name

Description

Num

Number of bytes to allocate.

Align

Alignment requested for the allocation.

NoThrow

Nothrow tag argument for the allocator.

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