Allocation type assigned to an allocation reached by a given context.

Synopsis

Declared in <llvm/IR/ModuleSummaryIndex.h>

enum class AllocationType : uint8_t;

Description

More can be added, now this is cold, notcold and hot. Values should be powers of two so that they can be ORed, in particular to track allocations that have different behavior with different calling contexts.

Members

Name

Description

None

No allocation type assigned.

NotCold

Allocation is not cold.

Cold

Allocation is cold.

Hot

Allocation is hot.

All

OR of all allocation type bits; keep updated.

Non-Member Functions

Name

Description

memprof::getAllocType

Return the allocation type for a given set of memory profile values.

memprof::getAllocTypeAttributeString

Returns the string to use in attributes with the given type.

memprof::getMIBAllocType

Returns the allocation type from an MIB metadata node.

Created with MrDocs