aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineInstr.h
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-02-12 01:34:03 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-02-12 01:34:03 +0000
commitcd0b3a90aa34bd42d75d8d86f74ca4972145781d (patch)
tree43b8fd16b8739f4eecd338956fcec16baf30dc2e /include/llvm/CodeGen/MachineInstr.h
parentf2f5b3950e2d65691b882fdeecaaee16e71a4b39 (diff)
downloadexternal_llvm-cd0b3a90aa34bd42d75d8d86f74ca4972145781d.zip
external_llvm-cd0b3a90aa34bd42d75d8d86f74ca4972145781d.tar.gz
external_llvm-cd0b3a90aa34bd42d75d8d86f74ca4972145781d.tar.bz2
Remove getOpCode(). Help doxygenify some comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11338 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstr.h')
-rw-r--r--include/llvm/CodeGen/MachineInstr.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h
index aa0ae5c..ff05631 100644
--- a/include/llvm/CodeGen/MachineInstr.h
+++ b/include/llvm/CodeGen/MachineInstr.h
@@ -375,19 +375,13 @@ public:
///
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 {