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:
cb1aa8d
)
Add methods
author
Chris Lattner
<sabre@nondot.org>
Mon, 17 Jan 2005 02:24:59 +0000
(
02:24
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 17 Jan 2005 02:24:59 +0000
(
02:24
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19627
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/CodeGen/SelectionDAGNodes.h
patch
|
blob
|
history
diff --git
a/include/llvm/CodeGen/SelectionDAGNodes.h
b/include/llvm/CodeGen/SelectionDAGNodes.h
index d872222c8a6841c1d3f01d995c32b092c47e57ec..b721adac1574fc76477d72c1728a2c8a12a88ae7 100644
(file)
--- a/
include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/
include/llvm/CodeGen/SelectionDAGNodes.h
@@
-410,6
+410,10
@@
public:
bool use_empty() const { return Uses.empty(); }
bool hasOneUse() const { return Uses.size() == 1; }
+ typedef std::vector<SDNode*>::const_iterator use_iterator;
+ use_iterator use_begin() const { return Uses.begin(); }
+ use_iterator use_end() const { return Uses.end(); }
+
/// hasNUsesOfValue - Return true if there are exactly NUSES uses of the
/// indicated value. This method ignores uses of other values defined by this
/// operation.