mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 19:03:50 +00:00
iterator based accessors for CodeGenInstruction operand list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206550 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a3610962a9
commit
3db76ccd4e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user