llvm.org GIT mirror llvm / a31ae5e
Triple: Add amdgcn triple This will be used for AMD GPUs with the Graphics Core Next architecture, which are currently using by the r600 triple. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225276 91177308-0d34-0410-b5e6-96231b3b80d8 Tom Stellard 4 years ago
2 changed file(s) with 9 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
5959 ppc64, // PPC64: powerpc64, ppu
6060 ppc64le, // PPC64LE: powerpc64le
6161 r600, // R600: AMD GPUs HD2XXX - HD6XXX
62 amdgcn, // AMDGCN: AMD GCN GPUs
6263 sparc, // Sparc: sparc
6364 sparcv9, // Sparcv9: Sparcv9
6465 systemz, // SystemZ: s390x
3232 case ppc64le: return "powerpc64le";
3333 case ppc: return "powerpc";
3434 case r600: return "r600";
35 case amdgcn: return "amdgcn";
3536 case sparc: return "sparc";
3637 case sparcv9: return "sparcv9";
3738 case systemz: return "s390x";
8182
8283 case hexagon: return "hexagon";
8384
84 case r600: return "r600";
85 case amdgcn:
86 case r600: return "amdgpu";
8587
8688 case sparcv9:
8789 case sparc: return "sparc";
198200 .Case("ppc", ppc)
199201 .Case("ppc64le", ppc64le)
200202 .Case("r600", r600)
203 .Case("amdgcn", amdgcn)
201204 .Case("hexagon", hexagon)
202205 .Case("sparc", sparc)
203206 .Case("sparcv9", sparcv9)
285288 .Cases("mips64", "mips64eb", Triple::mips64)
286289 .Case("mips64el", Triple::mips64el)
287290 .Case("r600", Triple::r600)
291 .Case("amdgcn", Triple::amdgcn)
288292 .Case("hexagon", Triple::hexagon)
289293 .Case("s390x", Triple::systemz)
290294 .Case("sparc", Triple::sparc)
863867
864868 case llvm::Triple::aarch64:
865869 case llvm::Triple::aarch64_be:
870 case llvm::Triple::amdgcn:
866871 case llvm::Triple::le64:
867872 case llvm::Triple::mips64:
868873 case llvm::Triple::mips64el:
898903 case Triple::UnknownArch:
899904 case Triple::aarch64:
900905 case Triple::aarch64_be:
906 case Triple::amdgcn:
901907 case Triple::msp430:
902908 case Triple::systemz:
903909 case Triple::ppc64le:
961967 case Triple::aarch64_be:
962968 case Triple::le64:
963969 case Triple::amdil64:
970 case Triple::amdgcn:
964971 case Triple::hsail64:
965972 case Triple::spir64:
966973 case Triple::mips64: