Skip to main content

ptx_parser/type/instruction/
pmevent.rs

1//! Original PTX specification:
2//!
3//! pmevent a;         // trigger a single performance monitor event
4//! pmevent.mask a;    // trigger one or more performance monitor events
5
6#![allow(unused)]
7use crate::r#type::common::*;
8
9pub mod section_0 {
10    use crate::Spanned;
11    use crate::parser::Span;
12    use crate::r#type::common::*;
13
14    use serde::Serialize;
15
16    #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
17    pub struct Pmevent {
18        pub a: GeneralOperand, // a
19        pub span: Span,
20    }
21
22    #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
23    pub struct PmeventMask {
24        pub mask: (),          // .mask
25        pub a: GeneralOperand, // a
26        pub span: Span,
27    }
28}
29
30// Re-export types with section suffixes to avoid naming conflicts
31// e.g., Type0 for section_0::Type, Type1 for section_1::Type
32pub use section_0::Pmevent;
33pub use section_0::PmeventMask;