What is the easiest way to get the predecessors of a BasicBlock in the LLVM framework?
I have taken a look at DepthFirstIterator and idf_iterator<BasicBlock*>, but I actually need to do a breadth-first search on the control flow graph.
I feel like this should be easy, but it's not obvious from the documentation or the examples I have been exploring online.
 
     
    