[mlir][scf] refactor scf structuralOpConversion to better support 1:N type conversion
authorPeiming Liu <peiming@google.com>
Fri, 28 Oct 2022 23:39:47 +0000 (23:39 +0000)
committerPeiming Liu <peiming@google.com>
Wed, 2 Nov 2022 16:45:39 +0000 (16:45 +0000)
commitf4cd3674ea2e055a770fa993cbfd2356c38fc545
tree4af5cb31d04bc95ad6443e4d16294216555d0ee7
parent85c2d92b9b3217229ced6a0f22e7013f7a65e124
[mlir][scf] refactor scf structuralOpConversion to better support 1:N type conversion

This patch moves the 1:N type mapping into its own classes to allow better code reuse in D137100.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D137099
mlir/lib/Dialect/SCF/Transforms/StructuralTypeConversions.cpp