mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 20:26:07 +00:00
Add MachineRegisterInfo::use_empty.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52451 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -90,6 +90,10 @@ public:
|
|||||||
}
|
}
|
||||||
static use_iterator use_end() { return use_iterator(0); }
|
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
|
/// replaceRegWith - Replace all instances of FromReg with ToReg in the
|
||||||
/// machine function. This is like llvm-level X->replaceAllUsesWith(Y),
|
/// machine function. This is like llvm-level X->replaceAllUsesWith(Y),
|
||||||
|
Reference in New Issue
Block a user