CompactRepresentation
Synopsis
Declared in <src/midend/programAnalysis/VirtualFunctionAnalysis/IntraProcAliasAnalysis.h>
class CompactRepresentation
: public CompReprBase
Base Classes
Member Functions
| Name | Description |
CompactRepresentation
CompactRepresentation(); [constructor] | Copy constructor for CompactRepresentation |
operator=
CompactRepresentation& operator=(CompactRepresentation const& p); | Assignment operator overload for Compactrepresentation |
addMayAliasRelation
virtual void addMayAliasRelation( AliasRelationNode const& left, AliasRelationNode const& right); [virtual] | Add a May Relation to CompactRepresntation |
addMustAliasRelation
virtual void addMustAliasRelation( AliasRelationNode const& left, AliasRelationNode const& right); [virtual] | Add a Must Relation to CompactRepresntation |
computeAliases
virtual void computeAliases( SgGraphNode* node, int derefLevel, std::vector<SgGraphNode*>&); | Given a graph node and Dereference level return list of aliases |
computeValues
virtual void computeValues( SgNode* var, int derefLevel, std::vector<SgGraphNode*>& nodes); [virtual] | |
getGraph
virtual SgIncidenceDirectedGraph* getGraph() const; [virtual] | Get the Graph |
merge
virtual void merge(CompReprBase const& that); [virtual] | Merge two CompactRepresentations |
operator==
bool operator==(CompactRepresentation const& that) const; | Compare alias identities, edges and write effects. |
Private Member Functions
| Name | Description |
addEdge
void addEdge( SgGraphNode* g_from, SgGraphNode* g_to); | add a Graph Edge |
getGraphNode
SgGraphNode* getGraphNode(SgNode* node); | Get Graph Node from SgNode |
init
void init(); | Initialize CompactRepresentation |
merge
void merge(SgIncidenceDirectedGraph* thatGraph); | Merge a graph with this compact representation |
Private Data Members
| Name | Description |
all_nodes | A Map to hold the SgNode to SgGraphNode mapping |
Created with MrDocs