@@ -123,23 +123,23 @@ def MappingExpr : AttrInterface<"MappingExpr"> {
123123}
124124
125125// Tests if an attribute is an MappingAttr.
126- def IsSairMappingAttr : CPred<"$_self. isa<MappingAttr>()">;
126+ def IsSairMappingAttr : CPred<"isa<MappingAttr>($_self )">;
127127
128128// Specifies how a Sair value is accessed in the domain of another operation.
129129def SairMappingAttr : Attr<IsSairMappingAttr, "mapping"> {
130130 let storageType = [{MappingAttr}];
131131 let returnType = storageType;
132132}
133133
134- def IsSairNamedMappingAttr : CPred<"$_self. isa<NamedMappingAttr>()">;
134+ def IsSairNamedMappingAttr : CPred<"isa<NamedMappingAttr>($_self )">;
135135
136136def SairNamedMappingAttr : Attr<IsSairNamedMappingAttr, "named_mapping"> {
137137 let storageType = [{NamedMappingAttr}];
138138 let returnType = storageType;
139139}
140140
141141// Tests if an attribute is a DomainShapeAttr.
142- def IsSairDomainShapeAttr : CPred<"$_self. isa<DomainShapeAttr>()">;
142+ def IsSairDomainShapeAttr : CPred<"isa<DomainShapeAttr>($_self )">;
143143
144144// Specifies the shape of a Sair iteration domain.
145145def SairDomainShapeAttr : Attr<IsSairDomainShapeAttr, "domain shape"> {
@@ -164,7 +164,7 @@ def SairResultDomainShapeAttr :
164164}
165165
166166// Tests if an attribute is an MappingExpr.
167- def IsSairMappingExpr : CPred<"$_self. isa<sair::MappingExpr>()">;
167+ def IsSairMappingExpr : CPred<"isa<sair::MappingExpr>($_self )">;
168168
169169// Defines an iterator on a dimension of the domain of the current operation.
170170def SairMappingExpr : Attr<IsSairMappingExpr, "mapping_expr"> {
@@ -203,23 +203,23 @@ def SairOperandsAttr
203203
204204// An attribute describing a loop to generate when lowering an operation.
205205def SairLoopAttr
206- : Attr<CPred<"$_self. isa<::sair::LoopAttr>()">, "LoopAttr">;
206+ : Attr<CPred<"isa<::sair::LoopAttr>($_self )">, "LoopAttr">;
207207
208208// A loop nest to generate when lowering an operation.
209209def SairLoopNestAttr
210210 : OptionalAttr<TypedArrayAttrBase<SairLoopAttr, "array of LoopAttr">>;
211211
212212// An attribute that specifies how a value is stored in a buffer.
213213def SairBufferAttr
214- : Attr<CPred<"$_self. isa<::sair::BufferAttr>()">, "BufferAttr">;
214+ : Attr<CPred<"isa<::sair::BufferAttr>($_self )">, "BufferAttr">;
215215
216216// An attribute that specifies how results of a sair operation are stored in
217217// memory.
218218def SairStorageAttr : OptionalAttr<ArrayAttr>;
219219
220220// An attribute that specifies how to implement an operation.
221221def SairDecisionsAttr
222- : Attr<CPred<"$_self. isa<::sair::DecisionsAttr>()">, "DecisionsAttr">;
222+ : Attr<CPred<"isa<::sair::DecisionsAttr>($_self )">, "DecisionsAttr">;
223223
224224// An attribute that specifies instances of an operation.
225225def SairInstancesAttr
@@ -234,17 +234,17 @@ def SairCopiesAttr
234234//===----------------------------------------------------------------------===//
235235
236236// Type constraint for dimensions.
237- def SairDimension : Type<CPred<"$_self. isa<DimensionType>()">, "dimension">;
237+ def SairDimension : Type<CPred<"isa<DimensionType>($_self )">, "dimension">;
238238
239239// Type constraint for ranges.
240- def SairDynRange : Type<CPred<"$_self. isa<DynRangeType>()">, "range">;
240+ def SairDynRange : Type<CPred<"isa<DynRangeType>($_self )">, "range">;
241241
242242// Type constraint for static ranges.
243243def SairStaticRange
244- : Type<CPred<"$_self. isa<StaticRangeType>()">, "static_range">;
244+ : Type<CPred<"isa<StaticRangeType>($_self )">, "static_range">;
245245
246246// Type constraint for Sair values.
247- def SairValue : Type<CPred<"$_self. isa<ValueType>()">, "value">;
247+ def SairValue : Type<CPred<"isa<ValueType>($_self )">, "value">;
248248
249249// Predicate that checks the element type of a Sair value.
250250class SairElementTypePred<Type type>
0 commit comments