diff options
| author | Konstantin Zhuravlyov <kzhuravl_dev@outlook.com> | 2018-05-04 20:06:57 +0000 |
|---|---|---|
| committer | Konstantin Zhuravlyov <kzhuravl_dev@outlook.com> | 2018-05-04 20:06:57 +0000 |
| commit | c2c2eb7d01bbf279dbe40a97b521404231c7768d (patch) | |
| tree | 9868bd0b9ea5b60a616a6ef46c6532cf9a0983ec /llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h | |
| parent | e1c7a46d5b55bbe870c0b9aa3a4f3d3ea396550e (diff) | |
| download | bcm5719-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.h | 5 |
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 { |

