[LLVMdev] Instruction Conversion
Rotem Varon
varonrotem at gmail.com
Sat May 9 11:34:46 PDT 2009
Hi,
Let say i am writing a code inside basic block pass and iterating all the
instructions inside,
and i encountered in this instruction :
%3 = add i32 %1, 2
I want to convert this instruction to something like this:
add R1, 2, R3
I know the opocode, but i what i need is, the operands %1 and 2 (in this
example).
I will be grateful if some one will tell me how to do so .
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090509/acfd0df2/attachment.html>
More information about the llvm-dev
mailing list