[LLVMdev] Automating Diagnostic Instrumentation

Reid Spencer reid at x10sys.com
Thu Apr 8 02:45:02 PDT 2004


On Wed, 2004-04-07 at 09:45, Chris Lattner wrote:
> Sure:  analyze -print-callgraph foo.bc

Cool. Didn't know about that.

> There are various instrumentation passes already in LLVM, for example, to
> trace instructions as they execute, to insert profiling instrumentation,
> etc.  These live in lib/Transforms/Instrumentation/
> ...
> I would take a look at other passes that do similar things.  For example,
> look at clients of the CallGraph class and look at a couple of the
> instrumentation classes.  If you know what code you want to insert, it
> should be fairly straight-forward.
> 

Okay, will do. I didn't know we had a CallGraph class already!

Reid.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20040408/13468d3f/attachment.sig>


More information about the llvm-dev mailing list