Added MLIR optimization passes and code refactor
requested to merge github/fork/tnguyen-ornl/tnguyen/mlir-value-semantics into mccaskey/mlir_value_semantics
Created by: tnguyen-ornl
-
Make optimization passes at MLIR level separated from the main LLVM lowering conversion pass.
-
Fix various issues to make the MLIR-level representation validated: mainly the types must be fully matched up at MLIR level (after each passes, MLIR will validate all the nodes. Previously, this will occur after everything has been converted to LLVM rep.)
-
Refactor MLIR code-gen subroutines to reduce code duplication.