AMDGPU: Error if too many user SGPRs used
[oota-llvm.git] / lib / Target / AMDGPU / AMDGPUSubtarget.h
index 9921630326b45f374ce00a8451c5ef753269e93f..971b5179b13c451cc1d6e11d909111b02c552dc3 100644 (file)
@@ -303,6 +303,9 @@ public:
     return isAmdHsaOS() ? 0 : 36;
   }
 
+  unsigned getMaxNumUserSGPRs() const {
+    return 16;
+  }
 };
 
 } // End namespace llvm