[LLVMdev] using GCC LTO files as a frontend to dragonegg?

Jack Howarth howarth at bromo.med.uc.edu
Mon Sep 13 06:50:25 PDT 2010


On Mon, Sep 13, 2010 at 03:14:19PM +0200, Duncan Sands wrote:
> Hi Diego,
> 
> >> Hopefully this is feasible, as I said I didn't work on
> >> it yet.
> >
> > It sounds doable, but I'm not sure why would you want to convert the
> > gimple into LLVM bitcode, if you are already saving LLVM bitcode in
> > the file.  Wouldn't you be just duplicating code?
> 
> here I was thinking of the possibility that some files have been compiled with
> -flto but without the dragonegg plugin, so contain gimple in the assembler,
> while others have been compiled with dragonegg so contain LLVM bitcode in the
> assembler.  By converting the gimple into LLVM IR they can all be mutually
> optimized together.  This might be important if distributions start shipping
> standard libraries compiled with -flto.

Duncan,
   FYI, all of the dragon-egg targets now fully support lto in current gcc
trunk (since we were able to default lto on for darwin last week).
         Jack

> 
> Ciao,
> 
> Duncan.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev



More information about the llvm-dev mailing list