summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2017-10-25 07:00:51 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2017-10-25 07:00:51 +0000
commit28f52e51f1c6253abc6a2cf0203f834805ed3a2d (patch)
tree7f63f449a72a38cf12a85f27a6c131c96cd927ec /llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
parent9ac7021a2563d433549a21990f96184d413e69e2 (diff)
downloadbcm5719-llvm-28f52e51f1c6253abc6a2cf0203f834805ed3a2d.tar.gz
bcm5719-llvm-28f52e51f1c6253abc6a2cf0203f834805ed3a2d.zip
AMDGPU: Add max-mix-insts subtarget feature
llvm-svn: 316553
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
index 99c525eb9d7..56a5fa634b5 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
@@ -148,6 +148,7 @@ protected:
bool Has16BitInsts;
bool HasIntClamp;
bool HasVOP3PInsts;
+ bool HasMadMixInsts;
bool HasMovrel;
bool HasVGPRIndexMode;
bool HasScalarStores;
@@ -319,7 +320,7 @@ public:
}
bool hasMadMixInsts() const {
- return getGeneration() >= GFX9;
+ return HasMadMixInsts;
}
bool hasCARRY() const {
OpenPOWER on IntegriCloud