r300/compiler: move util functions to radeon_compiler_util