[OpenMP] Map clause codegeneration.
authorSamuel Antao <sfantao@us.ibm.com>
Wed, 27 Apr 2016 22:40:57 +0000 (22:40 +0000)
committerSamuel Antao <sfantao@us.ibm.com>
Wed, 27 Apr 2016 22:40:57 +0000 (22:40 +0000)
commit86ace55d53589fadc96a2f6f01a0b3bca782da18
tree7fd404273a35f8cf73afbd13d41fec1746a41cf6
parentc493085c8dca9f317051be9ccf5c89e36812d9eb
[OpenMP] Map clause codegeneration.

Summary:
Implement codegen for the map clause. All the new list items in 4.5 specification are supported.

Fix bug in the generation of array sections that was exposed by some of the map clause tests: for pointer types the offsets have to be calculated from the pointee not the pointer.

Reviewers: hfinkel, kkwli0, carlo.bertolli, arpith-jacob, ABataev

Subscribers: ABataev, cfe-commits, caomhin, fraggamuffin

Differential Revision: http://reviews.llvm.org/D16749

llvm-svn: 267808
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/target_firstprivate_codegen.cpp
clang/test/OpenMP/target_map_codegen.cpp