Lines Matching refs:ConstantFP

139       return ConstantFP::get(DestTy->getContext(), FP);  in FoldBitCast()
150 if (isa<ConstantFP>(C) || isa<ConstantInt>(C)) { in FoldBitCast()
449 if (auto *CFP = dyn_cast<ConstantFP>(C)) { in ReadDataFromGlobal()
1666 return ConstantFP::get(Ty->getContext(), APF); in GetConstantFoldFPValue()
1669 return ConstantFP::get(Ty->getContext(), APFloat(V)); in GetConstantFoldFPValue()
1790 double getValueAsDouble(ConstantFP *Op) { in getValueAsDouble()
1877 if (auto *Op = dyn_cast<ConstantFP>(Operands[0])) { in ConstantFoldScalarCall1()
1929 return ConstantFP::get(Ty->getContext(), U); in ConstantFoldScalarCall1()
1934 return ConstantFP::get(Ty->getContext(), U); in ConstantFoldScalarCall1()
1939 return ConstantFP::get(Ty->getContext(), U); in ConstantFoldScalarCall1()
1944 return ConstantFP::get(Ty->getContext(), U); in ConstantFoldScalarCall1()
1949 return ConstantFP::get(Ty->getContext(), U); in ConstantFoldScalarCall1()
1954 return ConstantFP::get(Ty->getContext(), U); in ConstantFoldScalarCall1()
1959 return ConstantFP::get(Ty->getContext(), U); in ConstantFoldScalarCall1()
1972 return ConstantFP::get(Ty->getContext(), minimum(FractU, AlmostOne)); in ConstantFoldScalarCall1()
2019 return ConstantFP::get(Ty->getContext(), U); in ConstantFoldScalarCall1()
2108 return ConstantFP::get(Ty->getContext(), U); in ConstantFoldScalarCall1()
2142 return ConstantFP::get(Ty->getContext(), U); in ConstantFoldScalarCall1()
2149 return ConstantFP::get(Ty->getContext(), U); in ConstantFoldScalarCall1()
2181 return ConstantFP::get(Ty->getContext(), U); in ConstantFoldScalarCall1()
2188 return ConstantFP::get(Ty->getContext(), U); in ConstantFoldScalarCall1()
2222 return ConstantFP::get(Ty->getContext(), U); in ConstantFoldScalarCall1()
2249 return ConstantFP::get(Ty->getContext(), Val); in ConstantFoldScalarCall1()
2294 if (ConstantFP *FPOp = in ConstantFoldScalarCall1()
2295 dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U))) in ConstantFoldScalarCall1()
2304 if (ConstantFP *FPOp = in ConstantFoldScalarCall1()
2305 dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U))) in ConstantFoldScalarCall1()
2343 if (auto *Op1 = dyn_cast<ConstantFP>(Operands[0])) { in ConstantFoldScalarCall2()
2348 if (auto *Op2 = dyn_cast<ConstantFP>(Operands[1])) { in ConstantFoldScalarCall2()
2360 return ConstantFP::get(Ty->getContext(), V1); in ConstantFoldScalarCall2()
2366 return ConstantFP::get(Ty->getContext(), minnum(C1, C2)); in ConstantFoldScalarCall2()
2372 return ConstantFP::get(Ty->getContext(), maxnum(C1, C2)); in ConstantFoldScalarCall2()
2378 return ConstantFP::get(Ty->getContext(), minimum(C1, C2)); in ConstantFoldScalarCall2()
2384 return ConstantFP::get(Ty->getContext(), maximum(C1, C2)); in ConstantFoldScalarCall2()
2393 return ConstantFP::getNullValue(Ty); in ConstantFoldScalarCall2()
2394 return ConstantFP::get(Ty->getContext(), C1 * C2); in ConstantFoldScalarCall2()
2417 return ConstantFP::get(Ty->getContext(), V); in ConstantFoldScalarCall2()
2425 return ConstantFP::get(Ty->getContext(), V); in ConstantFoldScalarCall2()
2438 return ConstantFP::get(Ty->getContext(), in ConstantFoldScalarCall2()
2442 return ConstantFP::get(Ty->getContext(), in ConstantFoldScalarCall2()
2446 return ConstantFP::get(Ty->getContext(), in ConstantFoldScalarCall2()
2457 return ConstantFP::get(Ty->getContext(), Result); in ConstantFoldScalarCall2()
2616 if (ConstantFP *FPOp = in ConstantFoldScalarCall2()
2617 dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U))) in ConstantFoldScalarCall2()
2626 if (ConstantFP *FPOp = in ConstantFoldScalarCall2()
2627 dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U))) in ConstantFoldScalarCall2()
2636 if (ConstantFP *FPOp = in ConstantFoldScalarCall2()
2637 dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U))) in ConstantFoldScalarCall2()
2646 if (ConstantFP *FPOp = in ConstantFoldScalarCall2()
2647 dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U))) in ConstantFoldScalarCall2()
2720 if (const auto *Op1 = dyn_cast<ConstantFP>(Operands[0])) { in ConstantFoldScalarCall3()
2721 if (const auto *Op2 = dyn_cast<ConstantFP>(Operands[1])) { in ConstantFoldScalarCall3()
2722 if (const auto *Op3 = dyn_cast<ConstantFP>(Operands[2])) { in ConstantFoldScalarCall3()
2734 return ConstantFP::get(Ty->getContext(), APFloat(0.0f) + C3); in ConstantFoldScalarCall3()
2743 return ConstantFP::get(Ty->getContext(), V); in ConstantFoldScalarCall3()
2752 return ConstantFP::get(Ty->getContext(), V); in ConstantFoldScalarCall3()
2994 if (ConstantFP *OpC = dyn_cast<ConstantFP>(Call->getArgOperand(0))) { in isMathLibCallNoop()
3085 ConstantFP *Op0C = dyn_cast<ConstantFP>(Call->getArgOperand(0)); in isMathLibCallNoop()
3086 ConstantFP *Op1C = dyn_cast<ConstantFP>(Call->getArgOperand(1)); in isMathLibCallNoop()