[Openmp-commits] [PATCH] D72525: [LIBOMPTARGET] Do not increment/decrement the refcount for "declare target" objects

Alexey Bataev via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Sun Jan 12 16:15:21 PST 2020


ABataev added inline comments.


================
Comment at: openmp/libomptarget/src/device.h:54
+
+  inline long getRefCount() {
+    return RefCount;
----------------
ABataev wrote:
> You don't need inline here, it is inlined automatically, I assume, since defined in class.
Const function


================
Comment at: openmp/libomptarget/src/device.h:77
+
+  inline bool isRefCountInf() {
+    return CONSIDERED_INF(RefCount);
----------------
Const.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72525/new/

https://reviews.llvm.org/D72525





More information about the Openmp-commits mailing list