#![allow(unused)]
use crate::lexer::PtxToken;
use crate::unparser::{PtxUnparser, common::*};
pub mod section_0 {
use super::*;
use crate::r#type::instruction::tcgen05_shift::section_0::*;
impl PtxUnparser for Tcgen05ShiftCtaGroupDown {
fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
self.unparse_tokens_mode(tokens, false);
}
fn unparse_tokens_mode(&self, tokens: &mut ::std::vec::Vec<PtxToken>, spaced: bool) {
push_opcode(tokens, "tcgen05");
push_directive(tokens, "shift");
match &self.cta_group {
CtaGroup::CtaGroup1 => {
push_directive(tokens, "cta_group::1");
}
CtaGroup::CtaGroup2 => {
push_directive(tokens, "cta_group::2");
}
}
push_directive(tokens, "down");
if spaced {
tokens.push(PtxToken::Space);
}
self.taddr.unparse_tokens_mode(tokens, spaced);
tokens.push(PtxToken::Semicolon);
if spaced {
tokens.push(PtxToken::Newline);
}
}
}
}