[mlir][scf] Implement structural conversion for 1:N type conversions.
authorIngo Müller <ingomueller@google.com>
Tue, 21 Feb 2023 11:21:25 +0000 (11:21 +0000)
committerIngo Müller <ingomueller@google.com>
Tue, 28 Mar 2023 08:33:00 +0000 (08:33 +0000)
commit586cebef271f627e80c3535e7cd201915f88b349
tree7ad1e8cae2e6583fc931631be86ba510f01b0830
parent5304034f0902fcf7996ef1ad611da99e8134d90d
[mlir][scf] Implement structural conversion for 1:N type conversions.

This patch implements patterns for the newly introduced 1:N type
conversion utils for several ops of the SCF dialect. It also adds an
option to the existing test pass as well as test cases that applies the
patterns through the test pass.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D146959
mlir/include/mlir/Dialect/SCF/Transforms/Transforms.h
mlir/lib/Dialect/SCF/Transforms/CMakeLists.txt
mlir/lib/Dialect/SCF/Transforms/OneToNTypeConversion.cpp [new file with mode: 0644]
mlir/test/Conversion/OneToNTypeConversion/scf-structural-one-to-n-type-conversion.mlir [new file with mode: 0644]
mlir/test/lib/Conversion/OneToNTypeConversion/CMakeLists.txt
mlir/test/lib/Conversion/OneToNTypeConversion/TestOneToNTypeConversionPass.cpp