[tblgen][directive] Fix clause parser generation for list value
authorValentin Clement <clementval@gmail.com>
Tue, 27 Jun 2023 18:09:04 +0000 (11:09 -0700)
committerValentin Clement <clementval@gmail.com>
Tue, 27 Jun 2023 18:09:23 +0000 (11:09 -0700)
commited7337506e29622e24da3abb305cd4f7e01da644
tree044398e6f518f393345d21023624030872e04465
parent06a9975d6162a2bdf3b35d9f6264ddd79ad5a78e
[tblgen][directive] Fix clause parser generation for list value

The clause parser generation was not taking into account the
`isValueList` flag. This patch updates the emitter to generate
the correct code.

Reviewed By: razvanlupusoru

Differential Revision: https://reviews.llvm.org/D153801
llvm/test/TableGen/directive1.td
llvm/utils/TableGen/DirectiveEmitter.cpp