[OpenMP] Expose the state in the header to allow non-lto optimizations
authorJohannes Doerfert <johannes@jdoerfert.de>
Tue, 19 Jul 2022 19:22:23 +0000 (14:22 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Thu, 21 Jul 2022 17:28:44 +0000 (12:28 -0500)
commita42361dc1c26acae656243232e81a236ba333a8c
treeaae93d90e97e0c14898ff4f5f525ee67161cb05a
parente01ce4e88a8443993afb19f64b2811d50dca65aa
[OpenMP] Expose the state in the header to allow non-lto optimizations

We used to inline the `lookup` calls such that the runtime had "known"
access offsets when it was shipped. With the new static library build it
doesn't as the lookup is an indirection we cannot look through. This
should help us optimize the code better until we can do LTO for the
runtime again.

Differential Revision: https://reviews.llvm.org/D130111
openmp/libomptarget/DeviceRTL/include/State.h
openmp/libomptarget/DeviceRTL/src/State.cpp