Home | History | Annotate | Download | only in gcc

Lines Matching defs:topo

212   /* True if this value is currently on the topo-sort stack.  */
893 /* Allocate the arrays in TOPO and topologically sort the nodes into order. */
896 build_toporder_info (class ipa_topo_info *topo)
898 topo->order = XCNEWVEC (struct cgraph_node *, symtab->cgraph_count);
899 topo->stack = XCNEWVEC (struct cgraph_node *, symtab->cgraph_count);
901 gcc_checking_assert (topo->stack_top == 0);
902 topo->nnodes = ipa_reduced_postorder (topo->order, true,
907 TOPO. */
910 free_toporder_info (class ipa_topo_info *topo)
913 free (topo->order);
914 free (topo->stack);
917 /* Add NODE to the stack in TOPO, unless it is already there. */
920 push_node_to_stack (class ipa_topo_info *topo, struct cgraph_node *node)
926 topo->stack[topo->stack_top++] = node;
929 /* Pop a node from the stack in TOPO and return it or return NULL if the stack
933 pop_node_from_stack (class ipa_topo_info *topo)
935 if (topo->stack_top)
938 topo->stack_top--;
939 node = topo->stack[topo->stack_top];
3787 add_all_node_vals_to_toposort (cgraph_node *node, ipa_topo_info *topo)
3802 topo->constants.add_val (val);
3811 topo->constants.add_val (val);
3819 topo->contexts.add_val (ctxval);
3825 to callees (requires topological ordering in TOPO), iterate over strongly
3829 propagate_constants_topo (class ipa_topo_info *topo)
3833 for (i = topo->nnodes - 1; i >= 0; i--)
3836 struct cgraph_node *v, *node = topo->order[i];
3846 push_node_to_stack (topo, v);
3856 v = pop_node_from_stack (topo);
3878 push_node_to_stack (topo, callee);
3884 v = pop_node_from_stack (topo);
3898 add_all_node_vals_to_toposort (v, topo);
4000 ipcp_propagate_stage (class ipa_topo_info *topo)
4084 propagate_constants_topo (topo);
4087 topo->constants.propagate_effects ();
4088 topo->contexts.propagate_effects ();
6393 TOPO and make specialized clones if deemed beneficial. */
6396 ipcp_decision_stage (class ipa_topo_info *topo)
6403 for (i = topo->nnodes - 1; i >= 0; i--)
6405 struct cgraph_node *node = topo->order[i];
6581 class ipa_topo_info topo;
6599 build_toporder_info (&topo);
6601 ipcp_propagate_stage (&topo);
6603 ipcp_decision_stage (&topo);
6611 free_toporder_info (&topo);