On 10/23/13 12:34 PM, Rekha R wrote:> Hi,
>
> I was trying to implement an analysis. I wanted to make sure the
> result of the analysis is as expected.
> This requires printing Values and opcode. How can I go about this?
You can use the Value::dump() method to print the value out to either
stderr or stdout (I don't recall which it is).
Since Instruction is a subclass of Value, it has a dump() method as well.
-- John T.
>
> --
> Rekha
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://lists.llvm.org/pipermail/llvm-dev/attachments/20131023/1c6dc51c/attachment.html>