ptx_parser/unparser/instruction/
tensormap_cp_fenceproxy.rs1#![allow(unused)]
10
11use crate::lexer::PtxToken;
12use crate::unparser::{PtxUnparser, common::*};
13
14pub mod section_0 {
15 use super::*;
16 use crate::r#type::instruction::tensormap_cp_fenceproxy::section_0::*;
17
18 impl PtxUnparser for TensormapCpFenceproxyCpQualifiersFenceQualifiersSyncAligned {
19 fn unparse_tokens(&self, tokens: &mut ::std::vec::Vec<PtxToken>) {
20 push_opcode(tokens, "tensormap");
21 push_directive(tokens, "cp_fenceproxy");
22 match &self.cp_qualifiers {
23 CpQualifiers::GlobalSharedCta => {
24 push_directive(tokens, "global.shared::cta");
25 }
26 }
27 match &self.fence_qualifiers {
28 FenceQualifiers::ToProxyFromProxyReleaseScope(_, _, _) => {
29 push_directive(tokens, "tensormap::generic");
30 push_directive(tokens, "release");
31 push_directive(tokens, "cluster");
32 push_directive(tokens, "cta");
33 push_directive(tokens, "gpu");
34 push_directive(tokens, "sys");
35 }
36 }
37 push_directive(tokens, "sync");
38 push_directive(tokens, "aligned");
39 self.dst.unparse_tokens(tokens);
40 tokens.push(PtxToken::Comma);
41 self.src.unparse_tokens(tokens);
42 tokens.push(PtxToken::Comma);
43 self.size.unparse_tokens(tokens);
44 tokens.push(PtxToken::Semicolon);
45 }
46 }
47}