HomePhabricator

[linalg] Add TensorDimOp to list of ops known by bufferization.

Authored by gysit on Jul 20 2021, 5:21 AM.

Description

[linalg] Add TensorDimOp to list of ops known by bufferization.

Bufferization handles all unknown ops conservative. The patch ensures accessing the dimension of an output tensor does not prevent in place bufferization.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D106356