mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
Add triple parsing support for TCE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79461 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7ab2fef792
commit
74db89e30f
@ -62,6 +62,7 @@ public:
|
|||||||
ppc64, // PPC64: powerpc64
|
ppc64, // PPC64: powerpc64
|
||||||
sparc, // Sparc: sparc
|
sparc, // Sparc: sparc
|
||||||
systemz, // SystemZ: s390x
|
systemz, // SystemZ: s390x
|
||||||
|
tce, // TCE (http://tce.cs.tut.fi/): tce
|
||||||
thumb, // Thumb: thumb, thumbv.*
|
thumb, // Thumb: thumb, thumbv.*
|
||||||
x86, // X86: i[3-9]86
|
x86, // X86: i[3-9]86
|
||||||
x86_64, // X86-64: amd64, x86_64
|
x86_64, // X86-64: amd64, x86_64
|
||||||
|
@ -33,6 +33,7 @@ const char *Triple::getArchTypeName(ArchType Kind) {
|
|||||||
case ppc: return "powerpc";
|
case ppc: return "powerpc";
|
||||||
case sparc: return "sparc";
|
case sparc: return "sparc";
|
||||||
case systemz: return "s390x";
|
case systemz: return "s390x";
|
||||||
|
case tce: return "tce";
|
||||||
case thumb: return "thumb";
|
case thumb: return "thumb";
|
||||||
case x86: return "i386";
|
case x86: return "i386";
|
||||||
case x86_64: return "x86_64";
|
case x86_64: return "x86_64";
|
||||||
@ -99,6 +100,8 @@ Triple::ArchType Triple::getArchTypeForLLVMName(const StringRef &Name) {
|
|||||||
return sparc;
|
return sparc;
|
||||||
if (Name == "systemz")
|
if (Name == "systemz")
|
||||||
return systemz;
|
return systemz;
|
||||||
|
if (Name == "tce")
|
||||||
|
return tce;
|
||||||
if (Name == "thumb")
|
if (Name == "thumb")
|
||||||
return thumb;
|
return thumb;
|
||||||
if (Name == "x86")
|
if (Name == "x86")
|
||||||
@ -156,6 +159,8 @@ void Triple::Parse() const {
|
|||||||
Arch = sparc;
|
Arch = sparc;
|
||||||
else if (ArchName == "s390x")
|
else if (ArchName == "s390x")
|
||||||
Arch = systemz;
|
Arch = systemz;
|
||||||
|
else if (ArchName == "tce")
|
||||||
|
Arch = tce;
|
||||||
else
|
else
|
||||||
Arch = UnknownArch;
|
Arch = UnknownArch;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user