[llvm-dev] Convert std::string to Instruction*
Tim Northover via llvm-dev
llvm-dev at lists.llvm.org
Thu Nov 14 05:26:30 PST 2019
On Wed, 13 Nov 2019 at 20:32, Niddodi, Chaitra via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> How to correctly convert std::string str to Instruction* inst and perform operations like inst->getNextNode() ?
There's no way to do that in general. The smallest thing containing
instructions LLVM lets you independently parse is a Function. The
"parseAssemblyInto" function in Parser.h will let you parse a Function
and add it to the given Module.
More information about the llvm-dev