summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2011-08-29 15:44:55 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2011-08-29 15:44:55 +0000
commit516dbb24b5e49acbd8175e395c815969ead71f86 (patch)
tree5c1315378ba2b1a2984771dbac3d763cacde158d /llvm/lib/Support
parenta18844c547446332e22e6d8168aef78870917cbd (diff)
downloadbcm5719-llvm-516dbb24b5e49acbd8175e395c815969ead71f86.tar.gz
bcm5719-llvm-516dbb24b5e49acbd8175e395c815969ead71f86.zip
Add AMDIL as valid target triple to LLVM.
Submitted by: Villmow, Micah <Micah.Villmow@amd.com> llvm-svn: 138734
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Triple.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index af934ae3fa2..356bd89f5b7 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -39,6 +39,7 @@ const char *Triple::getArchTypeName(ArchType Kind) {
case ptx32: return "ptx32";
case ptx64: return "ptx64";
case le32: return "le32";
+ case amdil: return "amdil";
}
return "<invalid>";
@@ -73,8 +74,8 @@ const char *Triple::getArchTypePrefix(ArchType Kind) {
case ptx32: return "ptx";
case ptx64: return "ptx";
-
case le32: return "le32";
+ case amdil: return "amdil";
}
}
@@ -176,6 +177,8 @@ Triple::ArchType Triple::getArchTypeForLLVMName(StringRef Name) {
return ptx64;
if (Name == "le32")
return le32;
+ if (Name == "amdil")
+ return amdil;
return UnknownArch;
}
@@ -219,6 +222,8 @@ Triple::ArchType Triple::getArchTypeForDarwinArchName(StringRef Str) {
return Triple::ptx32;
if (Str == "ptx64")
return Triple::ptx64;
+ if (Str == "amdil")
+ return Triple::amdil;
return Triple::UnknownArch;
}
@@ -256,6 +261,8 @@ const char *Triple::getArchNameForAssembler() {
return "ptx64";
if (Str == "le32")
return "le32";
+ if (Str == "amdil")
+ return "amdil";
return NULL;
}
@@ -311,6 +318,8 @@ Triple::ArchType Triple::ParseArch(StringRef ArchName) {
return ptx64;
else if (ArchName == "le32")
return le32;
+ else if (ArchName == "amdil")
+ return amdil;
else
return UnknownArch;
}
OpenPOWER on IntegriCloud