<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1479" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>If you want to be particularly lazy you can just
type M.dump() at the very end of your pass too. Then you don't even had to
dissamble any bytecode files. (Assuming M is the name of your Module, and you
are doing a ModulePass, otherwise F.dump() for a FunctionPass with F as the name
of the function).</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=tanusharma_04@yahoo.com href="mailto:tanusharma_04@yahoo.com">Tanu
Sharma</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=llvmdev@cs.uiuc.edu
href="mailto:llvmdev@cs.uiuc.edu">LLVM Developers Mailing List</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, March 09, 2005 2:18
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [LLVMdev] Question</DIV>
<DIV><BR></DIV>
<DIV>This is exactly what i m trying :</DIV>
<DIV> </DIV>
<DIV>opt -load /home/tsharma/ankur/llvm/Debug/lib/LLVMHello.so -hello
<helloprog.bc> /dev/null</DIV>
<DIV> </DIV>
<DIV>Tanu<BR><BR><BR><B><I>Chris Lattner <<A
href="mailto:sabre@nondot.org">sabre@nondot.org</A>></I></B> wrote:</DIV>
<BLOCKQUOTE class=replbq
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">On
Wed, 9 Mar 2005, Tanu Sharma wrote:<BR><BR>> I wrote a pass which
randomizes basic blocks and insert new block.But <BR>> when i run another
pass over it which simply lists all basic blocks I <BR>> don't get to see
the changes.The bytecode file is not changed.Why is <BR>> that
?<BR><BR>Maybe your random number generator sucks? :-)<BR><BR>Can you tell
me exactly what options your using to run your pass? I <BR>assume you're
running it with 'opt' like this?<BR><BR>opt in.bc -randomize |
llvm-dis<BR><BR>?<BR><BR>-Chris<BR><BR>--
<BR>http://nondot.org/sabre/<BR>http://llvm.cs.uiuc.edu/<BR><BR>_______________________________________________<BR>LLVM
Developers mailing list<BR>LLVMdev@cs.uiuc.edu
http://llvm.cs.uiuc.edu<BR>http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev<BR></BLOCKQUOTE>
<P>
<HR SIZE=1>
Celebrate Yahoo!'s 10th Birthday! <BR><A
href="http://birthday.yahoo.com/netrospective/">Yahoo! Netrospective: 100
Moments of the Web</A>
<P>
<HR>
<P></P>_______________________________________________<BR>LLVM Developers
mailing
list<BR>LLVMdev@cs.uiuc.edu
http://llvm.cs.uiuc.edu<BR>http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev<BR></BLOCKQUOTE></BODY></HTML>