ptx_parser/unparser/instruction/
bfe.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::bfe::section_0::*;
14
15 impl PtxUnparser for BfeType {
16 fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
17 push_opcode(tokens, "bfe");
18 match &self.type_ {
19 Type::U32 => {
20 push_directive(tokens, "u32");
21 }
22 Type::U64 => {
23 push_directive(tokens, "u64");
24 }
25 Type::S32 => {
26 push_directive(tokens, "s32");
27 }
28 Type::S64 => {
29 push_directive(tokens, "s64");
30 }
31 }
32 self.d.unparse_tokens(tokens);
33 tokens.push(PtxToken::Comma);
34 self.a.unparse_tokens(tokens);
35 tokens.push(PtxToken::Comma);
36 self.b.unparse_tokens(tokens);
37 tokens.push(PtxToken::Comma);
38 self.c.unparse_tokens(tokens);
39 tokens.push(PtxToken::Semicolon);
40 }
41 }
42
43}
44