[mlir] Fix Tensor_InsertSliceOp description
authorLogan Chien <tzuhsiang.chien@gmail.com>
Tue, 24 May 2022 01:04:30 +0000 (18:04 -0700)
committerLogan Chien <tzuhsiang.chien@gmail.com>
Wed, 25 May 2022 16:38:06 +0000 (09:38 -0700)
commit0c8fdd72309e7b6f542acd8213a23917e0fd2e9e
tree73f578d9f077e82103231a3c06603bc667bf6cfd
parent2a28467e5389c4d741d1825fadd39ae84ecaa5dc
[mlir] Fix Tensor_InsertSliceOp description

This commit fixes `Tensor_InsertSliceOp` `sizes` inputs/attributes
description.

Before this commit, the description says the `sizes` inputs/attributes
denote the size of the return type. But according to the
`InsertSliceOpConstantArgumentFolder` in
`lib/Dialect/Tensor/IR/TensorOps.cpp`, the `sizes` inputs/attributes
actually denote the size of the source type.

I had an off-line discussion with the authors of `TensorOps.td` and
`TensorOps.cpp`. We concluded that it was a typo in the Op description.

This commit updates the Op description to match the actual usage.

Differential Revision: https://reviews.llvm.org/D126264
mlir/include/mlir/Dialect/Tensor/IR/TensorOps.td