ptx_parser/unparser/instruction/
griddepcontrol.rs

1//! Original PTX specification:
2//!
3//! griddepcontrol.action;
4//! .action   = { .launch_dependents, .wait };
5
6#![allow(unused)]
7
8use crate::lexer::PtxToken;
9use crate::unparser::{PtxUnparser, common::*};
10
11pub mod section_0 {
12    use super::*;
13    use crate::r#type::instruction::griddepcontrol::section_0::*;
14
15    impl PtxUnparser for GriddepcontrolAction {
16        fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
17            push_opcode(tokens, "griddepcontrol");
18                    match &self.action {
19                            Action::LaunchDependents => {
20                                    push_directive(tokens, "launch_dependents");
21                            }
22                            Action::Wait => {
23                                    push_directive(tokens, "wait");
24                            }
25                    }
26            tokens.push(PtxToken::Semicolon);
27        }
28    }
29
30}
31