forked from OSchip/llvm-project
[TableGen] Add more scalar integer and floating-point types
PiperOrigin-RevId: 235918286
This commit is contained in:
parent
486dde42c0
commit
9e18783e41
|
@ -143,7 +143,10 @@ class I<int width>
|
|||
int bitwidth = width;
|
||||
}
|
||||
def I1 : I<1>;
|
||||
def I8 : I<8>;
|
||||
def I16 : I<16>;
|
||||
def I32 : I<32>;
|
||||
def I64 : I<64>;
|
||||
|
||||
// Floating point types.
|
||||
class FloatBase<CPred pred, string descr> : Type<pred, descr>;
|
||||
|
@ -159,6 +162,7 @@ class F<int width>
|
|||
int bitwidth = width;
|
||||
}
|
||||
|
||||
def F16 : F<16>;
|
||||
def F32 : F<32>;
|
||||
def F64 : F<64>;
|
||||
|
||||
|
|
Loading…
Reference in New Issue