gomp-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gomp-discuss] Code generation


From: Biagio Lucini
Subject: [Gomp-discuss] Code generation
Date: Mon, 24 Feb 2003 15:36:05 +0000 (GMT)

I was thinking over the week end on how to perform a source-to-source
transformation from OpenMP to pthreads. I suppose that if I break this
problem into pieces, many of them would be reusable when the middle end
will analyze the OpenMP stuff. Now my problem concerns the type of the
variables. Consider for instance

#pragma openmp parallel shared(list1) private(list2)

At this point, list1 and list2 are characters. What I mean is that their
type could have been defined elsewhere, even on another source file.
Moreover, there might be also variables with the same name that have
nothing to do with the ones i am interested in (e.g. they have another
scope and omonomy is only an accident). It is not difficult to produce an
example that could mislead any source-to-source translation.

Now I imagine that those are not problems when you have the diagram of
the control flow of the program in the SSA form. So the question is:
should I bother with that or can I just pass the pointer to those
variables to the pthreaded routines, assuming that they know what they are
doing? I know, the way I am presenting the problem is confusing, but this
is because I am confused myself...

Biagio




reply via email to

[Prev in Thread] Current Thread [Next in Thread]