<div dir="ltr">Hello everyone,<div>I am trying to write a code to do the following:</div><div>1. Get an ARM machine instruction</div><div>2. Find destination register of that instruction that has been written </div><div>3. set a bit in a vector, according to that register number. (Since it's ARM, I have a 15 bit vector)</div><div>It means if I have :</div><div>add<span style="white-space:pre"> </span>r0, r1, r0</div><div>I want to get r0 as dest reg and set the index 0 of my vector to 1.</div><div><br></div><div>I get my machine instruction, but I don't know how to get dest reg. I looked at MachineInstr.h but couldn't find it out.</div><div>Also I want to know which instructions to excluse from this routine, for example str instruction does not write to a dest reg or branch instruction. Are there any other instruction.</div><div>Thanks for your help,</div><div>Fami</div><div><br></div></div>