Skip to main content

ptx_parser/type/instruction/
setmaxnreg.rs

1//! Original PTX specification:
2//!
3//! setmaxnreg.action.sync.aligned.u32 imm-reg-count;
4//! .action = { .inc, .dec };
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, Serialize)]
17    pub enum Action {
18        Inc, // .inc
19        Dec, // .dec
20    }
21
22    #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
23    pub struct SetmaxnregActionSyncAlignedU32 {
24        pub action: Action,                // .action
25        pub sync: (),                      // .sync
26        pub aligned: (),                   // .aligned
27        pub u32: (),                       // .u32
28        pub imm_reg_count: GeneralOperand, // imm-reg-count
29        pub span: Span,
30    }
31}
32
33// Re-export types with section suffixes to avoid naming conflicts
34// e.g., Type0 for section_0::Type, Type1 for section_1::Type
35pub use section_0::Action as Action0;
36pub use section_0::SetmaxnregActionSyncAlignedU32;