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:55

Enumerators

NameValueComment
VoidTyID00: type with no size
HalfTyID11: 16-bit floating point type
FloatTyID22: 32-bit floating point type
DoubleTyID33: 64-bit floating point type
X86_FP80TyID44: 80-bit floating point type (X87)
FP128TyID55: 128-bit floating point type (112-bit mantissa)
PPC_FP128TyID66: 128-bit floating point type (two 64-bits, PowerPC)
LabelTyID77: Labels
MetadataTyID88: Metadata
X86_MMXTyID99: MMX vectors (64 bits, X86 specific)
TokenTyID1010: Tokens
IntegerTyID1111: Arbitrary bit width integers
FunctionTyID1212: Functions
StructTyID1313: Structures
ArrayTyID1414: Arrays
PointerTyID1515: Pointers
VectorTyID1616: SIMD 'packed' format, or other vector type