[Openmp-commits] [PATCH] D76012: [OpenMP][Tool] Header-only multiplexing of OMPT tools

Joachim Protze via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Jun 9 13:48:35 PDT 2020


protze.joachim added a comment.

As an alternative, I could make the tools header files, which are conditionally included:

  #ifdef FIRST
  #include <first_tool.h>
  #elif SECOND
  #include <second_tool.h>
  #else
  ... current app content
  #endif

Then we have only one C file, which has the app code and the test expressions. The tool libraries are compiled from the header files.


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

https://reviews.llvm.org/D76012





More information about the Openmp-commits mailing list