ptx_parser/unparser/instruction/
movmatrix.rs1#![allow(unused)]
8
9use crate::lexer::PtxToken;
10use crate::unparser::{PtxUnparser, common::*};
11
12pub mod section_0 {
13 use super::*;
14 use crate::r#type::instruction::movmatrix::section_0::*;
15
16 impl PtxUnparser for MovmatrixSyncAlignedShapeTransType {
17 fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
18 push_opcode(tokens, "movmatrix");
19 push_directive(tokens, "sync");
20 push_directive(tokens, "aligned");
21 match &self.shape {
22 Shape::M8n8 => {
23 push_directive(tokens, "m8n8");
24 }
25 }
26 push_directive(tokens, "trans");
27 match &self.type_ {
28 Type::B16 => {
29 push_directive(tokens, "b16");
30 }
31 }
32 self.d.unparse_tokens(tokens);
33 tokens.push(PtxToken::Comma);
34 self.a.unparse_tokens(tokens);
35 tokens.push(PtxToken::Semicolon);
36 }
37 }
38}