[Mlir-commits] [mlir] [mlir][python] meta region_op (PR #75673)
Maksim Levental
llvmlistbot at llvm.org
Wed Dec 20 08:53:42 PST 2023
makslevental wrote:
> Thanks for the PR. Out of curiosity: How would you model an operation that produces results and has a region with this approach?
This is already being done here with the `get_op_result_or_op_results(op)`; the name of function that's wrapped becomes the results.
> Do you have ideas on how to generalize this for a Region with multiple Blocks or an operation with multiple Regions, e.g. `scf.if`?
Yes I have a `region_adder`, which I cooked up exactly for `scf.if`. That'll be in the next PR.
https://github.com/llvm/llvm-project/pull/75673
More information about the Mlir-commits
mailing list