ptx_parser/type/instruction/
sured.rs1#![allow(unused)]
16use crate::r#type::common::*;
17
18pub mod section_0 {
19 use crate::Spanned;
20 use crate::parser::Span;
21 use crate::r#type::common::*;
22
23 use serde::Serialize;
24
25 #[derive(Debug, Clone, PartialEq, Serialize)]
26 pub enum Op {
27 Add, Min, Max, And, Or, }
33
34 #[derive(Debug, Clone, PartialEq, Serialize)]
35 pub enum Geom {
36 _1d, _2d, _3d, }
40
41 #[derive(Debug, Clone, PartialEq, Serialize)]
42 pub enum Ctype {
43 U32, U64, S32, B32, S64, }
49
50 #[derive(Debug, Clone, PartialEq, Serialize)]
51 pub enum Mode {
52 Clamp, Trap, Zero, }
56
57 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
58 pub struct SuredBOpGeomCtypeMode {
59 pub b: (), pub op: Op, pub geom: Geom, pub ctype: Ctype, pub mode: Mode, pub a: TexHandler2, pub c: GeneralOperand, pub span: Span,
67 }
68}
69
70pub mod section_1 {
71 use crate::Spanned;
72 use crate::parser::Span;
73 use crate::r#type::common::*;
74
75 use serde::Serialize;
76
77 #[derive(Debug, Clone, PartialEq, Serialize)]
78 pub enum Op {
79 Add, Min, Max, And, Or, }
85
86 #[derive(Debug, Clone, PartialEq, Serialize)]
87 pub enum Geom {
88 _1d, _2d, _3d, }
92
93 #[derive(Debug, Clone, PartialEq, Serialize)]
94 pub enum Ctype {
95 B32, B64, }
98
99 #[derive(Debug, Clone, PartialEq, Serialize)]
100 pub enum Mode {
101 Clamp, Trap, Zero, }
105
106 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
107 pub struct SuredPOpGeomCtypeMode {
108 pub p: (), pub op: Op, pub geom: Geom, pub ctype: Ctype, pub mode: Mode, pub a: TexHandler2, pub c: GeneralOperand, pub span: Span,
116 }
117}
118
119pub use section_0::Ctype as Ctype0;
122pub use section_0::Geom as Geom0;
123pub use section_0::Mode as Mode0;
124pub use section_0::Op as Op0;
125pub use section_0::SuredBOpGeomCtypeMode;
126pub use section_1::Ctype as Ctype1;
127pub use section_1::Geom as Geom1;
128pub use section_1::Mode as Mode1;
129pub use section_1::Op as Op1;
130pub use section_1::SuredPOpGeomCtypeMode;