aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-03-17 00:30:38 -0700
committerFangrui Song <i@maskray.me>2021-03-17 00:30:38 -0700
commit5bd6b0a62b0e66b358bc499e9746f111ef98409d (patch)
treecb4f7ef969d5224d2ab48d451975024af04c3098
parent1d7960a601fc83b3847f83681573019271e7516f (diff)
downloadllvm-5bd6b0a62b0e66b358bc499e9746f111ef98409d.zip
llvm-5bd6b0a62b0e66b358bc499e9746f111ef98409d.tar.gz
llvm-5bd6b0a62b0e66b358bc499e9746f111ef98409d.tar.bz2
[MC] Delete unused MCOperand::{create,is,get}FPImm
-rw-r--r--llvm/include/llvm/MC/MCInst.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/include/llvm/MC/MCInst.h b/llvm/include/llvm/MC/MCInst.h
index f22a452..35f9d94 100644
--- a/llvm/include/llvm/MC/MCInst.h
+++ b/llvm/include/llvm/MC/MCInst.h
@@ -61,7 +61,6 @@ public:
bool isImm() const { return Kind == kImmediate; }
bool isSFPImm() const { return Kind == kSFPImmediate; }
bool isDFPImm() const { return Kind == kDFPImmediate; }
- bool isFPImm() const { return Kind == kDFPImmediate; }
bool isExpr() const { return Kind == kExpr; }
bool isInst() const { return Kind == kInst; }
@@ -101,10 +100,6 @@ public:
assert(isDFPImm() && "This is not an FP immediate");
return FPImmVal;
}
- double getFPImm() const {
- assert(isDFPImm() && "This is not an FP immediate");
- return bit_cast<double>(FPImmVal);
- }
void setDFPImm(uint64_t Val) {
assert(isDFPImm() && "This is not an FP immediate");
@@ -162,12 +157,6 @@ public:
Op.FPImmVal = Val;
return Op;
}
- static MCOperand createFPImm(double Val) {
- MCOperand Op;
- Op.Kind = kDFPImmediate;
- Op.FPImmVal = bit_cast<uint64_t>(Val);
- return Op;
- }
static MCOperand createExpr(const MCExpr *Val) {
MCOperand Op;