[LLVMdev] Tutorial on writing Link Time Optimization Passes?

Diego Huang diego.huang at utoronto.ca
Mon Dec 8 09:56:25 PST 2008


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.

Thank you,

Diego




More information about the llvm-dev mailing list