This is an archive of the discontinued LLVM Phabricator instance.

[mlir][pdl] OperationOp should not be side-effect free
ClosedPublic

Authored by Mogball on Jan 20 2022, 12:11 PM.

Details

Summary

Unbound OperationOp in the matcher (i.e. one with no uses) is already disallowed by the verifier. However, an OperationOp in the rewriter is not side-effect free -- it's creating an op!

Diff Detail

Event Timeline

Mogball created this revision.Jan 20 2022, 12:11 PM
Mogball requested review of this revision.Jan 20 2022, 12:11 PM
Mogball updated this revision to Diff 401733.Jan 20 2022, 12:12 PM

Fix diff .-.

Mogball edited the summary of this revision. (Show Details)
rriddle accepted this revision.Jan 20 2022, 12:15 PM

We will likely need to make these dynamic based on the situation, but LGTM for now.

This revision is now accepted and ready to land.Jan 20 2022, 12:15 PM
This revision was landed with ongoing or failed builds.Jan 20 2022, 12:22 PM
This revision was automatically updated to reflect the committed changes.