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 for ClusterlaunchcontrolTryCancelAsyncSpaceCompletionMechanismMulticastClusterAllB128 {
17 fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
18 push_opcode(tokens, "clusterlaunchcontrol");
19 push_directive(tokens, "try_cancel");
20 push_directive(tokens, "async");
21 if let Some(space_0) = self.space.as_ref() {
22 match space_0 {
23 Space::SharedCta => {
24 push_directive(tokens, "shared::cta");
25 }
26 }
27 }
28 match &self.completion_mechanism {
29 CompletionMechanism::MbarrierCompleteTxBytes => {
30 push_directive(tokens, "mbarrier::complete_tx::bytes");
31 }
32 }
33 if self.multicast_cluster_all {
34 push_directive(tokens, "multicast::cluster::all");
35 }
36 push_directive(tokens, "b128");
37 self.addr.unparse_tokens(tokens);
38 tokens.push(PtxToken::Comma);
39 self.mbar.unparse_tokens(tokens);
40 tokens.push(PtxToken::Semicolon);
41 }
42 }
43
44}
45