binaryen icon indicating copy to clipboard operation
binaryen copied to clipboard

[NFC] Experiment with C++20 coroutines for expression traversal

Open tlively opened this issue 3 years ago • 1 comments

Add a gtest file that is only included in the build when using C++20 or greater that defines a generator utility in terms of C++20 coroutines and then uses that to define generators for traversing Expressions. Unlike our current traversal utilities, these generators leave control flow up to their callers, making it trivial to do things like stop the traversal early or run multiple traversals concurrently, for example to compare two expression trees.

tlively avatar Jan 21 '23 01:01 tlively

  • #5447 Graphite 👈
  • main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @tlively and the rest of your teammates on Graphite Graphite

tlively avatar Jan 21 '23 01:01 tlively