llvm::User::operator new

New operators

Synopses

Declared in <llvm/IR/User.h>

Deleted; subclasses must use a custom operand-aware allocator.

void*
operator new(size_t Size) = delete;
» more...

Allocate a User with an operand pointer co-allocated.

void*
operator new(
    size_t Size,
    HungOffOperandsAllocMarker Marker);
» more...

Allocate a User with the operands co-allocated.

void*
operator new(
    size_t Size,
    IntrusiveOperandsAllocMarker allocTrait);
» more...

Allocate a User with co-allocated operands and an optional descriptor.

void*
operator new(
    size_t Size,
    IntrusiveOperandsAndDescriptorAllocMarker allocTrait);
» more...

Return Value

Pointer to the allocated User storage.

Parameters

NameDescription
SizeUnused size argument required by the language.
MarkerMarker selecting hung-off operand allocation.
allocTraitMarker specifying the number of co-allocated operands.