Displaying 2 results from an estimated 2 matches for "getarandombasicblock".
2014 May 02
2
[LLVMdev] An unexpected behavior in RegionInfo's block_iterator
...he end iterator to
(BasicBlock *) 0. I understand that the "region" detected by RegionInfo
should never contain a single basic block or even a sequence of basic
blocks. So maybe the above degenerated case is considered "will never
happen"?
... ...
BasicBlock *BB = Func.getARandomBasicBlock;
Region *R = new Region(BB, BB, RI, DT);
for (Region::block_iterator i = R->block_begin(),
e = R->block_end(); i != e; ++i) {
errs() << (*i)->getName() << "\n";
}
... ...
Best Regards,
Paul
-------------- next part --------...
2014 May 02
2
[LLVMdev] An unexpected behavior in RegionInfo's block_iterator
...t;region" detected by RegionInfo
>> should never contain a single basic block or even a sequence of basic
>> blocks. So maybe the above degenerated case is considered "will never
>> happen"?
>>
>> ... ...
>>
>> BasicBlock *BB = Func.getARandomBasicBlock;
>>
>> Region *R = new Region(BB, BB, RI, DT);
>> for (Region::block_iterator i = R->block_begin(),
>> e = R->block_end(); i != e; ++i) {
>> errs() << (*i)->getName() << "\n";
>> }
>>
>...