[llvm] [PowerPC][AIX] Emit PowerPC version for XCOFF (PR #95510)
Chen Zheng via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 26 02:06:54 PDT 2024
================
@@ -107,6 +108,63 @@ StringRef XCOFF::getNameForTracebackTableLanguageId(
}
#undef LANG_CASE
+XCOFF::CFileCpuId XCOFF::getCpuID(StringRef CPU) {
+ return StringSwitch<XCOFF::CFileCpuId>(CPU)
+ .Case("generic", XCOFF::TCPU_COM)
+ .Case("601", XCOFF::TCPU_601)
+ .Cases("602", "603", "603e", "603ev", XCOFF::TCPU_603)
+ .Cases("604", "604e", XCOFF::TCPU_604)
+ .Case("620", XCOFF::TCPU_620)
+ .Case("970", XCOFF::TCPU_970)
+ .Cases("pwr3", "power3", "pwr4", "power4", "COM", "630", "G3", "G4", "G5",
+ XCOFF::TCPU_COM)
+ .Cases("pwr5", "power5", "PWR5", XCOFF::TCPU_PWR5)
+ .Cases("pwr5x", "power5x", "PWR5X", XCOFF::TCPU_PWR5X)
+ .Cases("pwr6", "power6", "PWR6", XCOFF::TCPU_PWR6)
+ .Cases("pwr6x", "power6x", "PWR6E", XCOFF::TCPU_PWR6E)
+ .Cases("pwr7", "power7", "PWR7", XCOFF::TCPU_PWR7)
+ .Cases("pwr8", "power8", "PWR8", XCOFF::TCPU_PWR8)
+ .Cases("pwr9", "power9", "PWR9", XCOFF::TCPU_PWR9)
+ .Cases("pwr10", "power10", "PWR10", XCOFF::TCPU_PWR10)
+ .Cases("ppc", "ppc32", "ppc64", "PPC64", "powerpc", "powerpc64",
+ XCOFF::TCPU_COM)
+ .Cases("ppc64le", "powerpc64le", XCOFF::TCPU_PWR8)
+ .Cases("any", "ANY", XCOFF::TCPU_ANY)
+ .Case("future", XCOFF::TCPU_PWR10)
----------------
chenzheng1030 wrote:
future is not pwr10 now.
https://github.com/llvm/llvm-project/pull/95510
More information about the llvm-commits
mailing list