made copy_attrs an ir_op operation