Home
last modified time | relevance | path

Searched refs:getValueAPF (Results 1 – 25 of 68) sorted by relevance

123

/external/llvm/lib/Analysis/
DConstantFolding.cpp1390 return Op->getValueAPF().convertToFloat(); in getValueAsDouble()
1393 return Op->getValueAPF().convertToDouble(); in getValueAsDouble()
1396 APFloat APF = Op->getValueAPF(); in getValueAsDouble()
1407 APFloat Val(Op->getValueAPF()); in ConstantFoldScalarCall()
1419 APFloat V = Op->getValueAPF(); in ConstantFoldScalarCall()
1427 if (Op->getValueAPF().isNaN() || Op->getValueAPF().isInfinity()) in ConstantFoldScalarCall()
1574 return ConstantFoldConvertToInt(FPOp->getValueAPF(), in ConstantFoldScalarCall()
1582 return ConstantFoldConvertToInt(FPOp->getValueAPF(), in ConstantFoldScalarCall()
1611 APFloat V1 = Op1->getValueAPF(); in ConstantFoldScalarCall()
1612 APFloat V2 = Op2->getValueAPF(); in ConstantFoldScalarCall()
[all …]
/external/llvm/lib/Target/Hexagon/
DHexagonSplitConst32AndConst64.cpp120 APFloat Val = MI->getOperand(1).getFPImm()->getValueAPF(); in runOnMachineFunction()
139 APFloat Val = MI->getOperand(1).getFPImm()->getValueAPF(); in runOnMachineFunction()
DHexagonMCInstLower.cpp59 APFloat Val = MO.getFPImm()->getValueAPF(); in HexagonLowerToMC()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGDumper.cpp393 if (&CSDN->getValueAPF().getSemantics()==&APFloat::IEEEsingle) in print_details()
394 OS << '<' << CSDN->getValueAPF().convertToFloat() << '>'; in print_details()
395 else if (&CSDN->getValueAPF().getSemantics()==&APFloat::IEEEdouble) in print_details()
396 OS << '<' << CSDN->getValueAPF().convertToDouble() << '>'; in print_details()
399 CSDN->getValueAPF().bitcastToAPInt().dump(); in print_details()
DSelectionDAG.cpp75 return getValueAPF().bitwiseIsEqual(V); in isExactlyValue()
127 if (CFPN->getValueAPF().bitcastToAPInt().countTrailingOnes() < EltSize) in isBuildVectorAllOnes()
171 if (CFPN->getValueAPF().bitcastToAPInt().countTrailingZeros() < EltSize) in isBuildVectorAllZeros()
1884 APFloat::cmpResult R = N1C->getValueAPF().compare(N2C->getValueAPF()); in FoldSetCC()
2678 return !C->getValueAPF().isNaN(); in isKnownNeverNaN()
2787 APFloat V = C->getValueAPF(); // make copy in getNode()
3247 if (CFP->getValueAPF().isZero()) in getNode()
3251 if (CFP->getValueAPF().isZero()) in getNode()
3256 if (CFP->getValueAPF().isZero()) in getNode()
3495 APFloat V1 = N1CFP->getValueAPF(), V2 = N2CFP->getValueAPF(); in getNode()
[all …]
/external/mesa3d/src/gallium/drivers/radeon/
DAMDGPUMCInstLower.cpp41 const APFloat &FloatValue = MO.getFPImm()->getValueAPF(); in lower()
DAMDGPUInstructions.td86 [{return N->getValueAPF().isZero();}]
DAMDGPUISelLowering.cpp305 return CFP->getValueAPF().isZero(); in isHWFalseValue()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp991 !CFPt->getValueAPF().isZero()) || in visitSelectInst()
993 !CFPf->getValueAPF().isZero())) in visitSelectInst()
1003 !CFPt->getValueAPF().isZero()) || in visitSelectInst()
1005 !CFPf->getValueAPF().isZero())) in visitSelectInst()
1032 !CFPt->getValueAPF().isZero()) || in visitSelectInst()
1034 !CFPf->getValueAPF().isZero())) in visitSelectInst()
1044 !CFPt->getValueAPF().isZero()) || in visitSelectInst()
1046 !CFPf->getValueAPF().isZero())) in visitSelectInst()
DInstCombineMulDivRem.cpp426 if (!CFP || !CFP->getValueAPF().isFiniteNonZero()) in isFiniteNonZeroFp()
433 cast<ConstantFP>(C)->getValueAPF().isFiniteNonZero(); in isFiniteNonZeroFp()
441 if (!CFP || !CFP->getValueAPF().isNormal()) in isNormalFp()
447 return isa<ConstantFP>(C) && cast<ConstantFP>(C)->getValueAPF().isNormal(); in isNormalFp()
1185 const APFloat &FpVal = cast<ConstantFP>(Divisor)->getValueAPF(); in CvtFDivConstToReciprocal()
DInstCombineAddSub.cpp129 { Coeff.set(Coefficient->getValueAPF()); Val = V; } in set()
390 Addend0.set(APFloat(C0->getValueAPF().getSemantics()), nullptr); in drillValueDownOneStep()
498 const APFloat &F = CFP->getValueAPF(); in performFactorization()
/external/llvm/lib/Transforms/Scalar/
DFloat2Int.cpp314 APFloat F = CF->getValueAPF(); in walkForwards()
337 CF->getValueAPF().convertToInteger(Int, in walkForwards()
451 CF->getValueAPF().convertToInteger(Val, in convert()
DReassociate.cpp1146 APFloat F1(FC1->getValueAPF()); in RemoveFactorFromExpression()
1147 APFloat F2(FC2->getValueAPF()); in RemoveFactorFromExpression()
1637 APFloat F(CF->getValueAPF()); in OptimizeAdd()
2020 APFloat Val = CF->getValueAPF(); in canonicalizeNegConstExpr()
DIndVarSimplify.cpp255 if (!InitValueVal || !ConvertToSInt(InitValueVal->getValueAPF(), InitValue)) in HandleFloatingPointIV()
269 !ConvertToSInt(IncValueVal->getValueAPF(), IncValue)) in HandleFloatingPointIV()
307 !ConvertToSInt(ExitValueVal->getValueAPF(), ExitValue)) in HandleFloatingPointIV()
/external/llvm/lib/IR/
DAsmWriter.cpp1049 if (&CFP->getValueAPF().getSemantics() == &APFloat::IEEEsingle || in WriteConstantInternal()
1050 &CFP->getValueAPF().getSemantics() == &APFloat::IEEEdouble) { in WriteConstantInternal()
1057 bool isHalf = &CFP->getValueAPF().getSemantics()==&APFloat::IEEEhalf; in WriteConstantInternal()
1058 bool isDouble = &CFP->getValueAPF().getSemantics()==&APFloat::IEEEdouble; in WriteConstantInternal()
1059 bool isInf = CFP->getValueAPF().isInfinity(); in WriteConstantInternal()
1060 bool isNaN = CFP->getValueAPF().isNaN(); in WriteConstantInternal()
1062 double Val = isDouble ? CFP->getValueAPF().convertToDouble() : in WriteConstantInternal()
1063 CFP->getValueAPF().convertToFloat(); in WriteConstantInternal()
1088 APFloat apf = CFP->getValueAPF(); in WriteConstantInternal()
1106 if (&CFP->getValueAPF().getSemantics() == &APFloat::x87DoubleExtended) { in WriteConstantInternal()
[all …]
DConstants.cpp95 return CFP->getValueAPF().bitcastToAPInt().isAllOnesValue(); in isAllOnesValue()
117 return CFP->getValueAPF().bitcastToAPInt() == 1; in isOneValue()
139 return CFP->getValueAPF().bitcastToAPInt().isMinSignedValue(); in isMinSignedValue()
161 return !CFP->getValueAPF().bitcastToAPInt().isMinSignedValue(); in isNotMinSignedValue()
918 CFP->getValueAPF().bitcastToAPInt().getLimitedValue()); in getImpl()
928 CFP->getValueAPF().bitcastToAPInt().getLimitedValue()); in getImpl()
1106 CFP->getValueAPF().bitcastToAPInt().getLimitedValue()); in getImpl()
1116 CFP->getValueAPF().bitcastToAPInt().getLimitedValue()); in getImpl()
2680 NumElts, CFP->getValueAPF().bitcastToAPInt().getLimitedValue()); in getSplat()
2685 NumElts, CFP->getValueAPF().bitcastToAPInt().getLimitedValue()); in getSplat()
DConstantFold.cpp195 FP->getValueAPF().bitcastToAPInt()); in FoldBitCast()
591 APFloat Val = FPC->getValueAPF(); in ConstantFoldCastInstruction()
606 const APFloat &V = FPC->getValueAPF(); in ConstantFoldCastInstruction()
1165 APFloat C1V = CFP1->getValueAPF(); in ConstantFoldBinaryInstruction()
1166 APFloat C2V = CFP2->getValueAPF(); in ConstantFoldBinaryInstruction()
1742 APFloat C1V = cast<ConstantFP>(C1)->getValueAPF(); in ConstantFoldCompareInstruction()
1743 APFloat C2V = cast<ConstantFP>(C2)->getValueAPF(); in ConstantFoldCompareInstruction()
DMetadata.cpp813 APFloat AVal = mdconst::extract<ConstantFP>(A->getOperand(0))->getValueAPF(); in getMostGenericFPMath()
814 APFloat BVal = mdconst::extract<ConstantFP>(B->getOperand(0))->getValueAPF(); in getMostGenericFPMath()
/external/llvm/lib/Target/ARM/
DARMMCInstLower.cpp105 APFloat Val = MO.getFPImm()->getValueAPF(); in lowerOperand()
/external/llvm/lib/Target/X86/
DX86TargetObjectFile.cpp142 AI = CFP->getValueAPF().bitcastToAPInt(); in scalarConstantToHexString()
/external/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp872 Result.FloatVal = cast<ConstantFP>(C)->getValueAPF().convertToFloat(); in getConstantValue()
875 Result.DoubleVal = cast<ConstantFP>(C)->getValueAPF().convertToDouble(); in getConstantValue()
880 Result.IntVal = cast <ConstantFP>(C)->getValueAPF().bitcastToAPInt(); in getConstantValue()
927 CV->getOperand(i))->getValueAPF().convertToFloat(); in getConstantValue()
949 CV->getOperand(i))->getValueAPF().convertToDouble(); in getConstantValue()
/external/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp279 APFloat Val = Cnt->getValueAPF(); in lowerOperand()
1673 APFloat APF = APFloat(Fp->getValueAPF()); // make a copy in printFPConstant()
1828 float float32 = (float) CFP->getValueAPF().convertToFloat(); in bufferLEByte()
1832 double float64 = CFP->getValueAPF().convertToDouble(); in bufferLEByte()
/external/llvm/lib/Target/CppBackend/
DCPPBackend.cpp222 APFloat APF = APFloat(CFP->getValueAPF()); // copy in printCFP()
241 std::string StrVal = ftostr(CFP->getValueAPF()); in printCFP()
258 << utohexstr(CFP->getValueAPF().bitcastToAPInt().getZExtValue()) in printCFP()
262 << utohexstr((uint32_t)CFP->getValueAPF(). in printCFP()
/external/llvm/include/llvm/CodeGen/
DSelectionDAGNodes.h1395 const APFloat& getValueAPF() const { return Value->getValueAPF(); }
1421 Tmp.convert(Value->getValueAPF().getSemantics(),
/external/llvm/lib/Transforms/IPO/
DMergeFunctions.cpp542 const APFloat &LAPF = cast<ConstantFP>(L)->getValueAPF(); in cmpConstants()
543 const APFloat &RAPF = cast<ConstantFP>(R)->getValueAPF(); in cmpConstants()

123