[mlir][EDSC] Allow conditionBuilder to capture the IfOp
authorNicolas Vasilache <ntv@google.com>
Fri, 17 Jul 2020 15:09:35 +0000 (11:09 -0400)
committerNicolas Vasilache <ntv@google.com>
Fri, 17 Jul 2020 15:16:26 +0000 (11:16 -0400)
commit08521abb3a7cafa50a0acdb16eca75162d96f514
treeb6f11d977882269ff2d23dbb9ad3418918d83380
parent6c43ed608d5de84f0d17960b2b449a4a7fc0ca2a
[mlir][EDSC] Allow conditionBuilder to capture the IfOp

When the IfOp returns values, it can easily be obtained from one of the Values.
However, when no values are returned, the information is lost.
This revision lets the caller specify a capture IfOp* to return the produced
IfOp.

Differential Revision: https://reviews.llvm.org/D84025
mlir/include/mlir/Dialect/SCF/EDSC/Builders.h
mlir/lib/Dialect/SCF/EDSC/Builders.cpp