Add a generic operand visitor to `GenTree`.
authorPat Gavlin <pagavlin@microsoft.com>
Wed, 28 Jun 2017 14:13:11 +0000 (07:13 -0700)
committerPat Gavlin <pagavlin@microsoft.com>
Thu, 29 Jun 2017 22:10:54 +0000 (15:10 -0700)
commit9f9a7efe3950c8cb22ffdfc7074e26c350bb4b6a
treeb45afaffb3b5da981345b885f7549dbbf30c27f1
parentb38cfeb7b14de9ce182f06b8840f1ccd80ec0095
Add a generic operand visitor to `GenTree`.

This visitor accepts any invokable argument (e.g. lambdas, functors,
etc.) with the following signature:

    `GenTree::VisitResult Visitor(GenTree* operand)`

This visitor is typically more efficient than the operand iterator
due to better opportunities for inlining and shorter dynamic path
lengths when deciding which operands need to be visited.
src/jit/compiler.hpp
src/jit/gentree.h