[Driver] Add -mllvm= as an alias for -mllvm
authorFangrui Song <i@maskray.me>
Sun, 5 Feb 2023 18:29:58 +0000 (10:29 -0800)
committerFangrui Song <i@maskray.me>
Sun, 5 Feb 2023 18:29:58 +0000 (10:29 -0800)
commit90094ab8850ec435574fbd393d886a54a6dd2531
tree949b3ddf60c5d7d2595b4aa417f4f8825f5aea19
parentdb0e6591612b53910a1b366863348bdb9d7d2fb1
[Driver] Add -mllvm= as an alias for -mllvm

Similar to D131455 (-Xclang=). As well as making it convenient for some build
systems, this allows `-Xarch_device '-mllvm=--inline-threshold=100'` (and
`-Xarch_host`; so we don't need to allow space separators which are uncommon in
driver code).

Bear in mind that -mllvm options are unstable and should be avoided if possible.

Reviewed By: jhuber6, yaxunl

Differential Revision: https://reviews.llvm.org/D143325
clang/include/clang/Driver/Options.td
clang/test/Driver/hip-options.hip