[cfe-dev] Source to source
Anja Gerbes
anja.gerbes at googlemail.com
Thu Jun 19 09:47:37 PDT 2014
Hello evreryone,
i hope you guys are fine and you can help me with some ideas, i cant
realize in clang.
The last few days i have read very much about clang and source to source
transformation.
I have some ideas that it could not yet be realized.
Regards
Anja
My wish:
# Include <likwid.h> / / likwid Profiler
int main () {
LIKWID_MARKER_INIT;
LIKWID_MARKER_THREADINIT;
LIKWID_MARKER_START ("function name");
{Code pattern}
LIKWID_MARKER_STOP ("function name");
LIKWID_MARKER_CLOSE;
return 0;
}
current situation:
# Include <likwid.h> / / likwid Profiler ← idea there, but still can not
realize
int main ()
LIKWID_MARKER_INIT;
LIKWID_MARKER_THREADINIT; ← false position, the text has to be behind the
{, then that would be done
{
LIKWID_MARKER_START ("function name"); ← successfully implemented for a
function, even if the function outside of main stands, start will be set
Function / {code pattern}
LIKWID_MARKER_STOP ("function name"); ← successfully implemented for a
function , even if the function outside of main stands, stop will be set
return 0;
LIKWID_MARKER_CLOSE; ← position is wrong, it has to be before return 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140619/6d2bcdca/attachment.html>
More information about the cfe-dev
mailing list