17#ifndef __TEST_HELPER_H__
18#define __TEST_HELPER_H__
33 if (
auto T_node = as<T>(node))
44 std::vector<T *> find_nodes;
48 if (
auto T_node = as<T>(node))
50 find_nodes.push_back(T_node);
Logical unit of computation.
std::set< loco::Node * > active_nodes(const std::vector< loco::Node * > &roots)
Enumerate all the nodes required to compute "roots".
std::vector< Node * > output_nodes(Graph *)
T * find_first_node_bytype(loco::Graph *g)
void setup_output_node(loco::Graph *graph, loco::Node *last_node)
Append setup output of graph by adding loco::Push node.
std::vector< T * > find_nodes_bytype(loco::Graph *g)