[LLVMdev] LLVM:help

Duncan Sands baldrick at free.fr
Fri Jun 25 07:30:49 PDT 2010


On 25/06/10 06:05, RAJWINDER SINGH wrote:
> How can I get list of its predecessor basic blocks from a basic block?

If BB is a BasicBlock*, you can get begin and end iterators using
pred_begin(BB) and pred_end(BB).

Ciao,

Duncan.



More information about the llvm-dev mailing list