Files
clang-p2996/mlir/test/lib/Dialect/Linalg/TestDataLayoutPropagation.cpp
Han-Chung Wang 04fc471f48 [mlir][linalg] Switch to use OpOperand* in ControlPropagationFn. (#96697)
It's not easy to determine whether we want to propagate pack/unpack ops
because we don't know the (producer, consumer) information. The
revisions switch it to `OpOperand*`, so the control function can capture
the (producer, consumer) pair. E.g.,

```
Operation *producer = opOperand->get().getDefiningOp();
Operation *consumer = opOperand->getOwner();
```
2024-07-08 09:53:09 -07:00

1.6 KiB