Go to the documentation of this file.
10#ifndef LLVM_LIB_TARGET_AMDGPU_R600DEFINES_H
11#define LLVM_LIB_TARGET_AMDGPU_R600DEFINES_H
14#define MO_FLAG_CLAMP (1 << 0)
15#define MO_FLAG_NEG (1 << 1)
16#define MO_FLAG_ABS (1 << 2)
17#define MO_FLAG_MASK (1 << 3)
18#define MO_FLAG_PUSH (1 << 4)
19#define MO_FLAG_NOT_LAST (1 << 5)
20#define MO_FLAG_LAST (1 << 6)
25#define GET_FLAG_OPERAND_IDX(Flags) (((Flags) >> 7) & 0x3)
50#define HAS_NATIVE_OPERANDS(Flags) ((Flags) & R600_InstFlag::NATIVE_OPERANDS)
53#define HW_REG_MASK 0x1ff
54#define HW_CHAN_SHIFT 9
56#define GET_REG_CHAN(reg) ((reg) >> HW_CHAN_SHIFT)
57#define GET_REG_INDEX(reg) ((reg) & HW_REG_MASK)
59#define IS_VTX(desc) ((desc).TSFlags & R600_InstFlag::VTX_INST)
60#define IS_TEX(desc) ((desc).TSFlags & R600_InstFlag::TEX_INST)
144#define R_02880C_DB_SHADER_CONTROL 0x02880C
145#define S_02880C_KILL_ENABLE(x) (((x) & 0x1) << 6)
148#define S_NUM_GPRS(x) (((x) & 0xFF) << 0)
149#define S_STACK_SIZE(x) (((x) & 0xFF) << 8)
154#define R_028850_SQ_PGM_RESOURCES_PS 0x028850
155#define R_028868_SQ_PGM_RESOURCES_VS 0x028868
161#define R_028844_SQ_PGM_RESOURCES_PS 0x028844
162#define R_028860_SQ_PGM_RESOURCES_VS 0x028860
163#define R_028878_SQ_PGM_RESOURCES_GS 0x028878
164#define R_0288D4_SQ_PGM_RESOURCES_LS 0x0288d4
166#define R_0288E8_SQ_LDS_ALLOC 0x0288E8