Skip to content

Commit 1a6ed4d

Browse files
authored
1 parent 1761066 commit 1a6ed4d

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
@@ -644,11 +644,13 @@ def Vector_ExtractElementOp :
644644
Results<(outs AnyType:$result)> {
645645
let summary = "extractelement operation";
646646
let description = [{
647+
Note: This operation is deprecated. Please use vector.extract insert.
648+
647649
Takes a 0-D or 1-D vector and a optional dynamic index position and
648650
extracts the scalar at that position.
649651

650652
Note that this instruction resembles vector.extract, but is restricted to
651-
0-D and 1-D vectors and relaxed to dynamic indices.
653+
0-D and 1-D vectors.
652654
If the vector is 0-D, the position must be std::nullopt.
653655

654656

@@ -834,11 +836,13 @@ def Vector_InsertElementOp :
834836
Results<(outs AnyVectorOfAnyRank:$result)> {
835837
let summary = "insertelement operation";
836838
let description = [{
839+
Note: This operation is deprecated. Please use vector.insert instead.
840+
837841
Takes a scalar source, a 0-D or 1-D destination vector and a dynamic index
838842
position and inserts the source into the destination at the proper position.
839843

840844
Note that this instruction resembles vector.insert, but is restricted to 0-D
841-
and 1-D vectors and relaxed to dynamic indices.
845+
and 1-D vectors.
842846

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

0 commit comments

Comments
 (0)