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
66
67
//! Original PTX specification:
//!
//! // Range-based policy
//! createpolicy.range{.global}.level::primary_priority{.level::secondary_priority}.b64
//! cache-policy, [a], primary-size, total-size;
//! // Fraction-based policy
//! createpolicy.fractional.level::primary_priority{.level::secondary_priority}.b64
//! cache-policy{, fraction};
//! // Converting the access property from CUDA APIs
//! createpolicy.cvt.L2.b64 cache-policy, access-property;
//! .level::primary_priority = { .L2::evict_last, .L2::evict_normal,
//! .L2::evict_first, .L2::evict_unchanged };
//! .level::secondary_priority = { .L2::evict_first, .L2::evict_unchanged };
#![allow(unused)]
use crate::r#type::common::*;
pub mod section_0 {
use crate::r#type::common::*;
#[derive(Debug, Clone, PartialEq)]
pub enum LevelPrimaryPriority {
L2EvictUnchanged, // .L2::evict_unchanged
L2EvictNormal, // .L2::evict_normal
L2EvictFirst, // .L2::evict_first
L2EvictLast, // .L2::evict_last
}
#[derive(Debug, Clone, PartialEq)]
pub enum LevelSecondaryPriority {
L2EvictUnchanged, // .L2::evict_unchanged
L2EvictFirst, // .L2::evict_first
}
#[derive(Debug, Clone, PartialEq)]
pub struct CreatepolicyRangeGlobalLevelPrimaryPriorityLevelSecondaryPriorityB64 {
pub range: (), // .range
pub global: bool, // {.global}
pub level_primary_priority: LevelPrimaryPriority, // .level::primary_priority
pub level_secondary_priority: Option<LevelSecondaryPriority>, // {.level::secondary_priority}
pub b64: (), // .b64
pub cache_policy: GeneralOperand, // cache-policy
pub a: AddressOperand, // [a]
pub primary_size: GeneralOperand, // primary-size
pub total_size: GeneralOperand, // total-size
}
#[derive(Debug, Clone, PartialEq)]
pub struct CreatepolicyFractionalLevelPrimaryPriorityLevelSecondaryPriorityB64 {
pub fractional: (), // .fractional
pub level_primary_priority: LevelPrimaryPriority, // .level::primary_priority
pub level_secondary_priority: Option<LevelSecondaryPriority>, // {.level::secondary_priority}
pub b64: (), // .b64
pub cache_policy: GeneralOperand, // cache-policy
pub fraction: Option<GeneralOperand>, // {, fraction}
}
#[derive(Debug, Clone, PartialEq)]
pub struct CreatepolicyCvtL2B64 {
pub cvt: (), // .cvt
pub l2: (), // .L2
pub b64: (), // .b64
pub cache_policy: GeneralOperand, // cache-policy
pub access_property: GeneralOperand, // access-property
}
}