ptx_parser/unparser/instruction/
lg2.rs1#![allow(unused)]
6
7use crate::lexer::PtxToken;
8use crate::unparser::{PtxUnparser, common::*};
9
10pub mod section_0 {
11 use super::*;
12 use crate::r#type::instruction::lg2::section_0::*;
13
14 impl PtxUnparser for Lg2ApproxFtzF32 {
15 fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
16 push_opcode(tokens, "lg2");
17 push_directive(tokens, "approx");
18 if self.ftz {
19 push_directive(tokens, "ftz");
20 }
21 push_directive(tokens, "f32");
22 self.d.unparse_tokens(tokens);
23 tokens.push(PtxToken::Comma);
24 self.a.unparse_tokens(tokens);
25 tokens.push(PtxToken::Semicolon);
26 }
27 }
28}