<div dir="ltr">Hi,<div><br></div><div>I have a basic machine function pass in this fashion:</div><div><br></div><div><div>bool Foo::runOnMachineFunction(MachineFunction &Fn) {</div><div>  for (auto &BB : Fn) {</div><div>    for (MachineBasicBlock::iterator I = BB.begin(), E = BB.end(); I != E; ++I) {</div><div>      if (I->isPseudo())</div><div>        continue;</div><div>      // inspect opcode of I here</div><div>      }</div><div>    }</div><div>  }</div><div>  return true;</div><div>}</div></div><div><br></div><div>As the comment suggests I want to inspect the target-specific opcode of each instruction. By opcode I mean the actual machine code (=encoding of that in struction as an array of bytes), not the integer descriptor returned by I->getOpcode().</div><div><br></div><div>I don't see how this can be done. Maybe anybody can help.</div><div><br></div><div>Cheers,</div><div>Peter</div></div>