Skip to main content

ptx_parser/unparser/instruction/
wgmma_fence.rs

1//! Original PTX specification:
2//!
3//! wgmma.fence.sync.aligned;
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::wgmma_fence::section_0::*;
13
14    impl PtxUnparser for WgmmaFenceSyncAligned {
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, "wgmma");
20            push_directive(tokens, "fence");
21            push_directive(tokens, "sync");
22            push_directive(tokens, "aligned");
23            tokens.push(PtxToken::Semicolon);
24            if spaced {
25                tokens.push(PtxToken::Newline);
26            }
27        }
28    }
29}