65 lines
1.4 KiB
Python
65 lines
1.4 KiB
Python
# Copyright © 2024 Rot127 <unisono@quyllur.org>
|
|
# SPDX-License-Identifier: BSD-3
|
|
|
|
# Names of the target architectures as they are listed under llvm/lib/Target/
|
|
TARGETS_LLVM_NAMING = [
|
|
"ARM",
|
|
"PowerPC",
|
|
"Alpha",
|
|
"AArch64",
|
|
"LoongArch",
|
|
"SystemZ",
|
|
"Mips",
|
|
"Xtensa",
|
|
"TriCore",
|
|
"ARC",
|
|
"Sparc",
|
|
]
|
|
|
|
# Names of the target architecture as they are used in code and pretty much everywhere else.
|
|
ARCH_LLVM_NAMING = [
|
|
"ARM",
|
|
"PPC",
|
|
"Alpha",
|
|
"AArch64",
|
|
"LoongArch",
|
|
"SystemZ",
|
|
"Mips",
|
|
"Xtensa",
|
|
"TriCore",
|
|
"ARC",
|
|
"Sparc",
|
|
]
|
|
|
|
# Maps the target full name to the name used in code (and pretty much everywhere else).
|
|
TARGET_TO_IN_CODE_NAME = {
|
|
"ARM": "ARM",
|
|
"PowerPC": "PPC",
|
|
"Alpha": "Alpha",
|
|
"AArch64": "AArch64",
|
|
"LoongArch": "LoongArch",
|
|
"SystemZ": "SystemZ",
|
|
"Mips": "Mips",
|
|
"Xtensa": "Xtensa",
|
|
"TriCore": "TriCore",
|
|
"ARC": "ARC",
|
|
"Sparc": "Sparc",
|
|
"ARCH": "ARCH", # For testing
|
|
}
|
|
|
|
# Maps the name from ARCH_LLVM_NAMING to the directory name in LLVM
|
|
TARGET_TO_DIR_NAME = {
|
|
"ARM": "ARM",
|
|
"PPC": "PowerPC",
|
|
"Alpha": "Alpha",
|
|
"AArch64": "AArch64",
|
|
"LoongArch": "LoongArch",
|
|
"SystemZ": "SystemZ",
|
|
"Mips": "Mips",
|
|
"Xtensa": "Xtensa",
|
|
"TriCore": "TriCore",
|
|
"ARC": "ARC",
|
|
"Sparc": "Sparc",
|
|
"ARCH": "ARCH", # For testing
|
|
}
|