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

Duncan Sands baldrick at free.fr
Mon Sep 13 06:14:19 PDT 2010


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.

Ciao,

Duncan.



More information about the llvm-dev mailing list