[PATCH] D113511: [mlir] Optimize usage of llvm::mapped_iterator

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 15 13:46:18 PST 2021


dblaikie added inline comments.
Herald added a subscriber: sdasgup3.


================
Comment at: llvm/include/llvm/ADT/STLExtras.h:310-312
+/// A base type of mapped iterator, that is useful for building derived
+/// iterators that do not need/want to store the map function (as in
+/// mapped_iterator). These iterators must simply provide a `mapElement` method
----------------
Could this be implemented in mapped_iterator as an empty optimization if the mapping function happens to be stateless?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113511



More information about the llvm-commits mailing list