Skip to content

Commit ea17e12

Browse files
committed
Feedback
1 parent 64b06ba commit ea17e12

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

mlir/include/mlir/Dialect/Vector/IR/VectorOps.td

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ def Vector_FMAOp :
793793
def Vector_ToElementsOp : Vector_Op<"to_elements", [
794794
Pure,
795795
TypesMatchWith<"operand element type matches result types",
796-
"input", "elements", "SmallVector<Type>("
796+
"source", "elements", "SmallVector<Type>("
797797
"::llvm::cast<VectorType>($_self).getNumElements(), "
798798
"::llvm::cast<VectorType>($_self).getElementType())">]> {
799799
let summary = "operation that decomposes a vector into all its scalar elements";
@@ -836,15 +836,15 @@ def Vector_ToElementsOp : Vector_Op<"to_elements", [
836836
```
837837
}];
838838

839-
let arguments = (ins AnyVectorOfAnyRank:$input);
839+
let arguments = (ins AnyVectorOfAnyRank:$source);
840840
let results = (outs Variadic<AnyType>:$elements);
841-
let assemblyFormat = "$input attr-dict `:` type($input)";
841+
let assemblyFormat = "$source attr-dict `:` type($source)";
842842
}
843843

844844
def Vector_FromElementsOp : Vector_Op<"from_elements", [
845845
Pure,
846846
TypesMatchWith<"operand types match result element type",
847-
"result", "elements", "SmallVector<Type>("
847+
"dest", "elements", "SmallVector<Type>("
848848
"::llvm::cast<VectorType>($_self).getNumElements(), "
849849
"::llvm::cast<VectorType>($_self).getElementType())">]> {
850850
let summary = "operation that defines a vector from scalar elements";
@@ -877,8 +877,8 @@ def Vector_FromElementsOp : Vector_Op<"from_elements", [
877877
}];
878878

879879
let arguments = (ins Variadic<AnyType>:$elements);
880-
let results = (outs AnyFixedVectorOfAnyRank:$result);
881-
let assemblyFormat = "$elements attr-dict `:` type($result)";
880+
let results = (outs AnyFixedVectorOfAnyRank:$dest);
881+
let assemblyFormat = "$elements attr-dict `:` type($dest)";
882882
let hasCanonicalizer = 1;
883883
}
884884

mlir/test/Dialect/Vector/invalid.mlir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1930,7 +1930,7 @@ func.func @from_elements_wrong_operand_type(%a: f32, %b: i32) {
19301930
// -----
19311931

19321932
func.func @invalid_from_elements_scalable(%a: f32, %b: i32) {
1933-
// expected-error @+1 {{'result' must be fixed-length vector of any type values, but got 'vector<[2]xf32>'}}
1933+
// expected-error @+1 {{'dest' must be fixed-length vector of any type values, but got 'vector<[2]xf32>'}}
19341934
vector.from_elements %a, %b : vector<[2]xf32>
19351935
return
19361936
}

0 commit comments

Comments
 (0)