ptx_parser/unparser/instruction/
cp_async_wait_group.rs

1//! Original PTX specification:
2//!
3//! cp.async.wait_group N;
4//! cp.async.wait_all ;
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::cp_async_wait_group::section_0::*;
14
15    impl PtxUnparser for CpAsyncWaitGroup {
16        fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
17            push_opcode(tokens, "cp");
18            push_directive(tokens, "async");
19            push_directive(tokens, "wait_group");
20            self.n.unparse_tokens(tokens);
21            tokens.push(PtxToken::Semicolon);
22        }
23    }
24
25    impl PtxUnparser for CpAsyncWaitAll {
26        fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
27            push_opcode(tokens, "cp");
28            push_directive(tokens, "async");
29            push_directive(tokens, "wait_all");
30            tokens.push(PtxToken::Semicolon);
31        }
32    }
33}