|
23 | 23 | #include "Utils/AMDGPUBaseInfo.h" |
24 | 24 | #include "llvm/CodeGen/SelectionDAGTargetInfo.h" |
25 | 25 | #include "llvm/Support/ErrorHandling.h" |
26 | | -#include "llvm/TargetParser/TargetParser.h" |
27 | 26 |
|
28 | 27 | #define GET_SUBTARGETINFO_HEADER |
29 | 28 | #include "AMDGPUGenSubtargetInfo.inc" |
@@ -224,6 +223,7 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo, |
224 | 223 | bool HasImageStoreD16Bug = false; |
225 | 224 | bool HasImageGather4D16Bug = false; |
226 | 225 | bool HasMSAALoadDstSelBug = false; |
| 226 | + bool HasPrivEnabledBug = false; |
227 | 227 | bool Has1_5xVGPRs = false; |
228 | 228 | bool HasMADIntraFwdBug = false; |
229 | 229 | bool HasVOPDInsts = false; |
@@ -444,13 +444,6 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo, |
444 | 444 | return isAmdHsaOS() ? TrapHandlerAbi::AMDHSA : TrapHandlerAbi::NONE; |
445 | 445 | } |
446 | 446 |
|
447 | | - // True on hardware where 's_trap 2' is treated as a nop that must be |
448 | | - // simulated. |
449 | | - bool requiresSimulatedTrap() const { |
450 | | - AMDGPU::IsaVersion V = AMDGPU::getIsaVersion(getCPU()); |
451 | | - return V.Major == 11 && V.Minor <= 3; |
452 | | - } |
453 | | - |
454 | 447 | bool supportsGetDoorbellID() const { |
455 | 448 | // The S_GETREG DOORBELL_ID is supported by all GFX9 onward targets. |
456 | 449 | return getGeneration() >= GFX9; |
@@ -1034,6 +1027,8 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo, |
1034 | 1027 |
|
1035 | 1028 | bool hasMSAALoadDstSelBug() const { return HasMSAALoadDstSelBug; } |
1036 | 1029 |
|
| 1030 | + bool hasPrivEnabledBug() const { return HasPrivEnabledBug; } |
| 1031 | + |
1037 | 1032 | bool hasNSAEncoding() const { return HasNSAEncoding; } |
1038 | 1033 |
|
1039 | 1034 | bool hasNonNSAEncoding() const { return getGeneration() < GFX12; } |
|
0 commit comments