[Polly][PPCGCodeGen] OpenCL now gets kernel argument size from PPCG CodeGen
authorSiddharth Bhat <siddu.druid@gmail.com>
Tue, 9 May 2017 10:45:52 +0000 (10:45 +0000)
committerSiddharth Bhat <siddu.druid@gmail.com>
Tue, 9 May 2017 10:45:52 +0000 (10:45 +0000)
commita90be207c60cf3bcbcdf452f4443ba0b73d868ae
treeade3e615fc4891e9b72b19c9bad7eba8fa71e31e
parentcf9daa33a7870c235e0edc176dd40579f376cafc
[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

llvm-svn: 302515
polly/lib/CodeGen/PPCGCodeGeneration.cpp
polly/test/GPGPU/cuda-managed-memory-simple.ll
polly/test/GPGPU/host-control-flow.ll
polly/test/GPGPU/kernel-params-only-some-arrays.ll
polly/test/GPGPU/parametric-loop-bound.ll
polly/tools/GPURuntime/GPUJIT.c