LLVM 20.0.0git
|
Functions | |
float | getFPImm (unsigned Imm) |
int | getLoadFPImm (APFloat FPImm) |
getLoadFPImm - Return a 5-bit binary encoding of the floating-point immediate value. | |
float llvm::RISCVLoadFPImm::getFPImm | ( | unsigned | Imm | ) |
Definition at line 209 of file RISCVBaseInfo.cpp.
References assert(), I, and llvm::LoadFP32ImmArr.
Referenced by llvm::RISCVInstPrinter::printFPImmOperand().
int llvm::RISCVLoadFPImm::getLoadFPImm | ( | APFloat | FPImm | ) |
getLoadFPImm - Return a 5-bit binary encoding of the floating-point immediate value.
If the value cannot be represented as a 5-bit binary encoding, then return -1.
Definition at line 165 of file RISCVBaseInfo.cpp.
References assert(), llvm::APFloat::bitcastToAPInt(), llvm::APFloat::convert(), llvm::APFloat::getSemantics(), llvm::APFloatBase::IEEEdouble(), llvm::APFloatBase::IEEEhalf(), llvm::APFloatBase::IEEEsingle(), llvm::APFloat::isNegative(), llvm::APFloat::isSmallestNormalized(), llvm::LoadFP32ImmArr, llvm::lower_bound(), llvm::APFloatBase::opOK, and llvm::APFloatBase::rmNearestTiesToEven.
Referenced by llvm::RISCVTargetLowering::getLegalZfaFPImm().