Commit 6f768f82 authored by Paul's avatar Paul
Browse files

Fix failures when mlir is disabled

parent 2e19d280
...@@ -95,7 +95,11 @@ struct find_conv_pointwise ...@@ -95,7 +95,11 @@ struct find_conv_pointwise
void fuse_mlir::apply(module_pass_manager& mpm) const void fuse_mlir::apply(module_pass_manager& mpm) const
{ {
#ifdef MIGRAPHX_MLIR
match::find_matches(mpm, find_conv_pointwise{}); match::find_matches(mpm, find_conv_pointwise{});
#else
(void)mpm;
#endif
} }
} // namespace gpu } // namespace gpu
......
...@@ -602,6 +602,16 @@ instruction_ref insert_mlir(module& m, ...@@ -602,6 +602,16 @@ instruction_ref insert_mlir(module& m,
std::string dump_mlir(const module&) { return {}; } std::string dump_mlir(const module&) { return {}; }
code_object_op compile_mlir(const context&, const module&) { return {}; }
instruction_ref insert_mlir(module& m,
instruction_ref,
code_object_op,
const std::vector<instruction_ref>&)
{
return m.end();
}
#endif #endif
} // namespace gpu } // namespace gpu
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment