[LLVMdev] [LLVMDev] [Modeling] About the structure of my allocator
Jeff Kunkel
jdkunk3 at gmail.com
Thu Sep 2 16:19:11 PDT 2010
Is there any way to tell where in the Instruction list, the branch to the
other MachineBasicBlock happens? I know in the BasicBlock had a nice api for
it.
Thanks,
Jeff Kunkel
On Thu, Sep 2, 2010 at 5:56 PM, Dale Johannesen <dalej at apple.com> wrote:
>
> On Sep 2, 2010, at 2:44 PMPDT, Jeff Kunkel wrote:
>
>> I need to track which MachineBasicBlocks branch into other
>> MachineBasicBlocks. How do I do it?
>>
>
> Look at the Predecessor/Successor lists, which are target-independent
>
>
> I see a MachineOperand can hold a MachineBasicBlock*. Does this mean the
>> instruction may branch to the MachineBasicBlock, or can it be something like
>> an object reference?
>>
>
> It can also be the dreaded gcc "address of label" extension. Number and
> ordering of instruction operands is target-dependent.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100902/3f71927f/attachment.html>
More information about the llvm-dev
mailing list