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
| Name | Value | Comment |
|---|---|---|
| HalfTyID | 0 | 16-bit floating point type |
| BFloatTyID | 1 | 16-bit floating point type (7-bit significand) |
| FloatTyID | 2 | 32-bit floating point type |
| DoubleTyID | 3 | 64-bit floating point type |
| X86_FP80TyID | 4 | 80-bit floating point type (X87) |
| FP128TyID | 5 | 128-bit floating point type (112-bit significand) |
| PPC_FP128TyID | 6 | 128-bit floating point type (two 64-bits, PowerPC) |
| VoidTyID | 7 | type with no size |
| LabelTyID | 8 | Labels |
| MetadataTyID | 9 | Metadata |
| X86_MMXTyID | 10 | MMX vectors (64 bits, X86 specific) |
| X86_AMXTyID | 11 | AMX vectors (8192 bits, X86 specific) |
| TokenTyID | 12 | Tokens |
| IntegerTyID | 13 | Arbitrary bit width integers |
| FunctionTyID | 14 | Functions |
| PointerTyID | 15 | Pointers |
| StructTyID | 16 | Structures |
| ArrayTyID | 17 | Arrays |
| FixedVectorTyID | 18 | Fixed width SIMD vector type |
| ScalableVectorTyID | 19 | Scalable SIMD vector type |
| DXILPointerTyID | 20 | DXIL typed pointer used by DirectX target |