[PATCH] D151299: [ARM] Remove unused functions isExpImmValue, isExpImm, and isInvertedExpImm
Kazu Hirata via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 23 23:51:35 PDT 2023
kazu created this revision.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
kazu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The last uses were removed by:
commit 772e4931932270a82f38c83d4344c800b2f54eff
Author: Simon Tatham <simon.tatham at arm.com>
Date: Thu Jan 23 11:53:27 2020 +0000
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D151299
Files:
llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
Index: llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
===================================================================
--- llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
+++ llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
@@ -1260,34 +1260,6 @@
return isImmediate<1, 33>();
}
- template<int shift>
- bool isExpImmValue(uint64_t Value) const {
- uint64_t mask = (1 << shift) - 1;
- if ((Value & mask) != 0 || (Value >> shift) > 0xff)
- return false;
- return true;
- }
-
- template<int shift>
- bool isExpImm() const {
- if (!isImm()) return false;
- const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
- if (!CE) return false;
-
- return isExpImmValue<shift>(CE->getValue());
- }
-
- template<int shift, int size>
- bool isInvertedExpImm() const {
- if (!isImm()) return false;
- const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
- if (!CE) return false;
-
- uint64_t OriginalValue = CE->getValue();
- uint64_t InvertedValue = OriginalValue ^ (((uint64_t)1 << size) - 1);
- return isExpImmValue<shift>(InvertedValue);
- }
-
bool isPKHLSLImm() const {
return isImmediate<0, 32>();
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151299.525029.patch
Type: text/x-patch
Size: 1182 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230524/0c154fdb/attachment.bin>
More information about the llvm-commits
mailing list