R600: Add denormal handling subtarget features.
[oota-llvm.git] / lib / Target / R600 / AMDGPUSubtarget.h
index 68634ea883b16adf1dc1dad451dcda7355db27ff..abe4a2cec49853f76b5848b408b875fde8cff71e 100644 (file)
@@ -50,6 +50,8 @@ private:
   short TexVTXClauseSize;
   Generation Gen;
   bool FP64;
+  bool FP64Denormals;
+  bool FP32Denormals;
   bool CaymanISA;
   bool EnableIRStructurizer;
   bool EnablePromoteAlloca;
@@ -97,6 +99,14 @@ public:
     return CaymanISA;
   }
 
+  bool hasFP32Denormals() const {
+    return FP32Denormals;
+  }
+
+  bool hasFP64Denormals() const {
+    return FP64Denormals;
+  }
+
   bool hasBFE() const {
     return (getGeneration() >= EVERGREEN);
   }