Changed behaviour of new_ir_mode to accept all predefined modes.