diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-02-23 01:04:26 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-02-23 01:04:26 +0000 |
commit | 76d7e76c15c258ec4a71fd75a2a32bca3a5e5e27 (patch) | |
tree | 64ce602cfc27a30c7a1527c10772cf73286fb38e /include | |
parent | 96fa612373e258120d351ed14361f964ad22f99d (diff) | |
download | external_llvm-76d7e76c15c258ec4a71fd75a2a32bca3a5e5e27.zip external_llvm-76d7e76c15c258ec4a71fd75a2a32bca3a5e5e27.tar.gz external_llvm-76d7e76c15c258ec4a71fd75a2a32bca3a5e5e27.tar.bz2 |
Use findRegisterUseOperand to find a kill of particular register.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34512 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 9cefe7b..ef06d97 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -390,8 +390,9 @@ public: } /// 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. |