diff options
| author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-07-20 17:42:47 +0000 |
|---|---|---|
| committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2017-07-20 17:42:47 +0000 |
| commit | c37fe66ec5b2346772abaeddc3ca783861a944c4 (patch) | |
| tree | 26c67f0e0cc47fd910a6bd3d0a0d8e4b23e4959d /llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h | |
| parent | f65c5ac9c98938ad0de15452012112805a123e7f (diff) | |
| download | bcm5719-llvm-c37fe66ec5b2346772abaeddc3ca783861a944c4.tar.gz bcm5719-llvm-c37fe66ec5b2346772abaeddc3ca783861a944c4.zip | |
AMDGPU: Add encoding for carryless add/sub instructions
llvm-svn: 308639
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 d4b6a5fe802..389fdc9d636 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h @@ -159,6 +159,7 @@ protected: bool FlatInstOffsets; bool FlatGlobalInsts; bool FlatScratchInsts; + bool AddNoCarryInsts; bool R600ALUInst; bool CaymanISA; bool CFALUBug; @@ -419,6 +420,10 @@ public: return FlatScratchInsts; } + bool hasAddNoCarry() const { + return AddNoCarryInsts; + } + bool isMesaKernel(const MachineFunction &MF) const { return isMesa3DOS() && !AMDGPU::isShader(MF.getFunction()->getCallingConv()); } |

