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_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_data_codegen.cpp')
-rw-r--r-- | test/OpenMP/target_data_codegen.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/OpenMP/target_data_codegen.cpp b/test/OpenMP/target_data_codegen.cpp index c8b3aca37c..e2433ffc76 100644 --- a/test/OpenMP/target_data_codegen.cpp +++ b/test/OpenMP/target_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 1] +// CK1: [[MTYPE02:@.+]] = {{.+}}constant [1 x i32] [i32 33] -// CK1: [[MTYPE03:@.+]] = {{.+}}constant [1 x i32] [i32 5] +// CK1: [[MTYPE03:@.+]] = {{.+}}constant [1 x i32] [i32 37] // CK1: [[SIZE04:@.+]] = {{.+}}constant [2 x i[[sz]]] [i[[sz]] {{8|4}}, i[[sz]] 24] -// CK1: [[MTYPE04:@.+]] = {{.+}}constant [2 x i32] [i32 1, i32 97] +// CK1: [[MTYPE04:@.+]] = {{.+}}constant [2 x i32] [i32 33, i32 17] // CK1-LABEL: _Z3fooi void foo(int arg) { @@ -173,7 +173,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 5, i32 101] +// CK2: [[MTYPE00:@.+]] = {{.+}}constant [2 x i32] [i32 37, i32 21] // CK2-LABEL: _Z3bari int bar(int arg){ |