ptx_parser/unparser/instruction/
tcgen05_shift.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_shift::section_0::*;
14
15 impl PtxUnparser for Tcgen05ShiftCtaGroupDown {
16 fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
17 push_opcode(tokens, "tcgen05");
18 push_directive(tokens, "shift");
19 match &self.cta_group {
20 CtaGroup::CtaGroup1 => {
21 push_directive(tokens, "cta_group::1");
22 }
23 CtaGroup::CtaGroup2 => {
24 push_directive(tokens, "cta_group::2");
25 }
26 }
27 push_directive(tokens, "down");
28 self.taddr.unparse_tokens(tokens);
29 tokens.push(PtxToken::Semicolon);
30 }
31 }
32}