Implementation of that function in IR allows for more flexibility in terms of different integer type widths.