diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2017-08-09 19:38:53 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2017-08-09 19:38:53 +0000 |
commit | e754b18f5e10155673ceff9af9a34b473a802764 (patch) | |
tree | f67a22ea696dba0c713e79c8fed2d1c34c75e776 /clang/test/OpenMP/parallel_for_simd_codegen.cpp | |
parent | 3239518b90e6ab35877791236c53b9d30c68dd32 (diff) | |
download | bcm5719-llvm-e754b18f5e10155673ceff9af9a34b473a802764.tar.gz bcm5719-llvm-e754b18f5e10155673ceff9af9a34b473a802764.zip |
[OPENMP] Emit non-debug version of outlined functions with original
name.
If the host code is compiled with the debug info, while the target
without, there is a problem that the compiler is unable to find the
debug wrapper. Patch fixes this problem by emitting special name for the
debug version of the code.
llvm-svn: 310511
Diffstat (limited to 'clang/test/OpenMP/parallel_for_simd_codegen.cpp')
-rw-r--r-- | clang/test/OpenMP/parallel_for_simd_codegen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/OpenMP/parallel_for_simd_codegen.cpp b/clang/test/OpenMP/parallel_for_simd_codegen.cpp index 06d96353ee9..369ea17844e 100644 --- a/clang/test/OpenMP/parallel_for_simd_codegen.cpp +++ b/clang/test/OpenMP/parallel_for_simd_codegen.cpp @@ -114,6 +114,7 @@ void simple(float *a, float *b, float *c, float *d) { int lin = 12; #pragma omp parallel for simd linear(lin : get_val()), linear(g_ptr) +// CHECK: alloca i32, // Init linear private var. // CHECK: [[LIN_VAR:%.+]] = load i32*, i32** % // CHECK: [[LIN_LOAD:%.+]] = load i32, i32* [[LIN_VAR]] |