GCC Middle and Back End API Reference
ipa_icf::congruence_class Class Reference

#include <ipa-icf.h>

Collaboration diagram for ipa_icf::congruence_class:

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

Detailed Description

Congruence class encompasses a collection of either functions or
read-only variables. These items are considered to be equivalent
if not proved the opposite.   

Constructor & Destructor Documentation

◆ congruence_class()

ipa_icf::congruence_class::congruence_class ( unsigned int _id)

◆ ~congruence_class()

ipa_icf::congruence_class::~congruence_class ( )

Member Function Documentation

◆ dump()

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().

◆ is_class_used()

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.

Field Documentation

◆ id

unsigned int ipa_icf::congruence_class::id

◆ in_worklist

◆ members

◆ referenced_by_count

The documentation for this class was generated from the following files: