[llvm-dev] Mark code from source to IR
Johan Wehrli via llvm-dev
llvm-dev at lists.llvm.org
Thu Sep 22 04:45:46 PDT 2016
Hi everyone,
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).
I want to work on C / C++ / Objective-c and Swift.
Something like:
...
//Begin Optimisation
if(i % 2){
printf(“Something”);
}
//End Optimisation
for(int i = 0; i < 10; ++i){
printf("%d, “, i);
}
printf("\n”);
…
I have found several informations here: http://clang-analyzer.llvm.org/annotations.html <http://clang-analyzer.llvm.org/annotations.html>. I was thinking about using #pragma or annotate attribute but this is not working on Swift.
Does anyone has an hint to begin with?
Greetings,
Johan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160922/643a5f86/attachment.html>
More information about the llvm-dev
mailing list