summaryrefslogtreecommitdiff
path: root/lib/Support/Triple.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2012-04-02 18:31:33 +0000
committerHal Finkel <hfinkel@anl.gov>2012-04-02 18:31:33 +0000
commita47406c442a81aaf368b6e1a9b31d1730975a717 (patch)
treefd27a294b2b0be1ef598fe3b00c515ad0831aa5d /lib/Support/Triple.cpp
parent60777d8eaf338fd7fef2296f78d5e513bf0da011 (diff)
downloadllvm-a47406c442a81aaf368b6e1a9b31d1730975a717.tar.gz
llvm-a47406c442a81aaf368b6e1a9b31d1730975a717.tar.bz2
llvm-a47406c442a81aaf368b6e1a9b31d1730975a717.tar.xz
Add triple support for the IBM BG/P and BG/Q supercomputers.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153882 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Triple.cpp')
-rw-r--r--lib/Support/Triple.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp
index d261c53139..44a1b38d98 100644
--- a/lib/Support/Triple.cpp
+++ b/lib/Support/Triple.cpp
@@ -88,6 +88,8 @@ const char *Triple::getVendorTypeName(VendorType Kind) {
case Apple: return "apple";
case PC: return "pc";
case SCEI: return "scei";
+ case BGP: return "bgp";
+ case BGQ: return "bgq";
}
llvm_unreachable("Invalid VendorType!");
@@ -116,6 +118,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
case Minix: return "minix";
case RTEMS: return "rtems";
case NativeClient: return "nacl";
+ case CNK: return "cnk";
}
llvm_unreachable("Invalid OSType");
@@ -258,6 +261,8 @@ static Triple::VendorType parseVendor(StringRef VendorName) {
.Case("apple", Triple::Apple)
.Case("pc", Triple::PC)
.Case("scei", Triple::SCEI)
+ .Case("bgp", Triple::BGP)
+ .Case("bgq", Triple::BGQ)
.Default(Triple::UnknownVendor);
}
@@ -282,6 +287,7 @@ static Triple::OSType parseOS(StringRef OSName) {
.StartsWith("minix", Triple::Minix)
.StartsWith("rtems", Triple::RTEMS)
.StartsWith("nacl", Triple::NativeClient)
+ .StartsWith("cnk", Triple::CNK)
.Default(Triple::UnknownOS);
}