@@ -123,23 +123,23 @@ def MappingExpr : AttrInterface<"MappingExpr"> {
123
123
}
124
124
125
125
// Tests if an attribute is an MappingAttr.
126
- def IsSairMappingAttr : CPred<"$_self. isa<MappingAttr>()">;
126
+ def IsSairMappingAttr : CPred<"isa<MappingAttr>($_self )">;
127
127
128
128
// Specifies how a Sair value is accessed in the domain of another operation.
129
129
def SairMappingAttr : Attr<IsSairMappingAttr, "mapping"> {
130
130
let storageType = [{MappingAttr}];
131
131
let returnType = storageType;
132
132
}
133
133
134
- def IsSairNamedMappingAttr : CPred<"$_self. isa<NamedMappingAttr>()">;
134
+ def IsSairNamedMappingAttr : CPred<"isa<NamedMappingAttr>($_self )">;
135
135
136
136
def SairNamedMappingAttr : Attr<IsSairNamedMappingAttr, "named_mapping"> {
137
137
let storageType = [{NamedMappingAttr}];
138
138
let returnType = storageType;
139
139
}
140
140
141
141
// Tests if an attribute is a DomainShapeAttr.
142
- def IsSairDomainShapeAttr : CPred<"$_self. isa<DomainShapeAttr>()">;
142
+ def IsSairDomainShapeAttr : CPred<"isa<DomainShapeAttr>($_self )">;
143
143
144
144
// Specifies the shape of a Sair iteration domain.
145
145
def SairDomainShapeAttr : Attr<IsSairDomainShapeAttr, "domain shape"> {
@@ -164,7 +164,7 @@ def SairResultDomainShapeAttr :
164
164
}
165
165
166
166
// Tests if an attribute is an MappingExpr.
167
- def IsSairMappingExpr : CPred<"$_self. isa<sair::MappingExpr>()">;
167
+ def IsSairMappingExpr : CPred<"isa<sair::MappingExpr>($_self )">;
168
168
169
169
// Defines an iterator on a dimension of the domain of the current operation.
170
170
def SairMappingExpr : Attr<IsSairMappingExpr, "mapping_expr"> {
@@ -203,23 +203,23 @@ def SairOperandsAttr
203
203
204
204
// An attribute describing a loop to generate when lowering an operation.
205
205
def SairLoopAttr
206
- : Attr<CPred<"$_self. isa<::sair::LoopAttr>()">, "LoopAttr">;
206
+ : Attr<CPred<"isa<::sair::LoopAttr>($_self )">, "LoopAttr">;
207
207
208
208
// A loop nest to generate when lowering an operation.
209
209
def SairLoopNestAttr
210
210
: OptionalAttr<TypedArrayAttrBase<SairLoopAttr, "array of LoopAttr">>;
211
211
212
212
// An attribute that specifies how a value is stored in a buffer.
213
213
def SairBufferAttr
214
- : Attr<CPred<"$_self. isa<::sair::BufferAttr>()">, "BufferAttr">;
214
+ : Attr<CPred<"isa<::sair::BufferAttr>($_self )">, "BufferAttr">;
215
215
216
216
// An attribute that specifies how results of a sair operation are stored in
217
217
// memory.
218
218
def SairStorageAttr : OptionalAttr<ArrayAttr>;
219
219
220
220
// An attribute that specifies how to implement an operation.
221
221
def SairDecisionsAttr
222
- : Attr<CPred<"$_self. isa<::sair::DecisionsAttr>()">, "DecisionsAttr">;
222
+ : Attr<CPred<"isa<::sair::DecisionsAttr>($_self )">, "DecisionsAttr">;
223
223
224
224
// An attribute that specifies instances of an operation.
225
225
def SairInstancesAttr
@@ -234,17 +234,17 @@ def SairCopiesAttr
234
234
//===----------------------------------------------------------------------===//
235
235
236
236
// Type constraint for dimensions.
237
- def SairDimension : Type<CPred<"$_self. isa<DimensionType>()">, "dimension">;
237
+ def SairDimension : Type<CPred<"isa<DimensionType>($_self )">, "dimension">;
238
238
239
239
// Type constraint for ranges.
240
- def SairDynRange : Type<CPred<"$_self. isa<DynRangeType>()">, "range">;
240
+ def SairDynRange : Type<CPred<"isa<DynRangeType>($_self )">, "range">;
241
241
242
242
// Type constraint for static ranges.
243
243
def SairStaticRange
244
- : Type<CPred<"$_self. isa<StaticRangeType>()">, "static_range">;
244
+ : Type<CPred<"isa<StaticRangeType>($_self )">, "static_range">;
245
245
246
246
// Type constraint for Sair values.
247
- def SairValue : Type<CPred<"$_self. isa<ValueType>()">, "value">;
247
+ def SairValue : Type<CPred<"isa<ValueType>($_self )">, "value">;
248
248
249
249
// Predicate that checks the element type of a Sair value.
250
250
class SairElementTypePred<Type type>
0 commit comments