#![allow(unused)]
use crate::lexer::PtxToken;
use crate::unparser::{PtxUnparser, common::*};
pub mod section_0 {
use super::*;
use crate::r#type::instruction::setmaxnreg::section_0::*;
impl PtxUnparser for SetmaxnregActionSyncAlignedU32 {
fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
push_opcode(tokens, "setmaxnreg");
match &self.action {
Action::Inc => {
push_directive(tokens, "inc");
}
Action::Dec => {
push_directive(tokens, "dec");
}
}
push_directive(tokens, "sync");
push_directive(tokens, "aligned");
push_directive(tokens, "u32");
self.imm_reg_count.unparse_tokens(tokens);
tokens.push(PtxToken::Semicolon);
}
}
}