[all-commits] [llvm/llvm-project] 9ec744: [Clang][AArch64] Add support for -mcpu=grace

sjoerdmeijer via All-commits all-commits at lists.llvm.org
Mon Oct 24 05:26:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9ec7448857c1bcbc9878e9912167d9453d3be673
      https://github.com/llvm/llvm-project/commit/9ec7448857c1bcbc9878e9912167d9453d3be673
  Author: Sjoerd Meijer <smeijer at nvidia.com>
  Date:   2022-10-24 (Mon, 24 Oct 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Arch/AArch64.cpp
    M clang/test/Driver/aarch64-mcpu.c
    M llvm/include/llvm/Support/AArch64TargetParser.h

  Log Message:
  -----------
  [Clang][AArch64] Add support for -mcpu=grace

This adds Clang command line support for the NVIDIA Grace CPU [1], which
we would like to target with -mcpu=grace.

Grace is based on the Arm Neoverse V2 CPU [1], which is why, in the
driver, we pass neoverse-v2 to the compiler when grace is requested.
Thus, for now, it's an alias to Neoverse V2.

This adds support for grace in user-facing tool Clang, but not yet the
developer tools like opt and llc, so we probably want to follow up on
this.

[1] https://www.nvidia.com/en-us/data-center/grace-cpu/

Differential Revision: https://reviews.llvm.org/D136425




More information about the All-commits mailing list