]> granicus.if.org Git - clang/commit
[OpenCL] Always emit alloca in entry block for enqueue_kernel builtin
authorScott Linder <scott@scottlinder.com>
Fri, 3 Aug 2018 15:50:52 +0000 (15:50 +0000)
committerScott Linder <scott@scottlinder.com>
Fri, 3 Aug 2018 15:50:52 +0000 (15:50 +0000)
commit77acb45e8012b27a895254f5518c1528a5b4b0cf
tree158724064bb414aff18fd007bf090dbde09b0232
parente9fbbe52f18826d5e44aaf596a59439cab4f4c60
[OpenCL] Always emit alloca in entry block for enqueue_kernel builtin

Ensures the statically sized alloca is not converted to DYNAMIC_STACKALLOC
later because it is not in the entry block.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338899 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp
test/CodeGenOpenCL/cl20-device-side-enqueue.cl
test/CodeGenOpenCL/enqueue-kernel-non-entry-block.cl [new file with mode: 0644]