OpenASIP
2.0
|
Public Member Functions | |
CandidateBlocks (BasicBlockNode &firstNode, BasicBlockNode &fallThruNode, BasicBlockNode &jumpNode, BasicBlockNode &lastNode, BasicBlockNode *joinNode, BasicBlockNode *succNode1, BasicBlockNode *succNode2, bool removeJoin, bool removeFT, bool removeJd) | |
~CandidateBlocks () | |
This struct holds data about one area being if-converted, all the nodes and their order and the form of the area.
Definition at line 70 of file SimpleIfConverter.hh.
SimpleIfConverter::CandidateBlocks::CandidateBlocks | ( | BasicBlockNode & | firstNode, |
BasicBlockNode & | fallThruNode, | ||
BasicBlockNode & | jumpDestNode, | ||
BasicBlockNode & | lastNode, | ||
BasicBlockNode * | joinNode, | ||
BasicBlockNode * | succNode1, | ||
BasicBlockNode * | succNode2, | ||
bool | removeJoin, | ||
bool | removeFT, | ||
bool | removeJd | ||
) |
Sub class CandidateBlocks Constructor
firstNode | node where the branch was |
fallThruNode | node where fell thru if branch not taken |
jumpDestNode | node where the jump jumped |
lastNode | last node in the area being converter. May be fallThruNode, jumpDestNode or joinNode. |
joinNode | node where the paths join. Can be jumpNode, fallThruNode, lastNode or NULL if paths join outside converted area(at succNode1) |
succNode1 | 1st successor node(fall-thru of original lastNode) |
succNode2 | 2nd succossor node(if lastNode has branch, branch target) |
Definition at line 1015 of file SimpleIfConverter.cc.
SimpleIfConverter::CandidateBlocks::~CandidateBlocks | ( | ) |
bool SimpleIfConverter::CandidateBlocks::createJump_ |
Definition at line 98 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::combineBlocks(), and SimpleIfConverter::updateCfg().
TTAProgram::BasicBlock& SimpleIfConverter::CandidateBlocks::fallThruBB_ |
Definition at line 90 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::canConvert(), and SimpleIfConverter::combineBlocks().
BasicBlockNode& SimpleIfConverter::CandidateBlocks::fallThruNode_ |
Definition at line 82 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::canConvert(), SimpleIfConverter::combineBlocks(), and SimpleIfConverter::updateCfg().
TTAProgram::BasicBlock& SimpleIfConverter::CandidateBlocks::firstBB_ |
Definition at line 89 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::canConvert(), and SimpleIfConverter::combineBlocks().
BasicBlockNode& SimpleIfConverter::CandidateBlocks::firstNode_ |
Definition at line 81 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::canConvert(), and SimpleIfConverter::updateCfg().
const TTAMachine::RegisterFile* SimpleIfConverter::CandidateBlocks::grFile_ |
Definition at line 102 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::canConvert().
int SimpleIfConverter::CandidateBlocks::grIndex_ |
Definition at line 101 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::canConvert().
TTAProgram::MoveGuard* SimpleIfConverter::CandidateBlocks::guard_ |
Definition at line 99 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::canConvert(), and SimpleIfConverter::combineBlocks().
TTAProgram::MoveGuard* SimpleIfConverter::CandidateBlocks::invg_ |
Definition at line 100 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::canConvert(), and SimpleIfConverter::combineBlocks().
TTAProgram::BasicBlock* SimpleIfConverter::CandidateBlocks::joinBB_ |
Definition at line 93 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::canConvert(), and SimpleIfConverter::combineBlocks().
BasicBlockNode* SimpleIfConverter::CandidateBlocks::joinNode_ |
Definition at line 85 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::canConvert(), and SimpleIfConverter::updateCfg().
TTAProgram::BasicBlock& SimpleIfConverter::CandidateBlocks::jumpDestBB_ |
Definition at line 91 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::canConvert(), and SimpleIfConverter::combineBlocks().
BasicBlockNode& SimpleIfConverter::CandidateBlocks::jumpDestNode_ |
Definition at line 83 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::canConvert(), SimpleIfConverter::combineBlocks(), and SimpleIfConverter::updateCfg().
TTAProgram::BasicBlock& SimpleIfConverter::CandidateBlocks::lastBB_ |
Definition at line 92 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::combineBlocks().
BasicBlockNode& SimpleIfConverter::CandidateBlocks::lastNode_ |
Definition at line 84 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::canConvert(), and SimpleIfConverter::updateCfg().
bool SimpleIfConverter::CandidateBlocks::removeFt_ |
Definition at line 96 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::updateCfg().
bool SimpleIfConverter::CandidateBlocks::removeJd_ |
Definition at line 97 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::updateCfg().
bool SimpleIfConverter::CandidateBlocks::removeJoin_ |
Definition at line 95 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::combineBlocks(), and SimpleIfConverter::updateCfg().
BasicBlockNode* SimpleIfConverter::CandidateBlocks::succNode1_ |
Definition at line 86 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::canConvert(), SimpleIfConverter::combineBlocks(), and SimpleIfConverter::updateCfg().
BasicBlockNode* SimpleIfConverter::CandidateBlocks::succNode2_ |
Definition at line 87 of file SimpleIfConverter.hh.
Referenced by SimpleIfConverter::combineBlocks().