enum Type::TypeID

Description

Definitions of all of the base types for the Type system. 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.

Declared at: llvm/include/llvm/IR/Type.h:54

Enumerators

NameValueComment
HalfTyID016-bit floating point type
BFloatTyID116-bit floating point type (7-bit significand)
FloatTyID232-bit floating point type
DoubleTyID364-bit floating point type
X86_FP80TyID480-bit floating point type (X87)
FP128TyID5128-bit floating point type (112-bit significand)
PPC_FP128TyID6128-bit floating point type (two 64-bits, PowerPC)
VoidTyID7type with no size
LabelTyID8Labels
MetadataTyID9Metadata
X86_MMXTyID10MMX vectors (64 bits, X86 specific)
X86_AMXTyID11AMX vectors (8192 bits, X86 specific)
TokenTyID12Tokens
IntegerTyID13Arbitrary bit width integers
FunctionTyID14Functions
PointerTyID15Pointers
StructTyID16Structures
ArrayTyID17Arrays
FixedVectorTyID18Fixed width SIMD vector type
ScalableVectorTyID19Scalable SIMD vector type
DXILPointerTyID20DXIL typed pointer used by DirectX target