<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 10/23/13 12:34 PM, Rekha R wrote:<br>
</div>
<blockquote
cite="mid:CADFTsskj4ueTf1FB4W=Y2u8Ru=d5mbQh6QD-jdBSezKzc0bouA@mail.gmail.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<div dir="ltr">
<div>
<div>Hi,<br>
<br>
</div>
I was trying to implement an analysis. I wanted to make sure
the result of the analysis is as expected.<br>
</div>
This requires printing Values and opcode. How can I go about
this?<br clear="all">
</div>
</blockquote>
<br>
You can use the Value::dump() method to print the value out to
either stderr or stdout (I don't recall which it is).<br>
<br>
Since Instruction is a subclass of Value, it has a dump() method as
well.<br>
<br>
-- John T.<br>
<br>
<blockquote
cite="mid:CADFTsskj4ueTf1FB4W=Y2u8Ru=d5mbQh6QD-jdBSezKzc0bouA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div><br>
-- <br>
Rekha
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
</blockquote>
<br>
</body>
</html>