<p dir="ltr">Hello evreryone,</p>
<p dir="ltr">i hope you guys are fine and you can help me with some ideas, i cant realize in clang.<br></p>
<p dir="ltr">The last few days i have read  very much about clang and source to source transformation.</p>
<p dir="ltr">I have some ideas that it could not yet be realized.</p>
<p dir="ltr">Regards</p>
<p dir="ltr">Anja</p>
<p dir="ltr">My wish:</p>
<p dir="ltr"># Include <likwid.h> / / likwid Profiler</p>
<p dir="ltr">int main () {</p>
<p dir="ltr"> LIKWID_MARKER_INIT;<br>
 LIKWID_MARKER_THREADINIT;</p>
<p dir="ltr"> LIKWID_MARKER_START ("function name");</p>
<p dir="ltr">{Code pattern}</p>
<p dir="ltr"> LIKWID_MARKER_STOP ("function name");</p>
<p dir="ltr"> LIKWID_MARKER_CLOSE;</p>
<p dir="ltr"> return 0;</p>
<p dir="ltr">}<br></p>
<p dir="ltr">current situation:</p>
<p dir="ltr"># Include <likwid.h> / / likwid Profiler ← idea there, but still can not realize</p>
<p dir="ltr">int main ()<br>
 LIKWID_MARKER_INIT;<br>
 LIKWID_MARKER_THREADINIT; ← false position, the text has to be behind the {, then that would be done<br>
{<br></p>
<p dir="ltr"> LIKWID_MARKER_START ("function name"); ← successfully implemented for a function, even if the function outside of main stands, start will be set</p>
<p dir="ltr">Function / {code pattern}</p>
<p dir="ltr"> LIKWID_MARKER_STOP ("function name"); ← successfully implemented for a function , even if the function outside of main stands, stop will be set</p>
<p dir="ltr"> return 0;</p>
<p dir="ltr"> LIKWID_MARKER_CLOSE; ← position is wrong, it has to be before return 0;<br>
</p>