[PATCH] D109635: [WIP][OpenMP] Support construct trait set for Clang

Chi Chun Chen via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 10 15:31:54 PDT 2021


cchen created this revision.
cchen added a reviewer: jdoerfert.
Herald added subscribers: guansong, yaxunl.
cchen requested review of this revision.
Herald added subscribers: cfe-commits, sstefan1.
Herald added a project: 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.

TODO for now:

- Add more tests (now it's only testing for target and parallel)
- I removed one line of code in `clang/lib/AST/OpenMPClause.cpp` and I need to

resolve this since not removing this line would prevent everything to work
in this patch (will leave comment for asking the question)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D109635

Files:
  clang/lib/AST/OpenMPClause.cpp
  clang/lib/Sema/SemaOpenMP.cpp
  clang/test/OpenMP/declare_variant_construct_codegen_1.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109635.372024.patch
Type: text/x-patch
Size: 7791 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210910/0e0a45bf/attachment.bin>


More information about the cfe-commits mailing list