ptx_parser/type/instruction/
min.rs1#![allow(unused)]
18use crate::r#type::common::*;
19
20pub mod section_0 {
21 use crate::Spanned;
22 use crate::parser::Span;
23 use crate::r#type::common::*;
24
25 use serde::Serialize;
26
27 #[derive(Debug, Clone, PartialEq, Serialize)]
28 pub enum Atype {
29 U16x2, U16, U32, U64, S16, S64, }
36
37 #[derive(Debug, Clone, PartialEq, Serialize)]
38 pub enum Btype {
39 S16x2, S32, }
42
43 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
44 pub struct MinAtype {
45 pub atype: Atype, pub d: GeneralOperand, pub a: GeneralOperand, pub b: GeneralOperand, pub span: Span,
50 }
51
52 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
53 pub struct MinReluBtype {
54 pub relu: bool, pub btype: Btype, pub d: GeneralOperand, pub a: GeneralOperand, pub b: GeneralOperand, pub span: Span,
60 }
61
62 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
63 pub struct MinFtzNanXorsignAbsF32 {
64 pub ftz: bool, pub nan: bool, pub xorsign_abs: bool, pub f32: (), pub d: GeneralOperand, pub a: GeneralOperand, pub b: GeneralOperand, pub span: Span,
72 }
73
74 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
75 pub struct MinFtzNanAbsF32 {
76 pub ftz: bool, pub nan: bool, pub abs: bool, pub f32: (), pub d: GeneralOperand, pub a: GeneralOperand, pub b: GeneralOperand, pub c: GeneralOperand, pub span: Span,
85 }
86
87 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
88 pub struct MinF64 {
89 pub f64: (), pub d: GeneralOperand, pub a: GeneralOperand, pub b: GeneralOperand, pub span: Span,
94 }
95
96 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
97 pub struct MinFtzNanXorsignAbsF16 {
98 pub ftz: bool, pub nan: bool, pub xorsign_abs: bool, pub f16: (), pub d: GeneralOperand, pub a: GeneralOperand, pub b: GeneralOperand, pub span: Span,
106 }
107
108 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
109 pub struct MinFtzNanXorsignAbsF16x2 {
110 pub ftz: bool, pub nan: bool, pub xorsign_abs: bool, pub f16x2: (), pub d: GeneralOperand, pub a: GeneralOperand, pub b: GeneralOperand, pub span: Span,
118 }
119
120 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
121 pub struct MinNanXorsignAbsBf16 {
122 pub nan: bool, pub xorsign_abs: bool, pub bf16: (), pub d: GeneralOperand, pub a: GeneralOperand, pub b: GeneralOperand, pub span: Span,
129 }
130
131 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
132 pub struct MinNanXorsignAbsBf16x2 {
133 pub nan: bool, pub xorsign_abs: bool, pub bf16x2: (), pub d: GeneralOperand, pub a: GeneralOperand, pub b: GeneralOperand, pub span: Span,
140 }
141}
142
143pub use section_0::Atype as Atype0;
146pub use section_0::Btype as Btype0;
147pub use section_0::MinAtype;
148pub use section_0::MinF64;
149pub use section_0::MinFtzNanAbsF32;
150pub use section_0::MinFtzNanXorsignAbsF16;
151pub use section_0::MinFtzNanXorsignAbsF16x2;
152pub use section_0::MinFtzNanXorsignAbsF32;
153pub use section_0::MinNanXorsignAbsBf16;
154pub use section_0::MinNanXorsignAbsBf16x2;
155pub use section_0::MinReluBtype;