LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::Node Class Reference

#include <Graph.h>

Collaboration diagram for llvm::Node:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Node (BasicBlock *x)
BasicBlock *& getElement ()
BasicBlock *const & getElement () const
int getWeight ()
void setElement (BasicBlock *e)
void setWeight (int w)
bool operator< (Node &nd) const
bool operator== (Node &nd) const

Public Attributes

BasicBlockelement
int weight

Detailed Description

Definition at line 29 of file Graph.h.


Constructor & Destructor Documentation

llvm::Node::Node BasicBlock x  )  [inline]
 

Definition at line 34 of file Graph.h.

References element, and weight.


Member Function Documentation

BasicBlock* const& llvm::Node::getElement  )  const [inline]
 

Definition at line 36 of file Graph.h.

References element.

BasicBlock* & llvm::Node::getElement  )  [inline]
 

Definition at line 35 of file Graph.h.

References element.

Referenced by llvm::getPathFrmNode(), llvm::insertBB(), llvm::NodeListSort::operator()(), std::less< Node * >::operator()(), and llvm::printNode().

int llvm::Node::getWeight  )  [inline]
 

Definition at line 37 of file Graph.h.

References weight.

Referenced by llvm::Graph::getMaxSpanningTree(), and llvm::compare_nodes::operator()().

bool llvm::Node::operator< Node nd  )  const [inline]
 

Definition at line 40 of file Graph.h.

References element.

bool llvm::Node::operator== Node nd  )  const [inline]
 

Definition at line 41 of file Graph.h.

References element.

void llvm::Node::setElement BasicBlock e  )  [inline]
 

Definition at line 38 of file Graph.h.

References element.

void llvm::Node::setWeight int  w  )  [inline]
 

Definition at line 39 of file Graph.h.

References weight.

Referenced by llvm::Graph::getMaxSpanningTree().


Member Data Documentation

BasicBlock* llvm::Node::element
 

Definition at line 31 of file Graph.h.

Referenced by getElement(), llvm::getPathFrmNode(), Node(), operator<(), operator==(), and setElement().

int llvm::Node::weight
 

Definition at line 32 of file Graph.h.

Referenced by llvm::getCodeInsertions(), llvm::getPathFrmNode(), getWeight(), Node(), llvm::Graph::removeEdgeWithWt(), and setWeight().


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