title: Iterating over machine instructions in LLVM
body: <p>Is there a way to iterate over machine instructions without using basic blocks? It is possible with plain Instructions using an instr_iterator within the context of a Function as shown here: <a href="http://llvm.org/docs/ProgrammersManual.html#iterating-over-the-instruction-in-a-function" rel="nofollow noreferrer">Iterating over the Instruction in a Function</a>, however i didn't find a similar example with MachineFunction.</p>