[llvm] [PowerPC][AIX] Emit PowerPC version for XCOFF (PR #95510)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 2 00:36:05 PDT 2024


================
@@ -334,9 +334,28 @@ enum CFileLangId : uint8_t {
 };
 
 enum CFileCpuId : uint8_t {
-  TCPU_PPC64 = 2, ///< PowerPC common architecture 64-bit mode.
-  TCPU_COM = 3,   ///< POWER and PowerPC architecture common.
-  TCPU_970 = 19   ///< PPC970 - PowerPC 64-bit architecture.
+  TCPU_INVALID = 0, ///< Invalid id - assumes POWER for old objects.
+  TCPU_PPC = 1,     ///< PowerPC common architecture 32 bit mode.
+  TCPU_PPC64 = 2,   ///< PowerPC common architecture 64-bit mode.
+  TCPU_COM = 3,     ///< POWER and PowerPC architecture common.
+  TCPU_PWR = 4,     ///< POWER common architecture objects.
+  TCPU_ANY = 5,     ///< Mixture of any incompatable POWER
+                    ///< and PowerPC architecture implementations.
+  TCPU_601 = 6,     ///< 601 implementation of PowerPC architecture.
+  TCPU_603 = 7,     ///< 603 implementation of PowerPC architecture.
+  TCPU_604 = 8,     ///< 604 implementation of PowerPC architecture.
+  TCPU_620 = 16,    ///< 620  - PowerPC 64-bit architecture.
----------------
MaskRay wrote:

You can add a `// The below are 64-bit architectures` instead of duplicating the string for each enum member.

https://github.com/llvm/llvm-project/pull/95510


More information about the llvm-commits mailing list