diff options
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h')
| -rw-r--r-- | llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h index 645559e2c83..12e6fee7d26 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h @@ -96,6 +96,7 @@ private: unsigned IsaVersion; bool EnableSIScheduler; bool DebuggerInsertNops; + bool DebuggerReserveTrapVGPRs; std::unique_ptr<AMDGPUFrameLowering> FrameLowering; std::unique_ptr<AMDGPUTargetLowering> TLInfo; @@ -309,6 +310,14 @@ public: return DebuggerInsertNops; } + bool debuggerReserveTrapVGPRs() const { + return DebuggerReserveTrapVGPRs; + } + + unsigned debuggerReserveTrapVGPRCount() const { + return debuggerReserveTrapVGPRs() ? 4 : 0; + } + bool dumpCode() const { return DumpCode; } |

