mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-22 04:22:57 +02:00
Add some short-hand accessors
llvm-svn: 30104
This commit is contained in:
parent
de18749e1f
commit
35f1acab3a
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user