Lines Matching refs:ConstantFP
42 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) in isNegativeZeroValue()
52 if (ConstantFP *SplatCFP = dyn_cast_or_null<ConstantFP>(CV->getSplatValue())) in isNegativeZeroValue()
68 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) in isZeroValue()
78 if (ConstantFP *SplatCFP = dyn_cast_or_null<ConstantFP>(CV->getSplatValue())) in isZeroValue()
92 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) in isNullValue()
107 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) in isAllOnesValue()
133 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) in isOneValue()
159 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) in isNotOneValue()
183 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) in isMinSignedValue()
209 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) in isNotMinSignedValue()
228 if (auto *CFP = dyn_cast<ConstantFP>(this)) in isFiniteNonZeroFP()
234 auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i)); in isFiniteNonZeroFP()
242 if (auto *CFP = dyn_cast<ConstantFP>(this)) in isNormalFP()
248 auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i)); in isNormalFP()
256 if (auto *CFP = dyn_cast<ConstantFP>(this)) in hasExactInverseFP()
262 auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i)); in hasExactInverseFP()
270 if (auto *CFP = dyn_cast<ConstantFP>(this)) in isNaN()
276 auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i)); in isNaN()
341 return ConstantFP::get(Ty->getContext(), in getNullValue()
344 return ConstantFP::get(Ty->getContext(), in getNullValue()
347 return ConstantFP::get(Ty->getContext(), in getNullValue()
350 return ConstantFP::get(Ty->getContext(), in getNullValue()
353 return ConstantFP::get(Ty->getContext(), in getNullValue()
356 return ConstantFP::get(Ty->getContext(), in getNullValue()
359 return ConstantFP::get(Ty->getContext(), in getNullValue()
402 return ConstantFP::get(Ty->getContext(), FL); in getAllOnesValue()
490 delete static_cast<ConstantFP *>(C); in deleteConstant()
895 Constant *ConstantFP::get(Type *Ty, double V) { in get()
911 Constant *ConstantFP::get(Type *Ty, const APFloat &V) { in get()
912 ConstantFP *C = get(Ty->getContext(), V); in get()
923 Constant *ConstantFP::get(Type *Ty, StringRef Str) { in get()
936 Constant *ConstantFP::getNaN(Type *Ty, bool Negative, uint64_t Payload) { in getNaN()
947 Constant *ConstantFP::getQNaN(Type *Ty, bool Negative, APInt *Payload) { in getQNaN()
958 Constant *ConstantFP::getSNaN(Type *Ty, bool Negative, APInt *Payload) { in getSNaN()
969 Constant *ConstantFP::getNegativeZero(Type *Ty) { in getNegativeZero()
981 Constant *ConstantFP::getZeroValueForNegation(Type *Ty) { in getZeroValueForNegation()
990 ConstantFP* ConstantFP::get(LLVMContext &Context, const APFloat& V) { in get()
993 std::unique_ptr<ConstantFP> &Slot = pImpl->FPConstants[V]; in get()
997 Slot.reset(new ConstantFP(Ty, V)); in get()
1003 Constant *ConstantFP::getInfinity(Type *Ty, bool Negative) { in getInfinity()
1013 ConstantFP::ConstantFP(Type *Ty, const APFloat &V) in ConstantFP() function in ConstantFP
1019 bool ConstantFP::isExactlyValue(const APFloat &V) const { in isExactlyValue()
1024 void ConstantFP::destroyConstantImpl() { in destroyConstantImpl()
1155 if (auto *CFP = dyn_cast<ConstantFP>(C)) in getFPSequenceIfElementsMatch()
1177 } else if (ConstantFP *CFP = dyn_cast<ConstantFP>(C)) { in getSequenceIfElementsMatch()
1351 if ((isa<ConstantFP>(V) || isa<ConstantInt>(V)) && in getSplat()
1538 bool ConstantFP::isValueValidForType(Type *Ty, const APFloat& Val) { in isValueValidForType()
2592 return getSub(ConstantFP::getZeroValueForNegation(C->getType()), in getNeg()
2747 return ConstantFP::getNegativeZero(Ty); in getBinOpIdentity()
2749 return ConstantFP::get(Ty, 1.0); in getBinOpIdentity()
2770 return ConstantFP::get(Ty, 1.0); in getBinOpIdentity()
3082 if (ConstantFP *CFP = dyn_cast<ConstantFP>(V)) { in getSplat()
3196 return ConstantFP::get(getContext(), getElementAsAPFloat(Elt)); in getElementAsConstant()