ir: Rename some util functions