diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-09-21 18:01:02 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2015-09-21 18:01:02 +0000 |
commit | 82a13bf36cf26cc69bb0c0bd3f72071539b9d729 (patch) | |
tree | 6d2a4bc66a3a5657b09bca073b82d2f40da58526 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | ab58c74d98da441a2f09ab3a135be001bd598c6b (diff) | |
download | llvm-82a13bf36cf26cc69bb0c0bd3f72071539b9d729.zip llvm-82a13bf36cf26cc69bb0c0bd3f72071539b9d729.tar.gz llvm-82a13bf36cf26cc69bb0c0bd3f72071539b9d729.tar.bz2 |
[OMPT] Overhaul OMPT initialization interface
The OMPT specification has changed. This revision brings the LLVM OpenMP
implementation up to date.
Technical overview of changes:
Previously, a public weak symbol ompt_initialize was called after the OpenMP
runtime is initialized. The new interface calls a global weak symbol ompt_tool
prior to initialization. If a tool is present, ompt_tool returns a pointer to
a function that matches the signature for ompt_initialize. After OpenMP is
initialized the function pointer is called to initialize a tool.
Knowing that OMPT will be enabled before initialization allows OMPT support to
be initialized as part of initialization instead of back patching
initialization of OMPT support after the fact.
Post OpenMP initialization support has been generalized moves from
ompt-specific.c into ompt-general.c, since the OMPT initialization logic is no
longer implementation specific.
Patch by John Mellor-Crummey
Differential Revision: http://reviews.llvm.org/D12998
llvm-svn: 248187
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions