[llvm-dev] Modify Interpreter/Execution.cpp

Ammar Naqvi via llvm-dev llvm-dev at lists.llvm.org
Sun Apr 10 15:04:10 PDT 2016

Hello Everyone,

I'm trying to add a new instruction to the LLVM build, for simplicity
testing I'm just modifying the add instruction; creating a new one called
modAdd which adds 1 to it's LHS value. Basically it's an integer increment

Now i followed this : http://llvm.org/docs/ExtendingLLVM.html for adding a
new instruction but i can see that i'll need to change Execution.cpp and
add some lines such as
http://llvm.org/docs/doxygen/html/Execution_8cpp_source.html#l02026 for
doing a +1.

How can i do this, how to modify the interpreter/execution.cpp for LLVM to
understand my IR instruction?

Best Regards,
Ammar :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160410/c0c5c277/attachment.html>

More information about the llvm-dev mailing list