ptx_parser/unparser/instruction/
cp_async_bulk_wait_group.rs

1//! Original PTX specification:
2//!
3//! cp.async.bulk.wait_group{.read} N;
4
5#![allow(unused)]
6
7use crate::lexer::PtxToken;
8use crate::unparser::{PtxUnparser, common::*};
9
10pub mod section_0 {
11    use super::*;
12    use crate::r#type::instruction::cp_async_bulk_wait_group::section_0::*;
13
14    impl PtxUnparser for CpAsyncBulkWaitGroupRead {
15        fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
16            push_opcode(tokens, "cp");
17                    push_directive(tokens, "async");
18                    push_directive(tokens, "bulk");
19                    push_directive(tokens, "wait_group");
20                    if self.read {
21                            push_directive(tokens, "read");
22                    }
23                    self.n.unparse_tokens(tokens);
24            tokens.push(PtxToken::Semicolon);
25        }
26    }
27
28}
29