ptx_parser/unparser/instruction/
nanosleep.rs

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