ptx_parser/unparser/instruction/
suq.rs1#![allow(unused)]
9
10use crate::lexer::PtxToken;
11use crate::unparser::{PtxUnparser, common::*};
12
13pub mod section_0 {
14 use super::*;
15 use crate::r#type::instruction::suq::section_0::*;
16
17 impl PtxUnparser for SuqQueryB32 {
18 fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
19 push_opcode(tokens, "suq");
20 match &self.query {
21 Query::ChannelDataType => {
22 push_directive(tokens, "channel_data_type");
23 }
24 Query::ChannelOrder => {
25 push_directive(tokens, "channel_order");
26 }
27 Query::MemoryLayout => {
28 push_directive(tokens, "memory_layout");
29 }
30 Query::ArraySize => {
31 push_directive(tokens, "array_size");
32 }
33 Query::Height => {
34 push_directive(tokens, "height");
35 }
36 Query::Width => {
37 push_directive(tokens, "width");
38 }
39 Query::Depth => {
40 push_directive(tokens, "depth");
41 }
42 }
43 push_directive(tokens, "b32");
44 self.d.unparse_tokens(tokens);
45 tokens.push(PtxToken::Comma);
46 self.a.unparse_tokens(tokens);
47 tokens.push(PtxToken::Semicolon);
48 }
49 }
50}