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.