| 49 | } |
| 50 | |
| 51 | void inline_module::apply(module& m) const |
| 52 | { |
| 53 | for(auto ins : iterator_for(m)) |
| 54 | { |
| 55 | if(ins->name() != "if") |
| 56 | continue; |
| 57 | |
| 58 | auto arg_cond = ins->inputs().front()->eval(); |
| 59 | if(not arg_cond.empty()) |
| 60 | { |
| 61 | bool cond = arg_cond.at<bool>(); |
| 62 | inline_submodule(m, ins, cond); |
| 63 | } |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | } // namespace MIGRAPHX_INLINE_NS |
| 68 | } // namespace migraphx |
nothing calls this directly
no test coverage detected