@@ -156,6 +156,8 @@ def MipsSDR : SDNode<"MipsISD::SDR", SDTStore,
156
156
//===----------------------------------------------------------------------===//
157
157
// Mips Instruction Predicate Definitions.
158
158
//===----------------------------------------------------------------------===//
159
+ // FIXME: Move to Mips.td
160
+
159
161
def HasMips2 : Predicate<"Subtarget->hasMips2()">,
160
162
AssemblerPredicate<(all_of FeatureMips2)>;
161
163
def HasMips3_32 : Predicate<"Subtarget->hasMips3_32()">,
@@ -188,10 +190,6 @@ def IsGP64bit : Predicate<"Subtarget->isGP64bit()">,
188
190
AssemblerPredicate<(all_of FeatureGP64Bit)>;
189
191
def IsGP32bit : Predicate<"!Subtarget->isGP64bit()">,
190
192
AssemblerPredicate<(all_of (not FeatureGP64Bit))>;
191
- def IsPTR64bit : Predicate<"Subtarget->isABI_N64()">,
192
- AssemblerPredicate<(all_of FeaturePTR64Bit)>;
193
- def IsPTR32bit : Predicate<"!Subtarget->isABI_N64()">,
194
- AssemblerPredicate<(all_of (not FeaturePTR64Bit))>;
195
193
def HasMips64 : Predicate<"Subtarget->hasMips64()">,
196
194
AssemblerPredicate<(all_of FeatureMips64)>;
197
195
def NotMips64 : Predicate<"!Subtarget->hasMips64()">,
@@ -1125,7 +1123,7 @@ def InvertedImOperand64 : Operand<i64> {
1125
1123
1126
1124
class mem_generic : Operand<iPTR> {
1127
1125
let PrintMethod = "printMemOperand";
1128
- let MIOperandInfo = (ops ptr_rc , simm16);
1126
+ let MIOperandInfo = (ops mips_ptr_rc , simm16);
1129
1127
let EncoderMethod = "getMemEncoding";
1130
1128
let ParserMatchClass = MipsMemAsmOperand;
1131
1129
let OperandType = "OPERAND_MEMORY";
@@ -1136,7 +1134,7 @@ def mem : mem_generic;
1136
1134
1137
1135
// MSA specific address operand
1138
1136
def mem_msa : mem_generic {
1139
- let MIOperandInfo = (ops ptr_rc , simm10);
1137
+ let MIOperandInfo = (ops mips_ptr_rc , simm10);
1140
1138
let EncoderMethod = "getMSAMemEncoding";
1141
1139
}
1142
1140
@@ -1145,21 +1143,21 @@ def simm12 : Operand<i32> {
1145
1143
}
1146
1144
1147
1145
def mem_simm9_exp : mem_generic {
1148
- let MIOperandInfo = (ops ptr_rc , simm9);
1146
+ let MIOperandInfo = (ops mips_ptr_rc , simm9);
1149
1147
let ParserMatchClass = MipsMemSimmPtrAsmOperand;
1150
1148
let OperandNamespace = "MipsII";
1151
1149
let OperandType = "OPERAND_MEM_SIMM9";
1152
1150
}
1153
1151
1154
1152
foreach I = {9, 10, 11, 12, 16} in
1155
1153
def mem_simm # I : mem_generic {
1156
- let MIOperandInfo = (ops ptr_rc , !cast<Operand>("simm" # I));
1154
+ let MIOperandInfo = (ops mips_ptr_rc , !cast<Operand>("simm" # I));
1157
1155
let ParserMatchClass = MipsMemSimmAsmOperand<I>;
1158
1156
}
1159
1157
1160
1158
foreach I = {1, 2, 3} in
1161
1159
def mem_simm10_lsl # I : mem_generic {
1162
- let MIOperandInfo = (ops ptr_rc , !cast<Operand>("simm10_lsl" # I));
1160
+ let MIOperandInfo = (ops mips_ptr_rc , !cast<Operand>("simm10_lsl" # I));
1163
1161
let EncoderMethod = "getMemEncoding<" # I # ">";
1164
1162
let ParserMatchClass = MipsMemSimmAsmOperand<10, I>;
1165
1163
}
@@ -1170,13 +1168,13 @@ def mem_simmptr : mem_generic {
1170
1168
1171
1169
def mem_ea : Operand<iPTR> {
1172
1170
let PrintMethod = "printMemOperandEA";
1173
- let MIOperandInfo = (ops ptr_rc , simm16);
1171
+ let MIOperandInfo = (ops mips_ptr_rc , simm16);
1174
1172
let EncoderMethod = "getMemEncoding";
1175
1173
let OperandType = "OPERAND_MEMORY";
1176
1174
}
1177
1175
1178
1176
def PtrRC : Operand<iPTR> {
1179
- let MIOperandInfo = (ops ptr_rc );
1177
+ let MIOperandInfo = (ops mips_ptr_rc );
1180
1178
let DecoderMethod = "DecodePtrRegisterClass";
1181
1179
let ParserMatchClass = GPR32AsmOperand;
1182
1180
}
0 commit comments