File tree 1 file changed +0
-28
lines changed
llvm/lib/Target/ARM/AsmParser 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -1260,34 +1260,6 @@ class ARMOperand : public MCParsedAsmOperand {
1260
1260
return isImmediate<1 , 33 >();
1261
1261
}
1262
1262
1263
- template <int shift>
1264
- bool isExpImmValue (uint64_t Value) const {
1265
- uint64_t mask = (1 << shift) - 1 ;
1266
- if ((Value & mask) != 0 || (Value >> shift) > 0xff )
1267
- return false ;
1268
- return true ;
1269
- }
1270
-
1271
- template <int shift>
1272
- bool isExpImm () const {
1273
- if (!isImm ()) return false ;
1274
- const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm ());
1275
- if (!CE) return false ;
1276
-
1277
- return isExpImmValue<shift>(CE->getValue ());
1278
- }
1279
-
1280
- template <int shift, int size>
1281
- bool isInvertedExpImm () const {
1282
- if (!isImm ()) return false ;
1283
- const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm ());
1284
- if (!CE) return false ;
1285
-
1286
- uint64_t OriginalValue = CE->getValue ();
1287
- uint64_t InvertedValue = OriginalValue ^ (((uint64_t )1 << size) - 1 );
1288
- return isExpImmValue<shift>(InvertedValue);
1289
- }
1290
-
1291
1263
bool isPKHLSLImm () const {
1292
1264
return isImmediate<0 , 32 >();
1293
1265
}
You can’t perform that action at this time.
0 commit comments