@@ -27,9 +27,7 @@ def DataLayoutEntryTrait
27
27
28
28
def DLTI_DataLayoutEntryAttr :
29
29
DLTIAttr<"DataLayoutEntry", [DataLayoutEntryTrait]> {
30
- let summary = [{
31
- An attribute to represent an entry of a data layout specification.
32
- }];
30
+ let summary = "An attribute to represent an entry of a data layout specification.";
33
31
let description = [{
34
32
A data layout entry attribute is a key-value pair where the key is a type or
35
33
an identifier and the value is another attribute. These entries form a data
@@ -62,9 +60,7 @@ def DataLayoutSpecTrait
62
60
63
61
def DLTI_DataLayoutSpecAttr :
64
62
DLTIAttr<"DataLayoutSpec", [DataLayoutSpecTrait]> {
65
- let summary = [{
66
- An attribute to represent a data layout specification.
67
- }];
63
+ let summary = "An attribute to represent a data layout specification.";
68
64
let description = [{
69
65
A data layout specification is a list of entries that specify (partial) data
70
66
layout information. It is expected to be attached to operations that serve
@@ -111,23 +107,23 @@ def TargetSystemSpecTrait
111
107
112
108
def DLTI_TargetSystemSpecAttr :
113
109
DLTIAttr<"TargetSystemSpec", [TargetSystemSpecTrait]> {
114
- let summary = [{
115
- An attribute to represent target system specification.
116
- }];
110
+ let summary = "An attribute to represent target system specification.";
117
111
let description = [{
118
112
A system specification describes the overall system containing
119
113
multiple devices, with each device having a unique ID (string)
120
114
and its corresponding TargetDeviceSpec object.
121
115
122
116
Example:
123
- dlti.target_system_spec =
124
- #dlti.target_system_spec<
125
- "CPU": #dlti.target_device_spec<
126
- #dlti.dl_entry<"dlti.L1_cache_size_in_bytes", 4096: ui32>>,
127
- "GPU": #dlti.target_device_spec<
128
- #dlti.dl_entry<"dlti.max_vector_op_width", 64 : ui32>>,
129
- "XPU": #dlti.target_device_spec<
130
- #dlti.dl_entry<"dlti.max_vector_op_width", 4096 : ui32>>>
117
+ ```
118
+ dlti.target_system_spec =
119
+ #dlti.target_system_spec<
120
+ "CPU": #dlti.target_device_spec<
121
+ #dlti.dl_entry<"dlti.L1_cache_size_in_bytes", 4096: ui32>>,
122
+ "GPU": #dlti.target_device_spec<
123
+ #dlti.dl_entry<"dlti.max_vector_op_width", 64 : ui32>>,
124
+ "XPU": #dlti.target_device_spec<
125
+ #dlti.dl_entry<"dlti.max_vector_op_width", 4096 : ui32>>>
126
+ ```
131
127
}];
132
128
let parameters = (ins
133
129
ArrayRefParameter<"DeviceIDTargetDeviceSpecPair", "">:$entries
@@ -165,17 +161,17 @@ def TargetDeviceSpecTrait
165
161
166
162
def DLTI_TargetDeviceSpecAttr :
167
163
DLTIAttr<"TargetDeviceSpec", [TargetDeviceSpecTrait]> {
168
- let summary = [{
169
- An attribute to represent target device specification.
170
- }];
164
+ let summary = "An attribute to represent target device specification.";
171
165
let description = [{
172
166
Each device specification describes a single device and its
173
167
hardware properties. Each device specification can contain any number
174
168
of optional hardware properties (e.g., max_vector_op_width below).
175
169
176
170
Example:
177
- #dlti.target_device_spec<
178
- #dlti.dl_entry<"dlti.max_vector_op_width", 64 : ui32>>
171
+ ```
172
+ #dlti.target_device_spec<
173
+ #dlti.dl_entry<"dlti.max_vector_op_width", 64 : ui32>>
174
+ ```
179
175
}];
180
176
let parameters = (ins
181
177
ArrayRefParameter<"DataLayoutEntryInterface", "">:$entries
0 commit comments