| 62 | |
| 63 | template <class F> |
| 64 | static std::function<F> compile_module(const migraphx::module& m) |
| 65 | { |
| 66 | migraphx::cpp_generator g; |
| 67 | g.fmap([](auto&& name) { return "std::" + name; }); |
| 68 | g.create_function(g.generate_module(m).set_attributes({"EXPORT extern \"C\""})); |
| 69 | |
| 70 | return compile_function<F>(g.str().insert(0, preamble), m.name()); |
| 71 | } |
| 72 | |
| 73 | TEST_CASE(simple_run) |
| 74 | { |
nothing calls this directly
no test coverage detected