mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Add mips64 & mips64el to Triple. Patch by Liu with modifications.
llvm-svn: 140157
This commit is contained in:
parent
06d7cd5b4e
commit
795050d1d1
@ -49,6 +49,8 @@ public:
|
|||||||
cellspu, // CellSPU: spu, cellspu
|
cellspu, // CellSPU: spu, cellspu
|
||||||
mips, // MIPS: mips, mipsallegrex
|
mips, // MIPS: mips, mipsallegrex
|
||||||
mipsel, // MIPSEL: mipsel, mipsallegrexel, psp
|
mipsel, // MIPSEL: mipsel, mipsallegrexel, psp
|
||||||
|
mips64, // MIPS64: mips64
|
||||||
|
mips64el,// MIPS64EL: mips64el
|
||||||
msp430, // MSP430: msp430
|
msp430, // MSP430: msp430
|
||||||
ppc, // PPC: powerpc
|
ppc, // PPC: powerpc
|
||||||
ppc64, // PPC64: powerpc64, ppu
|
ppc64, // PPC64: powerpc64, ppu
|
||||||
|
@ -24,6 +24,8 @@ const char *Triple::getArchTypeName(ArchType Kind) {
|
|||||||
case cellspu: return "cellspu";
|
case cellspu: return "cellspu";
|
||||||
case mips: return "mips";
|
case mips: return "mips";
|
||||||
case mipsel: return "mipsel";
|
case mipsel: return "mipsel";
|
||||||
|
case mips64: return "mips64";
|
||||||
|
case mips64el:return "mips64el";
|
||||||
case msp430: return "msp430";
|
case msp430: return "msp430";
|
||||||
case ppc64: return "powerpc64";
|
case ppc64: return "powerpc64";
|
||||||
case ppc: return "powerpc";
|
case ppc: return "powerpc";
|
||||||
@ -145,6 +147,10 @@ Triple::ArchType Triple::getArchTypeForLLVMName(StringRef Name) {
|
|||||||
return mips;
|
return mips;
|
||||||
if (Name == "mipsel")
|
if (Name == "mipsel")
|
||||||
return mipsel;
|
return mipsel;
|
||||||
|
if (Name == "mips64")
|
||||||
|
return mips64;
|
||||||
|
if (Name == "mips64el")
|
||||||
|
return mips64el;
|
||||||
if (Name == "msp430")
|
if (Name == "msp430")
|
||||||
return msp430;
|
return msp430;
|
||||||
if (Name == "ppc64")
|
if (Name == "ppc64")
|
||||||
@ -302,6 +308,10 @@ Triple::ArchType Triple::ParseArch(StringRef ArchName) {
|
|||||||
else if (ArchName == "mipsel" || ArchName == "mipsallegrexel" ||
|
else if (ArchName == "mipsel" || ArchName == "mipsallegrexel" ||
|
||||||
ArchName == "psp")
|
ArchName == "psp")
|
||||||
return mipsel;
|
return mipsel;
|
||||||
|
else if (ArchName == "mips64" || ArchName == "mips64eb")
|
||||||
|
return mips64;
|
||||||
|
else if (ArchName == "mips64el")
|
||||||
|
return mips64el;
|
||||||
else if (ArchName == "sparc")
|
else if (ArchName == "sparc")
|
||||||
return sparc;
|
return sparc;
|
||||||
else if (ArchName == "sparcv9")
|
else if (ArchName == "sparcv9")
|
||||||
|
Loading…
Reference in New Issue
Block a user