On Thu, Dec 21, 2017 at 01:46:56PM -0800, Cesar Philippidis wrote: > After thinking about this some more, I decided that it would be better > expand the offloaded function arguments into individual parameters > during omp lowering, rather than writing a separate pass later on. I > don't see too many disadvantages of using libffi after a pthread is > spawned by the host. If anything, the pthread's use of libffi is > equivalent of preforming SRA by the accelerator anyway.
I'll have a look at your previous patch, just want to say that using libffi for this or changing anything for non-nvptx targets seems to be very bad idea to me. Jakub