This function can be used to determine the function return type.
Quick shim to generate attribute lists to apply to functions. retTy specifies the intended rather than the ABI-mandated return type of the function.