[TableGen] Handle (outs variable_ops)
authorDenis Antrushin <dantrushin@gmail.com>
Wed, 3 Jun 2020 14:08:48 +0000 (17:08 +0300)
committerDenis Antrushin <dantrushin@gmail.com>
Thu, 4 Jun 2020 13:07:33 +0000 (16:07 +0300)
commitf2c97656644e783622a6e60fe452b41ffe0f1d18
tree9a544f90ab5a7d4c704545c443e0e6a3e14c8d25
parent8ccb9f98ea98d0a5db179c10431fc25b9a20a1c6
[TableGen] Handle (outs variable_ops)

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.

Reviewed By: reames
Differential Revision: https://reviews.llvm.org/D81095
llvm/utils/TableGen/CodeGenInstruction.cpp