[LLVMdev] how to check whether from basicblock A we can go to basicblock B within the same function?
criswell at illinois.edu
Fri Aug 27 15:30:57 PDT 2010
Yes, that would be better.
From: Guoliang Jin <jingl1345 at gmail.com>
Sent: Friday, August 27, 2010 5:05 PM
To: llvmdev at cs.uiuc.edu <llvmdev at cs.uiuc.edu>
Subject: Re: [LLVMdev] how to check whether from basicblock A we can go to basicblock B within the same function?
> 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?
More information about the llvm-dev