]> granicus.if.org Git - clang/commit
[OpenMP] Add support for mapping array sections through pointer references.
authorSamuel Antao <sfantao@us.ibm.com>
Wed, 27 Jul 2016 22:49:49 +0000 (22:49 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Wed, 27 Jul 2016 22:49:49 +0000 (22:49 +0000)
commitb28136e677c4d5e6bb629a3bafd4ebbe232a00c2
treec00859e178b1e4616ffdbedb51b5f6c159eed466
parent028bcee5a3d91974b15311507ada7c4aa032c203
[OpenMP] Add support for mapping array sections through pointer references.

Summary:
This patch fixes a bug in the map of array sections whose base is a reference to a pointer. The existing mapping support was not prepared to deal with it, causing the compiler to crash.

Mapping a reference to a pointer enjoys the same characteristics of a regular pointer, i.e., it is passed by value. Therefore, the reference has to be materialized in the target region.

Reviewers: hfinkel, carlo.bertolli, kkwli0, ABataev

Subscribers: caomhin, cfe-commits

Differential Revision: https://reviews.llvm.org/D22690

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276933 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGStmtOpenMP.cpp
test/OpenMP/target_map_codegen.cpp