[PATCH][libLTO] Add Accessors to libLTO to expose more bitcode information

Duncan P. N. Exon Smith dexonsmith at apple.com
Sun Apr 27 16:59:35 PDT 2014


+rafael

On 2014 Apr 24, at 04:55, Nick Tomlinson <nick.tomlinson at arm.com> wrote:

> Currently, libLTO does not provide access to the bitcode file's data layout,
> or function attributes. The attached patch adds accessors to libLTO to
> provide access to this information. Please could someone review it?

I don't think this is a good idea.  The C API is stable, so this would
lock down the list of attributes as well.  I think that makes this patch
a no-go.

Even exposing the data layout string seems dangerous, although maybe
there's precedent here from `lto_module_get_target_triple()`?

Rafael, am I missing something here?



More information about the llvm-commits mailing list