HomePhabricator

[OPENMP] Parsing and Sema support for 'omp declare target' directive

Description

[OPENMP] Parsing and Sema support for 'omp declare target' directive

Add parsing, sema analysis for 'declare target' construct for OpenMP 4.0
(4.5 support will be added in separate patch).

The declare target directive specifies that variables, functions (C, C++
and Fortran), and subroutines (Fortran) are mapped to a device. The declare
target directive is a declarative directive. In Clang declare target is
implemented as implicit attribute for the declaration.

The syntax of the declare target directive is as follows:

#pragma omp declare target
declarations-definition-seq
#pragma omp end declare target

Based on patch from Michael Wong http://reviews.llvm.org/D15321

Details

Committed
dpolukhinApr 6 2016, 4:38 AM
Parents
rL265529: Fixup TestLinuxCore on windows
Branches
Unknown
Tags
Unknown