[llvm] Add subcommand support for OptTable (#155026)
Implement support for `subcommands` in OptTable to attain feature parity
with `cl`.
Design overview:
https://discourse.llvm.org/t/subcommand-feature-support-in-llvm-opttable/88098
Issue: https://github.com/llvm/llvm-project/issues/108307