From: Chris Lattner
+
The primitive types are the fundamental building blocks of the LLVM -system. The current set of primitive types is as follows:
- -
-
|
-
-
|
-
These different primitive types fall into a few useful +
The types fall into a few useful classifications:
| Classification | Types | ||
|---|---|---|---|
| integer | +integer | i1, i2, i3, ... i8, ... i16, ... i32, ... i64, ... | |
| floating point | -float, double | +floating point | +float, double, x86_fp80, fp128, ppc_fp128 |
| first class | -i1, ..., float, double, - pointer,vector + | integer, + floating point, + pointer, + vector | |
| primitive | +label, + void, + integer, + floating point. | +||
| derived | +integer, + array, + function, + pointer, + structure, + packed structure, + vector, + opaque. + |
The primitive types are the fundamental building blocks of the LLVM +system.
+ + + + +| Type | Description |
|---|---|
| float | 32-bit floating point value |
| double | 64-bit floating point value |
| fp128 | 128-bit floating point value (112-bit mantissa) |
| x86_fp80 | 80-bit floating point value (X87) |
| ppc_fp128 | 128-bit floating point value (two 64-bits) |
The void type does not represent any value and has no size.
+ ++ void ++
The label type represents code labels.
+ ++ label ++