Add mips64 & mips64el to Triple. Patch by Liu with modifications.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140157 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Akira Hatanaka 2011-09-20 18:09:37 +00:00
parent 29d9610f23
commit 70303688bc
2 changed files with 12 additions and 0 deletions

View File

@ -49,6 +49,8 @@ public:
cellspu, // CellSPU: spu, cellspu
mips, // MIPS: mips, mipsallegrex
mipsel, // MIPSEL: mipsel, mipsallegrexel, psp
mips64, // MIPS64: mips64
mips64el,// MIPS64EL: mips64el
msp430, // MSP430: msp430
ppc, // PPC: powerpc
ppc64, // PPC64: powerpc64, ppu

View File

@ -24,6 +24,8 @@ const char *Triple::getArchTypeName(ArchType Kind) {
case cellspu: return "cellspu";
case mips: return "mips";
case mipsel: return "mipsel";
case mips64: return "mips64";
case mips64el:return "mips64el";
case msp430: return "msp430";
case ppc64: return "powerpc64";
case ppc: return "powerpc";
@ -145,6 +147,10 @@ Triple::ArchType Triple::getArchTypeForLLVMName(StringRef Name) {
return mips;
if (Name == "mipsel")
return mipsel;
if (Name == "mips64")
return mips64;
if (Name == "mips64el")
return mips64el;
if (Name == "msp430")
return msp430;
if (Name == "ppc64")
@ -302,6 +308,10 @@ Triple::ArchType Triple::ParseArch(StringRef ArchName) {
else if (ArchName == "mipsel" || ArchName == "mipsallegrexel" ||
ArchName == "psp")
return mipsel;
else if (ArchName == "mips64" || ArchName == "mips64eb")
return mips64;
else if (ArchName == "mips64el")
return mips64el;
else if (ArchName == "sparc")
return sparc;
else if (ArchName == "sparcv9")