[OpenMP] Support construct trait set for Clang
authorcchen <chichun.chen@hpe.com>
Thu, 16 Sep 2021 16:28:31 +0000 (11:28 -0500)
committercchen <chichun.chen@hpe.com>
Thu, 16 Sep 2021 16:34:31 +0000 (11:34 -0500)
commit976d474bec357d7712884ce4691be45d247325bd
tree128bc470b60f4b191264026d1aa08cbdf9fd12da
parenta2c319fdc6b35ae6d8578459f07c89042775e5ec
[OpenMP] Support construct trait set for Clang

This patch supports construct trait set selector by using the existed
declare variant infrastructure inside `OMPContext` and simd selector is
currently not supported. The goal of this patch is to pass the declare variant
test inside sollve test suite.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D109635
clang/include/clang/AST/OpenMPClause.h
clang/lib/AST/OpenMPClause.cpp
clang/lib/Parse/ParseOpenMP.cpp
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/declare_variant_ast_print.c
clang/test/OpenMP/declare_variant_ast_print.cpp
clang/test/OpenMP/declare_variant_construct_codegen_1.c [new file with mode: 0644]
clang/test/OpenMP/declare_variant_messages.c