[PATCH] D12448: Add const overload of findRegisterUseOperand
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 28 14:58:13 PDT 2015
arsenm created this revision.
arsenm added a subscriber: llvm-commits.
http://reviews.llvm.org/D12448
Files:
include/llvm/CodeGen/MachineInstr.h
Index: include/llvm/CodeGen/MachineInstr.h
===================================================================
--- include/llvm/CodeGen/MachineInstr.h
+++ include/llvm/CodeGen/MachineInstr.h
@@ -903,6 +903,14 @@
return (Idx == -1) ? nullptr : &getOperand(Idx);
}
+ const MachineOperand *findRegisterUseOperand(
+ unsigned Reg, bool isKill = false,
+ const TargetRegisterInfo *TRI = nullptr) const {
+ return const_cast<MachineInstr *>(this)->findRegisterUseOperand(Reg,
+ isKill,
+ TRI);
+ }
+
/// Returns the operand index that is a def of the specified register or
/// -1 if it is not found. If isDead is true, defs that are not dead are
/// skipped. If Overlap is true, then it also looks for defs that merely
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12448.33473.patch
Type: text/x-patch
Size: 877 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150828/47fe8272/attachment.bin>
More information about the llvm-commits
mailing list