1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
//! Original PTX specification:
//!
//! stmatrix.sync.aligned.shape.num{.trans}{.ss}.type [p], r;
//! .shape = {.m8n8, .m16n8};
//! .num = {.x1, .x2, .x4};
//! .ss = {.shared, .shared::cta};
//! .type = {.b16, .b8};
#![allow(unused)]
use crate::r#type::common::*;
pub mod section_0 {
use crate::Spanned;
use crate::parser::Span;
use crate::r#type::common::*;
use serde::Serialize;
#[derive(Debug, Clone, PartialEq, Serialize)]
pub enum Shape {
M16n8, // .m16n8
M8n8, // .m8n8
}
#[derive(Debug, Clone, PartialEq, Serialize)]
pub enum Num {
X1, // .x1
X2, // .x2
X4, // .x4
}
#[derive(Debug, Clone, PartialEq, Serialize)]
pub enum Ss {
SharedCta, // .shared::cta
Shared, // .shared
}
#[derive(Debug, Clone, PartialEq, Serialize)]
pub enum Type {
B16, // .b16
B8, // .b8
}
#[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
pub struct StmatrixSyncAlignedShapeNumTransSsType {
pub sync: (), // .sync
pub aligned: (), // .aligned
pub shape: Shape, // .shape
pub num: Num, // .num
pub trans: bool, // {.trans}
pub ss: Option<Ss>, // {.ss}
pub type_: Type, // .type
pub p: AddressOperand, // [p]
pub r: GeneralOperand, // r
pub span: Span,
}
}
// Re-export types with section suffixes to avoid naming conflicts
// e.g., Type0 for section_0::Type, Type1 for section_1::Type
pub use section_0::Num as Num0;
pub use section_0::Shape as Shape0;
pub use section_0::Ss as Ss0;
pub use section_0::StmatrixSyncAlignedShapeNumTransSsType;
pub use section_0::Type as Type0;