[PATCH] LTO: introduce object file-based on-disk module format.

Peter Collingbourne peter at pcc.me.uk
Sat Jul 5 16:00:45 PDT 2014


On Sat, Jul 05, 2014 at 07:21:08AM -0400, Rafael EspĂ­ndola wrote:
> >> BTW, gcc has both thin and fat files and a GO frontend. Do you know
> >> what do they do about the GO metadata when building with thin files in
> >> LTO?
> >
> > It looks like thin LTO files are also object files, but they omit the object
> > code (similar to this proposal). So the object files contain only .go_export
> > and the GCC LTO sections.
> 
> BTW, what will be producing these files with .go_export and llvm IR?
> Is in a new GO FE?

This Go frontend: https://github.com/go-llvm/llgo/tree/libgo

I decided to spend some time this weekend trying to teach it LTO.

Thanks,
-- 
Peter



More information about the llvm-commits mailing list