ptx_parser/unparser/instruction/
pmevent.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::pmevent::section_0::*;
14
15 impl PtxUnparser for Pmevent {
16 fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
17 push_opcode(tokens, "pmevent");
18 self.a.unparse_tokens(tokens);
19 tokens.push(PtxToken::Semicolon);
20 }
21 }
22
23 impl PtxUnparser for PmeventMask {
24 fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
25 push_opcode(tokens, "pmevent");
26 push_directive(tokens, "mask");
27 self.a.unparse_tokens(tokens);
28 tokens.push(PtxToken::Semicolon);
29 }
30 }
31}