AMDGPU/SI: Add s_waitcnt at the end of non-void functions
[oota-llvm.git] / lib / Target / AMDGPU / SIMachineFunctionInfo.h
index 61d575385ffa4195dea212e71be84aac62b1e8ee..846ee5de057d2dee37a76e0e71c7e215a3eb4848 100644 (file)
@@ -59,6 +59,7 @@ class SIMachineFunctionInfo : public AMDGPUMachineFunction {
 
   // Graphics info.
   unsigned PSInputAddr;
+  bool ReturnsVoid;
 
 public:
   // FIXME: Make private
@@ -288,6 +289,14 @@ public:
     PSInputAddr |= 1 << Index;
   }
 
+  bool returnsVoid() const {
+    return ReturnsVoid;
+  }
+
+  void setIfReturnsVoid(bool Value) {
+    ReturnsVoid = Value;
+  }
+
   unsigned getMaximumWorkGroupSize(const MachineFunction &MF) const;
 };