From f1ffbe7bb3bf280f86a5a7bd5a74717a563bdcee Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 30 Jul 2015 08:16:51 +0000 Subject: 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 --- llvm/lib/Support/Triple.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/Support/Triple.cpp') diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index c6646fb..f1b009e 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); } -- cgit v1.1