llvm-project/mlir/tools/mlir-opt
Uday Bondhugula af5e83f569 [MLIR] Introduce utility to hoist affine if/else conditions
This revision introduces a utility to unswitch affine.for/parallel loops
by hoisting affine.if operations past surrounding affine.for/parallel.
The hoisting works for both perfect/imperfect nests and in the presence
of else blocks. The hoisting is currently to as outermost a level as
possible.  Uses a test pass to test the utility.
Add convenience method Operation::getParentWithTrait<Trait>.

Depends on D77487.

Differential Revision: https://reviews.llvm.org/D77870
2020-04-16 00:32:34 +05:30
..
CMakeLists.txt [MLIR] CMake cleanup for mlir-opt 2020-04-11 22:02:16 -07:00
mlir-opt.cpp [MLIR] Introduce utility to hoist affine if/else conditions 2020-04-16 00:32:34 +05:30