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

@@ -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
)

View File

@@ -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;

View File

@@ -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;