[llvm-dev] How to get the textual representation of an IR instruction?

Dipanjan Das via llvm-dev llvm-dev at lists.llvm.org
Fri May 12 08:34:55 PDT 2017


If 'I' is of type llvm::Instruction, we can print out the human-readable
form (textual representation) of it by by, errs() << I;

I want the assign the exact same representation to a std::string to C type
string. How can I do that?

-- 

Thanks & Regards,
Dipanjan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170512/d18ce9b8/attachment.html>


More information about the llvm-dev mailing list