clean up PIM CMake
update README.md
This commit is contained in:
@@ -1,44 +1,37 @@
|
||||
get_property(OMLibs GLOBAL PROPERTY ONNX_MLIR_LIBS)
|
||||
|
||||
add_onnx_mlir_library(OMPimCompilerOptions
|
||||
add_pim_library(OMPimCompilerOptions
|
||||
PimCompilerOptions.cpp
|
||||
|
||||
EXCLUDE_FROM_OM_LIBS
|
||||
|
||||
INCLUDE_DIRS PRIVATE
|
||||
${PIM_SRC_ROOT}
|
||||
${PIM_BIN_ROOT}
|
||||
${PIM_ONNX_MLIR_SRC_ROOT}
|
||||
${PIM_ONNX_MLIR_BIN_ROOT}
|
||||
${PIM_COMPILER_INCLUDE_DIRS}
|
||||
|
||||
LINK_LIBS PUBLIC
|
||||
${OMLibs}
|
||||
OMCompilerOptions
|
||||
|
||||
ACCEL_INCLUDE_DIRS PRIVATE
|
||||
${PIM_ONNX_MLIR_SRC_ROOT}
|
||||
${PIM_ONNX_MLIR_BIN_ROOT}
|
||||
${PIM_ACCEL_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
add_onnx_mlir_library(OMPimCompilerUtils
|
||||
add_pim_library(OMPimCompilerUtils
|
||||
PimCompilerUtils.cpp
|
||||
PimCodeGen.cpp
|
||||
../Pass/EmitPimJsonPass.cpp
|
||||
|
||||
EXCLUDE_FROM_OM_LIBS
|
||||
|
||||
INCLUDE_DIRS PRIVATE
|
||||
${PIM_SRC_ROOT}
|
||||
${PIM_BIN_ROOT}
|
||||
${PIM_ONNX_MLIR_SRC_ROOT}
|
||||
${PIM_ONNX_MLIR_BIN_ROOT}
|
||||
${PIM_COMPILER_INCLUDE_DIRS}
|
||||
|
||||
LINK_LIBS PUBLIC
|
||||
${OMLibs}
|
||||
OMCompilerUtils
|
||||
OMPimCompilerOptions
|
||||
OMPimCommon
|
||||
OMPimBufferization
|
||||
OMPimPasses
|
||||
OMONNXToSpatial
|
||||
OMSpatialToPim
|
||||
OMCompilerPasses
|
||||
|
||||
ACCEL_INCLUDE_DIRS PRIVATE
|
||||
${PIM_ONNX_MLIR_SRC_ROOT}
|
||||
${PIM_ONNX_MLIR_BIN_ROOT}
|
||||
${PIM_ACCEL_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
#include "src/Accelerators/PIM/Compiler/PimCompilerOptions.hpp"
|
||||
#include "src/Accelerators/PIM/Dialect/Pim/PimOps.hpp"
|
||||
#include "src/Compiler/CompilerPasses.hpp"
|
||||
#include "src/Compiler/CompilerUtils.hpp"
|
||||
|
||||
using namespace llvm;
|
||||
using namespace mlir;
|
||||
|
||||
@@ -3,8 +3,9 @@
|
||||
#include "llvm-project/clang/include/clang/Basic/LLVM.h"
|
||||
#include "llvm/Support/JSON.h"
|
||||
|
||||
#include "onnx-mlir/Compiler/OMCompilerTypes.h"
|
||||
|
||||
#include "Common/ValueMap.hpp"
|
||||
#include "src/Accelerators/PIM/Compiler/PimCompilerUtils.hpp"
|
||||
#include "src/Accelerators/PIM/Dialect/Pim/PimOps.hpp"
|
||||
|
||||
namespace onnx_mlir {
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#include "src/Accelerators/PIM/Dialect/Pim/PimOps.hpp"
|
||||
#include "src/Accelerators/PIM/Pass/PimPasses.hpp"
|
||||
#include "src/Compiler/CompilerPasses.hpp"
|
||||
#include "src/Compiler/CompilerUtils.hpp"
|
||||
|
||||
#define DEBUG_TYPE "PimCompilerUtils"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user