This is an archive of the discontinued LLVM Phabricator instance.

[TableGen] Handle (outs variable_ops)
ClosedPublic

Authored by dantrushin on Jun 3 2020, 7:25 AM.

Details

Summary

When variable_ops is specified in InOperandList of instruction,
it behaves as expected, i.e., does not count as operand.
So for (ins variable_ops) instruction description will have 0
operands. However when used in OutOperandList it is counted as
operand. So (outs variable_ops) results in instruction with
one def.
This patch makes behavior of variable_ops in out list to match
that of in list.

Diff Detail

Event Timeline

dantrushin created this revision.Jun 3 2020, 7:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 3 2020, 7:25 AM

Add small but most important lost part.

reames accepted this revision.Jun 3 2020, 6:58 PM

LGTM

This revision is now accepted and ready to land.Jun 3 2020, 6:58 PM
This revision was automatically updated to reflect the committed changes.