diff options
author | Mauricio Sifontes <sifontes@google.com> | 2020-08-21 04:59:23 +0000 |
---|---|---|
committer | Mauricio Sifontes <sifontes@google.com> | 2020-08-21 04:59:24 +0000 |
commit | 21f8d414689387d97120a49df3dabca10e3262e4 (patch) | |
tree | 38006cc67c02efe0aa8f44ff189a8cf49a312f42 /polly/lib/External/isl/isl_test_cpp.cc | |
parent | 6d242a73264ef1e3e128547f00e0fe2d20d3ada0 (diff) | |
download | llvm-21f8d414689387d97120a49df3dabca10e3262e4.tar.gz |
Refactor Reduction Tree Pass
Refactor the way the reduction tree pass works in the MLIR Reduce tool by introducing a set of utilities that facilitate the implementation of new Reducer classes to be used in the passes.
This will allow for the fast implementation of general transformations to operate on all mlir modules as well as custom transformations for different dialects.
These utilities allow for the implementation of Reducer classes by simply defining a method that indexes the operations/blocks/regions to be transformed and a method to perform the deletion or transfomration based on the indexes.
Create the transformSpace class member in the ReductionNode class to keep track of the indexes that have already been transformed or deleted at a current level.
Delete the FunctionReducer class and replace it with the OpReducer class to reflect this new API while performing the same transformation and allowing the instantiation of a reduction pass for different types of operations at the module's highest hierarchichal level.
Modify the SinglePath Traversal method to reflect the use of the new API.
Reviewed: jpienaar
Differential Revision: https://reviews.llvm.org/D85591
Diffstat (limited to 'polly/lib/External/isl/isl_test_cpp.cc')
0 files changed, 0 insertions, 0 deletions