[PATCH] D17179: [OpenMP] Rename the offload entry points.

Samuel Antao via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 11 17:37:12 PST 2016


sfantao created this revision.
sfantao added reviewers: ABataev, hfinkel, arpith-jacob, carlo.bertolli, kkwli0.
sfantao added subscribers: caomhin, fraggamuffin, cfe-commits.

Unlike other outlined regions in OpenMP, offloading entry points have to have be visible (external linkage) for the device side. Using dots in the names of the entries can be therefore problematic for some toolchains, e.g. NVPTX.

Also the patch drops the column information in the unique name of the entry points. The parsing of directives ignore unknown tokens, preventing several target  regions to be implemented in the same line. Therefore, the line information is sufficient for the name to be unique. Also, the preprocessor printer does not preserve the column information, causing offloading-entry detection issues if the host uses an integrated preprocessor and the target doesn't (or vice versa).

http://reviews.llvm.org/D17179

Files:
  lib/CodeGen/CGOpenMPRuntime.cpp
  lib/CodeGen/CGOpenMPRuntime.h
  test/OpenMP/target_codegen_registration.cpp
  test/OpenMP/target_codegen_registration_naming.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17179.47755.patch
Type: text/x-patch
Size: 24009 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160212/9157a54e/attachment-0001.bin>


More information about the cfe-commits mailing list