[Openmp-commits] [PATCH] D13689: Add OMPT events for API locking

Jim Cownie via Openmp-commits openmp-commits at lists.llvm.org
Tue Oct 13 06:56:28 PDT 2015


jcownie added a subscriber: jcownie.
jcownie added a comment.

> I notice that there aren't any patches to kmp_gsupport.c. I looked in that file and didn't see any support for locking. What will happen when using gcc with this support? Will the instrumented locking routines be called to generate the promised callbacks?


Yes these functions will be called. The OpenMP  lock functions are simply normal C functions which are called by the compiler just like any other extern function. They are not name-mangled in a compiler specific fashion, or generated in any special way, so the correct functions will be called at no extra effort.


Repository:
  rL LLVM

http://reviews.llvm.org/D13689





More information about the Openmp-commits mailing list