aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PTX/PTX.td
diff options
context:
space:
mode:
authorJustin Holewinski <justin.holewinski@gmail.com>2011-05-18 15:42:23 +0000
committerJustin Holewinski <justin.holewinski@gmail.com>2011-05-18 15:42:23 +0000
commit657d1bed2368ab0355ddf69acd737a43d0bfabcf (patch)
tree42be637ab0a28b9bd3f4d1edaacefe4261a27bf8 /lib/Target/PTX/PTX.td
parentd6dde76090dd673a673ce363c982c22ea924502a (diff)
downloadexternal_llvm-657d1bed2368ab0355ddf69acd737a43d0bfabcf.zip
external_llvm-657d1bed2368ab0355ddf69acd737a43d0bfabcf.tar.gz
external_llvm-657d1bed2368ab0355ddf69acd737a43d0bfabcf.tar.bz2
PTX: add flag to disable mad/fma selection
Patch by Dan Bailey git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131537 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PTX/PTX.td')
-rw-r--r--lib/Target/PTX/PTX.td3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/PTX/PTX.td b/lib/Target/PTX/PTX.td
index cf10f0c..231866a 100644
--- a/lib/Target/PTX/PTX.td
+++ b/lib/Target/PTX/PTX.td
@@ -24,6 +24,9 @@ include "llvm/Target/Target.td"
def FeatureDouble : SubtargetFeature<"double", "SupportsDouble", "true",
"Do not demote .f64 to .f32">;
+def FeatureNoFMA : SubtargetFeature<"no-fma","SupportsFMA", "false",
+ "Disable Fused-Multiply Add">;
+
//===- PTX Version --------------------------------------------------------===//
def FeaturePTX20 : SubtargetFeature<"ptx20", "PTXVersion", "PTX_VERSION_2_0",