ptx_parser/unparser/instruction/
cp_async_bulk_wait_group.rs1#![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 self.unparse_tokens_mode(tokens, false);
17 }
18 fn unparse_tokens_mode(&self, tokens: &mut ::std::vec::Vec<PtxToken>, spaced: bool) {
19 push_opcode(tokens, "cp");
20 push_directive(tokens, "async");
21 push_directive(tokens, "bulk");
22 push_directive(tokens, "wait_group");
23 if self.read {
24 push_directive(tokens, "read");
25 }
26 if spaced {
27 tokens.push(PtxToken::Space);
28 }
29 self.n.unparse_tokens_mode(tokens, spaced);
30 tokens.push(PtxToken::Semicolon);
31 if spaced {
32 tokens.push(PtxToken::Newline);
33 }
34 }
35 }
36}