Identifiers for all base types in the LLVM type system.

Synopsis

Declared in <llvm/IR/Type.h>

enum TypeID;

Description

Based on this value, you can cast to a class defined in DerivedTypes.h. Note: If you add an element to this, you need to add an element to the Type::getPrimitiveType function, or else things will break! Also update LLVMTypeKind and LLVMGetTypeKind () in the C binding.

Members

Name

Description

HalfTyID

16‐bit floating point type

BFloatTyID

16‐bit floating point type (7‐bit significand)

FloatTyID

32‐bit floating point type

DoubleTyID

64‐bit floating point type

X86_FP80TyID

80‐bit floating point type (X87)

FP128TyID

128‐bit floating point type (112‐bit significand)

PPC_FP128TyID

128‐bit floating point type (two 64‐bits, PowerPC)

VoidTyID

type with no size

LabelTyID

Labels

MetadataTyID

Metadata

X86_AMXTyID

AMX vectors (8192 bits, X86 specific)

TokenTyID

Tokens

IntegerTyID

Arbitrary bit width integers

ByteTyID

Arbitrary bit width bytes

FunctionTyID

Functions

PointerTyID

Pointers

StructTyID

Structures

ArrayTyID

Arrays

FixedVectorTyID

Fixed width SIMD vector type

ScalableVectorTyID

Scalable SIMD vector type

TypedPointerTyID

Typed pointer used by some GPU targets

TargetExtTyID

Target extension type

Created with MrDocs