ptx_parser/unparser/instruction/
tcgen05_wait.rs1#![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::tcgen05_wait::section_0::*;
14
15 impl PtxUnparser for Tcgen05WaitOperationSyncAligned {
16 fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
17 self.unparse_tokens_mode(tokens, false);
18 }
19 fn unparse_tokens_mode(&self, tokens: &mut ::std::vec::Vec<PtxToken>, spaced: bool) {
20 push_opcode(tokens, "tcgen05");
21 match &self.wait_operation {
22 WaitOperation::WaitLd => {
23 push_directive(tokens, "wait::ld");
24 }
25 WaitOperation::WaitSt => {
26 push_directive(tokens, "wait::st");
27 }
28 }
29 push_directive(tokens, "sync");
30 push_directive(tokens, "aligned");
31 tokens.push(PtxToken::Semicolon);
32 if spaced {
33 tokens.push(PtxToken::Newline);
34 }
35 }
36 }
37}