ptx_parser/unparser/instruction/
clusterlaunchcontrol_try_cancel.rs1#![allow(unused)]
8
9use crate::lexer::PtxToken;
10use crate::unparser::{PtxUnparser, common::*};
11
12pub mod section_0 {
13 use super::*;
14 use crate::r#type::instruction::clusterlaunchcontrol_try_cancel::section_0::*;
15
16 impl PtxUnparser
17 for ClusterlaunchcontrolTryCancelAsyncSpaceCompletionMechanismMulticastClusterAllB128
18 {
19 fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
20 push_opcode(tokens, "clusterlaunchcontrol");
21 push_directive(tokens, "try_cancel");
22 push_directive(tokens, "async");
23 if let Some(space_0) = self.space.as_ref() {
24 match space_0 {
25 Space::SharedCta => {
26 push_directive(tokens, "shared::cta");
27 }
28 }
29 }
30 match &self.completion_mechanism {
31 CompletionMechanism::MbarrierCompleteTxBytes => {
32 push_directive(tokens, "mbarrier::complete_tx::bytes");
33 }
34 }
35 if self.multicast_cluster_all {
36 push_directive(tokens, "multicast::cluster::all");
37 }
38 push_directive(tokens, "b128");
39 self.addr.unparse_tokens(tokens);
40 tokens.push(PtxToken::Comma);
41 self.mbar.unparse_tokens(tokens);
42 tokens.push(PtxToken::Semicolon);
43 }
44 }
45}