[Openmp-commits] [PATCH] D40595: [OMPT] Use frames at different level when using clang version 5 or higher with debug flag

Jonas Hahnfeld via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Dec 1 08:41:45 PST 2017


Hahnfeld added a comment.

Just had a more thorough look at the tests which include all kinds of outlined functions. I previously suggested `print_frame_in_task()` because I thought Clang would only wrap the function for tasks. Maybe `print_frame_from_outlined_fn()` would be a better name after all?



================
Comment at: runtime/test/ompt/parallel/nested.c:28-29
     {
+// clang (version 5.0 and above) adds an intermediate function call with debug flag (-g)
+#if defined(DEBUG) && defined(__clang__) && __clang_major__ >= 5
+      print_frame(2);
----------------
This should use the new macro


https://reviews.llvm.org/D40595





More information about the Openmp-commits mailing list