On 12/17/2013 12:39 PM, Michael V. Zolotukhin wrote:
Here is a patch 2/3: Add tables generation.
This patch is just a slightly modified patch sent a couple of weeks ago. When
compiling with '-fopenmp' compiler generates a special symbol, containing
addresses and sizes of globals/omp_fn-functions, and places it into a special
section. Later, at linking, these sections are merged together and we get a
single table with all addresses/sizes for entire binary. Also, in this patch we
start to pass '__OPENMP_TARGET__' symbol to GOMP_target calls.
I also have a question about the code in this patch. I can see how the
table is constructed - what's not clear to me is how it is going to be
used? How do you map from a function or variable you want to look up to
an index in this table?
Bernd