[llvm-commits] [llvm] r138734 - in /llvm/trunk: include/llvm/ADT/Triple.h lib/Support/Triple.cpp
Tobias Grosser
grosser at fim.uni-passau.de
Mon Aug 29 08:44:55 PDT 2011
Author: grosser
Date: Mon Aug 29 10:44:55 2011
New Revision: 138734
URL: http://llvm.org/viewvc/llvm-project?rev=138734&view=rev
Log:
Add AMDIL as valid target triple to LLVM.
Submitted by: Villmow, Micah <Micah.Villmow at amd.com>
Modified:
llvm/trunk/include/llvm/ADT/Triple.h
llvm/trunk/lib/Support/Triple.cpp
Modified: llvm/trunk/include/llvm/ADT/Triple.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Triple.h?rev=138734&r1=138733&r2=138734&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Triple.h (original)
+++ llvm/trunk/include/llvm/ADT/Triple.h Mon Aug 29 10:44:55 2011
@@ -64,6 +64,7 @@
ptx32, // PTX: ptx (32-bit)
ptx64, // PTX: ptx (64-bit)
le32, // le32: generic little-endian 32-bit CPU (PNaCl / Emscripten)
+ amdil, // amdil: amd IL
InvalidArch
};
Modified: llvm/trunk/lib/Support/Triple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=138734&r1=138733&r2=138734&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Triple.cpp (original)
+++ llvm/trunk/lib/Support/Triple.cpp Mon Aug 29 10:44:55 2011
@@ -39,6 +39,7 @@
case ptx32: return "ptx32";
case ptx64: return "ptx64";
case le32: return "le32";
+ case amdil: return "amdil";
}
return "<invalid>";
@@ -73,8 +74,8 @@
case ptx32: return "ptx";
case ptx64: return "ptx";
-
case le32: return "le32";
+ case amdil: return "amdil";
}
}
@@ -176,6 +177,8 @@
return ptx64;
if (Name == "le32")
return le32;
+ if (Name == "amdil")
+ return amdil;
return UnknownArch;
}
@@ -219,6 +222,8 @@
return Triple::ptx32;
if (Str == "ptx64")
return Triple::ptx64;
+ if (Str == "amdil")
+ return Triple::amdil;
return Triple::UnknownArch;
}
@@ -256,6 +261,8 @@
return "ptx64";
if (Str == "le32")
return "le32";
+ if (Str == "amdil")
+ return "amdil";
return NULL;
}
@@ -311,6 +318,8 @@
return ptx64;
else if (ArchName == "le32")
return le32;
+ else if (ArchName == "amdil")
+ return amdil;
else
return UnknownArch;
}
More information about the llvm-commits
mailing list