llvm-project/mlir/tools
Mauricio Sifontes 21f8d41468 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
2020-08-21 04:59:24 +00:00
..
mlir-cpu-runner [MLIR] Move JitRunner to live with ExecutionEngine 2020-05-15 14:37:10 -07:00
mlir-cuda-runner [MLIR] Adding gpu.host_register op and lower it to a runtime call. 2020-08-10 22:46:17 +02:00
mlir-linalg-ods-gen Separate the Registration from Loading dialects in the Context 2020-08-19 01:19:03 +00:00
mlir-opt Separate the Registration from Loading dialects in the Context 2020-08-19 01:19:03 +00:00
mlir-reduce Refactor Reduction Tree Pass 2020-08-21 04:59:24 +00:00
mlir-rocm-runner [MLIR] Adding gpu.host_register op and lower it to a runtime call. 2020-08-10 22:46:17 +02:00
mlir-shlib [MLIR] Reapply: Adjust libMLIR building to more closely follow libClang 2020-05-04 20:47:57 -07:00
mlir-tblgen [mlir] Add a new "Pattern Descriptor Language" (PDL) dialect. 2020-08-19 13:13:06 -07:00
mlir-translate Separate the Registration from Loading dialects in the Context 2020-08-19 01:19:03 +00:00
mlir-vulkan-runner [mlir][NFC] Remove usernames and google bug numbers from TODO comments. 2020-07-07 01:40:52 -07:00
CMakeLists.txt Create the MLIR Reduce framework 2020-07-07 23:42:53 +00:00