diff options
author | Samuel Antao <sfantao@us.ibm.com> | 2016-05-26 16:48:10 +0000 |
---|---|---|
committer | Samuel Antao <sfantao@us.ibm.com> | 2016-05-26 16:48:10 +0000 |
commit | 42720cb0acda06dd20caf809a0c4d931ad249dcf (patch) | |
tree | ee8e1e228955d5852c6223c5fd4c4ddeb521fb40 /test/OpenMP/target_exit_data_codegen.cpp | |
parent | bd258e2fa8169719ea89b2ca678be65032b01711 (diff) |
[OpenMP] Adjust map type bits according to latest spec and use zero size array sections for pointers.
Summary: This patch changes the bits used to specify the map types according to the latest version of the libomptarget document and add the support for zero size array section when pointers are being implicitly mapped. This completes the missing new 4.5 map semantics.
Reviewers: hfinkel, carlo.bertolli, arpith-jacob, kkwli0, ABataev
Subscribers: caomhin, cfe-commits
Differential Revision: http://reviews.llvm.org/D20111
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@270868 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/OpenMP/target_exit_data_codegen.cpp')
-rw-r--r-- | test/OpenMP/target_exit_data_codegen.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/OpenMP/target_exit_data_codegen.cpp b/test/OpenMP/target_exit_data_codegen.cpp index 52d096c4ea..15d3ec1b09 100644 --- a/test/OpenMP/target_exit_data_codegen.cpp +++ b/test/OpenMP/target_exit_data_codegen.cpp @@ -22,15 +22,15 @@ ST<int> gb; double gc[100]; // CK1: [[SIZE00:@.+]] = {{.+}}constant [1 x i[[sz:64|32]]] [i{{64|32}} 800] -// CK1: [[MTYPE00:@.+]] = {{.+}}constant [1 x i32] [i32 2] +// CK1: [[MTYPE00:@.+]] = {{.+}}constant [1 x i32] [i32 34] // CK1: [[SIZE02:@.+]] = {{.+}}constant [1 x i[[sz]]] [i[[sz]] 4] -// CK1: [[MTYPE02:@.+]] = {{.+}}constant [1 x i32] [i32 8] +// CK1: [[MTYPE02:@.+]] = {{.+}}constant [1 x i32] [i32 32] -// CK1: [[MTYPE03:@.+]] = {{.+}}constant [1 x i32] [i32 6] +// CK1: [[MTYPE03:@.+]] = {{.+}}constant [1 x i32] [i32 38] // CK1: [[SIZE04:@.+]] = {{.+}}constant [2 x i[[sz]]] [i[[sz]] {{8|4}}, i[[sz]] 24] -// CK1: [[MTYPE04:@.+]] = {{.+}}constant [2 x i32] [i32 8, i32 104] +// CK1: [[MTYPE04:@.+]] = {{.+}}constant [2 x i32] [i32 32, i32 16] // CK1-LABEL: _Z3fooi void foo(int arg) { @@ -156,7 +156,7 @@ struct ST { }; // CK2: [[SIZE00:@.+]] = {{.+}}constant [2 x i[[sz:64|32]]] [i{{64|32}} {{8|4}}, i{{64|32}} 24] -// CK2: [[MTYPE00:@.+]] = {{.+}}constant [2 x i32] [i32 12, i32 108] +// CK2: [[MTYPE00:@.+]] = {{.+}}constant [2 x i32] [i32 36, i32 20] // CK2-LABEL: _Z3bari int bar(int arg){ |