[OpenMP 5.0] libomptarget interface for declare mapper functions.
authorMichael Kruse <llvm@meinersbur.de>
Sun, 4 Aug 2019 04:18:28 +0000 (04:18 +0000)
committerMichael Kruse <llvm@meinersbur.de>
Sun, 4 Aug 2019 04:18:28 +0000 (04:18 +0000)
commit2c7a8eaf3d3f50cebb0754e4eb56aeb6b7f21631
tree8611692c6e18c8c3f2e5c2acbc07a696e3d6908e
parent76f0f2e0f0c1be3a530e8593436ef9af6913092a
[OpenMP 5.0] libomptarget interface for declare mapper functions.

This patch implements the libomptarget runtime interface for OpenMP 5.0
declare mapper functions. The declare mapper functions generated by
Clang will call them to complete the mapping of members.
kmpc_mapper_num_components gets the current number of components for a
user-defined mapper; kmpc_push_mapper_component pushes back one
component for a user-defined mapper.

The design slides can be found at
https://github.com/lingda-li/public-sharing/blob/master/mapper_runtime_design.pptx

Patch by Lingda Li <lildmh@gmail.com>

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

llvm-svn: 367772
openmp/libomptarget/src/exports
openmp/libomptarget/src/interface.cpp
openmp/libomptarget/src/private.h
openmp/libomptarget/test/mapping/declare_mapper_api.cpp [new file with mode: 0644]