diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-17 02:24:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-17 02:24:59 +0000 |
commit | 7ece380440238ad0630a225b85a09a2dbed1165a (patch) | |
tree | 143cd5738fc48f2e5119deec80425734a4ac0872 /include/llvm/CodeGen | |
parent | cb1aa8d772602a53970314a8ac6b88569a1f0e26 (diff) | |
download | external_llvm-7ece380440238ad0630a225b85a09a2dbed1165a.zip external_llvm-7ece380440238ad0630a225b85a09a2dbed1165a.tar.gz external_llvm-7ece380440238ad0630a225b85a09a2dbed1165a.tar.bz2 |
Add methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19627 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index d872222..b721ada 100644 --- 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. |