Fix documentation of MachineInstr::getNumOperands
Needs ReviewPublic

Authored by philipginsbach on Mon, Jul 17, 5:40 AM.

Details

Summary

The current documentation states "Access to explicit operands of the instruction."
This is misleading, as it also lists implicit operands:

const_mop_iterator operands_end() const { return Operands + NumOperands; }

iterator_range<mop_iterator> implicit_operands() {
  return make_range(explicit_operands().end(), operands_end());
}

Diff Detail