Skip to content

Commit cf3ec2a

Browse files
committed
[mlir][Vector] Depreciate vector.extractelement/vector.insertelement
1 parent c25c6c3 commit cf3ec2a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -638,11 +638,13 @@ def Vector_ExtractElementOp :
638638
Results<(outs AnyType:$result)> {
639639
let summary = "extractelement operation";
640640
let description = [{
641+
Note: This operation is depreciated. Please use vector.extract insert.
642+
641643
Takes a 0-D or 1-D vector and a optional dynamic index position and
642644
extracts the scalar at that position.
643645

644646
Note that this instruction resembles vector.extract, but is restricted to
645-
0-D and 1-D vectors and relaxed to dynamic indices.
647+
0-D and 1-D vectors.
646648
If the vector is 0-D, the position must be std::nullopt.
647649

648650

@@ -824,11 +826,13 @@ def Vector_InsertElementOp :
824826
Results<(outs AnyVectorOfAnyRank:$result)> {
825827
let summary = "insertelement operation";
826828
let description = [{
829+
Note: This operation is depreciated. Please use vector.insert instead.
830+
827831
Takes a scalar source, a 0-D or 1-D destination vector and a dynamic index
828832
position and inserts the source into the destination at the proper position.
829833

830834
Note that this instruction resembles vector.insert, but is restricted to 0-D
831-
and 1-D vectors and relaxed to dynamic indices.
835+
and 1-D vectors.
832836

833837
It is meant to be closer to LLVM's version:
834838
https://llvm.org/docs/LangRef.html#insertelement-instruction

0 commit comments

Comments
 (0)