refactor Pim constant folding pass

share contiguous address resolution in PimCommon
group patterns in subdir for each pass with pattern files
This commit is contained in:
NiccoloN
2026-03-23 15:36:58 +01:00
parent 670d6ce94f
commit 11916a2595
32 changed files with 616 additions and 516 deletions

View File

@@ -3,19 +3,19 @@ mlir_tablegen(ONNXToSpatial.hpp.inc -gen-rewriters "-I${ONNX_MLIR_SRC_ROOT}")
add_public_tablegen_target(ONNXToSpatialIncGen)
add_onnx_mlir_library(OMONNXToSpatial
Math/Gemm.cpp
Math/Conv.cpp
Math/MatMul.cpp
NN/Pooling.cpp
NN/ReduceMean.cpp
Tensor/ONNXConcatToTensorConcat.cpp
Tensor/ONNXReshapeToTensorReshape.cpp
Tensor/RemoveUnusedHelperOps.cpp
Patterns/Math/Gemm.cpp
Patterns/Math/Conv.cpp
Patterns/Math/MatMul.cpp
Patterns/NN/Pooling.cpp
Patterns/NN/ReduceMean.cpp
Patterns/Tensor/ONNXConcatToTensorConcat.cpp
Patterns/Tensor/ONNXReshapeToTensorReshape.cpp
Patterns/Tensor/RemoveUnusedHelperOps.cpp
Utils/SpatialReducer.cpp
Utils/WeightSubdivider.cpp
Utils/AnnotateReplication.cpp
ONNXToSpatialPass.cpp
ONNXToSpatialCommon.cpp
Common.cpp
DEPENDS
ONNXToSpatialIncGen