[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineInstr.h
Brian Gaeke
gaeke at cs.uiuc.edu
Wed Feb 11 19:35:02 PST 2004
Changes in directory llvm/include/llvm/CodeGen:
MachineInstr.h updated: 1.126 -> 1.127
---
Log message:
Remove getOpCode(). Help doxygenify some comments.
---
Diffs of the changes: (+5 -11)
Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.126 llvm/include/llvm/CodeGen/MachineInstr.h:1.127
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.126 Tue Feb 10 15:43:11 2004
+++ llvm/include/llvm/CodeGen/MachineInstr.h Wed Feb 11 19:34:03 2004
@@ -375,19 +375,13 @@
///
MachineInstr(MachineBasicBlock *MBB, int Opcode, unsigned numOps);
-
- // The opcode.
- //
+ /// Accessors for opcode and associated flags.
+ ///
const int getOpcode() const { return opCode; }
- const int getOpCode() const { return opCode; }
-
- // Opcode flags.
- //
- unsigned getOpCodeFlags() const { return opCodeFlags; }
+ unsigned getOpCodeFlags() const { return opCodeFlags; }
- //
- // Access to explicit operands of the instruction
- //
+ /// Access to explicit operands of the instruction.
+ ///
unsigned getNumOperands() const { return operands.size() - numImplicitRefs; }
const MachineOperand& getOperand(unsigned i) const {
More information about the llvm-commits
mailing list