summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-05-06 00:20:10 +0000
committerDan Gohman <gohman@apple.com>2008-05-06 00:20:10 +0000
commit72a0bc148c7585b3c1e827c703baff6598c0ea75 (patch)
treea6157a0d18e8fd50e3c8bbe033b084da6e7c6c80 /llvm/lib/CodeGen/MachineInstr.cpp
parent3d1e97227539a4fa973b5668d3702e63fe64c4de (diff)
downloadbcm5719-llvm-72a0bc148c7585b3c1e827c703baff6598c0ea75.tar.gz
bcm5719-llvm-72a0bc148c7585b3c1e827c703baff6598c0ea75.zip
Fix a broken doxygen comment, and reword it for clarity.
llvm-svn: 50687
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineInstr.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp
index 1275909dd91..135718acc70 100644
--- a/llvm/lib/CodeGen/MachineInstr.cpp
+++ b/llvm/lib/CodeGen/MachineInstr.cpp
@@ -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) {
OpenPOWER on IntegriCloud