[LLVMdev] Dynamic Profiling - Instrumentation basic query

Silky Arora silkyar at umich.edu
Sat Jan 12 20:28:16 PST 2013


Hi,

I am new to LLVM, and would like to write a dynamic profiler, say which prints out the load address of all the load instructions encountered in a program.
>From what I could pick up, edge-profiler.cpp increments a counter dynamically which is somehow dumped onto llvmprof.out by profile.pl

Could anyone explain me how this works? Can I instrument the code to dump out the load addresses or other such information to a file? 

Thanks!






More information about the llvm-dev mailing list