[mlir][transform] Add ForeachOp to transform dialect
authorMatthias Springer <springerm@google.com>
Tue, 26 Jul 2022 16:06:57 +0000 (18:06 +0200)
committerMatthias Springer <springerm@google.com>
Tue, 26 Jul 2022 16:07:44 +0000 (18:07 +0200)
commitbffec215abbd643ceac83e58caa244ded8cd837c
tree26a0fd9f0d330fee579aebbe8848c96faa53f7f0
parenta2772fc806af7db5d58c7e3d604270a92fff79de
[mlir][transform] Add ForeachOp to transform dialect

This op "unbatches" an op handle and executes the loop body for each payload op.

Differential Revision: https://reviews.llvm.org/D130257
mlir/include/mlir/Dialect/Transform/IR/TransformDialect.td
mlir/include/mlir/Dialect/Transform/IR/TransformOps.td
mlir/lib/Dialect/Transform/IR/TransformOps.cpp
mlir/test/Dialect/Transform/ops-invalid.mlir
mlir/test/Dialect/Transform/ops.mlir
mlir/test/Dialect/Transform/test-interpreter.mlir