aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/AMDGPU/AMDGPUFeatures.td
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-08-11 16:29:25 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-08-11 16:29:25 +0000
commitac3a3c134038429abacef8c5d8069674f98d6b34 (patch)
treef023b40c2c8f99399725947d92ed3c85b0846cc1 /lib/Target/AMDGPU/AMDGPUFeatures.td
parent5c03f3e190559347c835382d61bb1b590e74aa4c (diff)
Notes
Diffstat (limited to 'lib/Target/AMDGPU/AMDGPUFeatures.td')
-rw-r--r--lib/Target/AMDGPU/AMDGPUFeatures.td9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/AMDGPU/AMDGPUFeatures.td b/lib/Target/AMDGPU/AMDGPUFeatures.td
index b375cae9018e..3c7d8a8fc550 100644
--- a/lib/Target/AMDGPU/AMDGPUFeatures.td
+++ b/lib/Target/AMDGPU/AMDGPUFeatures.td
@@ -19,6 +19,15 @@ def FeatureFMA : SubtargetFeature<"fmaf",
"Enable single precision FMA (not as fast as mul+add, but fused)"
>;
+// Some instructions do not support denormals despite this flag. Using
+// fp32 denormals also causes instructions to run at the double
+// precision rate for the device.
+def FeatureFP32Denormals : SubtargetFeature<"fp32-denormals",
+ "FP32Denormals",
+ "true",
+ "Enable single precision denormal handling"
+>;
+
class SubtargetFeatureLocalMemorySize <int Value> : SubtargetFeature<
"localmemorysize"#Value,
"LocalMemorySize",