[PATCH] D19282: Triple: Add amdcov1/amdcov2 environments
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 19 13:24:05 PDT 2016
tstellarAMD created this revision.
tstellarAMD added reviewers: arsenm, kzhuravl.
tstellarAMD added a subscriber: llvm-commits.
These are used to specify which version of the AMD code object format
the compiler should emit.
http://reviews.llvm.org/D19282
Files:
include/llvm/ADT/Triple.h
lib/Support/Triple.cpp
Index: lib/Support/Triple.cpp
===================================================================
--- lib/Support/Triple.cpp
+++ lib/Support/Triple.cpp
@@ -210,6 +210,8 @@
case Cygnus: return "cygnus";
case AMDOpenCL: return "amdopencl";
case CoreCLR: return "coreclr";
+ case AMDCOV1: return "amdcov1";
+ case AMDCOV2: return "amdcov2";
}
llvm_unreachable("Invalid EnvironmentType!");
@@ -469,6 +471,8 @@
.StartsWith("cygnus", Triple::Cygnus)
.StartsWith("amdopencl", Triple::AMDOpenCL)
.StartsWith("coreclr", Triple::CoreCLR)
+ .StartsWith("amdcov1", Triple::AMDCOV1)
+ .StartsWith("amdcov2", Triple::AMDCOV2)
.Default(Triple::UnknownEnvironment);
}
Index: include/llvm/ADT/Triple.h
===================================================================
--- include/llvm/ADT/Triple.h
+++ include/llvm/ADT/Triple.h
@@ -185,7 +185,9 @@
Cygnus,
AMDOpenCL,
CoreCLR,
- LastEnvironmentType = CoreCLR
+ AMDCOV1,
+ AMDCOV2,
+ LastEnvironmentType = AMDCOV2
};
enum ObjectFormatType {
UnknownObjectFormat,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19282.54249.patch
Type: text/x-patch
Size: 1081 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160419/4892ec36/attachment.bin>
More information about the llvm-commits
mailing list