[mlir][tensor] Enhance the verifier of pack and unpack op.
authorHanhan Wang <hanchung@google.com>
Tue, 29 Nov 2022 19:38:15 +0000 (11:38 -0800)
committerHanhan Wang <hanchung@google.com>
Tue, 29 Nov 2022 23:47:52 +0000 (15:47 -0800)
commita971d519327bbaf9a00b5bf5ec7ce385f6235e85
treec4ed646619b23169bec3536312b96ffbe5888e62
parentb5bc205d75ca669c9707792c72c79e3bf0586f89
[mlir][tensor] Enhance the verifier of pack and unpack op.

The outer_dims_perm must be a permutation or empty.

Reviewed By: chelini

Differential Revision: https://reviews.llvm.org/D138936
mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
mlir/test/Dialect/Tensor/invalid.mlir