On 10/10/12 4:58 PM, shreyas krishnan wrote:> Hi
> if I have group of instructions that belong to same basic block,
> how can I determine which of these occurs the last ?
You can use the getTerminator() instruction of the basic block. It is
always the last instruction in the basic block, and aside from merging
instructions and delay slots and other code generator fun, it should
always be the last one that is logically executed.
-- John T.
>
> thanks
> Shrey
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev