Utility function for converting to internal C++ datatypes.
| 42 | |
| 43 | // Utility function for converting to internal C++ datatypes. |
| 44 | std::vector<Node*> ToNodes(const std::vector<Output>& outputs) { |
| 45 | std::vector<Node*> result(outputs.size()); |
| 46 | for (int i = 0; i < outputs.size(); ++i) { |
| 47 | result[i] = outputs[i].node(); |
| 48 | } |
| 49 | return result; |
| 50 | } |
| 51 | |
| 52 | // Manually generates the name of the `loop_var_idx`-th NextIteration node of a |
| 53 | // loop being constructed with `scope`. This is used to define the backedge |
no test coverage detected