[llvm] r344338 - Fix documentation of MachineInstr::getNumOperands
Sam Parker via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 12 05:26:37 PDT 2018
Author: sam_parker
Date: Fri Oct 12 05:26:37 2018
New Revision: 344338
URL: http://llvm.org/viewvc/llvm-project?rev=344338&view=rev
Log:
Fix documentation of MachineInstr::getNumOperands
The documentation stated "Access to explicit operands of the
instruction." This is misleading, as it also lists implicit operands.
Patch by Philip Ginsbach.
Differential Revision: https://reviews.llvm.org/D35481
Modified:
llvm/trunk/include/llvm/CodeGen/MachineInstr.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineInstr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineInstr.h?rev=344338&r1=344337&r2=344338&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineInstr.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineInstr.h Fri Oct 12 05:26:37 2018
@@ -408,7 +408,7 @@ public:
/// Returns the opcode of this MachineInstr.
unsigned getOpcode() const { return MCID->Opcode; }
- /// Access to explicit operands of the instruction.
+ /// Retuns the total number of operands.
unsigned getNumOperands() const { return NumOperands; }
const MachineOperand& getOperand(unsigned i) const {
More information about the llvm-commits
mailing list