[clang] [compiler-rt] [llvm] Add SuperH (1-4a) target (PR #181287)

via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 19 13:00:37 PDT 2026


================
@@ -80,6 +80,8 @@ class Triple {
     riscv64,     // RISC-V (64-bit, little endian): riscv64
     riscv32be,   // RISC-V (32-bit, big endian): riscv32be
     riscv64be,   // RISC-V (64-bit, big endian): riscv64be
+    sh,          // SuperH (big endian): sh
+    shl,         // SuperH (little endian): shl
----------------
LunaTheFoxgirl wrote:

Okay, I've talked with the maintainers of the GCC backend. We've agreed that a format of sh<subarch><b/l><e> is an acceptable compromise. They will still retain their current scheme but will ensure to implement this scheme.

Examples of valid architectures:
 - `sh4eb-linux`
 - `sh2eel-elf`
 - `sh3l`

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


More information about the cfe-commits mailing list