arch: Use finditer in the (Sub)OperandList classes.
authorGabe Black <gabeblack@google.com>
Wed, 30 Sep 2020 04:11:19 +0000 (21:11 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 13 Oct 2020 04:57:44 +0000 (04:57 +0000)
commit14bdba8c66cd1252e5837e5a4ab77426b9541469
treeaa84fb7070475276f2cff629144cf509f8e4d3fd
parenta44460bf3d0226e95158e19b9e72b6f048d85bdb
arch: Use finditer in the (Sub)OperandList classes.

This method returns an iterator which goes through all the
non-overlapping matches for the given RE, without having to hand code
that same behavior with the more basic "search" method.

Change-Id: I4c4d95cfc8f72125566222aebb56604c3e9e2b03
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35817
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/isa_parser/operand_list.py