[PATCH] D19015: [LTO] hook up lto_codegen_debug_options() to codegen target options

Thomas Guest via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 12 23:55:21 PDT 2016


thomasguest added a comment.

In http://reviews.llvm.org/D19015#398910, @joker.eph wrote:

> Note: this is an interface intended for *debug*, you're not suppose to use it or rely on it in production: it has no stability guarantee (that I know of).
>  With this in mind, that seems fine to me.


Thanks for the comment @joker.eph

If I'm using the LTO.dll via the interface defined in llvm/include/llvm-c/lto.h, then the only function which allows me full control codegen configuration is lto_codegen_debug_options(). Perhaps the function is misnamed, and should actually be called lto_codegen_set_options().

The original purpose of this API function is for debugging,  but without the fix I do not think all the options passed in will be used anyway.


http://reviews.llvm.org/D19015





More information about the llvm-commits mailing list