[LLVMdev] how to check whether from basicblock A we can go to basicblock B within the same function?

Guoliang Jin jingl1345 at gmail.com
Wed Sep 1 10:58:23 PDT 2010


  On 9/1/2010 11:12 AM, wenjing ma wrote:
> On Fri, 27 Aug 2010, Guoliang Jin wrote:
>>
>>> Every basic block ends with a terminator instruction that indicates
>>> which basic block or basic blocks it should branch to next. Switch,
>>> invoke, and branch are all terminator instructions. There may be more
>>> that I don't remember.
>> Why not just use the predecessor and successor iterator?
>> http://llvm.org/docs/ProgrammersManual.html#iterate_preds
> Are those iterators enought for this purpose?
I believe so.



More information about the llvm-dev mailing list