projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a02f02
)
Add some short-hand accessors
author
Chris Lattner
<sabre@nondot.org>
Mon, 4 Sep 2006 23:05:29 +0000
(23:05 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 4 Sep 2006 23:05:29 +0000
(23:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30104
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/MachineInstr.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineInstr.h
b/include/llvm/CodeGen/MachineInstr.h
index 35092b5536f3a997c301f9b1a15d1842b8ddffd9..443956e401d2d0c7f149f21ced54afb09a181082 100644
(file)
--- a/
include/llvm/CodeGen/MachineInstr.h
+++ b/
include/llvm/CodeGen/MachineInstr.h
@@
-111,6
+111,10
@@
public:
/// 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; }