[mlir][linalg][bufferize][NFC] Change findValueInReverseUseDefChain signature
authorMatthias Springer <springerm@google.com>
Thu, 21 Oct 2021 08:29:02 +0000 (17:29 +0900)
committerMatthias Springer <springerm@google.com>
Thu, 21 Oct 2021 08:34:05 +0000 (17:34 +0900)
commit36ec848dc7186b9713bb69ade134f9b2b7d65070
tree8d9b5187d1edec80b5a63631573b0fe23b9eb9d2
parent9448cdc90007611659ecbec4dca18a83f06bc4c3
[mlir][linalg][bufferize][NFC] Change findValueInReverseUseDefChain signature

This commit is in preparation for scf.if support.

* `condition` in findValueInReverseUseDefChain takes a Value instead of OpOperand*.
* Return a SetVector<Value> instead of a single Value. This SetVector always contains exactly one Value at the moment.

Differential Revision: https://reviews.llvm.org/D111928
mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp