HomePhabricator

[OPENMP]Fix PR47158, case 3: allow devic_typein nested declare target region.

Authored by ABataev on Aug 19 2020, 12:23 PM.

Description

[OPENMP]Fix PR47158, case 3: allow devic_typein nested declare target region.

OpenMP 5.0 supports nested declare target regions. So, in general,it is
allow to mark a declarationas declare target with different device_type
or link type. Patch adds support for such kind of nesting.

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