[cfe-dev] LLVM instruction as a string

Gordon Keiser gkeiser at arxan.com
Tue Oct 30 22:18:41 PDT 2012


As far as the first question, using operator << on the instruction should print it, the LHS needs to be a raw_ostream.

-Gordon

From: cfe-dev-bounces at cs.uiuc.edu [mailto:cfe-dev-bounces at cs.uiuc.edu] On Behalf Of Era Jain
Sent: Wednesday, October 31, 2012 12:30 AM
To: cfe-dev at cs.uiuc.edu
Subject: [cfe-dev] LLVM instruction as a string

Hi, I am trying to get a llvm IR instruction as a string. How can this be done?
Also, is there a way to know of the mapping of program variables to llvm registers?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121031/c25cf71f/attachment.html>


More information about the cfe-dev mailing list