summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
diff options
context:
space:
mode:
authorKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2018-05-04 20:06:57 +0000
committerKonstantin Zhuravlyov <kzhuravl_dev@outlook.com>2018-05-04 20:06:57 +0000
commitc2c2eb7d01bbf279dbe40a97b521404231c7768d (patch)
tree9868bd0b9ea5b60a616a6ef46c6532cf9a0983ec /llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
parente1c7a46d5b55bbe870c0b9aa3a4f3d3ea396550e (diff)
downloadbcm5719-llvm-c2c2eb7d01bbf279dbe40a97b521404231c7768d.tar.gz
bcm5719-llvm-c2c2eb7d01bbf279dbe40a97b521404231c7768d.zip
AMDGPU: Add D16 instructions preserve unused bits feature
- Predicate D16 patterns on this new feature - Added this new feature to gfx900/2/4 Differential Revision: https://reviews.llvm.org/D46366 llvm-svn: 331551
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
index cce8800159c..0b070e7b4a0 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
@@ -166,6 +166,7 @@ protected:
bool HasSDWAOutModsVOPC;
bool HasDPP;
bool HasDLInsts;
+ bool D16PreservesUnusedBits;
bool FlatAddressSpace;
bool FlatInstOffsets;
bool FlatGlobalInsts;
@@ -546,6 +547,10 @@ public:
return HasDLInsts;
}
+ bool d16PreservesUnusedBits() const {
+ return D16PreservesUnusedBits;
+ }
+
/// Returns the offset in bytes from the start of the input buffer
/// of the first explicit kernel argument.
unsigned getExplicitKernelArgOffset(const MachineFunction &MF) const {
OpenPOWER on IntegriCloud