[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
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
doing a +1.
How can i do this, how to modify the interpreter/execution.cpp for LLVM to
understand my IR instruction?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev