R600/SI: Use LDS atomic inc / dec
[oota-llvm.git] / lib / Target / R600 / AMDGPUInstrInfo.cpp
index 4f3ab5f5443b3c3925f1ce4539d69074d8ad65c0..1c3361a265811f0eb4dbfe233872569bcae2df14 100644 (file)
@@ -355,3 +355,14 @@ int AMDGPUInstrInfo::getMaskedMIMGOp(uint16_t Opcode, unsigned Channels) const {
   case 3: return AMDGPU::getMaskedMIMGOp(Opcode, AMDGPU::Channels_3);
   }
 }
+
+// Wrapper for Tablegen'd function.  enum Subtarget is not defined in any
+// header files, so we need to wrap it in a function that takes unsigned 
+// instead.
+namespace llvm {
+namespace AMDGPU {
+int getMCOpcode(uint16_t Opcode, unsigned Gen) {
+  return getMCOpcode(Opcode);
+}
+}
+}