[Openmp-commits] [PATCH] D65876: Use forceinline. Necessary for nvcc to inline small functions within the bitcode library

Jon Chesterfield via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Aug 7 07:53:32 PDT 2019


JonChesterfield created this revision.
JonChesterfield added reviewers: ABataev, jdoerfert, grokos, gregrodgers.
Herald added a project: OpenMP.
Herald added a subscriber: openmp-commits.

[libomptarget] Use forceinline. Necessary for nvcc to inline small functions within the bitcode library
Suggested in D65836 <https://reviews.llvm.org/D65836>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D65876

Files:
  openmp/libomptarget/deviceRTLs/nvptx/src/option.h


Index: openmp/libomptarget/deviceRTLs/nvptx/src/option.h
===================================================================
--- openmp/libomptarget/deviceRTLs/nvptx/src/option.h
+++ openmp/libomptarget/deviceRTLs/nvptx/src/option.h
@@ -55,7 +55,7 @@
 ////////////////////////////////////////////////////////////////////////////////
 
 #define EXTERN extern "C" __device__
-#define INLINE __inline__ __device__
+#define INLINE __forceinline__ __device__
 #define NOINLINE __noinline__ __device__
 #ifndef TRUE
 #define TRUE 1


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65876.213883.patch
Type: text/x-patch
Size: 526 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20190807/74ccd79a/attachment.bin>


More information about the Openmp-commits mailing list