Skip to content

Commit 8f249c7

Browse files
committed
C++: Support more complex 16-bit float types
1 parent 4ece8ab commit 8f249c7

File tree

15 files changed

+10089
-0
lines changed

15 files changed

+10089
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
class BuiltinType extends @builtintype {
2+
string toString() { none() }
3+
}
4+
5+
from BuiltinType type, string name, int kind, int kind_new, int size, int sign, int alignment
6+
where
7+
builtintypes(type, name, kind, size, sign, alignment) and
8+
if
9+
type instanceof @complex_fp16 or
10+
type instanceof @complex_std_bfloat16 or
11+
type instanceof @complex_std_float16
12+
then kind_new = 2
13+
else kind_new = kind
14+
select type, name, kind_new, size, sign, alignment

0 commit comments

Comments
 (0)