summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2015-07-30 08:16:51 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2015-07-30 08:16:51 +0000
commitf1ffbe7bb3bf280f86a5a7bd5a74717a563bdcee (patch)
treee57dd3373f487fdf4488a4b4a93194332c0d3582 /llvm/lib
parent98a857140bf8d7e55536b633b4072428bb254dee (diff)
downloadbcm5719-llvm-f1ffbe7bb3bf280f86a5a7bd5a74717a563bdcee.tar.gz
bcm5719-llvm-f1ffbe7bb3bf280f86a5a7bd5a74717a563bdcee.zip
Add amdopencl environment to triple
This is used by the AMD x86 OpenCL implementation to change some ABI details on Windows and Linux. llvm-svn: 243627
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Support/Triple.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp
index c6646fb101b..f1b009e19e1 100644
--- a/llvm/lib/Support/Triple.cpp
+++ b/llvm/lib/Support/Triple.cpp
@@ -196,6 +196,7 @@ const char *Triple::getEnvironmentTypeName(EnvironmentType Kind) {
case MSVC: return "msvc";
case Itanium: return "itanium";
case Cygnus: return "cygnus";
+ case AMDOpenCL: return "amdopencl";
}
llvm_unreachable("Invalid EnvironmentType!");
@@ -430,6 +431,7 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) {
.StartsWith("msvc", Triple::MSVC)
.StartsWith("itanium", Triple::Itanium)
.StartsWith("cygnus", Triple::Cygnus)
+ .StartsWith("amdopencl", Triple::AMDOpenCL)
.Default(Triple::UnknownEnvironment);
}
OpenPOWER on IntegriCloud