Changes in directory llvm/include/llvm/CodeGen:

MachineInstr.h updated: 1.182 -> 1.183
---
Log message:

Add some short-hand accessors


---
Diffs of the changes:  (+4 -0)

 MachineInstr.h |    4 ++++
 1 files changed, 4 insertions(+)


Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.182 
llvm/include/llvm/CodeGen/MachineInstr.h:1.183
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.182      Wed May 24 12:04:03 2006
+++ llvm/include/llvm/CodeGen/MachineInstr.h    Mon Sep  4 18:05:29 2006
@@ -111,6 +111,10 @@
 
   /// Accessors that tell you what kind of MachineOperand you're looking at.
   ///
+  bool isReg() const { return opType == MO_Register; }
+  bool isImm() const { return opType == MO_Immediate; }
+  bool isMBB() const { return opType == MO_MachineBasicBlock; }
+  
   bool isRegister() const { return opType == MO_Register; }
   bool isImmediate() const { return opType == MO_Immediate; }
   bool isMachineBasicBlock() const { return opType == MO_MachineBasicBlock; }



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to