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
Name | Value | Comment |
---|---|---|
VoidTyID | 0 | 0: type with no size |
HalfTyID | 1 | 1: 16-bit floating point type |
FloatTyID | 2 | 2: 32-bit floating point type |
DoubleTyID | 3 | 3: 64-bit floating point type |
X86_FP80TyID | 4 | 4: 80-bit floating point type (X87) |
FP128TyID | 5 | 5: 128-bit floating point type (112-bit mantissa) |
PPC_FP128TyID | 6 | 6: 128-bit floating point type (two 64-bits, PowerPC) |
LabelTyID | 7 | 7: Labels |
MetadataTyID | 8 | 8: Metadata |
X86_MMXTyID | 9 | 9: MMX vectors (64 bits, X86 specific) |
TokenTyID | 10 | 10: Tokens |
IntegerTyID | 11 | 11: Arbitrary bit width integers |
FunctionTyID | 12 | 12: Functions |
StructTyID | 13 | 13: Structures |
ArrayTyID | 14 | 14: Arrays |
PointerTyID | 15 | 15: Pointers |
VectorTyID | 16 | 16: SIMD 'packed' format, or other vector type |