This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 1/5] Named address spaces: core middle-end support
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: richard dot guenther at gmail dot com (Richard Guenther)
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 20 Aug 2009 16:47:11 +0200 (CEST)
- Subject: Re: [PATCH 1/5] Named address spaces: core middle-end support
Richard Guenther wrote:
> To be more clear - when would a valid input program have a
> conversion between pointers to different address spaces?
Oh, this can be very useful -- for example, on the Cell we
provide library functions like
__ea void *memcpy_ea (__ea void *dest, __ea const void *src, size_ea_t n);
Due to the fact that generic local store pointers automatically
convert to __ea pointers, this routine can also be called to
copy from local store to the __ea space or vice versa.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com