[AMDGPU] Allow the AS identifying builtins to take flat pointers (#230677)
Summary:
We have `__builtin_amdgcn_is_shared` and `__builtin_amdgcn_is_private`
which are used to determine the underlying address space of a flat
pointer. There's some magic around AS(0) depending on the language mode,
in OpenCL it's `__generic`, in HIP it's the default AS. In the mode
without a language it's still a distinct AS.
This PR changes the builtin signature to just be a flat pointer. This
should be equivalent on the targets I know of, but makes the expectation
clearer and fixes the type issues w/ plain C/C++. Test file hopefully
verifies that existing OpenCL / HIP usage is unaffected.