MachineBasicBlock::iterator iter = MBB.begin(); MachineInstr* MI = &(*iter); unsigned int numOperands = MI->getNumOperands();In this example, we create an iterator for the machine basic block MBB and initialize it to the beginning of the block. We then create a pointer to a machine instruction (MI) and initialize it to the first instruction in the block. Finally, we use the getNumOperands function to determine the number of operands in the instruction (MI). Package library: LLVM Core Libraries.