clean up PIM CMake
update README.md
This commit is contained in:
15
src/PIM/Pass/CMakeLists.txt
Normal file
15
src/PIM/Pass/CMakeLists.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
add_pim_library(OMPimPasses
|
||||
CountInstructionPass.cpp
|
||||
MessagePass.cpp
|
||||
PimConstantFolding/Common.cpp
|
||||
PimConstantFolding/Patterns/ConstantPatterns.cpp
|
||||
PimConstantFolding/PimConstantFoldingPass.cpp
|
||||
PimConstantFolding/Patterns/SubviewPatterns.cpp
|
||||
PimHostVerificationPass.cpp
|
||||
|
||||
EXCLUDE_FROM_OM_LIBS
|
||||
|
||||
LINK_LIBS PUBLIC
|
||||
MLIRLinalgDialect
|
||||
OMPimCommon
|
||||
)
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
#include "src/Accelerators/PIM/Dialect/Pim/PimOps.hpp"
|
||||
#include "src/Accelerators/PIM/Dialect/Spatial/SpatialOps.hpp"
|
||||
#include "src/Compiler/CompilerUtils.hpp"
|
||||
|
||||
using namespace mlir;
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "mlir/IR/BuiltinOps.h"
|
||||
#include "mlir/Pass/Pass.h"
|
||||
|
||||
#include "src/Compiler/CompilerUtils.hpp"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
using namespace mlir;
|
||||
|
||||
@@ -17,7 +18,10 @@ struct MessagePass : PassWrapper<MessagePass, OperationPass<ModuleOp>> {
|
||||
: message(message) {}
|
||||
MessagePass(const MessagePass& pass) {}
|
||||
|
||||
void runOnOperation() final { showCompilePhase(message); }
|
||||
void runOnOperation() final {
|
||||
llvm::outs() << message << "\n";
|
||||
llvm::outs().flush();
|
||||
}
|
||||
|
||||
private:
|
||||
std::string message;
|
||||
|
||||
Reference in New Issue
Block a user