[LLVMdev] Order of values

Óscar Fuentes ofv at wanadoo.es
Wed Oct 10 15:37:35 PDT 2012


shreyas krishnan <shreyas76 at gmail.com> writes:

>    if I have group of instructions that belong to same basic block,
> how can I determine which of these occurs the last ?

See BasicBlock::getInstList, which returns a reference to the list of
intructions that the BasicBlock holds. You can walk that list the same
way as std::list.



More information about the llvm-dev mailing list