[Polly][PPCGCodeGen] OpenCL now gets kernel argument size from PPCG CodeGen
commit7a49e96a87b8890da005b0cb4d8ed780adceebce
authorSiddharth Bhat <siddu.druid@gmail.com>
Tue, 9 May 2017 10:45:52 +0000 (9 10:45 +0000)
committerSiddharth Bhat <siddu.druid@gmail.com>
Tue, 9 May 2017 10:45:52 +0000 (9 10:45 +0000)
tree5303e7dd2a1b30169d72b11aa75cd40a0b3fa5f2
parenta75aeee864648a319561ec4b54367c7c4109207e
[Polly][PPCGCodeGen] OpenCL now gets kernel argument size from PPCG CodeGen

Summary: PPCGCodeGeneration now attaches the size of the kernel launch parameters at the end of the parameter list. For the existing CUDA Runtime, this gets ignored, but the OpenCL Runtime knows to check for kernel-argument size at the end of the parameter list. (The resulting parameters list is twice as long. This has been accounted for in the corresponding test cases).

Reviewers: grosser, Meinersbur, bollu

Reviewed By: bollu

Subscribers: nemanjai, yaxunl, Anastasia, pollydev, llvm-commits

Tags: #polly

Differential Revision: https://reviews.llvm.org/D32961

git-svn-id: https://llvm.org/svn/llvm-project/polly/trunk@302515 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/PPCGCodeGeneration.cpp
test/GPGPU/cuda-managed-memory-simple.ll
test/GPGPU/host-control-flow.ll
test/GPGPU/kernel-params-only-some-arrays.ll
test/GPGPU/parametric-loop-bound.ll
tools/GPURuntime/GPUJIT.c