[llvm-dev] How to get the string representation of an instruction? (original) (raw)

Roman Lebedev via llvm-dev llvm-dev at lists.llvm.org
Wed Jan 16 09:25:24 PST 2019


On Wed, Jan 16, 2019 at 7:40 PM Peng Yu via llvm-dev <llvm-dev at lists.llvm.org> wrote:

> Create a rawstringostream object and use << to print to it. The_ _> underlying string will contain the textual representation. This is cumbersome. There is not a way to directly get the std::string or char * representation of IR text? Were .dump() functions mentioned already?

-- Regards, Peng Roman.


LLVM Developers mailing list llvm-dev at lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev



More information about the llvm-dev mailing list