@@ -156,6 +156,8 @@ def MipsSDR : SDNode<"MipsISD::SDR", SDTStore,
156156//===----------------------------------------------------------------------===//
157157// Mips Instruction Predicate Definitions.
158158//===----------------------------------------------------------------------===//
159+ // FIXME: Move to Mips.td
160+
159161def HasMips2 : Predicate<"Subtarget->hasMips2()">,
160162 AssemblerPredicate<(all_of FeatureMips2)>;
161163def HasMips3_32 : Predicate<"Subtarget->hasMips3_32()">,
@@ -188,10 +190,6 @@ def IsGP64bit : Predicate<"Subtarget->isGP64bit()">,
188190 AssemblerPredicate<(all_of FeatureGP64Bit)>;
189191def IsGP32bit : Predicate<"!Subtarget->isGP64bit()">,
190192 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))>;
195193def HasMips64 : Predicate<"Subtarget->hasMips64()">,
196194 AssemblerPredicate<(all_of FeatureMips64)>;
197195def NotMips64 : Predicate<"!Subtarget->hasMips64()">,
@@ -1125,7 +1123,7 @@ def InvertedImOperand64 : Operand<i64> {
11251123
11261124class mem_generic : Operand<iPTR> {
11271125 let PrintMethod = "printMemOperand";
1128- let MIOperandInfo = (ops ptr_rc , simm16);
1126+ let MIOperandInfo = (ops mips_ptr_rc , simm16);
11291127 let EncoderMethod = "getMemEncoding";
11301128 let ParserMatchClass = MipsMemAsmOperand;
11311129 let OperandType = "OPERAND_MEMORY";
@@ -1136,7 +1134,7 @@ def mem : mem_generic;
11361134
11371135// MSA specific address operand
11381136def mem_msa : mem_generic {
1139- let MIOperandInfo = (ops ptr_rc , simm10);
1137+ let MIOperandInfo = (ops mips_ptr_rc , simm10);
11401138 let EncoderMethod = "getMSAMemEncoding";
11411139}
11421140
@@ -1145,21 +1143,21 @@ def simm12 : Operand<i32> {
11451143}
11461144
11471145def mem_simm9_exp : mem_generic {
1148- let MIOperandInfo = (ops ptr_rc , simm9);
1146+ let MIOperandInfo = (ops mips_ptr_rc , simm9);
11491147 let ParserMatchClass = MipsMemSimmPtrAsmOperand;
11501148 let OperandNamespace = "MipsII";
11511149 let OperandType = "OPERAND_MEM_SIMM9";
11521150}
11531151
11541152foreach I = {9, 10, 11, 12, 16} in
11551153 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));
11571155 let ParserMatchClass = MipsMemSimmAsmOperand<I>;
11581156 }
11591157
11601158foreach I = {1, 2, 3} in
11611159 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));
11631161 let EncoderMethod = "getMemEncoding<" # I # ">";
11641162 let ParserMatchClass = MipsMemSimmAsmOperand<10, I>;
11651163 }
@@ -1170,13 +1168,13 @@ def mem_simmptr : mem_generic {
11701168
11711169def mem_ea : Operand<iPTR> {
11721170 let PrintMethod = "printMemOperandEA";
1173- let MIOperandInfo = (ops ptr_rc , simm16);
1171+ let MIOperandInfo = (ops mips_ptr_rc , simm16);
11741172 let EncoderMethod = "getMemEncoding";
11751173 let OperandType = "OPERAND_MEMORY";
11761174}
11771175
11781176def PtrRC : Operand<iPTR> {
1179- let MIOperandInfo = (ops ptr_rc );
1177+ let MIOperandInfo = (ops mips_ptr_rc );
11801178 let DecoderMethod = "DecodePtrRegisterClass";
11811179 let ParserMatchClass = GPR32AsmOperand;
11821180}
0 commit comments