Updated ir_generic to work with the new get_ir handling