gallium/radeon: add a function for adding llvm function attributes