MachineInstr* mi; unsigned int opcode = mi->getOpcode(); // return the opcode of the instruction
MachineBasicBlock::iterator mi; unsigned int opcode = mi->getOpcode(); // return the opcode of the instructionThis example obtains the opcode of a LOAD instruction by calling the getOpcode() method on a basic block iterator. This method is a part of the LLVM library.