ptx_parser/type/instruction/
abs.rs1#![allow(unused)]
15use crate::r#type::common::*;
16
17pub mod section_0 {
18 use crate::Spanned;
19 use crate::parser::Span;
20 use crate::r#type::common::*;
21
22 use serde::Serialize;
23
24 #[derive(Debug, Clone, PartialEq, Serialize)]
25 pub enum Type {
26 S16, S32, S64, }
30
31 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
32 pub struct AbsType {
33 pub type_: Type, pub d: GeneralOperand, pub a: GeneralOperand, pub span: Span,
37 }
38
39 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
40 pub struct AbsFtzF32 {
41 pub ftz: bool, pub f32: (), pub d: GeneralOperand, pub a: GeneralOperand, pub span: Span,
46 }
47
48 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
49 pub struct AbsF64 {
50 pub f64: (), pub d: GeneralOperand, pub a: GeneralOperand, pub span: Span,
54 }
55
56 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
57 pub struct AbsFtzF16 {
58 pub ftz: bool, pub f16: (), pub d: GeneralOperand, pub a: GeneralOperand, pub span: Span,
63 }
64
65 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
66 pub struct AbsFtzF16x2 {
67 pub ftz: bool, pub f16x2: (), pub d: GeneralOperand, pub a: GeneralOperand, pub span: Span,
72 }
73
74 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
75 pub struct AbsBf16 {
76 pub bf16: (), pub d: GeneralOperand, pub a: GeneralOperand, pub span: Span,
80 }
81
82 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
83 pub struct AbsBf16x2 {
84 pub bf16x2: (), pub d: GeneralOperand, pub a: GeneralOperand, pub span: Span,
88 }
89}
90
91pub use section_0::AbsBf16;
94pub use section_0::AbsBf16x2;
95pub use section_0::AbsF64;
96pub use section_0::AbsFtzF16;
97pub use section_0::AbsFtzF16x2;
98pub use section_0::AbsFtzF32;
99pub use section_0::AbsType;
100pub use section_0::Type as Type0;