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 | 0e28a3554b10f58f8a5c787720b62829b5553af8 (patch) | |
tree | e0ad31bb3b1695ba83a4e9ad6b543f684daeea20 | |
parent | c7abca54cff532fc9610fbc3c9a0d8512467b854 (diff) | |
download | bcm5719-llvm-0e28a3554b10f58f8a5c787720b62829b5553af8.tar.gz bcm5719-llvm-0e28a3554b10f58f8a5c787720b62829b5553af8.zip |
iterator based accessors for CodeGenInstruction operand list.
llvm-svn: 206550
-rw-r--r-- | llvm/utils/TableGen/CodeGenInstruction.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeGenInstruction.h b/llvm/utils/TableGen/CodeGenInstruction.h index 00d89bf1037..75afab5c693 100644 --- a/llvm/utils/TableGen/CodeGenInstruction.h +++ b/llvm/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 |