mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-03 02:17:41 +00:00
Add some short-hand accessors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30104 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3a02f020eb
commit
930ab738c7
@ -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…
x
Reference in New Issue
Block a user