GCC Middle and Back End API Reference
|
Data Structures | |
class | range |
Public Member Functions | |
list_head () | |
range | release () |
void | push_back (range) |
range | remove (range) |
void | replace (range, range) |
T * | singleton () const |
Data Fields | |
T * | first |
T * | last |
Simple list structure for items of type T, for use when being part of a list is an inherent property of T. T must have members equivalent to "T *prev, *next;" and a function "void set_parent (list_head <T> *)" to set the parent list.
list_head< T >::list_head | ( | ) |
Add R to the end of the list.
References last, filedep::next, and r.
Referenced by add_decision(), insert_decision_before(), merge_into_decision(), merge_into_state_1(), populate_pattern_routine(), and use_pattern().
Empty the list and return the previous contents as a range that can be inserted into other lists.
Referenced by collapse_optional_decisions(), cse_tests(), merge_into_state_1(), simplify_tests(), and use_pattern().
Remove R from the list. R remains valid and can be inserted into other lists.
References last, filedep::next, and r.
Replace OLDR with NEWR. OLDR remains valid and can be inserted into other lists.
References last.
Referenced by collapse_optional_decisions(), cse_tests(), merge_into_decision(), and simplify_tests().
If the list contains a single item, return that item, otherwise return null.
References last.
Referenced by collapse_optional_decisions(), common_test_p(), test_pattern_hasher::equal(), find_common_test(), find_subroutines(), merge_into_decision(), merge_into_state_1(), merge_patterns(), print_decision(), simplify_tests(), split_out_patterns(), and terminal_pattern_p().
Referenced by assign_position_vars(), collapse_optional_decisions(), common_test_p(), cse_tests(), find_common_test(), find_operand_positions(), find_subroutines(), get_stats(), init_pattern_use(), merge_into_decision(), mutually_exclusive_p(), populate_pattern_routine(), populate_pattern_use(), print_decision(), print_state(), simplify_tests(), and terminal_pattern_p().
Referenced by merge_into_state_1().