diff options
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIDefines.h')
-rw-r--r-- | llvm/lib/Target/AMDGPU/SIDefines.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIDefines.h b/llvm/lib/Target/AMDGPU/SIDefines.h index a01330cb917..1e765e4c166 100644 --- a/llvm/lib/Target/AMDGPU/SIDefines.h +++ b/llvm/lib/Target/AMDGPU/SIDefines.h @@ -118,6 +118,10 @@ namespace AMDGPU { // Operand for source modifiers for VOP instructions OPERAND_INPUT_MODS, + // Operand for GFX9 SDWA instructions + OPERAND_SDWA9_SRC, + OPERAND_SDWA9_VOPC_DST, + /// Operand with 32-bit immediate that uses the constant bus. OPERAND_KIMM32, OPERAND_KIMM16 @@ -160,7 +164,8 @@ namespace AMDGPUAsmVariants { DEFAULT = 0, VOP3 = 1, SDWA = 2, - DPP = 3 + SDWA9 = 3, + DPP = 4 }; } @@ -294,6 +299,11 @@ enum DstUnused { UNUSED_PRESERVE = 2, }; +#define SDWA9_SRC_SGPR_MASK 0x100 +#define SDWA9_SRC_REG_MASK 0xFF +#define SDWA9_VOPC_DST_VCC_MASK 0x80 +#define SDWA9_VOPC_DST_REG_MASK 0x7F + } // namespace SDWA } // namespace AMDGPU |