[llvm-dev] How to get the string representation of an instruction? (original) (raw)
Peng Yu via llvm-dev llvm-dev at lists.llvm.org
Wed Jan 16 08:39:53 PST 2019
- Previous message: [llvm-dev] How to get the string representation of an instruction?
- Next message: [llvm-dev] How to get the string representation of an instruction?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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?
-- Regards, Peng
- Previous message: [llvm-dev] How to get the string representation of an instruction?
- Next message: [llvm-dev] How to get the string representation of an instruction?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]