[LLVMdev] Dynamic Profiling - Instrumentation basic query

Criswell, John T criswell at illinois.edu
Sun Jan 13 21:06:58 PST 2013

There is code that does this for older versions of LLVM.  I believe it is in the giri project in the LLVM SVN repository.  I can look into more details when I get back from vacation. Swarup may also be able to provide information on the giri code.

-- John T.

From: llvmdev-bounces at cs.uiuc.edu [llvmdev-bounces at cs.uiuc.edu] on behalf of Silky Arora [silkyar at umich.edu]
Sent: Saturday, January 12, 2013 10:28 PM
To: llvmdev at cs.uiuc.edu
Subject: [LLVMdev] Dynamic Profiling - Instrumentation basic query


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?


LLVM Developers mailing list
LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu

More information about the llvm-dev mailing list