[LLVMdev] Order of values
criswell at illinois.edu
Wed Oct 10 15:45:28 PDT 2012
On 10/10/12 4:58 PM, shreyas krishnan wrote:
> 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.
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev