File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 21
21
Float8E4M3Type ,
22
22
Float8E5M2Type ,
23
23
Float8E8M0FNUType ,
24
+ FloatTF32Type ,
24
25
FunctionType ,
25
26
IndexType ,
26
27
IntegerType ,
@@ -70,6 +71,7 @@ def ui(width):
70
71
71
72
f16 = lambda : F16Type .get ()
72
73
f32 = lambda : F32Type .get ()
74
+ tf32 = lambda : FloatTF32Type .get ()
73
75
f64 = lambda : F64Type .get ()
74
76
bf16 = lambda : BF16Type .get ()
75
77
Original file line number Diff line number Diff line change @@ -639,6 +639,7 @@ def testTypeIDs():
639
639
(BF16Type , BF16Type .get ()),
640
640
(F16Type , F16Type .get ()),
641
641
(F32Type , F32Type .get ()),
642
+ (FloatTF32Type , FloatTF32Type .get ()),
642
643
(F64Type , F64Type .get ()),
643
644
(NoneType , NoneType .get ()),
644
645
(ComplexType , ComplexType .get (f32 )),
@@ -668,6 +669,7 @@ def testTypeIDs():
668
669
# CHECK: BF16Type(bf16)
669
670
# CHECK: F16Type(f16)
670
671
# CHECK: F32Type(f32)
672
+ # CHECK: FloatTF32Type(tf32)
671
673
# CHECK: F64Type(f64)
672
674
# CHECK: NoneType(none)
673
675
# CHECK: ComplexType(complex<f32>)
@@ -734,6 +736,9 @@ def print_downcasted(typ):
734
736
# CHECK: F32Type
735
737
# CHECK: F32Type(f32)
736
738
print_downcasted (F32Type .get ())
739
+ # CHECK: FloatTF32Type
740
+ # CHECK: FloatTF32Type(tf32)
741
+ print_downcasted (FloatTF32Type .get ())
737
742
# CHECK: F64Type
738
743
# CHECK: F64Type(f64)
739
744
print_downcasted (F64Type .get ())
You can’t perform that action at this time.
0 commit comments