Home | History | Annotate | Download | only in Analysis

Lines Matching refs:BallLarusNode

54 // Returns the basic block for the BallLarusNode
55 BasicBlock* BallLarusNode::getBlock() {
60 unsigned BallLarusNode::getNumberPaths() {
65 void BallLarusNode::setNumberPaths(unsigned numberPaths) {
70 BallLarusNode::NodeColor BallLarusNode::getColor() {
75 void BallLarusNode::setColor(BallLarusNode::NodeColor color) {
81 BLEdgeIterator BallLarusNode::predBegin() {
86 BLEdgeIterator BallLarusNode::predEnd() {
92 unsigned BallLarusNode::getNumberPredEdges() {
98 BLEdgeIterator BallLarusNode::succBegin() {
103 BLEdgeIterator BallLarusNode::succEnd() {
109 unsigned BallLarusNode::getNumberSuccEdges() {
114 void BallLarusNode::addPredEdge(BallLarusEdge* edge) {
119 void BallLarusNode::removePredEdge(BallLarusEdge* edge) {
124 void BallLarusNode::addSuccEdge(BallLarusEdge* edge) {
129 void BallLarusNode::removeSuccEdge(BallLarusEdge* edge) {
136 std::string BallLarusNode::getName() {
153 void BallLarusNode::removeEdge(BLEdgeVector& v, BallLarusEdge* e) {
167 BallLarusNode* BallLarusEdge::getSource() const {
172 BallLarusNode* BallLarusEdge::getTarget() const {
236 std::stack<BallLarusNode*> dfsStack;
266 BallLarusNode* node;
267 std::queue<BallLarusNode*> bfsQueue;
326 BallLarusNode* nextNode = (*pred)->getSource();
343 BallLarusNode* BallLarusDag::getRoot() {
348 BallLarusNode* BallLarusDag::getExit() {
358 void BallLarusDag::clearColors(BallLarusNode::NodeColor color) {
365 BallLarusNode* currentNode = dfsStack.top();
368 if(currentNode->getColor() != BallLarusNode::WHITE) {
371 currentNode->setColor(BallLarusNode::BLACK);
392 currentNode->setColor(BallLarusNode::GRAY);
416 void BallLarusDag::buildEdge(BLBlockNodeMap& inDag, std::stack<BallLarusNode*>&
417 dfsStack, BallLarusNode* currentNode,
419 BallLarusNode* succNode = inDag[succBB];
421 if(succNode && succNode->getColor() == BallLarusNode::BLACK) {
424 } else if(succNode && succNode->getColor() == BallLarusNode::GRAY) {
429 BallLarusNode* childNode;
444 void BallLarusDag::calculatePathNumbersFrom(BallLarusNode* node) {
450 BallLarusNode* succNode;
471 // Override this method to produce subclasses of BallLarusNode if
474 BallLarusNode* BallLarusDag::createNode(BasicBlock* BB) {
475 return( new BallLarusNode(BB) );
482 BallLarusEdge* BallLarusDag::createEdge(BallLarusNode* source,
483 BallLarusNode* target,
489 BallLarusNode* BallLarusDag::addNode(BasicBlock* BB) {
490 BallLarusNode* newNode = createNode(BB);
496 BallLarusEdge* BallLarusDag::addEdge(BallLarusNode* source,
497 BallLarusNode* target,
507 void BallLarusDag::addBackedge(BallLarusNode* source, BallLarusNode* target,