[llvm] [RISCV] Add basic Mach-O triple support. (PR #141682)

Jessica Clarke via llvm-commits llvm-commits at lists.llvm.org
Thu May 29 09:53:45 PDT 2025


================
@@ -2838,6 +2842,15 @@ Triple MachOObjectFile::getArchTriple(uint32_t CPUType, uint32_t CPUSubType,
     default:
       return Triple();
     }
+  case MachO::CPU_TYPE_RISCV:
----------------
jrtc27 wrote:

This seems like it should be called RISCV32 given that's what the triple is? (Unlike other historical 32-bit architectures where just "foo" existed and "foo64" came along later, it's "riscv32" and "riscv64" in RISC-V land)

Obviously Apple ultimately decides on these names, but it would seem wise to pick a consistent name before it's too late.

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


More information about the llvm-commits mailing list