mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +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
|
||||
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
|
||||
|
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user