renamed modecode, mode_sort, mode_arithmetic to ir_*