[mlir] Move some linalg patterns around.
authorSean Silva <silvasean@google.com>
Tue, 27 Oct 2020 16:59:33 +0000 (09:59 -0700)
committerSean Silva <silvasean@google.com>
Fri, 30 Oct 2020 20:48:03 +0000 (13:48 -0700)
commit30e130c3edb2381ac099556d4976f379dfaa4f66
treebabe72eb6ddefc2f63687e7b1ac8d37378ff7738
parent1142eaed9d4e31aa10584f2755a350970495002f
[mlir] Move some linalg patterns around.

The bufferization patterns are moved to the .cpp file, which is
preferred in the codebase when it makes sense.

The LinalgToStandard patterns are kept a header because they are
expected to be used individually. However, they are moved to
LinalgToStandard.h which is the file corresponding to where they are
defined.

This also removes TensorCastOpConverter, which is handled by
populateStdBufferizePatterns now. Eventually, the constant op lowering
will be handled as well, but it there are currently holdups on moving
it (see https://reviews.llvm.org/D89916).

Differential Revision: https://reviews.llvm.org/D90254
mlir/include/mlir/Conversion/LinalgToStandard/LinalgToStandard.h
mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
mlir/lib/Dialect/Linalg/Transforms/Bufferize.cpp
mlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt