[LLVMdev] Order of Basic Blocks

Cameron Zwarich zwarich at apple.com
Sun Nov 20 15:10:26 PST 2011


Your question is a bit vague, but you probably want ReversePostOrderTraversal from include/llvm/ADT/PostOrderIterator.h.

Cameron

On Nov 20, 2011, at 3:00 PM, Ryan Taylor wrote:

> LLVMers,
>  
>   Is there any way to guarantee iteration of the basic blocks from top down or path to path? Currently it looks sort of semi-random, sometimes visiting loop heads first and other times loop tails, is there a way I can visit the BBs top down or path to path?
>  
> Thank you.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list