ptx_parser/type/instruction/
ex2.rs1#![allow(unused)]
11use crate::r#type::common::*;
12
13pub mod section_0 {
14 use crate::Spanned;
15 use crate::parser::Span;
16 use crate::r#type::common::*;
17
18 use serde::Serialize;
19
20 #[derive(Debug, Clone, PartialEq, Serialize)]
21 pub enum Atype {
22 F16x2, F16, }
25
26 #[derive(Debug, Clone, PartialEq, Serialize)]
27 pub enum Btype {
28 Bf16x2, Bf16, }
31
32 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
33 pub struct Ex2ApproxFtzF32 {
34 pub approx: (), pub ftz: bool, pub f32: (), pub d: GeneralOperand, pub a: GeneralOperand, pub span: Span,
40 }
41
42 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
43 pub struct Ex2ApproxAtype {
44 pub approx: (), pub atype: Atype, pub d: GeneralOperand, pub a: GeneralOperand, pub span: Span,
49 }
50
51 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
52 pub struct Ex2ApproxFtzBtype {
53 pub approx: (), pub ftz: (), pub btype: Btype, pub d: GeneralOperand, pub a: GeneralOperand, pub span: Span,
59 }
60}
61
62pub use section_0::Atype as Atype0;
65pub use section_0::Btype as Btype0;
66pub use section_0::Ex2ApproxAtype;
67pub use section_0::Ex2ApproxFtzBtype;
68pub use section_0::Ex2ApproxFtzF32;