[llvm-commits] [llvm] r79461 - in /llvm/trunk: include/llvm/ADT/Triple.h lib/Support/Triple.cpp
Eli Friedman
eli.friedman at gmail.com
Wed Aug 19 13:46:04 PDT 2009
Author: efriedma
Date: Wed Aug 19 15:46:03 2009
New Revision: 79461
URL: http://llvm.org/viewvc/llvm-project?rev=79461&view=rev
Log:
Add triple parsing support for TCE.
Modified:
llvm/trunk/include/llvm/ADT/Triple.h
llvm/trunk/lib/Support/Triple.cpp
Modified: llvm/trunk/include/llvm/ADT/Triple.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Triple.h?rev=79461&r1=79460&r2=79461&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h (original)
+++ llvm/trunk/include/llvm/ADT/Triple.h Wed Aug 19 15:46:03 2009
@@ -62,6 +62,7 @@
ppc64, // PPC64: powerpc64
sparc, // Sparc: sparc
systemz, // SystemZ: s390x
+ tce, // TCE (http://tce.cs.tut.fi/): tce
thumb, // Thumb: thumb, thumbv.*
x86, // X86: i[3-9]86
x86_64, // X86-64: amd64, x86_64
Modified: llvm/trunk/lib/Support/Triple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=79461&r1=79460&r2=79461&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Triple.cpp (original)
+++ llvm/trunk/lib/Support/Triple.cpp Wed Aug 19 15:46:03 2009
@@ -33,6 +33,7 @@
case ppc: return "powerpc";
case sparc: return "sparc";
case systemz: return "s390x";
+ case tce: return "tce";
case thumb: return "thumb";
case x86: return "i386";
case x86_64: return "x86_64";
@@ -99,6 +100,8 @@
return sparc;
if (Name == "systemz")
return systemz;
+ if (Name == "tce")
+ return tce;
if (Name == "thumb")
return thumb;
if (Name == "x86")
@@ -156,6 +159,8 @@
Arch = sparc;
else if (ArchName == "s390x")
Arch = systemz;
+ else if (ArchName == "tce")
+ Arch = tce;
else
Arch = UnknownArch;
More information about the llvm-commits
mailing list