[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineInstr.h

Evan Cheng evan.cheng at apple.com
Thu Feb 22 17:03:56 PST 2007



Changes in directory llvm/include/llvm/CodeGen:

MachineInstr.h updated: 1.212 -> 1.213
---
Log message:

Use findRegisterUseOperand to find a kill of particular register.

---
Diffs of the changes:  (+3 -2)

 MachineInstr.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.212 llvm/include/llvm/CodeGen/MachineInstr.h:1.213
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.212	Mon Feb 19 15:49:53 2007
+++ llvm/include/llvm/CodeGen/MachineInstr.h	Thu Feb 22 19:03:39 2007
@@ -390,8 +390,9 @@
   }
 
   /// findRegisterUseOperand() - Returns the MachineOperand that is a use of
-  /// the specific register or NULL if it is not found.
-  MachineOperand *findRegisterUseOperand(unsigned Reg);
+  /// the specific register or NULL if it is not found. It further tightening
+  /// the search criteria to a use that kills the register if isKill is true.
+  MachineOperand *findRegisterUseOperand(unsigned Reg, bool isKill = false);
   
   /// findRegisterDefOperand() - Returns the MachineOperand that is a def of
   /// the specific register or NULL if it is not found.






More information about the llvm-commits mailing list