This is an archive of the discontinued LLVM Phabricator instance.

[mlir][ODS] Infer return types if the operands are variadic but the results are not
ClosedPublic

Authored by bkramer on Feb 18 2022, 5:44 AM.

Diff Detail

Event Timeline

bkramer created this revision.Feb 18 2022, 5:44 AM
bkramer requested review of this revision.Feb 18 2022, 5:44 AM
jpienaar accepted this revision.Feb 18 2022, 6:21 AM

Nice, thanks!

mlir/include/mlir/TableGen/Operator.h
106 ↗(On Diff #409908)

hasVariadicResults (to match naming above)

This revision is now accepted and ready to land.Feb 18 2022, 6:21 AM
bkramer added inline comments.Feb 18 2022, 6:26 AM
mlir/include/mlir/TableGen/Operator.h
106 ↗(On Diff #409908)

That's actually not the same. This is also checking for Optional<> in the results, while isVariadic only looks for Variadic<>.

bkramer updated this revision to Diff 409921.Feb 18 2022, 6:30 AM

Use existing method to check for variadic results and clarify what variable length means.

This revision was landed with ongoing or failed builds.Feb 18 2022, 6:34 AM
This revision was automatically updated to reflect the committed changes.