This is an archive of the discontinued LLVM Phabricator instance.

[PDLL] Properly error out on returning results from native constraints
ClosedPublic

Authored by rriddle on Feb 14 2022, 2:07 PM.

Details

Summary

PDL currently doesn't support result values from constraints, meaning we need
to error out until this is actually supported to avoid crashes.

Diff Detail

Event Timeline

rriddle created this revision.Feb 14 2022, 2:07 PM
rriddle requested review of this revision.Feb 14 2022, 2:07 PM
nicolasvasilache accepted this revision.Feb 16 2022, 2:45 AM
This revision is now accepted and ready to land.Feb 16 2022, 2:45 AM
rriddle updated this revision to Diff 409417.Feb 16 2022, 2:42 PM
jpienaar accepted this revision.Feb 17 2022, 5:25 AM
jpienaar added inline comments.
mlir/test/mlir-pdll/Parser/constraint-failure.pdll
119

Is this change related? (I like the shorthand of ; if there is no body a la TableGen, but independently not sure if this is related to the code change).

rriddle marked an inline comment as done.Feb 24 2022, 8:50 PM
rriddle added inline comments.
mlir/test/mlir-pdll/Parser/constraint-failure.pdll
119

semi related, as these are native constraints that return results (which aren't supported). Seemed better to express on a constraint that actually supports results (just in case error verification order changed).

This revision was automatically updated to reflect the committed changes.
rriddle marked an inline comment as done.