[LLVMdev] Tutorial on writing Link Time Optimization Passes?
    Chris Lattner 
    clattner at apple.com
       
    Mon Dec  8 10:02:33 PST 2008
    
    
  
On Dec 8, 2008, at 9:56 AM, Diego Huang wrote:
> Hi,
>
> Is there a tutorial on how to get started with writing link-time
> optimization passes? The documentation at
> http://www.llvm.org/docs/LinkTimeOptimization.html explains the design
> of the LTO interface, but does not explain where to start writing
> code. Would my pass go inside libLTO.a or is it separate from
> libLTO.a? What I would like to be able to do is traverse through the
> entire call graph of the program, which is only available at link- 
> time.
Hi Diego,
There are no "lto specific" passes.  We just write interprocedural  
passes and can choose to run them at either compile or link time.  For  
some examples, please see lib/Transforms/IPO.
-Chris
    
    
More information about the llvm-dev
mailing list