[mlir][linalg] Add a padding case for `ComplexType`
authorRobert Suderman <suderman@google.com>
Mon, 17 Jul 2023 23:14:16 +0000 (16:14 -0700)
committerRob Suderman <suderman@google.com>
Tue, 18 Jul 2023 00:20:38 +0000 (17:20 -0700)
commita5cee3e386bde28ce21ff2ead3fc420f018604ca
tree0c4e00ffa351d824df42f9328614312baff377c7
parent4c42ab1199e9729c2f3a74f77ba765e4f9190d57
[mlir][linalg] Add a padding case for `ComplexType`

If the paddingAttr is an ArrayAttr with two values we know that
the element type is a `ComplexType` and we should pad the value
accordingly.

Reviewed By: mravishankar

Differential Revision: https://reviews.llvm.org/D154908
mlir/lib/Dialect/Linalg/Transforms/Padding.cpp