mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
iterator based accessors for CodeGenInstruction operand list.
llvm-svn: 206550
This commit is contained in:
parent
efced391b3
commit
987cfde175
@ -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