Re: [gomp-nvptx] nvptx backend: implement alloca with -msoft-stack

2015-12-14 Thread Nathan Sidwell
On 12/14/15 08:50, Alexander Monakov wrote: I have committed this patch to the gomp-nvptx branch. Bernd, Nathan, I would appreciate if you could comment on 'define_predicate' changes in nvptx.md. There are three predicates that start like this: if (REG_P (op)) return !HARD_REGISTER_P (o

[gomp-nvptx] nvptx backend: implement alloca with -msoft-stack

2015-12-14 Thread Alexander Monakov
This patch implements variable stack allocation for alloca/VLA on NVPTX if -msoft-stack is enabled. In addition to moving the stack pointer, we need to copy the updated pointer into __nvptx_stacks[tid.y]. * config/nvptx/nvptx.c (nvptx_declare_function_name): Emit %outargs using .l