1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//! Original PTX specification:
//!
//! ex2.approx{.ftz}.f32 d, a;
//!
//! ex2.approx.atype d, a;
//! ex2.approx.ftz.btype d, a;
//! .atype = { .f16, .f16x2};
//! .btype = { .bf16, .bf16x2};
#![allow(unused)]
use crate::r#type::common::*;
pub mod section_0 {
use crate::r#type::common::*;
#[derive(Debug, Clone, PartialEq)]
pub enum Atype {
F16x2, // .f16x2
F16, // .f16
}
#[derive(Debug, Clone, PartialEq)]
pub enum Btype {
Bf16x2, // .bf16x2
Bf16, // .bf16
}
#[derive(Debug, Clone, PartialEq)]
pub struct Ex2ApproxFtzF32 {
pub approx: (), // .approx
pub ftz: bool, // {.ftz}
pub f32: (), // .f32
pub d: GeneralOperand, // d
pub a: GeneralOperand, // a
}
#[derive(Debug, Clone, PartialEq)]
pub struct Ex2ApproxAtype {
pub approx: (), // .approx
pub atype: Atype, // .atype
pub d: GeneralOperand, // d
pub a: GeneralOperand, // a
}
#[derive(Debug, Clone, PartialEq)]
pub struct Ex2ApproxFtzBtype {
pub approx: (), // .approx
pub ftz: (), // .ftz
pub btype: Btype, // .btype
pub d: GeneralOperand, // d
pub a: GeneralOperand, // a
}
}
// Re-export types with section suffixes to avoid naming conflicts
// e.g., Type0 for section_0::Type, Type1 for section_1::Type
pub use section_0::Atype as Atype0;
pub use section_0::Btype as Btype0;
pub use section_0::Ex2ApproxAtype;
pub use section_0::Ex2ApproxFtzBtype;
pub use section_0::Ex2ApproxFtzF32;