On Jun 25, 2010, at 7:30 AM, Duncan Sands wrote: > 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). Like this: :) http://llvm.org/docs/ProgrammersManual.html#iterate_preds -Chris