File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -1159,6 +1159,31 @@ def TRAPID{
1159
1159
int LLVM_DEBUG_TRAP = 3;
1160
1160
}
1161
1161
1162
+ def HWREG {
1163
+ int MODE = 1;
1164
+ int STATUS = 2;
1165
+ int TRAPSTS = 3;
1166
+ int HW_ID = 4;
1167
+ int GPR_ALLOC = 5;
1168
+ int LDS_ALLOC = 6;
1169
+ int IB_STS = 7;
1170
+ int MEM_BASES = 15;
1171
+ int TBA_LO = 16;
1172
+ int TBA_HI = 17;
1173
+ int TMA_LO = 18;
1174
+ int TMA_HI = 19;
1175
+ int FLAT_SCR_LO = 20;
1176
+ int FLAT_SCR_HI = 21;
1177
+ int XNACK_MASK = 22;
1178
+ int POPS_PACKER = 25;
1179
+ }
1180
+
1181
+ class getHwRegImm<int Reg, int Offset = 0, int Size = 32> {
1182
+ int ret = !or(Reg,
1183
+ !or(!shl(Offset, 6),
1184
+ !shl(!add(Size, -1), 11)));
1185
+ }
1186
+
1162
1187
//===----------------------------------------------------------------------===//
1163
1188
//
1164
1189
// SI Instruction multiclass helpers.
You can’t perform that action at this time.
0 commit comments