[llvm] 5bd6b0a - [MC] Delete unused MCOperand::{create,is,get}FPImm
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 17 00:30:45 PDT 2021
Author: Fangrui Song
Date: 2021-03-17T00:30:38-07:00
New Revision: 5bd6b0a62b0e66b358bc499e9746f111ef98409d
URL: https://github.com/llvm/llvm-project/commit/5bd6b0a62b0e66b358bc499e9746f111ef98409d
DIFF: https://github.com/llvm/llvm-project/commit/5bd6b0a62b0e66b358bc499e9746f111ef98409d.diff
LOG: [MC] Delete unused MCOperand::{create,is,get}FPImm
Added:
Modified:
llvm/include/llvm/MC/MCInst.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/MC/MCInst.h b/llvm/include/llvm/MC/MCInst.h
index f22a452d06f9..35f9d94dec74 100644
--- a/llvm/include/llvm/MC/MCInst.h
+++ b/llvm/include/llvm/MC/MCInst.h
@@ -61,7 +61,6 @@ class MCOperand {
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 @@ class MCOperand {
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 @@ class MCOperand {
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;
More information about the llvm-commits
mailing list