@@ -1017,9 +1017,8 @@ def SDWAVopcDst : BoolRC {
1017
1017
let PrintMethod = "printVOPDst";
1018
1018
}
1019
1019
1020
- class NamedIntOperand<ValueType Type, string prefix, bit Optional = 1,
1021
- string name = NAME>
1022
- : CustomOperand<Type, Optional, name> {
1020
+ class NamedIntOperand<string prefix, bit Optional = 1, string name = NAME>
1021
+ : CustomOperand<i32, Optional, name> {
1023
1022
string Prefix = prefix;
1024
1023
1025
1024
let PredicateMethod =
@@ -1079,10 +1078,10 @@ class ArrayOperand0<string Id, string Name = NAME>
1079
1078
let ImmTy = "ImmTyOffset" in
1080
1079
def flat_offset : CustomOperand<i32, 1, "FlatOffset">;
1081
1080
let PrintMethod = "printOffset" in
1082
- def Offset : NamedIntOperand<i32, "offset">;
1081
+ def Offset : NamedIntOperand<"offset">;
1083
1082
let Validator = "isUInt<8>" in {
1084
- def Offset0 : NamedIntOperand<i32, "offset0">;
1085
- def Offset1 : NamedIntOperand<i32, "offset1">;
1083
+ def Offset0 : NamedIntOperand<"offset0">;
1084
+ def Offset1 : NamedIntOperand<"offset1">;
1086
1085
}
1087
1086
1088
1087
def gds : NamedBitOperand<"gds", "GDS">;
@@ -1118,7 +1117,7 @@ def exp_vm : NamedBitOperand<"vm", "ExpVM">;
1118
1117
def FORMAT : CustomOperand<i8>;
1119
1118
1120
1119
let PrintInHex = 1 in
1121
- def DMask : NamedIntOperand<i16, "dmask">;
1120
+ def DMask : NamedIntOperand<"dmask">;
1122
1121
1123
1122
def Dim : CustomOperand<i8, /*optional=*/1>;
1124
1123
@@ -1139,46 +1138,46 @@ def dpp8 : CustomOperand<i32, 0, "DPP8">;
1139
1138
def dpp_ctrl : CustomOperand<i32, 0, "DPPCtrl">;
1140
1139
1141
1140
let DefaultValue = "0xf", PrintInHex = 1, AlwaysPrint = 1 in {
1142
- def DppRowMask : NamedIntOperand<i32, "row_mask">;
1143
- def DppBankMask : NamedIntOperand<i32, "bank_mask">;
1141
+ def DppRowMask : NamedIntOperand<"row_mask">;
1142
+ def DppBankMask : NamedIntOperand<"bank_mask">;
1144
1143
}
1145
- def DppBoundCtrl : NamedIntOperand<i1, "bound_ctrl"> {
1144
+ def DppBoundCtrl : NamedIntOperand<"bound_ctrl"> {
1146
1145
let ConvertMethod = "[this] (int64_t &BC) -> bool { return convertDppBoundCtrl(BC); }";
1147
1146
let PrintMethod = "printDppBoundCtrl";
1148
1147
}
1149
1148
1150
1149
let DecoderMethod = "decodeDpp8FI", PrintMethod = "printDppFI" in
1151
- def Dpp8FI : NamedIntOperand<i32, "fi", 1, "DppFI">;
1150
+ def Dpp8FI : NamedIntOperand<"fi", 1, "DppFI">;
1152
1151
let PrintMethod = "printDppFI" in
1153
- def Dpp16FI : NamedIntOperand<i32, "fi", 1, "DppFI">;
1152
+ def Dpp16FI : NamedIntOperand<"fi", 1, "DppFI">;
1154
1153
1155
1154
def blgp : CustomOperand<i32, 1, "BLGP">;
1156
- def CBSZ : NamedIntOperand<i32, "cbsz"> {
1155
+ def CBSZ : NamedIntOperand<"cbsz"> {
1157
1156
let Validator = "isUInt<3>";
1158
1157
}
1159
- def ABID : NamedIntOperand<i32, "abid"> {
1158
+ def ABID : NamedIntOperand<"abid"> {
1160
1159
let Validator = "isUInt<4>";
1161
1160
}
1162
1161
def hwreg : CustomOperand<i32, 0, "Hwreg">;
1163
1162
1164
1163
def exp_tgt : CustomOperand<i32, 0, "ExpTgt">;
1165
1164
1166
1165
let AlwaysPrint = 1 in {
1167
- def WaitVDST : NamedIntOperand<i8, "wait_vdst"> {
1166
+ def WaitVDST : NamedIntOperand<"wait_vdst"> {
1168
1167
let Validator = "isUInt<4>";
1169
1168
}
1170
- def WaitEXP : NamedIntOperand<i8, "wait_exp"> {
1169
+ def WaitEXP : NamedIntOperand<"wait_exp"> {
1171
1170
let Validator = "isUInt<3>";
1172
1171
}
1173
- def WaitVAVDst : NamedIntOperand<i8, "wait_va_vdst"> {
1172
+ def WaitVAVDst : NamedIntOperand<"wait_va_vdst"> {
1174
1173
let Validator = "isUInt<4>";
1175
1174
}
1176
- def WaitVMVSrc : NamedIntOperand<i8, "wait_vm_vsrc"> {
1175
+ def WaitVMVSrc : NamedIntOperand<"wait_vm_vsrc"> {
1177
1176
let Validator = "isUInt<1>";
1178
1177
}
1179
1178
} // End AlwaysPrint = 1
1180
1179
1181
- def ByteSel : NamedIntOperand<i8, "byte_sel"> {
1180
+ def ByteSel : NamedIntOperand<"byte_sel"> {
1182
1181
let Validator = "isUInt<2>";
1183
1182
}
1184
1183
0 commit comments