[llvm] r225331 - R600/SI: Add check for amdgcn triple forgotten in r225276.

Tom Stellard thomas.stellard at amd.com
Tue Jan 6 17:17:38 PST 2015


Author: tstellar
Date: Tue Jan  6 19:17:37 2015
New Revision: 225331

URL: http://llvm.org/viewvc/llvm-project?rev=225331&view=rev
Log:
R600/SI: Add check for amdgcn triple forgotten in r225276.

Modified:
    llvm/trunk/lib/Target/TargetLibraryInfo.cpp

Modified: llvm/trunk/lib/Target/TargetLibraryInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetLibraryInfo.cpp?rev=225331&r1=225330&r2=225331&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetLibraryInfo.cpp (original)
+++ llvm/trunk/lib/Target/TargetLibraryInfo.cpp Tue Jan  6 19:17:37 2015
@@ -389,9 +389,10 @@ static void initialize(TargetLibraryInfo
   }
 #endif // !NDEBUG
 
-  // There are no library implementations of mempcy and memset for r600 and
+  // There are no library implementations of mempcy and memset for AMD gpus and
   // these can be difficult to lower in the backend.
-  if (T.getArch() == Triple::r600) {
+  if (T.getArch() == Triple::r600 ||
+      T.getArch() == Triple::amdgcn) {
     TLI.setUnavailable(LibFunc::memcpy);
     TLI.setUnavailable(LibFunc::memset);
     TLI.setUnavailable(LibFunc::memset_pattern16);





More information about the llvm-commits mailing list