[mlir][tensor] Expose padding requirement of pack ops to a static method
authorHanhan Wang <hanchung@google.com>
Thu, 9 Mar 2023 18:03:31 +0000 (10:03 -0800)
committerHanhan Wang <hanchung@google.com>
Thu, 9 Mar 2023 18:03:46 +0000 (10:03 -0800)
commitbe76f6bef835c473a099482dd6c531fe7d7ededb
tree75c8f2a21116cef6f3ebc5480cd01264eb03c56a
parent720e6297d1f5a9f05a2dbfa52ae688ffd0465321
[mlir][tensor] Expose padding requirement of pack ops to a static method

It also simplifies the implementation of the method. The map is not needed in the check.

Reviewed By: chelini

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