[PATCH] D152655: [MC] Merge MC[Sub,Super]RegIterator with mc_[sub,super]_reg_iterator

Sergei Barannikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 11 19:15:39 PDT 2023


barannikov88 added a comment.

This is an NFC to make D152098 <https://reviews.llvm.org/D152098> simpler.

There is a bit of boilerplate in the form of overridden `operator++` because forward iterators
require `operator*` to return by reference ( C++ <= 17 AFAIK). `concat_range` relies on this.
`operator++` caches the value so that `operator*` can return a reference.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152655/new/

https://reviews.llvm.org/D152655



More information about the llvm-commits mailing list