mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 07:00:59 +00:00
Add MachineRegisterInfo::use_empty.
llvm-svn: 52451
This commit is contained in:
parent
cba32609d2
commit
e447be0532
@ -90,6 +90,10 @@ public:
|
||||
}
|
||||
static use_iterator use_end() { return use_iterator(0); }
|
||||
|
||||
/// use_empty - Return true if there are no instructions using the specified
|
||||
/// register.
|
||||
bool use_empty(unsigned RegNo) const { return use_begin(RegNo) == use_end(); }
|
||||
|
||||
|
||||
/// replaceRegWith - Replace all instances of FromReg with ToReg in the
|
||||
/// machine function. This is like llvm-level X->replaceAllUsesWith(Y),
|
||||
|
Loading…
x
Reference in New Issue
Block a user