R600/SI: Set the ATC bit on all resource descriptors for the HSA runtime
[oota-llvm.git] / lib / Target / R600 / AMDGPUSubtarget.h
index f71d80a8ba0c353170bf2f60516c1d39af225ff0..79adf55c5c8a9eb4c726eafd3bdf1d90215eacc5 100644 (file)
@@ -68,6 +68,7 @@ private:
   std::unique_ptr<AMDGPUTargetLowering> TLInfo;
   std::unique_ptr<AMDGPUInstrInfo> InstrInfo;
   InstrItineraryData InstrItins;
+  Triple TargetTriple;
 
 public:
   AMDGPUSubtarget(StringRef TT, StringRef CPU, StringRef FS, TargetMachine &TM);
@@ -217,6 +218,9 @@ public:
   bool r600ALUEncoding() const {
     return R600ALUInst;
   }
+  bool isAmdHsaOS() const {
+    return TargetTriple.getOS() == Triple::AMDHSA;
+  }
 };
 
 } // End namespace llvm