[LLVMdev] how to check whether from basicblock A we can go to basicblock B within the same function?
wenjing ma
mawe at cse.ohio-state.edu
Wed Sep 1 09:12:41 PDT 2010
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?
More information about the llvm-dev
mailing list