[mlir][linalg] Lower subtensor(pad_tensor) to pad_tensor(subtensor)
authorMatthias Springer <springerm@google.com>
Sat, 19 Jun 2021 04:25:47 +0000 (13:25 +0900)
committerMatthias Springer <springerm@google.com>
Sat, 19 Jun 2021 04:44:47 +0000 (13:44 +0900)
commit24199f534f61d9ac7d2d9dcde7b9cac93c84d4f0
tree88b927af4d7b570b65643edb51dffa611b151369
parent4507f64165fd0c95f08b66d61db39549b22c50d3
[mlir][linalg] Lower subtensor(pad_tensor) to pad_tensor(subtensor)

Only high padding is supported at the moment. Low padding will be added in a separate commit.

Differential Revision: https://reviews.llvm.org/D104357
mlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
mlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
mlir/test/Dialect/Linalg/subtensor-of-padtensor.mlir [new file with mode: 0644]
mlir/test/lib/Dialect/Linalg/TestLinalgTransforms.cpp