[LLVM][Support] Support for `llvm::cl::list`'s default values
authorSon Tuan Vu <vuson@google.com>
Wed, 5 Oct 2022 20:04:47 +0000 (20:04 +0000)
committerSon Tuan Vu <vuson@google.com>
Thu, 6 Oct 2022 17:50:40 +0000 (17:50 +0000)
commita4deb14fdfaa183da938e40b54954afa9c7a11c1
tree8a03b3a5f9408c408fb46eab5d85c4682c0fa305
parent7404b855e528f88bf2a395a0a14937ca6812e8d1
[LLVM][Support] Support for `llvm::cl::list`'s default values

This patch introduces support for default values of list of CL options.
It fixes the issue in https://github.com/llvm/llvm-project/issues/52667

Reviewed By: bkramer

Differential Revision: https://reviews.llvm.org/D135311
llvm/include/llvm/Support/CommandLine.h
llvm/unittests/Support/CommandLineTest.cpp
mlir/include/mlir/Pass/PassOptions.h
mlir/lib/Pass/PassRegistry.cpp