mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-03 14:31:10 +00:00
iterator_range accessor for CodeGenTarget instruction list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206551 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3db76ccd4e
commit
7b771af259
@ -156,7 +156,6 @@ namespace llvm {
|
||||
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
|
||||
/// specified name, abort.
|
||||
|
@ -171,6 +171,9 @@ public:
|
||||
typedef std::vector<const CodeGenInstruction*>::const_iterator inst_iterator;
|
||||
inst_iterator inst_begin() const{return getInstructionsByEnumValue().begin();}
|
||||
inst_iterator inst_end() const { return getInstructionsByEnumValue().end(); }
|
||||
iterator_range<inst_iterator> instructions() const {
|
||||
return iterator_range<inst_iterator>(inst_begin(), inst_end());
|
||||
}
|
||||
|
||||
|
||||
/// isLittleEndianEncoding - are instruction bit patterns defined as [0..n]?
|
||||
|
Loading…
x
Reference in New Issue
Block a user