[LLVMdev] LTO ?

Jeff Inman jti at lanl.gov
Thu Jan 24 12:23:13 PST 2008

Hi folks,

I've got an idea for something I may be able to do as a Link-Time- 
Optimization pass,
but I can't seem to find how LTO gets used.  My crude approach has  
been to compile
LLVM for debugging, and then run gdb on llvm-ld with -O5 and two .bc  
files, trying to
catch LTO in action.   I've also scanned the compiled tools, and none  
of them appear
to use the symbol 'createLLVMOptimizer' (or anything with 'lto',  
etc).  The document at
http://llvm.org/releases/2.1/docs/LinkTimeOptimization.html  doesn't  
seem to be of much
help for getting started with this.   How do I provoke LTO?  Any  



Jeff Inman  -- jti at lanl.gov
Advanced Architectures for Computation
Los Alamos National Laboratory

More information about the llvm-dev mailing list