Displaying 1 result from an estimated 1 matches for "chainbasicblock".
2003 Nov 20
3
[LLVMdev] Basic Block Chaining
...list. If the existing final basic
block doesn't have a terminating instruction, simply add one that points
to the block being appended. Is this the RightThing(tm) or are there
good reasons this can't or shouldn't be done?
The method I'm thinking of is something like:
Function::chainBasicBlock( BasicBlock* bb )
{
BasicBlock& previous = this->back();
TerminatorInst* terminator = previous.getTerminator();
if ( ! terminator )
{
BranchInst* branch = new BranchInst(bb);
previous.push_back( branch );
}
BranchList.push_back( bb );
}
Reid
---------...