diff options
author | Jim Grosbach <grosbach@apple.com> | 2014-04-18 02:08:58 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2014-04-18 02:08:58 +0000 |
commit | 3db76ccd4e1cbc14440e15edd87fd2480eef0942 (patch) | |
tree | e1c056ea3438a4908195f80e6001a846e96197c8 /utils/TableGen | |
parent | a3610962a91043142353e0011c0a420708537bdb (diff) | |
download | llvm-3db76ccd4e1cbc14440e15edd87fd2480eef0942.tar.gz llvm-3db76ccd4e1cbc14440e15edd87fd2480eef0942.tar.bz2 llvm-3db76ccd4e1cbc14440e15edd87fd2480eef0942.tar.xz |
iterator based accessors for CodeGenInstruction operand list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
-rw-r--r-- | utils/TableGen/CodeGenInstruction.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/TableGen/CodeGenInstruction.h b/utils/TableGen/CodeGenInstruction.h index 00d89bf103..75afab5c69 100644 --- a/utils/TableGen/CodeGenInstruction.h +++ b/utils/TableGen/CodeGenInstruction.h @@ -149,6 +149,13 @@ namespace llvm { OperandInfo &back() { return OperandList.back(); } const OperandInfo &back() const { return OperandList.back(); } + typedef std::vector<OperandInfo>::iterator iterator; + typedef std::vector<OperandInfo>::const_iterator const_iterator; + iterator begin() { return OperandList.begin(); } + const_iterator begin() const { return OperandList.begin(); } + iterator end() { return OperandList.end(); } + const_iterator end() const { return OperandList.end(); } + /// getOperandNamed - Return the index of the operand with the specified /// non-empty name. If the instruction does not have an operand with the |