[PATCH] D12448: Add const overload of findRegisterUseOperand

hfinkel@anl.gov via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 8 12:57:01 PDT 2015


hfinkel added a subscriber: hfinkel.
hfinkel accepted this revision.
hfinkel added a reviewer: hfinkel.
This revision is now accepted and ready to land.

================
Comment at: include/llvm/CodeGen/MachineInstr.h:909
@@ +908,3 @@
+    const TargetRegisterInfo *TRI = nullptr) const {
+    return const_cast<MachineInstr *>(this)->findRegisterUseOperand(Reg,
+                                                                    isKill,
----------------
Can you please put the line break after the -> so that for formatting is not so painful. Otherwise, LGTM. I assume you'll be using this somewhere soon.



http://reviews.llvm.org/D12448





More information about the llvm-commits mailing list