FW: [LLVMdev] basic block tracing

Vikram S. Adve vadve at cs.uiuc.edu
Thu Sep 25 11:29:03 PDT 2003


Rahul,

Were you talking about tracing in the sense of "profiling" (which Anand
did), or tracing of values as they are computed for debugging generated
code (which I did)?

For tracing of values for debugging, the answer is yes: we insert code
in each BB and print out the values computed in that BB that are live at
the end of the BB (so we don't print out temporaries computed and used
within the BB), and we also print out values that are loaded or stored
from/to memory.  You need to link the generated code with
/localhome/vadve/llvm/runtime/libtrace/Bytecode/tracelib.bc or
/localhome/vadve/llvm/runtime/libtrace/Debug/libtrace.o.  Try:
	% cd test/Programs/SingleSource/Shootout/
	% gmake -n TRACE=yes Output/sieve.diff-llc
as an example to see how to run the tracing pass and link the generated
code.

--Vikram
http://www.cs.uiuc.edu/~vadve


-----Original Message-----
From: Anand Shukla [mailto:ashukla at cs.uiuc.edu] 
Sent: Thursday, September 25, 2003 11:00 AM
To: Vikram S. Adve
Subject: RE: [LLVMdev] basic block tracing


Hi,

I think he was referring to the basic block and function tracing that
you
implemented ("lib/Transforms/Instrumentation/TraceValues.cpp"). I
implemented path tracing.

-anand

On Thu, 25 Sep 2003, Vikram S. Adve wrote:

> Rahul,
>
> Anand Shukla implemented the tracing algorithm. I'm copying him
because
> I'm not sure if he is on llvmdev still (though I expect he is).  He
and
> I are busy with our CGO paper still which is why I didn't reply to
your
> question from yesterday (Chris is busy too!).
>
> --Vikram
> http://www.cs.uiuc.edu/~vadve
>
>
> > -----Original Message-----
> > From: llvmdev-admin at cs.uiuc.edu
> > [mailto:llvmdev-admin at cs.uiuc.edu] On Behalf Of Rahul Joshi
> > Sent: Thursday, September 25, 2003 9:05 AM
> > To: llvmdev at cs.uiuc.edu
> > Subject: [LLVMdev] basic block tracing
> >
> >
> > Hi,
> >
> > I have a question about tracing BB's in LLVM. When tracing
> > BB's, does LLVM insert instrumentation code in each BB?
> >
> > Thanks,
> > Rahul
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
> >
>
>




More information about the llvm-dev mailing list