clean up PIM CMake

update README.md
This commit is contained in:
NiccoloN
2026-03-23 16:39:14 +01:00
parent 11916a2595
commit 50c545539b
17 changed files with 166 additions and 69 deletions

View File

@@ -2,7 +2,7 @@ set(LLVM_TARGET_DEFINITIONS ONNXToSpatial.td)
mlir_tablegen(ONNXToSpatial.hpp.inc -gen-rewriters "-I${ONNX_MLIR_SRC_ROOT}")
add_public_tablegen_target(ONNXToSpatialIncGen)
add_onnx_mlir_library(OMONNXToSpatial
add_pim_library(OMONNXToSpatial
Patterns/Math/Gemm.cpp
Patterns/Math/Conv.cpp
Patterns/Math/MatMul.cpp
@@ -17,10 +17,13 @@ add_onnx_mlir_library(OMONNXToSpatial
ONNXToSpatialPass.cpp
Common.cpp
EXCLUDE_FROM_OM_LIBS
DEPENDS
ONNXToSpatialIncGen
LINK_LIBS PUBLIC
MLIRTosaDialect
OMCompilerOptions
OMPimCompilerOptions
OMONNXOps
@@ -28,5 +31,5 @@ add_onnx_mlir_library(OMONNXToSpatial
OMPimCommon
ACCEL_INCLUDE_DIRS PRIVATE
${PIM_INCLUDE_PATH}
${PIM_GENERATED_INCLUDE_DIRS}
)