[PATCH] D55982: [OPENMP] Add support for explicit mapping of classes using 'this' pointer

Patrick Lyster via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 20 19:19:47 PST 2018


patricklyster created this revision.
patricklyster added reviewers: ABataev, Hahnfeld, RaviNarayanaswamy, mikerice, kkwli0, hfinkel, gtbercea.
patricklyster added projects: clang, OpenMP.
Herald added subscribers: cfe-commits, guansong.

Add support for explicit mapping of `this` pointer in OpenMP 5.0. Example use case:

  class S {
    int a;
    void foo() {
      #pragma omp target map (this[0])
        a = 1;
    }
  };


Repository:
  rC Clang

https://reviews.llvm.org/D55982

Files:
  clang/include/clang/Basic/DiagnosticSemaKinds.td
  clang/lib/CodeGen/CGOpenMPRuntime.cpp
  clang/lib/Sema/SemaOpenMP.cpp
  clang/test/OpenMP/target_ast_print.cpp
  clang/test/OpenMP/target_codegen.cpp
  clang/test/OpenMP/target_messages.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55982.179235.patch
Type: text/x-patch
Size: 14698 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181221/97d8a50a/attachment.bin>


More information about the cfe-commits mailing list