[llvm] [PowerPC][AIX] Emit PowerPC version for XCOFF (PR #95510)
Chen Zheng via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 5 03:17:20 PDT 2024
================
@@ -107,6 +108,61 @@ StringRef XCOFF::getNameForTracebackTableLanguageId(
}
#undef LANG_CASE
+XCOFF::CFileCpuId XCOFF::getCpuID(StringRef CPU) {
+ return StringSwitch<XCOFF::CFileCpuId>(CPU)
+ .Case("generic", XCOFF::TCPU_PWR7)
----------------
chenzheng1030 wrote:
clang `generic` is not pwr7 actually. You can map it to `TCPU_COM`
https://github.com/llvm/llvm-project/pull/95510
More information about the llvm-commits
mailing list