A 32‐bit CodeView type reference.

Synopsis

Declared in <llvm/DebugInfo/CodeView/TypeIndex.h>

class TypeIndex;

Description

Types are indexed by their order of appearance in .debug$T plus 0x1000. Type indices less than 0x1000 are "simple" types, composed of a SimpleTypeMode byte followed by a SimpleTypeKind byte.

Member Functions

Name

Description

TypeIndex [constructor]

Constructors

getIndex

Return the raw 32‐bit TypeIndex value.

getSimpleKind

Return the SimpleTypeKind portion of a simple TypeIndex.

getSimpleMode

Return the SimpleTypeMode portion of a simple TypeIndex.

isDecoratedItemId

Return true if the decorated item‐ID bit is set.

isNoneType

Return true if this is the none/null simple type.

isSimple

Return true if this is a simple type (index less than 0x1000).

makeDirect

Return this simple TypeIndex with pointer mode cleared (direct).

operator++

Increment operators

operator+=

Add N to this TypeIndex in place.

operator‐‐

Decrement operators

operator‐=

Subtract N from this TypeIndex in place.

removeDecoration

Return a copy of this TypeIndex with the item‐ID decoration cleared.

setIndex

Set the raw 32‐bit TypeIndex value.

toArrayIndex

Return the zero‐based array index of this complex TypeIndex.

Static Member Functions

Name

Description

Float32

Return a TypeIndex for a 32‐bit floating‐point type.

Float64

Return a TypeIndex for a 64‐bit floating‐point type.

Int16Short

Return a TypeIndex for a 16‐bit signed short.

Int32

Return a TypeIndex for a 32‐bit signed integer.

Int32Long

Return a TypeIndex for a 32‐bit signed long.

Int64

Return a TypeIndex for a 64‐bit signed integer.

Int64Quad

Return a TypeIndex for a 64‐bit signed quad.

NarrowCharacter

Return a TypeIndex for a narrow character (char).

None

Return a TypeIndex for the none/null simple type.

NullptrT

Return a TypeIndex representing std::nullptr_t.

SignedCharacter

Return a TypeIndex for an 8‐bit signed character.

UInt16Short

Return a TypeIndex for a 16‐bit unsigned short.

UInt32

Return a TypeIndex for a 32‐bit unsigned integer.

UInt32Long

Return a TypeIndex for a 32‐bit unsigned long.

UInt64

Return a TypeIndex for a 64‐bit unsigned integer.

UInt64Quad

Return a TypeIndex for a 64‐bit unsigned quad.

UnsignedCharacter

Return a TypeIndex for an 8‐bit unsigned character.

Void

Return a TypeIndex for the void simple type.

VoidPointer32

Return a TypeIndex for a 32‐bit near pointer to void.

VoidPointer64

Return a TypeIndex for a 64‐bit near pointer to void.

WideCharacter

Return a TypeIndex for a wide character.

fromArrayIndex

Build a TypeIndex from a zero‐based complex type array index.

fromDecoratedArrayIndex

Build a TypeIndex from a zero‐based array index, optionally as an item ID.

simpleTypeName

Return a printable name for the simple type TI.

Static Data Members

Name

Description

DecoratedItemIdMask

High bit set on TypeIndex values that refer to item IDs rather than types.

FirstNonSimpleIndex

First TypeIndex value reserved for complex (non‐simple) types.

SimpleKindMask

Bit mask selecting the SimpleTypeKind portion of a simple TypeIndex.

SimpleModeMask

Bit mask selecting the SimpleTypeMode portion of a simple TypeIndex.

Friends

Name

Description

llvm::codeview::operator‐

Return the difference between the array indices of A and B.

llvm::codeview::operator‐

Return a TypeIndex equal to A minus N.

llvm::codeview::operator+

Return a TypeIndex equal to A plus N.

llvm::codeview::operator>=

Return true if A has a raw index greater than or equal to B.

llvm::codeview::operator>

Return true if A has a greater raw index than B.

llvm::codeview::operator<=

Return true if A has a raw index less than or equal to B.

llvm::codeview::operator<

Return true if A has a smaller raw index than B.

llvm::codeview::operator!=

Return true if A and B have different raw indices.

llvm::codeview::operator==

Return true if A and B have the same raw index.

Non-Member Functions

Name

Description

getModifiedType

Given a CVType which is assumed to be an LF_MODIFIER, return the TypeIndex of the type that the LF_MODIFIER modifies.

getSizeInBytesForTypeIndex

Given an arbitrary codeview type index, determine its size.

Created with MrDocs