commit | 34a01b97b46633d1fbe007bfd1bf4f53938e56c2 | [log] [tgz] |
---|---|---|
author | Tobias Gysi <gysit@google.com> | Mon Nov 22 13:15:06 2021 +0000 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Nov 22 05:31:11 2021 -0800 |
tree | f5ff54d41690e64733375c2350e6afed714eb234 | |
parent | 4bc2c8582deea7a4ca901e4fe1516c42e4c29a14 [diff] |
[mlir][linalg] Use getAsOpFoldResult in padding (NFC). After padding, we introduce a ExtractSliceOp to get the final unpadded result. This revision uses getAsOpFoldResult to compute the size of the unpadded result, which guarantees the result type has a partially static shape if some of the sizes of the unpadded result are statically known. At the moment, we rely on canonicalization to cleanup the types after padding. Depends On D114085 Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D114153 GitOrigin-RevId: 247a1a55eb6a58199006565d594c6f6c6b58b736
See https://mlir.llvm.org/ for more information.