[cfe-dev] [pocl-devel] [LLVMdev] SPIR provisional specification is now available in the Khronos website

Pekka Jääskeläinen pekka.jaaskelainen at tut.fi
Sat Sep 29 03:44:41 PDT 2012

On 09/29/2012 12:00 AM, Villmow, Micah wrote:
> What would be ideal is to have the alloca instruction be able to allocate
> memory indifferent address spaces instead of only being in private.

This sounds like the most sensible and "correct" proposal so far.

If one wants to reuse the local space allocation overhead across multiple
WGs executing in the same thread, one would just need to find all the
allocas to the local AS and convert them, e.g., to function arguments that
are allocated by the WG launcher only once. And when creating a "multi-WI WG
function", ensure the local allocas are shared across the WIs.

It sounds like a working and robust approach to me, although, of course, it
requires the LLVM IR update for the alloca instruction. I have no idea how
drastic update it would be.


More information about the cfe-dev mailing list