Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Commit bf50f4f

Browse files
author
Ivan Butygin
authored
fix linux (#198)
1 parent 899647f commit bf50f4f

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

mlir-compiler/mlir-compiler/CMakeLists.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
if(UNIX)
2-
add_link_options("-Wl,--exclude-libs,ALL")
3-
endif()
41

52
find_package(pybind11 REQUIRED)
63

@@ -47,6 +44,11 @@ if (MSVC)
4744
target_compile_options(${PROJECT_NAME} PRIVATE /EHsc)
4845
endif ()
4946

47+
if(UNIX)
48+
target_link_options(${PROJECT_NAME} PRIVATE "LINKER:--exclude-libs,ALL")
49+
endif()
50+
51+
5052
target_compile_definitions(${PROJECT_NAME} PRIVATE ${LLVM_DEFINITIONS})
5153

5254
target_link_libraries(${PROJECT_NAME} PRIVATE

mlir-compiler/mlir-compiler/src/pipelines/parallel_to_tbb.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ void ParallelToTbbPass::runOnOperation()
193193
ParallelToTbb
194194
>(&getContext());
195195

196-
mlir::applyPatternsAndFoldGreedily(getOperation(), std::move(patterns));
196+
(void)mlir::applyPatternsAndFoldGreedily(getOperation(), std::move(patterns));
197197
}
198198

199199
void populate_parallel_to_tbb_pipeline(mlir::OpPassManager& pm)

mlir-compiler/mlir-compiler/src/pipelines/plier_to_std.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ struct FoldTupleGetitem : public mlir::OpRewritePattern<Op>
11311131
{
11321132
FoldTupleGetitem(mlir::TypeConverter &/*typeConverter*/,
11331133
mlir::MLIRContext *context):
1134-
OpRewritePattern(context) {}
1134+
mlir::OpRewritePattern<Op>(context) {}
11351135

11361136
mlir::LogicalResult matchAndRewrite(
11371137
Op op, mlir::PatternRewriter &rewriter) const override

mlir-compiler/plier/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
if(UNIX)
2-
add_link_options("-Wl,--exclude-libs,ALL")
3-
endif()
41

52
find_package(LLVM REQUIRED CONFIG)
63
find_package(MLIR REQUIRED CONFIG)

mlir-compiler/plier/include/plier/rewrites/cse.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ template<typename Op>
1414
struct CSERewrite : public mlir::OpRewritePattern<Op>
1515
{
1616
CSERewrite(mlir::MLIRContext *context):
17-
OpRewritePattern(context, /*benefit*/1) {} // TODO: benefit=0
17+
mlir::OpRewritePattern<Op>(context, /*benefit*/1) {} // TODO: benefit=0
1818

1919
mlir::LogicalResult matchAndRewrite(
2020
Op op, mlir::PatternRewriter &rewriter) const override

0 commit comments

Comments
 (0)