ptx_parser/unparser/instruction/
isspacep.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::isspacep::section_0::*;
14
15 impl PtxUnparser for IsspacepSpace {
16 fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
17 push_opcode(tokens, "isspacep");
18 match &self.space {
19 Space::SharedCluster => {
20 push_directive(tokens, "shared::cluster");
21 }
22 Space::ParamEntry => {
23 push_directive(tokens, "param::entry");
24 }
25 Space::SharedCta => {
26 push_directive(tokens, "shared::cta");
27 }
28 Space::Global => {
29 push_directive(tokens, "global");
30 }
31 Space::Shared => {
32 push_directive(tokens, "shared");
33 }
34 Space::Const => {
35 push_directive(tokens, "const");
36 }
37 Space::Local => {
38 push_directive(tokens, "local");
39 }
40 Space::Param => {
41 push_directive(tokens, "param");
42 }
43 }
44 self.p.unparse_tokens(tokens);
45 tokens.push(PtxToken::Comma);
46 self.a.unparse_tokens(tokens);
47 tokens.push(PtxToken::Semicolon);
48 }
49 }
50}