Guoliang Jin
2010-Aug-27 22:05 UTC
[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? http://llvm.org/docs/ProgrammersManual.html#iterate_preds
wenjing ma
2010-Sep-01 16:12 UTC
[LLVMdev] how to check whether from basicblock A we can go to basicblock B within the same function?
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_predsAre those iterators enought for this purpose?
Guoliang Jin
2010-Sep-01 17:58 UTC
[LLVMdev] how to check whether from basicblock A we can go to basicblock B within the same function?
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.
Seemingly Similar Threads
- [LLVMdev] how to check whether from basicblock A we can go to basicblock B within the same function?
- [LLVMdev] how to check whether from basicblock A we can go to basicblock B within the same function?
- [LLVMdev] how to check whether from basicblock A we can go to basicblock B within the same function?
- [LLVMdev] how to check whether from basicblock A we can go to basicblock B within the same function?
- [LLVMdev] BasicBlock predecessors list