[cfe-dev] [PROPOSAL] per-function optimization level control

Jonathan Sauer jonathan.sauer at gmx.de
Sat May 4 22:40:22 PDT 2013


Hello,

> We've had a high priority feature request from a number of our customers 
> to
> provide per-function optimization in our Clang/LLVM compiler. 
> I would be interested in working with the community to implement this.
> The idea is to allow the optimization level to be overridden
> for specific functions.

Have you looked at "Noise", presented at this year's European LLVM Conference?

| Noise is a language extension that allows a programmer to create custom optimization
| strategies and apply them to specific code segments. This enables fine-grained control
| over the optimizations applied by the compiler to conveniently tune code without
| actually rewriting it.
<http://llvm.org/devmtg/2013-04/#poster6>

This seems to go into the same direction as your proposal. It's not yet open source,
but it's planned: <http://www.cdl.uni-saarland.de/projects/noise/>


CU,
Jonathan





More information about the cfe-dev mailing list