Refactor getUsedValuesDefinedAbove to expose a variant taking a callback (NFC)
authorMehdi Amini <aminim@google.com>
Sun, 8 Sep 2019 00:02:07 +0000 (17:02 -0700)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Sun, 8 Sep 2019 00:03:01 +0000 (17:03 -0700)
commit6443583bfd9ca8d1934c5ab240dc11b44c7cc0d4
tree68347006a1f91853d0dd71d51ed26c0ecc2332d4
parent713ab0dde796f65e6289f9af1f3fe279d17554d0
Refactor getUsedValuesDefinedAbove to expose a variant taking a callback (NFC)

This will allow clients to implement a different collection strategy on these
values, including collecting each uses within the region for example.

PiperOrigin-RevId: 267803978
mlir/include/mlir/Transforms/RegionUtils.h
mlir/lib/Transforms/Utils/RegionUtils.cpp