Source to source

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;