[all-commits] [llvm/llvm-project] 90094a: [Driver] Add -mllvm= as an alias for -mllvm

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Feb 5 10:30:11 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 90094ab8850ec435574fbd393d886a54a6dd2531
      https://github.com/llvm/llvm-project/commit/90094ab8850ec435574fbd393d886a54a6dd2531
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-02-05 (Sun, 05 Feb 2023)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/test/Driver/hip-options.hip

  Log Message:
  -----------
  [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




More information about the All-commits mailing list