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

Synopsis

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

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

Return Value

The aligned new call, or null if unavailable.

Parameters

Name

Description

Num

Number of bytes to allocate.

Align

Alignment requested for the allocation.

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