hanchenye-llvm-project/clang/test/CodeGenOpenCL
Yaxun Liu e45b3d5dad CodeGen: Fix missing debug loc due to alloca
Builder save/restores insertion pointer when emitting addr space cast
for alloca, but does not save/restore debug loc, which causes verifier
failure for certain call instructions.

This patch fixes that.

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

llvm-svn: 316484
2017-10-24 19:14:43 +00:00
..
2011-04-15-vec-init-from-vec.cl
addr-space-struct-arg.cl AMDGPU: Use direct struct returns and arguments 2017-08-09 21:44:58 +00:00
address-space-constant-initializers.cl
address-spaces-conversions.cl
address-spaces-mangling.cl [OpenCL] Add LangAS::opencl_private to represent private address space in AST 2017-10-13 03:37:48 +00:00
address-spaces.cl Fix regression of test/CodeGenOpenCL/address-spaces.cl on ppc 2017-10-13 13:53:06 +00:00
amdgcn-automatic-variable.cl CodeGen: Fix invalid bitcast in partial initialization of automatic arrary variable 2017-10-23 17:49:26 +00:00
amdgcn-flat-scratch-name.cl
amdgcn-large-globals.cl
amdgpu-abi-struct-coerce.cl AMDGPU: Use direct struct returns and arguments 2017-08-09 21:44:58 +00:00
amdgpu-alignment.cl [AMDGPU] Do not require opencl triple environment for OpenCL 2017-05-23 16:15:53 +00:00
amdgpu-attrs.cl OpenCL: Assume functions are convergent 2017-10-06 19:34:40 +00:00
amdgpu-call-kernel.cl
amdgpu-calling-conv.cl
amdgpu-debug-info-pointer-address-space.cl [AMDGPU] Do not require opencl triple environment for OpenCL 2017-05-23 16:15:53 +00:00
amdgpu-debug-info-variable-expression.cl Adapt testcases to LLVM change r312144 in DIGlobalVariableExpression 2017-08-30 18:22:23 +00:00
amdgpu-enqueue-kernel.cl [AMDGPU] Fix bug in enqueued block codegen due to an extra line 2017-10-19 15:56:13 +00:00
amdgpu-env-amdgiz.cl
amdgpu-nullptr.cl AMDGPU: Use direct struct returns and arguments 2017-08-09 21:44:58 +00:00
amdgpu-sizeof-alignof.cl [AMDGPU] Fix size and alignment of size_t and pointer types 2017-07-05 04:58:24 +00:00
as_type.cl
atomic-ops-libcall.cl Add more tests for OpenCL atomic builtin functions 2017-09-13 18:56:25 +00:00
atomic-ops.cl CodeGen: Fix invalid bitcasts for atomic builtins 2017-10-17 14:19:29 +00:00
blocks.cl [OpenCL] Emit enqueued block as kernel 2017-10-14 12:23:50 +00:00
bool_cast.cl [OpenCL] spir_kern by defaul: fix old test cases 2017-06-01 08:19:43 +00:00
builtins-amdgcn-gfx9.cl
builtins-amdgcn-vi.cl
builtins-amdgcn.cl AMDGPU: Add read_exec_lo/hi builtins 2017-10-09 20:06:37 +00:00
builtins-generic-amdgcn.cl
builtins-r600.cl
byval.cl [AMDGPU] Do not require opencl triple environment for OpenCL 2017-05-23 16:15:53 +00:00
cast_image.cl
cl-strict-aliasing.cl
cl20-device-side-enqueue.cl [OpenCL] Emit enqueued block as kernel 2017-10-14 12:23:50 +00:00
const-str-array-decay.cl
constant-addr-space-globals.cl
convergent.cl OpenCL: Assume functions are convergent 2017-10-06 19:34:40 +00:00
denorms-are-zero.cl
event_t.cl
ext-vector-shuffle.cl
extension-begin.cl
fpmath.cl
func-call-dbg-loc.cl CodeGen: Fix missing debug loc due to alloca 2017-10-24 19:14:43 +00:00
gfx9-fp32-denorms.cl
half.cl [OpenCL] Test on half immediate support. 2017-05-29 07:44:22 +00:00
images.cl
kernel-arg-info-single-as.cl
kernel-arg-info.cl [OpenCL] Fix access qualifiers metadata for kernel arguments with typedef 2017-07-26 18:49:54 +00:00
kernel-attributes.cl [OpenCL] spir_kern by defaul: fix old test cases 2017-06-01 08:19:43 +00:00
kernel-metadata.cl [OpenCL] spir_kern by defaul: fix old test cases 2017-06-01 08:19:43 +00:00
kernels-have-spir-cc-by-default.cl [OpenCL] Makes kernels use the SPIR_KERNEL CC by default. 2017-06-01 07:18:49 +00:00
lifetime.cl
local-initializer-undef.cl
local.cl
logical-ops.cl
memcpy.cl
no-half.cl [OpenCL] Add half load and store builtins 2017-09-07 19:39:10 +00:00
no-signed-zeros.cl
null_queue.cl
opencl_types.cl [AMDGPU] Change addr space of clk_event_t, queue_t and reserve_id_t to global 2017-09-13 18:50:42 +00:00
overload.cl
partial_initializer.cl
pipe_builtin.cl [OpenCL] Enable subgroup extension in tests 2017-07-31 15:50:27 +00:00
pipe_types.cl [OpenCL] spir_kern by defaul: fix old test cases 2017-06-01 08:19:43 +00:00
preserve_vec3.cl
private-array-initialization.cl
ptx-calls.cl [OpenCL] spir_kern by defaul: fix old test cases 2017-06-01 08:19:43 +00:00
ptx-kernels.cl [OpenCL] spir_kern by defaul: fix old test cases 2017-06-01 08:19:43 +00:00
relaxed-fpmath.cl
sampler.cl
shifts.cl
single-precision-constant.cl
size_t.cl [AMDGPU] Do not require opencl triple environment for OpenCL 2017-05-23 16:15:53 +00:00
spir-calling-conv.cl
spir32_target.cl
spir64_target.cl
spir_version.cl [OpenCL] Fix OpenCL and SPIR version metadata generation. 2017-06-20 14:30:18 +00:00
str_literals.cl
to_addr_builtin.cl
unroll-hint.cl
vectorLoadStore.cl [OpenCL] Fixed CL version in failing test. 2017-09-27 17:03:35 +00:00
vector_literals_nested.cl
vector_literals_valid.cl
vector_logops.cl
vector_odd.cl
vector_shufflevector_valid.cl
vla.cl