[cfe-dev] Ho to instruct the optimizer to not throw out certain constructs
Compiler Dragon via cfe-dev
cfe-dev at lists.llvm.org
Tue Nov 22 02:37:35 PST 2016
Hi *,
I am currently writing a clang plugin, which add to specific functions for e.g. additional arguments.
How can I instruct the optimizer not to throw out these arguments, because they are not used in the function body?
With (optnone) we can instruct the optimizer to not optimize the whole function. But this ist not what I want. The function body should be optimized like before.
Any idea or hints where to look?
Thanks
Marcel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20161122/a09e1ad7/attachment.html>
More information about the cfe-dev
mailing list