| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 1361 const APFloat &APF = CFP->getValueAPF(); in FlushFPConstant() 1881 return Op->getValueAPF().convertToDouble(); in getValueAsDouble() 1884 APFloat APF = Op->getValueAPF(); in getValueAsDouble() 1996 APFloat Val(Op->getValueAPF()); in ConstantFoldScalarCall1() 2004 APFloat U = Op->getValueAPF(); in ConstantFoldScalarCall1() 2145 const APFloat &APF = Op->getValueAPF(); in ConstantFoldScalarCall1() 2467 const APFloat &Op1V = Op1->getValueAPF(); in ConstantFoldScalarCall2() 2472 const APFloat &Op2V = Op2->getValueAPF(); in ConstantFoldScalarCall2() 2557 APFloat V = Op1->getValueAPF(); in ConstantFoldScalarCall2() 2565 APFloat V = Op1->getValueAPF(); in ConstantFoldScalarCall2() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUInstCombineIntrinsic.cpp | 73 APFloat FloatValue(ConstFloat->getValueAPF()); in canSafelyConvertTo16Bit() 368 const APFloat &ArgVal = C->getValueAPF(); in instCombineIntrinsic() 399 frexp(C->getValueAPF(), Exp, APFloat::rmNearestTiesToEven); in instCombineIntrinsic() 505 const APFloat &Val = CVal->getValueAPF(); in instCombineIntrinsic() 529 APFloat Val0 = C0->getValueAPF(); in instCombineIntrinsic() 530 APFloat Val1 = C1->getValueAPF(); in instCombineIntrinsic() 705 APFloat Result = fmed3AMDGCN(C0->getValueAPF(), C1->getValueAPF(), in instCombineIntrinsic() 706 C2->getValueAPF()); in instCombineIntrinsic()
|
| H A D | AMDGPULibCalls.cpp | 902 : CF->getValueAPF().convertToDouble(); in fold_pow() 964 ? (double)CF->getValueAPF().convertToFloat() in fold_pow() 965 : CF->getValueAPF().convertToDouble(); in fold_pow() 1015 ? (double)CF->getValueAPF().convertToFloat() in fold_pow() 1016 : CF->getValueAPF().convertToDouble(); in fold_pow() 1376 ? fpopr0->getValueAPF().convertToDouble() in evaluateScalarMathFunc() 1377 : (double)fpopr0->getValueAPF().convertToFloat(); in evaluateScalarMathFunc() 1382 ? fpopr1->getValueAPF().convertToDouble() in evaluateScalarMathFunc() 1383 : (double)fpopr1->getValueAPF().convertToFloat(); in evaluateScalarMathFunc() 1388 ? fpopr2->getValueAPF().convertToDouble() in evaluateScalarMathFunc() [all …]
|
| H A D | AMDGPUISelDAGToDAG.h | 48 Out = C->getValueAPF().bitcastToAPInt().getSExtValue(); in getConstantValue()
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVMCInstLower.cpp | 57 MO.getFPImm()->getValueAPF().convertToFloat()); in lower()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | Float2Int.cpp | 258 const APFloat &F = CF->getValueAPF(); in calcRange() 276 CF->getValueAPF().convertToInteger(Int, in calcRange() 445 CF->getValueAPF().convertToInteger(Val, in convert()
|
| H A D | LowerExpectIntrinsic.cpp | 67 double TrueProb = Confidence->getValueAPF().convertToDouble(); in getBranchWeight()
|
| H A D | IndVarSimplify.cpp | 223 if (!InitValueVal || !ConvertToSInt(InitValueVal->getValueAPF(), InitValue)) in handleFloatingPointIV() 236 !ConvertToSInt(IncValueVal->getValueAPF(), IncValue)) in handleFloatingPointIV() 273 !ConvertToSInt(ExitValueVal->getValueAPF(), ExitValue)) in handleFloatingPointIV()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGDumper.cpp | 628 if (&CSDN->getValueAPF().getSemantics() == &APFloat::IEEEsingle()) in print_details() 629 OS << '<' << CSDN->getValueAPF().convertToFloat() << '>'; in print_details() 630 else if (&CSDN->getValueAPF().getSemantics() == &APFloat::IEEEdouble()) in print_details() 631 OS << '<' << CSDN->getValueAPF().convertToDouble() << '>'; in print_details() 634 CSDN->getValueAPF().bitcastToAPInt().print(OS, false); in print_details()
|
| H A D | SelectionDAG.cpp | 119 return getValueAPF().bitwiseIsEqual(V); in isExactlyValue() 2378 APFloat::cmpResult R = N1CFP->getValueAPF().compare(N2CFP->getValueAPF()); in FoldSetCC() 4604 return !C->getValueAPF().isNaN() || in isKnownNeverNaN() 5779 const APFloat &C2 = N2CFP->getValueAPF(); in foldConstantFPMath() 6405 APFloat V1 = N1CFP->getValueAPF(); in getNode() 6406 const APFloat &V2 = N2CFP->getValueAPF(); in getNode() 8880 if (YC->getValueAPF().isNegZero()) in simplifyFPBinop() 8885 if (YC->getValueAPF().isPosZero()) in simplifyFPBinop() 8891 if (YC->getValueAPF().isExactlyValue(1.0)) in simplifyFPBinop() 8896 if (YC->getValueAPF().isZero()) in simplifyFPBinop() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | Utils.cpp | 401 return CstVal.getFPImm()->getValueAPF().bitcastToAPInt(); in getCImmOrFPImmAsAPInt() 427 return FPValueAndVReg{getConstantFPVRegVal(Reg->VReg, MRI)->getValueAPF(), in getFConstantVRegValWithLookThrough() 567 APFloat C1 = Op1Cst->getValueAPF(); in ConstantFoldFPBinOp() 568 const APFloat &C2 = Op2Cst->getValueAPF(); in ConstantFoldFPBinOp() 645 return !FPVal->getValueAPF().isNaN() || in isKnownNeverNaN() 646 (SNaN && !FPVal->getValueAPF().isSignaling()); in isKnownNeverNaN()
|
| /llvm-project-15.0.7/llvm/lib/Target/CSKY/ |
| H A D | CSKYInstrInfoF1.td | 51 (N->getValueAPF().bitcastToAPInt().getZExtValue() >> 16) & 0xFFFF, 57 N->getValueAPF().bitcastToAPInt().getZExtValue() & 0xFFFF, 62 …"return CurDAG->getTargetConstant(N->getValueAPF().bitcastToAPInt().lshr("#shift#").getLoBits("#wi… 65 …"return CurDAG->getTargetConstant(N->getValueAPF().bitcastToAPInt().lshr("#shift#").getLoBits("#wi… 68 "return isShiftedUInt<"#width#", "#shift#">(N->getValueAPF().bitcastToAPInt().getZExtValue());">;
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Constants.cpp | 100 return CFP->getValueAPF().bitcastToAPInt().isAllOnes(); in isAllOnesValue() 117 return CFP->getValueAPF().bitcastToAPInt().isOne(); in isOneValue() 134 return !CFP->getValueAPF().bitcastToAPInt().isOne(); in isNotOneValue() 162 return CFP->getValueAPF().bitcastToAPInt().isMinSignedValue(); in isMinSignedValue() 179 return !CFP->getValueAPF().bitcastToAPInt().isMinSignedValue(); in isNotMinSignedValue() 202 return CFP->getValueAPF().isFiniteNonZero(); in isFiniteNonZeroFP() 207 if (!CFP || !CFP->getValueAPF().isFiniteNonZero()) in isFiniteNonZeroFP() 223 return CFP->getValueAPF().isNormal(); in isNormalFP() 228 if (!CFP || !CFP->getValueAPF().isNormal()) in isNormalFP() 244 return CFP->getValueAPF().getExactInverse(nullptr); in hasExactInverseFP() [all …]
|
| H A D | ConstantFold.cpp | 198 FP->getValueAPF().bitcastToAPInt()); in FoldBitCast() 437 APFloat Val = FPC->getValueAPF(); in ConstantFoldCastInstruction() 446 const APFloat &V = FPC->getValueAPF(); in ConstantFoldCastInstruction() 840 const APFloat &CV = CFP->getValueAPF(); in ConstantFoldUnaryInstruction() 1192 const APFloat &C1V = CFP1->getValueAPF(); in ConstantFoldBinaryInstruction() 1193 const APFloat &C2V = CFP2->getValueAPF(); in ConstantFoldBinaryInstruction() 1674 const APFloat &C1V = cast<ConstantFP>(C1)->getValueAPF(); in ConstantFoldCompareInstruction() 1675 const APFloat &C2V = cast<ConstantFP>(C2)->getValueAPF(); in ConstantFoldCompareInstruction()
|
| H A D | ProfileSummary.cpp | 129 Val = cast<ConstantFP>(ValMD->getValue())->getValueAPF().convertToDouble(); in getVal()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMMCInstLower.cpp | 110 APFloat Val = MO.getFPImm()->getValueAPF(); in lowerOperand()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | MIRVRegNamerUtils.cpp | 77 MO.getFPImm()->getValueAPF().bitcastToAPInt().getZExtValue()); in getInstructionOpcodeHash()
|
| H A D | MachineStableHash.cpp | 82 : MO.getFPImm()->getValueAPF().bitcastToAPInt(); in stableHashValue()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/ |
| H A D | ExecutionEngine.cpp | 885 Result.FloatVal = cast<ConstantFP>(C)->getValueAPF().convertToFloat(); in getConstantValue() 888 Result.DoubleVal = cast<ConstantFP>(C)->getValueAPF().convertToDouble(); in getConstantValue() 893 Result.IntVal = cast <ConstantFP>(C)->getValueAPF().bitcastToAPInt(); in getConstantValue() 946 CV->getOperand(i))->getValueAPF().convertToFloat(); in getConstantValue() 968 CV->getOperand(i))->getValueAPF().convertToDouble(); in getConstantValue()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonMCInstLower.cpp | 142 APFloat Val = MO.getFPImm()->getValueAPF(); in HexagonLowerToMC()
|
| /llvm-project-15.0.7/llvm/lib/Target/WebAssembly/ |
| H A D | WebAssemblyMCInstLower.cpp | 242 Imm->getValueAPF().bitcastToAPInt().getZExtValue(); in lower()
|
| /llvm-project-15.0.7/llvm/lib/Target/VE/ |
| H A D | VEISelDAGToDAG.cpp | 108 const APInt &Imm = N->getValueAPF().bitcastToAPInt(); in getFpImmVal()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | LibCallsShrinkWrap.cpp | 432 double D = CF->getValueAPF().convertToDouble(); in generateCondForPow()
|
| H A D | FunctionComparator.cpp | 311 const APFloat &LAPF = cast<ConstantFP>(L)->getValueAPF(); in cmpConstants() 312 const APFloat &RAPF = cast<ConstantFP>(R)->getValueAPF(); in cmpConstants()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/ |
| H A D | AArch64PreLegalizerCombiner.cpp | 57 const APFloat &ImmValAPF = MI.getOperand(1).getFPImm()->getValueAPF(); in applyFConstantToConstant()
|