Skip to content

Commit 94daee2

Browse files
[ARM] Remove unused functions isExpImmValue, isExpImm, and isInvertedExpImm
The last uses were removed by: commit 772e493 Author: Simon Tatham <[email protected]> Date: Thu Jan 23 11:53:27 2020 +0000 Differential Revision: https://reviews.llvm.org/D151299
1 parent f74bb32 commit 94daee2

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,34 +1260,6 @@ class ARMOperand : public MCParsedAsmOperand {
12601260
return isImmediate<1, 33>();
12611261
}
12621262

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-
12911263
bool isPKHLSLImm() const {
12921264
return isImmediate<0, 32>();
12931265
}

0 commit comments

Comments
 (0)