Fix a broken doxygen comment, and reword it for clarity.
authorDan Gohman <gohman@apple.com>
Tue, 6 May 2008 00:20:10 +0000 (00:20 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 6 May 2008 00:20:10 +0000 (00:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50687 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineInstr.h
lib/CodeGen/MachineInstr.cpp

index ff64e7e2e693aceb1d996cad5236511823d6a10a..0c657db6dcb93e15d457601e889745f02b08168e 100644 (file)
@@ -184,10 +184,9 @@ public:
   }
   
   /// findRegisterDefOperandIdx() - Returns the operand index that is a def of
-  /// the specific register or -1 if it is not found. It further tightening
-  /// the search criteria to a def that is dead the register if isDead is true.
-  /// If TargetRegisterInfo is passed, then it also checks if there is a def of
-  /// a super-register.
+  /// the specified register or -1 if it is not found. If isDead is true, defs
+  /// that are not dead are skipped. If TargetRegisterInfo is non-null, then it
+  /// also checks if there is a def of a super-register.
   int findRegisterDefOperandIdx(unsigned Reg, bool isDead = false,
                                 const TargetRegisterInfo *TRI = NULL) const;
 
index 1275909dd91572395a4e2acea44c59c1bdb46f81..135718acc703eff7fc94e061f7c20c41d2386a35 100644 (file)
@@ -553,8 +553,9 @@ int MachineInstr::findRegisterUseOperandIdx(unsigned Reg, bool isKill,
 }
   
 /// findRegisterDefOperandIdx() - Returns the operand index that is a def of
-/// the specific register or -1 if it is not found. It further tightening
-  /// the search criteria to a def that is dead the register if isDead is true.
+/// the specified register or -1 if it is not found. If isDead is true, defs
+/// that are not dead are skipped. If TargetRegisterInfo is non-null, then it
+/// also checks if there is a def of a super-register.
 int MachineInstr::findRegisterDefOperandIdx(unsigned Reg, bool isDead,
                                           const TargetRegisterInfo *TRI) const {
   for (unsigned i = 0, e = getNumOperands(); i != e; ++i) {