[PATCH] D137924: [TargetParser] Split AArch64TargetParser from ARMTargetParser

Sam Elliott via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 14 02:50:56 PST 2022


lenary added inline comments.


================
Comment at: llvm/include/llvm/Support/AArch64TargetParser.h:85
 
-const ARM::ArchNames<ArchKind> AArch64ARCHNames[] = {
-#define AARCH64_ARCH(NAME, ID, CPU_ATTR, SUB_ARCH, ARCH_ATTR, ARCH_FPU,        \
-                     ARCH_BASE_EXT)                                            \
-  {NAME,                                                                       \
-   sizeof(NAME) - 1,                                                           \
-   CPU_ATTR,                                                                   \
-   sizeof(CPU_ATTR) - 1,                                                       \
-   "+" SUB_ARCH,                                                               \
-   sizeof(SUB_ARCH),                                                           \
-   ARM::FPUKind::ARCH_FPU,                                                     \
-   ARCH_BASE_EXT,                                                              \
-   AArch64::ArchKind::ID,                                                      \
-   ARCH_ATTR},
+template <typename T> struct ArchNames {
+  const char *NameCStr;
----------------
Does this still need to be templated, if the implementation is not shared between aarch64 and arm?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D137924



More information about the llvm-commits mailing list