[LLVMdev] Machine basic blocks

Vadim Chugunov vadimcn at gmail.com
Sat Jul 26 01:04:32 PDT 2014


Hi,
I have a couple of questions about MachineBasicBlocks:

- If I have a pointer to an MBB, is there an easy way to find which block
that precedes it in the MachineFunction blocks list?  (without iterating
through all of the MF's basic blocks)

- Does LLVM make any effort to ensure that MBB's predecessors and
successors lists are semantically correct?   For example, what happens if
an MBB "falls through" into the next block, but the next block is not on
its' successors list?

thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140726/996abe40/attachment.html>


More information about the llvm-dev mailing list