summaryrefslogtreecommitdiffstats
path: root/clang/test/OpenMP/nvptx_target_codegen.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2019-05-21 18:20:08 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2019-05-21 18:20:08 +0000
commit6b21c4a4eed8e7a5ab5d80dfe207eadb7cf5a6ab (patch)
tree0e0c17b3356549787796cc107bdb4c58764247a7 /clang/test/OpenMP/nvptx_target_codegen.cpp
parentc1b6b9a177760b73f3cfb1c8df5f9cb0a3253068 (diff)
downloadbcm5719-llvm-6b21c4a4eed8e7a5ab5d80dfe207eadb7cf5a6ab.tar.gz
bcm5719-llvm-6b21c4a4eed8e7a5ab5d80dfe207eadb7cf5a6ab.zip
[OPENMP]Use the attributes for dso locality when building for device.
Currently, we ignore all dso locality attributes/info when building for the device and thus all symblos are externally visible and can be preemted at the runtime. It may lead to incorrect results. We need to follow the same logic, compiler uses for static/pie builds. llvm-svn: 361283
Diffstat (limited to 'clang/test/OpenMP/nvptx_target_codegen.cpp')
-rw-r--r--clang/test/OpenMP/nvptx_target_codegen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/OpenMP/nvptx_target_codegen.cpp b/clang/test/OpenMP/nvptx_target_codegen.cpp
index 85c85a3078e..84ff9910065 100644
--- a/clang/test/OpenMP/nvptx_target_codegen.cpp
+++ b/clang/test/OpenMP/nvptx_target_codegen.cpp
@@ -573,7 +573,7 @@ int baz(int f, double &a) {
// CHECK: [[EXIT]]
// CHECK: ret void
- // CHECK: define i32 [[BAZ]](i32 [[F:%.*]], double* dereferenceable{{.*}})
+ // CHECK: define{{ dso_local | }}i32 [[BAZ]](i32 [[F:%.*]], double* dereferenceable{{.*}})
// CHECK: alloca i32,
// CHECK: [[LOCAL_F_PTR:%.+]] = alloca i32,
// CHECK: [[ZERO_ADDR:%.+]] = alloca i32,
OpenPOWER on IntegriCloud