docs: def get_by_flags(self, flags):
          """Iterate all register infos matching the given flags."""
          for reg in self._reg_infos:
              if reg.flags & flags == flags:
                  yield reg