@@ -907,7 +907,7 @@ def Vector_InsertOp :
907
907
}];
908
908
909
909
let arguments = (ins
910
- AnyType:$source ,
910
+ AnyType:$valueToStore ,
911
911
AnyVectorOfAnyRank:$dest,
912
912
Variadic<Index>:$dynamic_position,
913
913
DenseI64ArrayAttr:$static_position
@@ -916,15 +916,15 @@ def Vector_InsertOp :
916
916
917
917
let builders = [
918
918
// Builder to insert a scalar/rank-0 vector into a rank-0 vector.
919
- OpBuilder<(ins "Value":$source , "Value":$dest)>,
920
- OpBuilder<(ins "Value":$source , "Value":$dest, "int64_t":$position)>,
921
- OpBuilder<(ins "Value":$source , "Value":$dest, "OpFoldResult":$position)>,
922
- OpBuilder<(ins "Value":$source , "Value":$dest, "ArrayRef<int64_t>":$position)>,
923
- OpBuilder<(ins "Value":$source , "Value":$dest, "ArrayRef<OpFoldResult>":$position)>,
919
+ OpBuilder<(ins "Value":$valueToStore , "Value":$dest)>,
920
+ OpBuilder<(ins "Value":$valueToStore , "Value":$dest, "int64_t":$position)>,
921
+ OpBuilder<(ins "Value":$valueToStore , "Value":$dest, "OpFoldResult":$position)>,
922
+ OpBuilder<(ins "Value":$valueToStore , "Value":$dest, "ArrayRef<int64_t>":$position)>,
923
+ OpBuilder<(ins "Value":$valueToStore , "Value":$dest, "ArrayRef<OpFoldResult>":$position)>,
924
924
];
925
925
926
926
let extraClassDeclaration = extraPoisonClassDeclaration # [{
927
- Type getSourceType () { return getSource ().getType(); }
927
+ Type getValueToStoreType () { return getValueToStore ().getType(); }
928
928
VectorType getDestVectorType() {
929
929
return ::llvm::cast<VectorType>(getDest().getType());
930
930
}
@@ -946,8 +946,8 @@ def Vector_InsertOp :
946
946
}];
947
947
948
948
let assemblyFormat = [{
949
- $source `,` $dest custom<DynamicIndexList>($dynamic_position, $static_position)
950
- attr-dict `:` type($source ) `into` type($dest)
949
+ $valueToStore `,` $dest custom<DynamicIndexList>($dynamic_position, $static_position)
950
+ attr-dict `:` type($valueToStore ) `into` type($dest)
951
951
}];
952
952
953
953
let hasCanonicalizer = 1;
@@ -957,13 +957,13 @@ def Vector_InsertOp :
957
957
958
958
def Vector_ScalableInsertOp :
959
959
Vector_Op<"scalable.insert", [Pure,
960
- AllElementTypesMatch<["source ", "dest"]>,
960
+ AllElementTypesMatch<["valueToStore ", "dest"]>,
961
961
AllTypesMatch<["dest", "res"]>,
962
962
PredOpTrait<"position is a multiple of the source length.",
963
963
CPred<
964
964
"(getPos() % getSourceVectorType().getNumElements()) == 0"
965
965
>>]>,
966
- Arguments<(ins VectorOfRank<[1]>:$source ,
966
+ Arguments<(ins VectorOfRank<[1]>:$valueToStore ,
967
967
ScalableVectorOfRank<[1]>:$dest,
968
968
I64Attr:$pos)>,
969
969
Results<(outs ScalableVectorOfRank<[1]>:$res)> {
@@ -999,12 +999,12 @@ def Vector_ScalableInsertOp :
999
999
}];
1000
1000
1001
1001
let assemblyFormat = [{
1002
- $source `,` $dest `[` $pos `]` attr-dict `:` type($source ) `into` type($dest)
1002
+ $valueToStore `,` $dest `[` $pos `]` attr-dict `:` type($valueToStore ) `into` type($dest)
1003
1003
}];
1004
1004
1005
1005
let extraClassDeclaration = extraPoisonClassDeclaration # [{
1006
1006
VectorType getSourceVectorType() {
1007
- return ::llvm::cast<VectorType>(getSource ().getType());
1007
+ return ::llvm::cast<VectorType>(getValueToStore ().getType());
1008
1008
}
1009
1009
VectorType getDestVectorType() {
1010
1010
return ::llvm::cast<VectorType>(getDest().getType());
@@ -1068,20 +1068,20 @@ def Vector_InsertStridedSliceOp :
1068
1068
PredOpTrait<"operand #0 and result have same element type",
1069
1069
TCresVTEtIsSameAsOpBase<0, 0>>,
1070
1070
AllTypesMatch<["dest", "res"]>]>,
1071
- Arguments<(ins AnyVectorOfNonZeroRank:$source , AnyVectorOfNonZeroRank:$dest, I64ArrayAttr:$offsets,
1071
+ Arguments<(ins AnyVectorOfNonZeroRank:$valueToStore , AnyVectorOfNonZeroRank:$dest, I64ArrayAttr:$offsets,
1072
1072
I64ArrayAttr:$strides)>,
1073
1073
Results<(outs AnyVectorOfNonZeroRank:$res)> {
1074
1074
let summary = "strided_slice operation";
1075
1075
let description = [{
1076
- Takes a k-D source vector, an n-D destination vector (n >= k), n-sized
1076
+ Takes a k-D valueToStore vector, an n-D destination vector (n >= k), n-sized
1077
1077
`offsets` integer array attribute, a k-sized `strides` integer array attribute
1078
- and inserts the k-D source vector as a strided subvector at the proper offset
1078
+ and inserts the k-D valueToStore vector as a strided subvector at the proper offset
1079
1079
into the n-D destination vector.
1080
1080
1081
1081
At the moment strides must contain only 1s.
1082
1082
1083
1083
Returns an n-D vector that is a copy of the n-D destination vector in which
1084
- the last k-D dimensions contain the k-D source vector elements strided at
1084
+ the last k-D dimensions contain the k-D valueToStore vector elements strided at
1085
1085
the proper location as specified by the offsets.
1086
1086
1087
1087
Example:
@@ -1094,16 +1094,17 @@ def Vector_InsertStridedSliceOp :
1094
1094
}];
1095
1095
1096
1096
let assemblyFormat = [{
1097
- $source `,` $dest attr-dict `:` type($source ) `into` type($dest)
1097
+ $valueToStore `,` $dest attr-dict `:` type($valueToStore ) `into` type($dest)
1098
1098
}];
1099
1099
1100
1100
let builders = [
1101
- OpBuilder<(ins "Value":$source , "Value":$dest,
1101
+ OpBuilder<(ins "Value":$valueToStore , "Value":$dest,
1102
1102
"ArrayRef<int64_t>":$offsets, "ArrayRef<int64_t>":$strides)>
1103
1103
];
1104
1104
let extraClassDeclaration = [{
1105
+ // TODO: Rename
1105
1106
VectorType getSourceVectorType() {
1106
- return ::llvm::cast<VectorType>(getSource ().getType());
1107
+ return ::llvm::cast<VectorType>(getValueToStore ().getType());
1107
1108
}
1108
1109
VectorType getDestVectorType() {
1109
1110
return ::llvm::cast<VectorType>(getDest().getType());
@@ -1520,7 +1521,7 @@ def Vector_TransferWriteOp :
1520
1521
AttrSizedOperandSegments,
1521
1522
DestinationStyleOpInterface
1522
1523
]>,
1523
- Arguments<(ins AnyVectorOfAnyRank:$vector ,
1524
+ Arguments<(ins AnyVectorOfAnyRank:$valueToStore ,
1524
1525
AnyShaped:$source,
1525
1526
Variadic<Index>:$indices,
1526
1527
AffineMapAttr:$permutation_map,
0 commit comments