Skip to content

Commit 9a83005

Browse files
authored
Merge pull request #19862 from jketema/complex
C++: Support more complex 16-bit float types
2 parents c4a385f + 8f249c7 commit 9a83005

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)