[PATCH] D54493: [OPENMP] Check target architecture supports unified shared memory for requires directive

Patrick Lyster via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 13 13:21:42 PST 2018


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

Restriction on `unified_shared_memory` clause on OpenMP5.0 `requires` directive states that target architecture must support unified addressing (>=sm_70). This patch implements this restriction.


Repository:
  rC Clang

https://reviews.llvm.org/D54493

Files:
  clang/lib/CodeGen/CGDecl.cpp
  clang/lib/CodeGen/CGOpenMPRuntime.h
  clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
  clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h
  clang/test/OpenMP/requires_codegen.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54493.173927.patch
Type: text/x-patch
Size: 11507 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181113/e7d68855/attachment-0001.bin>


More information about the cfe-commits mailing list