ptx_parser/type/instruction/
prefetch.rs1#![allow(unused)]
13use crate::r#type::common::*;
14
15pub mod section_0 {
16 use crate::Spanned;
17 use crate::parser::Span;
18 use crate::r#type::common::*;
19
20 use serde::Serialize;
21
22 #[derive(Debug, Clone, PartialEq, Serialize)]
23 pub enum Space {
24 Global, Local, }
27
28 #[derive(Debug, Clone, PartialEq, Serialize)]
29 pub enum Level {
30 L1, L2, }
33
34 #[derive(Debug, Clone, PartialEq, Serialize)]
35 pub enum LevelEvictionPriority {
36 L2EvictNormal, L2EvictLast, }
39
40 #[derive(Debug, Clone, PartialEq, Serialize)]
41 pub enum TensormapSpace {
42 Const, Param, }
45
46 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
47 pub struct PrefetchSpaceLevel {
48 pub space: Option<Space>, pub level: Level, pub a: AddressOperand, pub span: Span,
52 }
53
54 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
55 pub struct PrefetchGlobalLevelEvictionPriority {
56 pub global: (), pub level_eviction_priority: LevelEvictionPriority, pub a: AddressOperand, pub span: Span,
60 }
61
62 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
63 pub struct PrefetchuL1 {
64 pub l1: (), pub a: AddressOperand, pub span: Span,
67 }
68
69 #[derive(Debug, Clone, PartialEq, Spanned, Serialize)]
70 pub struct PrefetchTensormapSpaceTensormap {
71 pub tensormap_space: Option<TensormapSpace>, pub tensormap: (), pub a: AddressOperand, pub span: Span,
75 }
76}
77
78pub use section_0::Level as Level0;
81pub use section_0::LevelEvictionPriority as LevelEvictionPriority0;
82pub use section_0::PrefetchGlobalLevelEvictionPriority;
83pub use section_0::PrefetchSpaceLevel;
84pub use section_0::PrefetchTensormapSpaceTensormap;
85pub use section_0::PrefetchuL1;
86pub use section_0::Space as Space0;
87pub use section_0::TensormapSpace as TensormapSpace0;