<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi everyone,<div class=""><br class=""></div><div class="">I am looking at a way to mark part of a source code for an optimisation pass (or how to transfert information from source code to IR).</div><div class=""><br class=""></div><div class="">I want to work on C / C++ / Objective-c and Swift.</div><div class=""><br class=""></div><div class="">Something like:</div><div class=""><br class=""></div><div class="">...</div><div class="">//Begin Optimisation </div><div class="">if(i % 2){</div><div class=""><span class="Apple-tab-span" style="white-space:pre">  </span>printf(“Something”);</div><div class="">}</div><div class="">//End Optimisation</div><div class=""><br class=""></div><div class=""><div class="">for(int i = 0; i < 10; ++i){</div><div class=""><span class="Apple-tab-span" style="white-space:pre">     </span>printf("%d, “, i);</div><div class="">}</div><div class="">printf("\n”);</div></div><div class="">…</div><div class=""><br class=""></div><div class="">I have found several informations here: <a href="http://clang-analyzer.llvm.org/annotations.html" class="">http://clang-analyzer.llvm.org/annotations.html</a>. I was thinking about using #pragma or annotate attribute but this is not working on Swift.</div><div class=""><br class=""></div><div class="">Does anyone has an hint to begin with?</div><div class=""><br class=""></div><div class="">Greetings,</div><div class=""><br class=""></div><div class="">Johan</div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>