[PATCH] D136425: [Clang][AArch64] Add support for -mcpu=grace

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 21 07:32:41 PDT 2022


dmgreen added a comment.

I am hoping it is fairly simple to just a table that is queried in places like getAArch64TargetCPU and fillValidCPUArchList. That way you could get the cpu list working too.

It might be useful to add a test that -mtune=grace works as expected too.



================
Comment at: clang/lib/Driver/ToolChains/Arch/AArch64.cpp:132
+  // FIXME: We should be able to define CPU aliases in TargetParser.
+  if(CPU == "grace")
+    CPU="neoverse-v2";
----------------
Formatting.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136425/new/

https://reviews.llvm.org/D136425



More information about the llvm-commits mailing list