<div dir="ltr">Hello,<div><br></div><div>I would like to instrument backend generated code to recover all load and store instructions' operands. What would be the best way to implement this instrumentation. </div><div><br>I was thinking of creating a MachineFunctionPass, get all load and store instructions and add an instruction that writes the operands of Load/Store instructions to an address. How can I control the address of instrumentation ? </div><div><br></div><div>I think getting all load and store instructions will be easy (I will do something similar to ARMLoadStoreOptimizer.cpp). However, I don't know how to control the instrumentation address. Can anybody give me pointer on this ? Or any other tips/recommendations are appreciated as well. </div><div><br></div><div>Thank you very much for your help and time.<br><br>Best Regards,<br>MAW</div><div><br></div></div>