ir_new_ir function

Creates an object of class ir