[mlir][SCF] Add utility to outline the then and else branches of an scf.IfOp
authorNicolas Vasilache <ntv@google.com>
Fri, 7 Aug 2020 18:35:33 +0000 (14:35 -0400)
committerNicolas Vasilache <ntv@google.com>
Fri, 7 Aug 2020 18:49:49 +0000 (14:49 -0400)
commit2a01d7f7b6487b87bfb4722d53fcba30129ded13
tree95b63be502afaaea54b96b31cbd0d52d3641c1f3
parentaedaa077f58df48f6777711e2a79443a40df7f07
[mlir][SCF] Add utility to outline the then and else branches of an scf.IfOp

Differential Revision: https://reviews.llvm.org/D85449
mlir/include/mlir/Dialect/SCF/Utils.h
mlir/lib/Dialect/SCF/Transforms/CMakeLists.txt
mlir/lib/Dialect/SCF/Transforms/Utils.cpp
mlir/test/Transforms/scf-if-utils.mlir [new file with mode: 0644]
mlir/test/Transforms/scf-loop-utils.mlir [moved from mlir/test/Transforms/loop-utils.mlir with 94% similarity]
mlir/test/lib/Transforms/TestSCFUtils.cpp