ptx_parser/unparser/instruction/
ret.rs

1//! Original PTX specification:
2//!
3//! ret{.uni};
4
5#![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::ret::section_0::*;
13
14    impl PtxUnparser for RetUni {
15        fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
16            push_opcode(tokens, "ret");
17            if self.uni {
18                push_directive(tokens, "uni");
19            }
20            tokens.push(PtxToken::Semicolon);
21        }
22    }
23}