summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r--llvm/lib/Support/Triple.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index 12aa7bfa0ce..1967fac2600 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -150,6 +150,8 @@ const char *Triple::getVendorTypeName(VendorType Kind) {
case NVIDIA: return "nvidia";
case CSR: return "csr";
case Myriad: return "myriad";
+ case AMD: return "amd";
+ case Mesa: return "mesa";
}
llvm_unreachable("Invalid VendorType!");
@@ -186,6 +188,7 @@ const char *Triple::getOSTypeName(OSType Kind) {
case ELFIAMCU: return "elfiamcu";
case TvOS: return "tvos";
case WatchOS: return "watchos";
+ case Mesa3D: return "mesa3d";
}
llvm_unreachable("Invalid OSType");
@@ -412,6 +415,8 @@ static Triple::VendorType parseVendor(StringRef VendorName) {
.Case("nvidia", Triple::NVIDIA)
.Case("csr", Triple::CSR)
.Case("myriad", Triple::Myriad)
+ .Case("amd", Triple::AMD)
+ .Case("mesa", Triple::Mesa)
.Default(Triple::UnknownVendor);
}
@@ -445,6 +450,7 @@ static Triple::OSType parseOS(StringRef OSName) {
.StartsWith("elfiamcu", Triple::ELFIAMCU)
.StartsWith("tvos", Triple::TvOS)
.StartsWith("watchos", Triple::WatchOS)
+ .StartsWith("mesa3d", Triple::Mesa3D)
.Default(Triple::UnknownOS);
}
OpenPOWER on IntegriCloud