ptx_parser/unparser/instruction/
tcgen05_wait.rs

1//! Original PTX specification:
2//!
3//! tcgen05.wait_operation.sync.aligned;
4//! .wait_operation = { .wait::ld, .wait::st }
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::tcgen05_wait::section_0::*;
14
15    impl PtxUnparser for Tcgen05WaitOperationSyncAligned {
16        fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
17            push_opcode(tokens, "tcgen05");
18                    match &self.wait_operation {
19                            WaitOperation::WaitLd => {
20                                    push_directive(tokens, "wait::ld");
21                            }
22                            WaitOperation::WaitSt => {
23                                    push_directive(tokens, "wait::st");
24                            }
25                    }
26                    push_directive(tokens, "sync");
27                    push_directive(tokens, "aligned");
28            tokens.push(PtxToken::Semicolon);
29        }
30    }
31
32}
33