GCC Middle and Back End API Reference
|
#include <ipa-icf.h>
Public Member Functions | |
congruence_class (unsigned int _id) | |
~congruence_class () | |
void | dump (FILE *file, unsigned int indent=0) const |
bool | is_class_used (void) |
Data Fields | |
bool | in_worklist |
auto_vec< sem_item * > | members |
unsigned int | id |
unsigned | referenced_by_count |
Congruence class encompasses a collection of either functions or read-only variables. These items are considered to be equivalent if not proved the opposite.
|
inline |
|
inline |
void ipa_icf::congruence_class::dump | ( | FILE * | file, |
unsigned int | indent = 0 ) const |
Dump function prints all class members to a FILE with an INDENT.
References FPRINTF_SPACES, FPUTS_SPACES, i, and members.
Referenced by ipa_icf::sem_item_optimizer::traverse_congruence_split().
bool ipa_icf::congruence_class::is_class_used | ( | void | ) |
Returns true if there's a member that is used from another group.
References i, members, and referenced_by_count.
unsigned int ipa_icf::congruence_class::id |
Referenced by ipa_icf::sem_item_optimizer::do_congruence_step().
bool ipa_icf::congruence_class::in_worklist |
Referenced by ipa_icf::sem_item_optimizer::add_class(), ipa_icf::sem_item_optimizer::add_item_to_class(), ipa_icf::sem_item_optimizer::do_congruence_step(), ipa_icf::sem_item_optimizer::do_congruence_step_for_index(), dump(), is_class_used(), ipa_icf::sem_item_optimizer::merge_classes(), ipa_icf::sort_congruence_classes_by_decl_uid(), ipa_icf::sem_item_optimizer::subdivide_classes_by_equality(), ipa_icf::sem_item_optimizer::subdivide_classes_by_sensitive_refs(), ipa_icf::sem_item_optimizer::traverse_congruence_split(), and ipa_icf::sem_item_optimizer::verify_classes().
unsigned ipa_icf::congruence_class::referenced_by_count |