ir_reader: Emit global variables at the top of the instruction list.