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:
625986a
)
Add MachineRegisterInfo::use_empty.
author
Evan Cheng
<evan.cheng@apple.com>
Wed, 18 Jun 2008 07:47:55 +0000
(07:47 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Wed, 18 Jun 2008 07:47:55 +0000
(07:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52451
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/MachineRegisterInfo.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/MachineRegisterInfo.h
b/include/llvm/CodeGen/MachineRegisterInfo.h
index f5fda9bfc02ee3b690ef4647bd12e2acbfe7cdd9..b93794c1be256404ef6986ea0bde52cdad8d1665 100644
(file)
--- a/
include/llvm/CodeGen/MachineRegisterInfo.h
+++ b/
include/llvm/CodeGen/MachineRegisterInfo.h
@@
-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),