]> granicus.if.org Git - clang/commit
[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)
commitd62c9cc77260e3459d4788394d379c0e1e04963d
treebc0b8f361c3271a5ebd0eb69c4163dbc17f2eaa0
parente5c389d29dfe747736ec899b3885b1f49b0d71b1
[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

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