<div dir="ltr">Hi,<div><br></div><div>Let say i am writing a code inside basic block pass and iterating all the instructions inside,</div><div>and i encountered in this instruction :</div><div><br></div><div>%3 = add i32 %1, 2</div>
<div><br></div><div>I want to convert this instruction to something like this:</div><div><br></div><div>add R1, 2, R3</div><div><br></div><div>I know the opocode, but i what i need is, the operands %1 and 2 (in this example).</div>
<div><br></div><div>I will be grateful if some one will tell me how to do so .</div></div>