diff options
author | Sergey Dmitriev <serguei.n.dmitriev@intel.com> | 2019-09-27 20:00:51 +0000 |
---|---|---|
committer | Sergey Dmitriev <serguei.n.dmitriev@intel.com> | 2019-09-27 20:00:51 +0000 |
commit | 4b343fd84c0bdf1a0dbec796ce21898625f992eb (patch) | |
tree | 6c78f366da27493f23f56e2999ec5f84dbcce617 /clang/test/OpenMP/target_teams_distribute_simd_depend_codegen.cpp | |
parent | 159ef37735f21ae373282e0c53cbd9b6af1e0dfd (diff) | |
download | bcm5719-llvm-4b343fd84c0bdf1a0dbec796ce21898625f992eb.tar.gz bcm5719-llvm-4b343fd84c0bdf1a0dbec796ce21898625f992eb.zip |
[Clang][OpenMP Offload] Create start/end symbols for the offloading entry table with a help of a linker
Linker automatically provides __start_<section name> and __stop_<section name> symbols to satisfy unresolved references if <section name> is representable as a C identifier (see https://sourceware.org/binutils/docs/ld/Input-Section-Example.html for details). These symbols indicate the start address and end address of the output section respectively. Therefore, renaming OpenMP offload entries section name from ".omp.offloading_entries" to "omp_offloading_entries" to use this feature.
This is the first part of the patch for eliminating OpenMP linker script (please see https://reviews.llvm.org/D64943).
Differential Revision: https://reviews.llvm.org/D68070
llvm-svn: 373118
Diffstat (limited to 'clang/test/OpenMP/target_teams_distribute_simd_depend_codegen.cpp')
-rw-r--r-- | clang/test/OpenMP/target_teams_distribute_simd_depend_codegen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/OpenMP/target_teams_distribute_simd_depend_codegen.cpp b/clang/test/OpenMP/target_teams_distribute_simd_depend_codegen.cpp index b7bb85df77b..5789d1cd394 100644 --- a/clang/test/OpenMP/target_teams_distribute_simd_depend_codegen.cpp +++ b/clang/test/OpenMP/target_teams_distribute_simd_depend_codegen.cpp @@ -56,8 +56,8 @@ // TCHECK-NOT: @{{.+}} = weak constant [[ENTTY]] // Check if offloading descriptor is created. -// CHECK: [[ENTBEGIN:@.+]] = external constant [[ENTTY]] -// CHECK: [[ENTEND:@.+]] = external constant [[ENTTY]] +// CHECK: [[ENTBEGIN:@.+]] = external hidden constant [[ENTTY]] +// CHECK: [[ENTEND:@.+]] = external hidden constant [[ENTTY]] // CHECK: [[DEVBEGIN:@.+]] = extern_weak constant i8 // CHECK: [[DEVEND:@.+]] = extern_weak constant i8 // CHECK: [[IMAGES:@.+]] = internal unnamed_addr constant [1 x [[DEVTY]]] [{{.+}} { i8* [[DEVBEGIN]], i8* [[DEVEND]], [[ENTTY]]* [[ENTBEGIN]], [[ENTTY]]* [[ENTEND]] }], comdat($[[REGFN]]) |