diff --git a/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td b/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td --- a/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td +++ b/mlir/include/mlir/Dialect/Vector/IR/VectorOps.td @@ -64,20 +64,22 @@ let assemblyFormat = "`<` $value `>`"; } -def IteratorType : I32EnumAttr<"IteratorType", "Iterator type", [ +def Vector_IteratorType : I32EnumAttr<"IteratorType", "Iterator type", [ I32EnumAttrCase<"parallel", 0>, I32EnumAttrCase<"reduction", 1> - ]> { +]> { let genSpecializedAttr = 0; let cppNamespace = "::mlir::vector"; } -def IteratorTypeEnum : EnumAttr { - let assemblyFormat = "`<` $value `>`"; +def Vector_IteratorTypeEnum + : EnumAttr { + let assemblyFormat = "`<` $value `>`"; } -def IteratorTypeArrayAttr : TypedArrayAttrBase; +def Vector_IteratorTypeArrayAttr + : TypedArrayAttrBase; // TODO: Add an attribute to specify a different algebra with operators other // than the current set: {*, +}. @@ -92,7 +94,7 @@ Arguments<(ins AnyVector:$lhs, AnyVector:$rhs, AnyType:$acc, Variadic>:$masks, ArrayAttr:$indexing_maps, - IteratorTypeArrayAttr:$iterator_types, + Vector_IteratorTypeArrayAttr:$iterator_types, DefaultValuedAttr:$kind)>, Results<(outs AnyType)> {