reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/CodeGen/FastISel.h
   40 class ConstantFP;
include/llvm/CodeGen/GlobalISel/Utils.h
   38 class ConstantFP;
include/llvm/CodeGen/MachineOperand.h
   27 class ConstantFP;
include/llvm/CodeGen/SelectionDAG.h
   62 class ConstantFP;
lib/CodeGen/AsmPrinter/DwarfUnit.h
   33 class ConstantFP;
lib/IR/LLVMContextImpl.h
   56 class ConstantFP;

References

examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp
  737   return ConstantFP::get(*TheContext, APFloat(Val));
  842       CondV, ConstantFP::get(*TheContext, APFloat(0.0)), "ifcond");
  949     StepVal = ConstantFP::get(*TheContext, APFloat(1.0));
  965       EndCond, ConstantFP::get(*TheContext, APFloat(0.0)), "loopcond");
 1008       InitVal = ConstantFP::get(*TheContext, APFloat(0.0));
examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp
  737   return ConstantFP::get(*TheContext, APFloat(Val));
  842       CondV, ConstantFP::get(*TheContext, APFloat(0.0)), "ifcond");
  949     StepVal = ConstantFP::get(*TheContext, APFloat(1.0));
  965       EndCond, ConstantFP::get(*TheContext, APFloat(0.0)), "loopcond");
 1008       InitVal = ConstantFP::get(*TheContext, APFloat(0.0));
examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp
  736   return ConstantFP::get(TheContext, APFloat(Val));
  841       CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond");
  948     StepVal = ConstantFP::get(TheContext, APFloat(1.0));
  964       EndCond, ConstantFP::get(TheContext, APFloat(0.0)), "loopcond");
 1007       InitVal = ConstantFP::get(TheContext, APFloat(0.0));
examples/Kaleidoscope/BuildingAJIT/Chapter4/toy.cpp
  722   return ConstantFP::get(TheContext, APFloat(Val));
  827       CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond");
  934     StepVal = ConstantFP::get(TheContext, APFloat(1.0));
  950       EndCond, ConstantFP::get(TheContext, APFloat(0.0)), "loopcond");
  993       InitVal = ConstantFP::get(TheContext, APFloat(0.0));
examples/Kaleidoscope/BuildingAJIT/Chapter5/toy.cpp
  746   return ConstantFP::get(TheContext, APFloat(Val));
  851       CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond");
  958     StepVal = ConstantFP::get(TheContext, APFloat(1.0));
  974       EndCond, ConstantFP::get(TheContext, APFloat(0.0)), "loopcond");
 1017       InitVal = ConstantFP::get(TheContext, APFloat(0.0));
examples/Kaleidoscope/Chapter3/toy.cpp
  413   return ConstantFP::get(TheContext, APFloat(Val));
examples/Kaleidoscope/Chapter4/toy.cpp
  441   return ConstantFP::get(TheContext, APFloat(Val));
examples/Kaleidoscope/Chapter5/toy.cpp
  568   return ConstantFP::get(TheContext, APFloat(Val));
  628       CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond");
  730     StepVal = ConstantFP::get(TheContext, APFloat(1.0));
  742       EndCond, ConstantFP::get(TheContext, APFloat(0.0)), "loopcond");
examples/Kaleidoscope/Chapter6/toy.cpp
  660   return ConstantFP::get(TheContext, APFloat(Val));
  740       CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond");
  842     StepVal = ConstantFP::get(TheContext, APFloat(1.0));
  854       EndCond, ConstantFP::get(TheContext, APFloat(0.0)), "loopcond");
examples/Kaleidoscope/Chapter7/toy.cpp
  742   return ConstantFP::get(TheContext, APFloat(Val));
  847       CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond");
  954     StepVal = ConstantFP::get(TheContext, APFloat(1.0));
  970       EndCond, ConstantFP::get(TheContext, APFloat(0.0)), "loopcond");
 1013       InitVal = ConstantFP::get(TheContext, APFloat(0.0));
examples/Kaleidoscope/Chapter8/toy.cpp
  741   return ConstantFP::get(TheContext, APFloat(Val));
  846       CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond");
  953     StepVal = ConstantFP::get(TheContext, APFloat(1.0));
  969       EndCond, ConstantFP::get(TheContext, APFloat(0.0)), "loopcond");
 1012       InitVal = ConstantFP::get(TheContext, APFloat(0.0));
examples/Kaleidoscope/Chapter9/toy.cpp
  896   return ConstantFP::get(TheContext, APFloat(Val));
 1009       CondV, ConstantFP::get(TheContext, APFloat(0.0)), "ifcond");
 1118     StepVal = ConstantFP::get(TheContext, APFloat(1.0));
 1134       EndCond, ConstantFP::get(TheContext, APFloat(0.0)), "loopcond");
 1177       InitVal = ConstantFP::get(TheContext, APFloat(0.0));
gen/lib/Target/WebAssembly/WebAssemblyGenFastISel.inc
 2055 unsigned fastEmit_ISD_ConstantFP_MVT_f32_f(MVT RetVT, const ConstantFP *f0) {
 2061 unsigned fastEmit_ISD_ConstantFP_MVT_f64_f(MVT RetVT, const ConstantFP *f0) {
 2067 unsigned fastEmit_ISD_ConstantFP_f(MVT VT, MVT RetVT, const ConstantFP *f0) {
 2077 unsigned fastEmit_f(MVT VT, MVT RetVT, unsigned Opcode, const ConstantFP *f0) override {
include/llvm/CodeGen/FastISel.h
  388                               const ConstantFP *FPImm);
  430                           const ConstantFP *FPImm);
  488   virtual unsigned fastMaterializeFloatZero(const ConstantFP *CF) {
include/llvm/CodeGen/GlobalISel/CSEMIRBuilder.h
  106                                      const ConstantFP &Val) override;
include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
  144   static bool bind(const MachineRegisterInfo &MRI, const ConstantFP *&F,
  168 inline bind_ty<const ConstantFP *> m_GFCst(const ConstantFP *&C) { return C; }
  168 inline bind_ty<const ConstantFP *> m_GFCst(const ConstantFP *&C) { return C; }
include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
  696                                              const ConstantFP &Val);
include/llvm/CodeGen/GlobalISel/Utils.h
  132 const ConstantFP* getConstantFPVRegVal(unsigned VReg,
include/llvm/CodeGen/MachineInstrBuilder.h
  132   const MachineInstrBuilder &addFPImm(const ConstantFP *Val) const {
include/llvm/CodeGen/MachineOperand.h
  168     const ConstantFP *CFP;   // For MO_FPImmediate.
  540   const ConstantFP *getFPImm() const {
  658   void setFPImm(const ConstantFP *CFP) {
  726   void ChangeToFPImmediate(const ConstantFP *FPImm);
  768   static MachineOperand CreateFPImm(const ConstantFP *CFP) {
include/llvm/CodeGen/SelectionDAG.h
  626   SDValue getConstantFP(const ConstantFP &V, const SDLoc &DL, EVT VT,
  634   SDValue getTargetConstantFP(const ConstantFP &Val, const SDLoc &DL, EVT VT) {
include/llvm/CodeGen/SelectionDAGNodes.h
 1617   const ConstantFP *Value;
 1619   ConstantFPSDNode(bool isTarget, const ConstantFP *val, EVT VT)
 1626   const ConstantFP *getConstantFPValue() const { return Value; }
include/llvm/IR/Constants.h
  273   ConstantFP(const ConstantFP &) = delete;
  291   static ConstantFP *get(LLVMContext &Context, const APFloat &V);
include/llvm/IR/InstrTypes.h
  285     Value *Zero = ConstantFP::getNegativeZero(Op->getType());
include/llvm/IR/Metadata.h
  514   static const bool value = std::is_base_of<Constant, V>::value &&
  518   static const bool value = std::is_base_of<Constant, V>::value &&
  529 inline typename std::enable_if<detail::IsValidPointer<X, Y>::value, bool>::type
  533     return isa<X>(V->getValue());
  547 inline typename std::enable_if<detail::IsValidPointer<X, Y>::value, X *>::type
  547 inline typename std::enable_if<detail::IsValidPointer<X, Y>::value, X *>::type
  549   return cast<X>(cast<ConstantAsMetadata>(MD)->getValue());
  589 inline typename std::enable_if<detail::IsValidPointer<X, Y>::value, X *>::type
  589 inline typename std::enable_if<detail::IsValidPointer<X, Y>::value, X *>::type
  592     return dyn_cast<X>(V->getValue());
include/llvm/IR/PatternMatch.h
  178     if (auto *CI = dyn_cast<ConstantFP>(V)) {
  178     if (auto *CI = dyn_cast<ConstantFP>(V)) {
  184         if (auto *CI = dyn_cast_or_null<ConstantFP>(C->getSplatValue())) {
  184         if (auto *CI = dyn_cast_or_null<ConstantFP>(C->getSplatValue())) {
  284     if (const auto *CF = dyn_cast<ConstantFP>(V))
  284     if (const auto *CF = dyn_cast<ConstantFP>(V))
  288         if (const auto *CF = dyn_cast_or_null<ConstantFP>(C->getSplatValue()))
  288         if (const auto *CF = dyn_cast_or_null<ConstantFP>(C->getSplatValue()))
  301           auto *CF = dyn_cast<ConstantFP>(Elt);
  301           auto *CF = dyn_cast<ConstantFP>(Elt);
  540   Class *&VR;
  542   bind_ty(Class *&V) : VR(V) {}
  569 inline bind_ty<ConstantFP> m_ConstantFP(ConstantFP *&C) { return C; }
  569 inline bind_ty<ConstantFP> m_ConstantFP(ConstantFP *&C) { return C; }
  613     if (const auto *CFP = dyn_cast<ConstantFP>(V))
  613     if (const auto *CFP = dyn_cast<ConstantFP>(V))
  617         if (auto *CFP = dyn_cast_or_null<ConstantFP>(C->getSplatValue()))
  617         if (auto *CFP = dyn_cast_or_null<ConstantFP>(C->getSplatValue()))
include/llvm/Support/Casting.h
   58     return To::classof(&Val);
   66   static inline bool doit(const From &) { return true; }
   92     return isa_impl<To, From>::doit(*Val);
  104   static inline bool doit(const From *Val) {
  106     return isa_impl<To, From>::doit(*Val);
  106     return isa_impl<To, From>::doit(*Val);
  122     return isa_impl_wrap<To, SimpleFrom,
  132     return isa_impl_cl<To,FromTy>::doit(Val);
  142   return isa_impl_wrap<X, const Y,
  172   using ret_type = To *;       // Pointer arg case, return Ty*
  176   using ret_type = const To *; // Constant pointer arg case, return const Ty*
  198   using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
  204   using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
  210       To, From, typename simplify_type<From>::SimpleType>::ret_type;
  218   static typename cast_retty<To, From>::ret_type doit(From &Val) {
  219     return cast_convert_val<To, SimpleFrom,
  227   static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  228     typename cast_retty<To, FromTy>::ret_type Res2
  248                                typename cast_retty<X, const Y>::ret_type>::type
  252       X, const Y, typename simplify_type<const Y>::SimpleType>::doit(Val);
  256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  265   return cast_convert_val<X, Y*,
  337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
  342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  343   return isa<X>(Val) ? cast<X>(Val) : nullptr;
  366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
  368   return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
lib/Analysis/ConstantFolding.cpp
  131       return ConstantFP::get(DestTy->getContext(), FP);
  142   if (isa<ConstantFP>(C) || isa<ConstantInt>(C)) {
  406   if (auto *CFP = dyn_cast<ConstantFP>(C)) {
  406   if (auto *CFP = dyn_cast<ConstantFP>(C)) {
 1567     return ConstantFP::get(Ty->getContext(), APF);
 1570     return ConstantFP::get(Ty->getContext(), APFloat(V));
 1644 double getValueAsDouble(ConstantFP *Op) {
 1731   if (auto *Op = dyn_cast<ConstantFP>(Operands[0])) {
 1731   if (auto *Op = dyn_cast<ConstantFP>(Operands[0])) {
 1749       return ConstantFP::get(Ty->getContext(), U);
 1754       return ConstantFP::get(Ty->getContext(), U);
 1759       return ConstantFP::get(Ty->getContext(), U);
 1764       return ConstantFP::get(Ty->getContext(), U);
 1769       return ConstantFP::get(Ty->getContext(), U);
 1774       return ConstantFP::get(Ty->getContext(), U);
 1843         return ConstantFP::get(Ty->getContext(), U);
 1877         return ConstantFP::get(Ty->getContext(), U);
 1884         return ConstantFP::get(Ty->getContext(), U);
 1916         return ConstantFP::get(Ty->getContext(), U);
 1923         return ConstantFP::get(Ty->getContext(), U);
 1957         return ConstantFP::get(Ty->getContext(), U);
 1984       return ConstantFP::get(Ty->getContext(), Val);
 2001       if (ConstantFP *FPOp =
 2002               dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
 2011       if (ConstantFP *FPOp =
 2012               dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
 2031   if (auto *Op1 = dyn_cast<ConstantFP>(Operands[0])) {
 2031   if (auto *Op1 = dyn_cast<ConstantFP>(Operands[0])) {
 2036     if (auto *Op2 = dyn_cast<ConstantFP>(Operands[1])) {
 2036     if (auto *Op2 = dyn_cast<ConstantFP>(Operands[1])) {
 2048         return ConstantFP::get(Ty->getContext(), V1);
 2054         return ConstantFP::get(Ty->getContext(), minnum(C1, C2));
 2060         return ConstantFP::get(Ty->getContext(), maxnum(C1, C2));
 2066         return ConstantFP::get(Ty->getContext(), minimum(C1, C2));
 2072         return ConstantFP::get(Ty->getContext(), maximum(C1, C2));
 2095             return ConstantFP::get(Ty->getContext(), V);
 2108         return ConstantFP::get(Ty->getContext(),
 2112         return ConstantFP::get(Ty->getContext(),
 2116         return ConstantFP::get(Ty->getContext(),
 2235       if (ConstantFP *FPOp =
 2236               dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
 2245       if (ConstantFP *FPOp =
 2246               dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
 2255       if (ConstantFP *FPOp =
 2256               dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
 2265       if (ConstantFP *FPOp =
 2266               dyn_cast_or_null<ConstantFP>(Op->getAggregateElement(0U)))
 2284   if (const auto *Op1 = dyn_cast<ConstantFP>(Operands[0])) {
 2284   if (const auto *Op1 = dyn_cast<ConstantFP>(Operands[0])) {
 2285     if (const auto *Op2 = dyn_cast<ConstantFP>(Operands[1])) {
 2285     if (const auto *Op2 = dyn_cast<ConstantFP>(Operands[1])) {
 2286       if (const auto *Op3 = dyn_cast<ConstantFP>(Operands[2])) {
 2286       if (const auto *Op3 = dyn_cast<ConstantFP>(Operands[2])) {
 2294           return ConstantFP::get(Ty->getContext(), V);
 2502     if (ConstantFP *OpC = dyn_cast<ConstantFP>(Call->getArgOperand(0))) {
 2502     if (ConstantFP *OpC = dyn_cast<ConstantFP>(Call->getArgOperand(0))) {
 2601     ConstantFP *Op0C = dyn_cast<ConstantFP>(Call->getArgOperand(0));
 2601     ConstantFP *Op0C = dyn_cast<ConstantFP>(Call->getArgOperand(0));
 2602     ConstantFP *Op1C = dyn_cast<ConstantFP>(Call->getArgOperand(1));
 2602     ConstantFP *Op1C = dyn_cast<ConstantFP>(Call->getArgOperand(1));
lib/Analysis/IVDescriptors.cpp
  741     return ConstantFP::get(Tp, 1.0L);
  744     return ConstantFP::get(Tp, 0.0L);
lib/Analysis/InstructionSimplify.cpp
 4478     return ConstantFP::getNaN(In->getType());
 4490     return ConstantFP::getNaN(Ops[0]->getType());
 4528       return ConstantFP::getNullValue(Op0->getType());
 4532       return ConstantFP::getNullValue(Op0->getType());
 4608     return ConstantFP::getNullValue(Op0->getType());
 4612     return ConstantFP::getNullValue(Op1->getType());
 4673     return ConstantFP::getNullValue(Op0->getType());
 4679       return ConstantFP::get(Op0->getType(), 1.0);
 4691       return ConstantFP::get(Op0->getType(), -1.0);
 4716       return ConstantFP::getNullValue(Op0->getType());
 4719       return ConstantFP::getNegativeZero(Op0->getType());
 5080         return ConstantFP::get(Op0->getType(), 1.0);
 5125       return ConstantFP::getInfinity(ReturnType, UseNegInf);
lib/Analysis/ValueTracking.cpp
 2897   if (auto *CFP = dyn_cast<ConstantFP>(V))
 2951   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(V)) {
 2951   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(V)) {
 2961         auto *CFP = dyn_cast_or_null<ConstantFP>(CV->getAggregateElement(i));
 2961         auto *CFP = dyn_cast_or_null<ConstantFP>(CV->getAggregateElement(i));
 3108   if (auto *CFP = dyn_cast<ConstantFP>(V))
 3178     auto *CElt = dyn_cast<ConstantFP>(Elt);
 3178     auto *CElt = dyn_cast<ConstantFP>(Elt);
 3220   if (ConstantFP *CFP = dyn_cast<ConstantFP>(C)) {
 3220   if (ConstantFP *CFP = dyn_cast<ConstantFP>(C)) {
 4446   if (auto *C = dyn_cast<ConstantFP>(V))
 4463   if (auto *C = dyn_cast<ConstantFP>(V))
lib/AsmParser/LLParser.cpp
 5169         !ConstantFP::isValueValidForType(Ty, ID.APFloatVal))
 5183     V = ConstantFP::get(Context, ID.APFloatVal);
lib/Bitcode/Reader/BitcodeReader.cpp
 2403         V = ConstantFP::get(Context, APFloat(APFloat::IEEEhalf(),
 2406         V = ConstantFP::get(Context, APFloat(APFloat::IEEEsingle(),
 2409         V = ConstantFP::get(Context, APFloat(APFloat::IEEEdouble(),
 2416         V = ConstantFP::get(Context, APFloat(APFloat::x87DoubleExtended(),
 2419         V = ConstantFP::get(Context, APFloat(APFloat::IEEEquad(),
 2422         V = ConstantFP::get(Context, APFloat(APFloat::PPCDoubleDouble(),
lib/Bitcode/Writer/BitcodeWriter.cpp
 2363     } else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C)) {
 2363     } else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C)) {
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 2322 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP);
 2517 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP) {
 2699   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV))
 2699   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV))
lib/CodeGen/AsmPrinter/DebugLocEntry.h
   35     const ConstantFP *CFP;
   47   DbgValueLoc(const DIExpression *Expr, const ConstantFP *CFP)
   65   const ConstantFP *getConstantFP() const { return Constant.CFP; }
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  532 void DwarfUnit::addConstantFPValue(DIE &Die, const ConstantFP *CFP) {
 1594   if (const ConstantFP *CFP = dyn_cast_or_null<ConstantFP>(DT->getConstant()))
 1594   if (const ConstantFP *CFP = dyn_cast_or_null<ConstantFP>(DT->getConstant()))
lib/CodeGen/AsmPrinter/DwarfUnit.h
  208   void addConstantFPValue(DIE &Die, const ConstantFP *CFP);
lib/CodeGen/CodeGenPrepare.cpp
 6386                             isa<ConstantFP>(Arg0);
 6493           !isa<ConstantFP>(Val))
 6571              isa<ConstantFP>(Val)) {
lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp
  232                                                   const ConstantFP &Val) {
lib/CodeGen/GlobalISel/IRTranslator.cpp
  309       U.getOperand(0) == ConstantFP::getZeroValueForNegation(U.getType())) {
 1641         MIB.addFPImm(cast<ConstantFP>(Arg.value()));
 2112   else if (auto CF = dyn_cast<ConstantFP>(&C))
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
 1707     SrcMO.setFPImm(ConstantFP::get(Ctx, Val));
 1999     ConstantFP &ZeroForNegation =
 2000         *cast<ConstantFP>(ConstantFP::getZeroValueForNegation(ZeroTy));
 2000         *cast<ConstantFP>(ConstantFP::getZeroValueForNegation(ZeroTy));
lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
  152   } else if (auto *CFP = dyn_cast<ConstantFP>(&C)) {
  315                                                      const ConstantFP &Val) {
  349   auto *CFP =
  350       ConstantFP::get(Ctx, getAPFloatFromSize(Val, DstTy.getScalarSizeInBits()));
  357   auto *CFP = ConstantFP::get(Ctx, Val);
  357   auto *CFP = ConstantFP::get(Ctx, Val);
lib/CodeGen/GlobalISel/Utils.cpp
  295 const llvm::ConstantFP* llvm::getConstantFPVRegVal(unsigned VReg,
lib/CodeGen/LiveDebugValues.cpp
  218       const ConstantFP *FPImm;
lib/CodeGen/MIRParser/MIParser.cpp
 1627   Dest = MachineOperand::CreateFPImm(cast<ConstantFP>(C));
lib/CodeGen/MachineOperand.cpp
  162 void MachineOperand::ChangeToFPImmediate(const ConstantFP *FPImm) {
lib/CodeGen/MachineVerifier.cpp
  997       const ConstantFP *CF = MI->getOperand(1).getFPImm();
lib/CodeGen/SelectionDAG/FastISel.cpp
  415   else if (const auto *CF = dyn_cast<ConstantFP>(V)) {
  415   else if (const auto *CF = dyn_cast<ConstantFP>(V)) {
 1429     } else if (const auto *CF = dyn_cast<ConstantFP>(V)) {
 1429     } else if (const auto *CF = dyn_cast<ConstantFP>(V)) {
 1960                               const ConstantFP * /*FPImm*/) {
 2168                                   const ConstantFP *FPImm) {
lib/CodeGen/SelectionDAG/InstrEmitter.cpp
  737     } else if (const ConstantFP *CF = dyn_cast<ConstantFP>(V)) {
  737     } else if (const ConstantFP *CF = dyn_cast<ConstantFP>(V)) {
lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  300   ConstantFP *LLVMC = const_cast<ConstantFP*>(CFP->getConstantFPValue());
  322         LLVMC = cast<ConstantFP>(ConstantExpr::getFPTrunc(LLVMC, SType));
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 1303   return getConstantFP(*ConstantFP::get(*getContext(), V), DL, VT, isTarget);
 1306 SDValue SelectionDAG::getConstantFP(const ConstantFP &V, const SDLoc &DL,
 2949               if (auto *CFP = dyn_cast<ConstantFP>(Elt)) {
 2949               if (auto *CFP = dyn_cast<ConstantFP>(Elt)) {
 2965           } else if (auto *CFP = dyn_cast<ConstantFP>(Cst)) {
 3917                 if (auto *CFP = dyn_cast<ConstantFP>(Elt)) {
 3917                 if (auto *CFP = dyn_cast<ConstantFP>(Elt)) {
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 1273   if (isa<ConstantInt>(V) || isa<ConstantFP>(V) || isa<UndefValue>(V) ||
 1458     if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C))
 1458     if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C))
 2965       I.getOperand(0) == ConstantFP::getZeroValueForNegation(Ty)) {
 4809           DAG.getTargetConstantFP(*cast<ConstantFP>(Arg), SDLoc(), VT));
 7850   if (isa<ConstantFP>(OpVal) || isa<ConstantInt>(OpVal) ||
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
 3242         const ConstantFP *Val=cast<ConstantFPSDNode>(Imm)->getConstantFPValue();
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 4429       if (isa<ConstantFP>(CallOperandVal))
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
 1614   } else if (const auto *CFP = dyn_cast<ConstantFP>(C)) {
 1614   } else if (const auto *CFP = dyn_cast<ConstantFP>(C)) {
lib/ExecutionEngine/ExecutionEngine.cpp
  891     Result.FloatVal = cast<ConstantFP>(C)->getValueAPF().convertToFloat();
  894     Result.DoubleVal = cast<ConstantFP>(C)->getValueAPF().convertToDouble();
  899     Result.IntVal = cast <ConstantFP>(C)->getValueAPF().bitcastToAPInt();
  948             Result.AggregateVal[i].FloatVal = cast<ConstantFP>(
  970             Result.AggregateVal[i].DoubleVal = cast<ConstantFP>(
lib/FuzzMutate/OpDescriptor.cpp
   26     Cs.push_back(ConstantFP::get(Ctx, APFloat::getZero(Sem)));
   27     Cs.push_back(ConstantFP::get(Ctx, APFloat::getLargest(Sem)));
   28     Cs.push_back(ConstantFP::get(Ctx, APFloat::getSmallest(Sem)));
lib/IR/AsmWriter.cpp
 1302   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV)) {
 1302   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV)) {
lib/IR/AutoUpgrade.cpp
 3500       Args.push_back(ConstantFP::get(CI->getOperand(0)->getType(), 1.0));
lib/IR/ConstantFold.cpp
  155     if (isa<ConstantInt>(V) || isa<ConstantFP>(V))
  173       return ConstantFP::get(DestTy->getContext(),
  182   if (ConstantFP *FP = dyn_cast<ConstantFP>(V)) {
  182   if (ConstantFP *FP = dyn_cast<ConstantFP>(V)) {
  594     if (ConstantFP *FPC = dyn_cast<ConstantFP>(V)) {
  594     if (ConstantFP *FPC = dyn_cast<ConstantFP>(V)) {
  605       return ConstantFP::get(V->getContext(), Val);
  610     if (ConstantFP *FPC = dyn_cast<ConstantFP>(V)) {
  610     if (ConstantFP *FPC = dyn_cast<ConstantFP>(V)) {
  689       return ConstantFP::get(V->getContext(), apf);
  961   if (ConstantFP *CFP = dyn_cast<ConstantFP>(C)) {
  961   if (ConstantFP *CFP = dyn_cast<ConstantFP>(C)) {
  967       return ConstantFP::get(C->getContext(), neg(CV));
 1090       return ConstantFP::getNaN(C1->getType());
 1282   } else if (ConstantFP *CFP1 = dyn_cast<ConstantFP>(C1)) {
 1282   } else if (ConstantFP *CFP1 = dyn_cast<ConstantFP>(C1)) {
 1283     if (ConstantFP *CFP2 = dyn_cast<ConstantFP>(C2)) {
 1283     if (ConstantFP *CFP2 = dyn_cast<ConstantFP>(C2)) {
 1292         return ConstantFP::get(C1->getContext(), C3V);
 1295         return ConstantFP::get(C1->getContext(), C3V);
 1298         return ConstantFP::get(C1->getContext(), C3V);
 1301         return ConstantFP::get(C1->getContext(), C3V);
 1304         return ConstantFP::get(C1->getContext(), C3V);
 1877   } else if (isa<ConstantFP>(C1) && isa<ConstantFP>(C2)) {
 1877   } else if (isa<ConstantFP>(C1) && isa<ConstantFP>(C2)) {
 1878     const APFloat &C1V = cast<ConstantFP>(C1)->getValueAPF();
 1879     const APFloat &C2V = cast<ConstantFP>(C2)->getValueAPF();
lib/IR/Constants.cpp
   41   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
   41   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
   51     if (ConstantFP *SplatCFP = dyn_cast_or_null<ConstantFP>(CV->getSplatValue()))
   51     if (ConstantFP *SplatCFP = dyn_cast_or_null<ConstantFP>(CV->getSplatValue()))
   67   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
   67   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
   77     if (ConstantFP *SplatCFP = dyn_cast_or_null<ConstantFP>(CV->getSplatValue()))
   77     if (ConstantFP *SplatCFP = dyn_cast_or_null<ConstantFP>(CV->getSplatValue()))
   91   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
   91   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
  106   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
  106   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
  132   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
  132   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
  158   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
  158   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
  184   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
  184   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this))
  203   if (auto *CFP = dyn_cast<ConstantFP>(this))
  208     auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i));
  208     auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i));
  216   if (auto *CFP = dyn_cast<ConstantFP>(this))
  221     auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i));
  221     auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i));
  229   if (auto *CFP = dyn_cast<ConstantFP>(this))
  234     auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i));
  234     auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i));
  242   if (auto *CFP = dyn_cast<ConstantFP>(this))
  247     auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i));
  247     auto *CFP = dyn_cast_or_null<ConstantFP>(this->getAggregateElement(i));
  294     return ConstantFP::get(Ty->getContext(),
  297     return ConstantFP::get(Ty->getContext(),
  300     return ConstantFP::get(Ty->getContext(),
  303     return ConstantFP::get(Ty->getContext(),
  306     return ConstantFP::get(Ty->getContext(),
  309     return ConstantFP::get(Ty->getContext(),
  351     return ConstantFP::get(Ty->getContext(), FL);
  733   ConstantFP *C = get(Ty->getContext(), V);
  811 ConstantFP* ConstantFP::get(LLVMContext &Context, const APFloat& V) {
  814   std::unique_ptr<ConstantFP> &Slot = pImpl->FPConstants[V];
  833     Slot.reset(new ConstantFP(Ty, V));
  959     if (auto *CFP = dyn_cast<ConstantFP>(C))
  959     if (auto *CFP = dyn_cast<ConstantFP>(C))
  981   } else if (ConstantFP *CFP = dyn_cast<ConstantFP>(C)) {
  981   } else if (ConstantFP *CFP = dyn_cast<ConstantFP>(C)) {
 1153   if ((isa<ConstantFP>(V) || isa<ConstantInt>(V)) &&
 2234   return getSub(ConstantFP::getZeroValueForNegation(C->getType()),
 2355         return ConstantFP::getNegativeZero(Ty);
 2357         return ConstantFP::get(Ty, 1.0);
 2378       return ConstantFP::get(Ty, 1.0);
 2671   if (ConstantFP *CFP = dyn_cast<ConstantFP>(V)) {
 2671   if (ConstantFP *CFP = dyn_cast<ConstantFP>(V)) {
 2776     return ConstantFP::get(getContext(), getElementAsAPFloat(Elt));
lib/IR/Core.cpp
 1325   return wrap(ConstantFP::get(unwrap(RealTy), N));
 1329   return wrap(ConstantFP::get(unwrap(RealTy), StringRef(Text)));
 1334   return wrap(ConstantFP::get(unwrap(RealTy), StringRef(Str, SLen)));
 1346   ConstantFP *cFP = unwrap<ConstantFP>(ConstantVal) ;
 1346   ConstantFP *cFP = unwrap<ConstantFP>(ConstantVal) ;
lib/IR/Instructions.cpp
 2356   Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
 2364   Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
 2372   Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
 2378   Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
 2384   Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
 2390   Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
 2396   Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
 2403   Value *zero = ConstantFP::getZeroValueForNegation(Op->getType());
 2442   ConstantFP *Accuracy = mdconst::extract<ConstantFP>(MD->getOperand(0));
 2442   ConstantFP *Accuracy = mdconst::extract<ConstantFP>(MD->getOperand(0));
lib/IR/LLVMContextImpl.h
 1265       DenseMap<APFloat, std::unique_ptr<ConstantFP>, DenseMapAPFloatKeyInfo>;
lib/IR/MDBuilder.cpp
   33       createConstant(ConstantFP::get(Type::getFloatTy(Context), Accuracy));
lib/IR/Metadata.cpp
  933   APFloat AVal = mdconst::extract<ConstantFP>(A->getOperand(0))->getValueAPF();
  934   APFloat BVal = mdconst::extract<ConstantFP>(B->getOperand(0))->getValueAPF();
lib/IR/Verifier.cpp
 4163     if (ConstantFP *CFP0 =
 4164             mdconst::dyn_extract_or_null<ConstantFP>(MD->getOperand(0))) {
lib/Target/AArch64/AArch64FastISel.cpp
  276   unsigned materializeFP(const ConstantFP *CFP, MVT VT);
  290   unsigned fastMaterializeFloatZero(const ConstantFP* CF) override;
  397 unsigned AArch64FastISel::materializeFP(const ConstantFP *CFP, MVT VT) {
  541   else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C))
  541   else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C))
  549 unsigned AArch64FastISel::fastMaterializeFloatZero(const ConstantFP* CFP) {
 1526   if (const auto *CFP = dyn_cast<ConstantFP>(RHS))
 1526   if (const auto *CFP = dyn_cast<ConstantFP>(RHS))
 2209   } else if (const auto *CF = dyn_cast<ConstantFP>(Op0)) {
 2209   } else if (const auto *CF = dyn_cast<ConstantFP>(Op0)) {
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
 2609     FVal = cast<ConstantFP>(CN->getConstVal())->getValueAPF();
lib/Target/AArch64/AArch64InstructionSelector.cpp
  848   const ConstantFP *FPImm = getConstantFPVRegVal(I.getOperand(3).getReg(), MRI);
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  527   const ConstantFP *CNum = dyn_cast<ConstantFP>(Num);
  527   const ConstantFP *CNum = dyn_cast<ConstantFP>(Num);
  687   Value *RCP = Builder.CreateFDiv(ConstantFP::get(F32Ty, 1.0), FB);
  797   Value *RCP_F32 = Builder.CreateFDiv(ConstantFP::get(F32Ty, 1.0), DEN_F32);
  798   Constant *UINT_MAX_PLUS_1 = ConstantFP::get(F32Ty, BitsToFloat(0x4f800000));
lib/Target/AMDGPU/AMDGPULibCalls.cpp
  749         ConstantFP *eltval = dyn_cast<ConstantFP>(
  749         ConstantFP *eltval = dyn_cast<ConstantFP>(
  784     if (ConstantFP *CF = dyn_cast<ConstantFP>(opr0)) {
  784     if (ConstantFP *CF = dyn_cast<ConstantFP>(opr0)) {
  787           Value *nval = ConstantFP::get(CF->getType(), ftbl[i].result);
  824   if (ConstantFP *CF = dyn_cast<ConstantFP>(opr0)) {
  824   if (ConstantFP *CF = dyn_cast<ConstantFP>(opr0)) {
  828     Value *nval = B.CreateFDiv(ConstantFP::get(CF->getType(), 1.0),
  843   ConstantFP *CF0 = dyn_cast<ConstantFP>(opr0);
  843   ConstantFP *CF0 = dyn_cast<ConstantFP>(opr0);
  844   ConstantFP *CF1 = dyn_cast<ConstantFP>(opr1);
  844   ConstantFP *CF1 = dyn_cast<ConstantFP>(opr1);
  850     Value *nval1 = B.CreateFDiv(ConstantFP::get(opr1->getType(), 1.0),
  877   ConstantFP *CF;
  887     CF = dyn_cast<ConstantFP>(opr1);
  896     CF = CDV ? dyn_cast_or_null<ConstantFP>(CDV->getSplatValue()) : nullptr;
  910     Constant *cnval = ConstantFP::get(eltType, 1.0);
  934     Constant *cnval = ConstantFP::get(eltType, 1.0);
  984       cnval = ConstantFP::get(eltType, 1.0);
 1002       cnval = ConstantFP::get(eltType, 1.0);
 1027     CF = dyn_cast<ConstantFP>(opr0);
 1035       cnval = ConstantFP::get(eltType, V);
 1080       if (const ConstantFP *CF = dyn_cast<ConstantFP>(opr1)) {
 1080       if (const ConstantFP *CF = dyn_cast<ConstantFP>(opr1)) {
 1189     Value *nval = B.CreateFDiv(ConstantFP::get(opr0->getType(), 1.0),
 1214   ConstantFP *CF0 = dyn_cast<ConstantFP>(opr0);
 1214   ConstantFP *CF0 = dyn_cast<ConstantFP>(opr0);
 1215   ConstantFP *CF1 = dyn_cast<ConstantFP>(opr1);
 1215   ConstantFP *CF1 = dyn_cast<ConstantFP>(opr1);
 1238   if (ConstantFP *CF = dyn_cast<ConstantFP>(opr2)) {
 1238   if (ConstantFP *CF = dyn_cast<ConstantFP>(opr2)) {
 1435   ConstantFP *fpopr0 = dyn_cast_or_null<ConstantFP>(copr0);
 1435   ConstantFP *fpopr0 = dyn_cast_or_null<ConstantFP>(copr0);
 1436   ConstantFP *fpopr1 = dyn_cast_or_null<ConstantFP>(copr1);
 1436   ConstantFP *fpopr1 = dyn_cast_or_null<ConstantFP>(copr1);
 1437   ConstantFP *fpopr2 = dyn_cast_or_null<ConstantFP>(copr2);
 1437   ConstantFP *fpopr2 = dyn_cast_or_null<ConstantFP>(copr2);
 1675     nval0 = ConstantFP::get(CI->getType(), DVal0[0]);
 1677       nval1 = ConstantFP::get(CI->getType(), DVal1[0]);
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
  239           ConstantFP *FpCons = dyn_cast<ConstantFP>(Arg);
  239           ConstantFP *FpCons = dyn_cast<ConstantFP>(Arg);
  414             ConstantFP *fpCons = dyn_cast<ConstantFP>(Arg);
  414             ConstantFP *fpCons = dyn_cast<ConstantFP>(Arg);
  420               Arg = ConstantFP::get(Ctx, Val);
lib/Target/ARM/ARMFastISel.cpp
  206     unsigned ARMMaterializeFP(const ConstantFP *CFP, MVT VT);
  421 unsigned ARMFastISel::ARMMaterializeFP(const ConstantFP *CFP, MVT VT) {
  649   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C))
  649   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C))
 1385   } else if (const ConstantFP *ConstFP = dyn_cast<ConstantFP>(Src2Value)) {
 1385   } else if (const ConstantFP *ConstFP = dyn_cast<ConstantFP>(Src2Value)) {
lib/Target/ARM/ARMISelLowering.cpp
 4164         if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CP->getConstVal()))
 4164         if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CP->getConstVal()))
lib/Target/AVR/AVRISelLowering.cpp
 1773     if (const ConstantFP *C = dyn_cast<ConstantFP>(CallOperandVal)) {
 1773     if (const ConstantFP *C = dyn_cast<ConstantFP>(CallOperandVal)) {
lib/Target/Hexagon/HexagonConstExtenders.cpp
  340         const ConstantFP *CFP;  // MO_FPImmediate
lib/Target/Hexagon/HexagonConstPropagation.cpp
  432   if (isa<ConstantFP>(C)) {
  433     const ConstantFP *CF = cast<ConstantFP>(C);
  433     const ConstantFP *CF = cast<ConstantFP>(C);
lib/Target/Hexagon/HexagonISelLowering.cpp
 2112       const ConstantFP *CF = CN->getConstantFPValue();
lib/Target/Mips/MipsFastISel.cpp
  204   unsigned materializeFP(const ConstantFP *CFP, MVT VT);
  389 unsigned MipsFastISel::materializeFP(const ConstantFP *CFP, MVT VT) {
  455   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C))
  455   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C))
lib/Target/NVPTX/NVPTXAsmPrinter.cpp
  260     const ConstantFP *Cnt = MO.getFPImm();
 1690 void NVPTXAsmPrinter::printFPConstant(const ConstantFP *Fp, raw_ostream &O) {
 1716   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CPV)) {
 1716   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CPV)) {
 1862     const auto *CFP = cast<ConstantFP>(CPV);
 1862     const auto *CFP = cast<ConstantFP>(CPV);
lib/Target/NVPTX/NVPTXAsmPrinter.h
  262   void printFPConstant(const ConstantFP *Fp, raw_ostream &O);
lib/Target/PowerPC/PPCFastISel.cpp
  174     unsigned PPCMaterializeFP(const ConstantFP *CFP, MVT VT);
 1993 unsigned PPCFastISel::PPCMaterializeFP(const ConstantFP *CFP, MVT VT) {
 2248   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C))
 2248   if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C))
lib/Target/PowerPC/PPCISelLowering.cpp
 1450       if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CP->getConstVal()))
 1450       if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CP->getConstVal()))
 8292         ConstantFP::get(Type::getFloatTy(*DAG.getContext()), 1.0);
 8294         ConstantFP::get(Type::getFloatTy(*DAG.getContext()), -1.0);
lib/Target/SystemZ/SystemZTDC.cpp
  123   auto *Const = dyn_cast<ConstantFP>(I.getOperand(1));
  123   auto *Const = dyn_cast<ConstantFP>(I.getOperand(1));
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
  391       .addFPImm(cast<ConstantFP>(ConstantFP::get(Ty, CmpVal)));
  391       .addFPImm(cast<ConstantFP>(ConstantFP::get(Ty, CmpVal)));
  401         .addFPImm(cast<ConstantFP>(ConstantFP::get(Ty, 0.0)));
  401         .addFPImm(cast<ConstantFP>(ConstantFP::get(Ty, 0.0)));
lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
  276       const ConstantFP *Imm = MO.getFPImm();
lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
  114     auto *Val = cast<ConstantFP>(Constant::getNullValue(
  114     auto *Val = cast<ConstantFP>(Constant::getNullValue(
  119     auto *Val = cast<ConstantFP>(Constant::getNullValue(
  119     auto *Val = cast<ConstantFP>(Constant::getNullValue(
lib/Target/X86/X86FastISel.cpp
  149   unsigned X86MaterializeFP(const ConstantFP *CFP, MVT VT);
  155   unsigned fastMaterializeFloatZero(const ConstantFP *CF) override;
 1467     const auto *RHSC = dyn_cast<ConstantFP>(RHS);
 1467     const auto *RHSC = dyn_cast<ConstantFP>(RHS);
 1655         const auto *CmpRHSC = dyn_cast<ConstantFP>(CmpRHS);
 1655         const auto *CmpRHSC = dyn_cast<ConstantFP>(CmpRHS);
 2167     const auto *CmpRHSC = dyn_cast<ConstantFP>(CmpRHS);
 2167     const auto *CmpRHSC = dyn_cast<ConstantFP>(CmpRHS);
 3734 unsigned X86FastISel::X86MaterializeFP(const ConstantFP *CFP, MVT VT) {
 3857   else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C))
 3857   else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C))
 3891 unsigned X86FastISel::fastMaterializeFloatZero(const ConstantFP *CF) {
lib/Target/X86/X86ISelLowering.cpp
 6037     if (auto *CFP = dyn_cast<ConstantFP>(Cst)) {
 8081         Const = ConstantFP::get(C, APFloat(APFloat::IEEEsingle(), Val));
 8084         Const = ConstantFP::get(C, APFloat(APFloat::IEEEdouble(), Val));
 8248                   ? ConstantFP::get(*Ctx,
 8250                   : ConstantFP::get(*Ctx,
 9659         ConstVecOps[i] = ConstantFP::get(Context, C->getValueAPF());
18567     ConstantFP::get(*Context, APFloat(APFloat::IEEEdouble(),
18570     ConstantFP::get(*Context, APFloat(APFloat::IEEEdouble(),
45547     if (isa<ConstantFP>(CallOperandVal)) {
lib/Target/X86/X86InstructionSelector.cpp
 1443   const ConstantFP *CFP = I.getOperand(1).getFPImm();
lib/Target/X86/X86MCInstLower.cpp
 1736   } else if (auto *CF = dyn_cast<ConstantFP>(COp)) {
 2286       if (auto *CF = dyn_cast<ConstantFP>(C)) {
lib/Transforms/InstCombine/InstCombineAddSub.cpp
  151     void set(const ConstantFP *Coefficient, Value *V) {
  332     ConstantFP::get(Ty, float(IntVal)) :
  333     ConstantFP::get(Ty->getContext(), getFpVal());
  355     ConstantFP *C0, *C1;
  358     if ((C0 = dyn_cast<ConstantFP>(Opnd0)) && C0->isZero())
  361     if ((C1 = dyn_cast<ConstantFP>(Opnd1)) && C1->isZero())
  392     if (ConstantFP *C = dyn_cast<ConstantFP>(V0)) {
  392     if (ConstantFP *C = dyn_cast<ConstantFP>(V0)) {
  397     if (ConstantFP *C = dyn_cast<ConstantFP>(V1)) {
  397     if (ConstantFP *C = dyn_cast<ConstantFP>(V1)) {
  594     Result = ConstantFP::get(Instr->getType(), 0.0);
  666   Value *Zero = cast<Value>(ConstantFP::getZeroValueForNegation(V->getType()));
 1539     if (ConstantFP *CFP = dyn_cast<ConstantFP>(RHS))
 1539     if (ConstantFP *CFP = dyn_cast<ConstantFP>(RHS))
 2183       Constant *CSubOne = ConstantExpr::getFSub(C, ConstantFP::get(Ty, 1.0));
 2188       Constant *OneSubC = ConstantExpr::getFSub(ConstantFP::get(Ty, 1.0), C);
lib/Transforms/InstCombine/InstCombineAtomicRMW.cpp
   24   if (auto CF = dyn_cast<ConstantFP>(RMWI.getValOperand()))
   62   if (auto CF = dyn_cast<ConstantFP>(RMWI.getValOperand()))
  146     RMWI.setOperand(1, ConstantFP::getNegativeZero(RMWI.getType()));
lib/Transforms/InstCombine/InstCombineCalls.cpp
  104                     : cast<ConstantFP>(Elt)->isNegative();
 1742         Instruction::FDiv, ConstantFP::get(II->getArgOperand(0)->getType(), 1),
 1924         return BinaryOperator::CreateFDiv(ConstantFP::get(CI.getType(), 1.0),
 2217             IID, X, ConstantFP::get(Arg0->getType(), Res));
 3331     if (const ConstantFP *C = dyn_cast<ConstantFP>(Src)) {
 3331     if (const ConstantFP *C = dyn_cast<ConstantFP>(Src)) {
 3339         return replaceInstUsesWith(CI, ConstantFP::get(II->getContext(), Val));
 3355     if (const ConstantFP *C = dyn_cast<ConstantFP>(Src)) {
 3355     if (const ConstantFP *C = dyn_cast<ConstantFP>(Src)) {
 3361         return replaceInstUsesWith(CI, ConstantFP::get(II->getContext(),
 3425         Src0, ConstantFP::get(Src0->getType(), 0.0));
 3438     const ConstantFP *CVal = dyn_cast<ConstantFP>(Src0);
 3438     const ConstantFP *CVal = dyn_cast<ConstantFP>(Src0);
 3475     if (const ConstantFP *C0 = dyn_cast<ConstantFP>(Src0)) {
 3475     if (const ConstantFP *C0 = dyn_cast<ConstantFP>(Src0)) {
 3476       if (const ConstantFP *C1 = dyn_cast<ConstantFP>(Src1)) {
 3476       if (const ConstantFP *C1 = dyn_cast<ConstantFP>(Src1)) {
 3486             ConstantFP::get(II->getContext(), Val0),
 3487             ConstantFP::get(II->getContext(), Val1) });
 3648     if (const ConstantFP *C0 = dyn_cast<ConstantFP>(Src0)) {
 3648     if (const ConstantFP *C0 = dyn_cast<ConstantFP>(Src0)) {
 3649       if (const ConstantFP *C1 = dyn_cast<ConstantFP>(Src1)) {
 3649       if (const ConstantFP *C1 = dyn_cast<ConstantFP>(Src1)) {
 3650         if (const ConstantFP *C2 = dyn_cast<ConstantFP>(Src2)) {
 3650         if (const ConstantFP *C2 = dyn_cast<ConstantFP>(Src2)) {
 3654             ConstantFP::get(Builder.getContext(), Result));
lib/Transforms/InstCombine/InstCombineCasts.cpp
 1449 static bool fitsInFPType(ConstantFP *CFP, const fltSemantics &Sem) {
 1456 static Type *shrinkFPConstant(ConstantFP *CFP) {
 1485     auto *CFP = dyn_cast_or_null<ConstantFP>(CV->getAggregateElement(i));
 1485     auto *CFP = dyn_cast_or_null<ConstantFP>(CV->getAggregateElement(i));
 1511   if (auto *CFP = dyn_cast<ConstantFP>(V))
 1511   if (auto *CFP = dyn_cast<ConstantFP>(V))
lib/Transforms/InstCombine/InstCombineCompares.cpp
 5606   if (!isa<ConstantFP>(RHSC)) return nullptr;
 5607   const APFloat &RHS = cast<ConstantFP>(RHSC)->getValueAPF();
 6000       I.setOperand(0, ConstantFP::getNullValue(OpType));
 6004       I.setOperand(1, ConstantFP::getNullValue(OpType));
 6032     I.setOperand(1, ConstantFP::getNullValue(OpType));
 6102         Constant *NewC = ConstantFP::get(X->getType(), TruncC);
lib/Transforms/InstCombine/InstCombineInternal.h
  261         SafeC = ConstantFP::get(EltTy, 1.0);
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
 1161   auto *RecipC = ConstantExpr::getFDiv(ConstantFP::get(I.getType(), 1.0), C);
 1264         Res = B.CreateFDiv(ConstantFP::get(I.getType(), 1.0), Res);
 1282     I.setOperand(0, ConstantFP::get(I.getType(), 1.0));
 1295         Intrinsic::copysign, ConstantFP::get(I.getType(), 1.0), X, &I);
lib/Transforms/Scalar/Float2Int.cpp
  230       } else if (!isa<ConstantFP>(O)) {
  303       } else if (ConstantFP *CF = dyn_cast<ConstantFP>(O)) {
  303       } else if (ConstantFP *CF = dyn_cast<ConstantFP>(O)) {
  448     } else if (ConstantFP *CF = dyn_cast<ConstantFP>(V)) {
  448     } else if (ConstantFP *CF = dyn_cast<ConstantFP>(V)) {
lib/Transforms/Scalar/GVN.cpp
 1487           (!isa<ConstantFP>(CmpRHS) || cast<ConstantFP>(CmpRHS)->isZero()))
 1487           (!isa<ConstantFP>(CmpRHS) || cast<ConstantFP>(CmpRHS)->isZero()))
 1895         if (isa<ConstantFP>(Op1) && !cast<ConstantFP>(Op1)->isZero())
 1895         if (isa<ConstantFP>(Op1) && !cast<ConstantFP>(Op1)->isZero())
lib/Transforms/Scalar/IndVarSimplify.cpp
  312   auto *InitValueVal = dyn_cast<ConstantFP>(PN->getIncomingValue(IncomingEdge));
  312   auto *InitValueVal = dyn_cast<ConstantFP>(PN->getIncomingValue(IncomingEdge));
  325   ConstantFP *IncValueVal = dyn_cast<ConstantFP>(Incr->getOperand(1));
  325   ConstantFP *IncValueVal = dyn_cast<ConstantFP>(Incr->getOperand(1));
  362   ConstantFP *ExitValueVal = dyn_cast<ConstantFP>(Compare->getOperand(1));
  362   ConstantFP *ExitValueVal = dyn_cast<ConstantFP>(Compare->getOperand(1));
lib/Transforms/Scalar/LICM.cpp
  870         auto One = llvm::ConstantFP::get(Divisor->getType(), 1.0);
lib/Transforms/Scalar/LoopStrengthReduce.cpp
 2138     Constant *NewInit = ConstantFP::get(DestTy, IsSigned ?
 2168     Constant *CFP = ConstantFP::get(DestTy, C->getZExtValue());
lib/Transforms/Scalar/NewGVN.cpp
 1617         isa<ConstantFP>(FirstOp) && !cast<ConstantFP>(FirstOp)->isZero()) {
 1617         isa<ConstantFP>(FirstOp) && !cast<ConstantFP>(FirstOp)->isZero()) {
lib/Transforms/Scalar/PartiallyInlineLibCalls.cpp
   78                                             ConstantFP::get(Ty, 0.0));
lib/Transforms/Scalar/Reassociate.cpp
  275     ConstantInt::getAllOnesValue(Ty) : ConstantFP::get(Ty, -1.0);
 1073     } else if (ConstantFP *FC1 = dyn_cast<ConstantFP>(Factor)) {
 1073     } else if (ConstantFP *FC1 = dyn_cast<ConstantFP>(Factor)) {
 1074       if (ConstantFP *FC2 = dyn_cast<ConstantFP>(Factors[i].Op)) {
 1074       if (ConstantFP *FC2 = dyn_cast<ConstantFP>(Factors[i].Op)) {
 1461         ConstantInt::get(Ty, NumFound) : ConstantFP::get(Ty, NumFound);
 1569       } else if (ConstantFP *CF = dyn_cast<ConstantFP>(Factor)) {
 1569       } else if (ConstantFP *CF = dyn_cast<ConstantFP>(Factor)) {
 1573           Factor = ConstantFP::get(CF->getContext(), F);
 2017       Negatible->setOperand(0, ConstantFP::get(Negatible->getType(), abs(*C)));
 2024       Negatible->setOperand(1, ConstantFP::get(Negatible->getType(), abs(*C)));
 2251                isa<ConstantFP>(Ops.back().Op) &&
 2252                cast<ConstantFP>(Ops.back().Op)->isExactlyValue(-1.0)) {
lib/Transforms/Utils/FunctionComparator.cpp
  296     const APFloat &LAPF = cast<ConstantFP>(L)->getValueAPF();
  297     const APFloat &RAPF = cast<ConstantFP>(R)->getValueAPF();
lib/Transforms/Utils/InlineFunction.cpp
 1052         bool IsNonPtrConst = isa<ConstantInt>(V) || isa<ConstantFP>(V) ||
lib/Transforms/Utils/LibCallsShrinkWrap.cpp
  115     Constant *V = ConstantFP::get(BBBuilder.getContext(), APFloat(Val));
  432   if (ConstantFP *CF = dyn_cast<ConstantFP>(Base)) {
  432   if (ConstantFP *CF = dyn_cast<ConstantFP>(Base)) {
  440     Constant *V = ConstantFP::get(CI->getContext(), APFloat(127.0f));
  468     Constant *V = ConstantFP::get(CI->getContext(), APFloat(UpperV));
  469     Constant *V0 = ConstantFP::get(CI->getContext(), APFloat(0.0f));
lib/Transforms/Utils/LoopUtils.cpp
  898       auto Rdx = Builder.CreateFMulReduce(ConstantFP::get(Ty, 1.0), Src);
lib/Transforms/Utils/SimplifyCFG.cpp
 4611   if (!isa<ConstantFP>(C) && !isa<ConstantInt>(C) &&
lib/Transforms/Utils/SimplifyLibCalls.cpp
 1240   if (ConstantFP *Const = dyn_cast<ConstantFP>(Val)) {
 1240   if (ConstantFP *Const = dyn_cast<ConstantFP>(Val)) {
 1246       return ConstantFP::get(Const->getContext(), F);
 1511       return emitBinaryFloatFnCall(ConstantFP::get(Ty, 1.0), ExpoI, TLI,
 1529       Value *FMul = B.CreateFMul(Expo, ConstantFP::get(Ty, N), "mul");
 1551       Log = ConstantFP::get(Ty, std::log2(BaseF->convertToFloat()));
 1553       Log = ConstantFP::get(Ty, std::log2(BaseF->convertToDouble()));
 1615     Value *PosInf = ConstantFP::getInfinity(Ty),
 1616           *NegInf = ConstantFP::getInfinity(Ty, true);
 1623     Sqrt = B.CreateFDiv(ConstantFP::get(Ty, 1.0), Sqrt, "reciprocal");
 1673     return B.CreateFDiv(ConstantFP::get(Ty, 1.0), Base, "reciprocal");
 1677     return ConstantFP::get(Ty, 1.0);
 1736         FMul = B.CreateFDiv(ConstantFP::get(Ty, 1.0), FMul, "reciprocal");
 1776       return emitBinaryFloatFnCall(ConstantFP::get(Ty, 1.0), Exp, TLI,
 1944       Eul = ConstantFP::get(Log->getType(), numbers::e);
 1946       Eul = ConstantFP::get(Log->getType(), 2.0);
 1948       Eul = ConstantFP::get(Log->getType(), 10.0);
lib/Transforms/Vectorize/LoopVectorize.cpp
  356                            : ConstantFP::get(Ty, C);
 1925     Indices.push_back(ConstantFP::get(STy, (double)(StartIdx + i)));
 6570     Constant *C = ConstantFP::get(Ty, (double)StartIdx);
tools/clang/lib/CodeGen/CGBuiltin.cpp
 1543       return RValue::get(llvm::ConstantFP::get(getLLVMContext(),
 1831         ? llvm::ConstantFP::getZeroValueForNegation(Imag->getType())
 2243     Constant *Infinity = ConstantFP::getInfinity(V->getType());
 2256         AbsArg, ConstantFP::getInfinity(Arg->getType()), "isinf");
 2275       Builder.CreateFCmpULT(Abs, ConstantFP::getInfinity(V->getType()),"isinf");
 2279       Builder.CreateFCmpUGE(Abs, ConstantFP::get(V->getContext(), Smallest),
 2330       Builder.CreateFCmpOEQ(VAbs, ConstantFP::getInfinity(V->getType()),
 2342       Builder.CreateFCmpUGE(VAbs, ConstantFP::get(V->getContext(), Smallest),
 7999     Value *Zero = llvm::ConstantFP::getZeroValueForNegation(HalfTy);
12630     Value *Zero = llvm::ConstantFP::getZeroValueForNegation(ResultType);
13125     Value *Zero = llvm::ConstantFP::getZeroValueForNegation(ResultType);
13135     Value *Zero = llvm::ConstantFP::getZeroValueForNegation(ResultType);
13145     Value *Zero = llvm::ConstantFP::getZeroValueForNegation(ResultType);
13161     Value *Zero = llvm::ConstantFP::getZeroValueForNegation(ResultType);
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 1360         C = llvm::ConstantFP::get(CGM.getLLVMContext(), Value->getFloat());
tools/clang/lib/CodeGen/CGDecl.cpp
  866   if (isa<llvm::ConstantInt>(Init) || isa<llvm::ConstantFP>(Init) ||
  903   if (isa<llvm::ConstantInt>(Init) || isa<llvm::ConstantFP>(Init) ||
tools/clang/lib/CodeGen/CGExpr.cpp
 1004     NextVal = llvm::ConstantFP::get(getLLVMContext(), FVal);
tools/clang/lib/CodeGen/CGExprConstant.cpp
 2046       return llvm::ConstantFP::get(CGM.getLLVMContext(), Init);
 2051     Complex[0] = llvm::ConstantFP::get(CGM.getLLVMContext(),
 2053     Complex[1] = llvm::ConstantFP::get(CGM.getLLVMContext(),
 2070         Inits[I] = llvm::ConstantFP::get(CGM.getLLVMContext(), Elt.getFloat());
tools/clang/lib/CodeGen/CGExprScalar.cpp
  124       if (auto *CFP = dyn_cast<llvm::ConstantFP>(RHS))
  124       if (auto *CFP = dyn_cast<llvm::ConstantFP>(RHS))
  462     return llvm::ConstantFP::get(VMContext, E->getValue());
  927     Builder.CreateFCmpOGT(Src, llvm::ConstantFP::get(VMContext, MinSrc));
  929     Builder.CreateFCmpOLT(Src, llvm::ConstantFP::get(VMContext, MaxSrc));
 2484                   llvm::ConstantFP::get(value->getType(), amount),
 2506       amt = llvm::ConstantFP::get(VMContext,
 2509       amt = llvm::ConstantFP::get(VMContext,
 2525       amt = llvm::ConstantFP::get(VMContext, F);
 3288         llvm::ConstantFP::getZeroValueForNegation(MulOp0->getType()), MulOp0,
 3293         llvm::ConstantFP::getZeroValueForNegation(Addend->getType()), Addend,
tools/clang/lib/CodeGen/PatternInit.cpp
   62     return llvm::ConstantFP::getQNaN(Ty, NegativeNaN, &Payload);
tools/lldb/source/Expression/IRInterpreter.cpp
  251       if (const ConstantFP *constant_fp = dyn_cast<ConstantFP>(constant)) {
  251       if (const ConstantFP *constant_fp = dyn_cast<ConstantFP>(constant)) {
tools/llvm-stress/llvm-stress.cpp
  216         return ConstantFP::getAllOnesValue(Tp);
  217       return ConstantFP::getNullValue(Tp);
  238         return ConstantFP::getAllOnesValue(Tp);
  239       return ConstantFP::getNullValue(Tp);
  443         return PT->push_back(ConstantFP::getNullValue(Ty));
  444       return PT->push_back(ConstantFP::get(Ty->getContext(), RandomFloat));
unittests/Analysis/ValueLatticeTest.cpp
   41   auto *C2 = ConstantFP::get(FloatTy, 1.1);
  138   auto *C1 = ConstantFP::get(FloatTy, 1.0);
  176   auto LV3 = ValueLatticeElement::get(ConstantFP::get(FloatTy, 1.0));
unittests/CodeGen/GlobalISel/MachineIRBuilderTest.cpp
   66   ConstantFP *CF = ConstantFP::get(Ctx, DoubleVal);
   66   ConstantFP *CF = ConstantFP::get(Ctx, DoubleVal);
unittests/CodeGen/GlobalISel/PatternMatchTest.cpp
  159   const ConstantFP *TmpFP{};
  164   auto *CFP = ConstantFP::get(Context, APF);
  164   auto *CFP = ConstantFP::get(Context, APF);
  170   const ConstantFP *TmpFP64{};
  175   auto CFP64 = ConstantFP::get(Context, APF64);
  182   const ConstantFP *TmpFP16{};
  189   auto CFP16 = ConstantFP::get(Context, APF16);
unittests/FuzzMutate/OperationsTest.cpp
   88   Constant *f16 = ConstantFP::getInfinity(Type::getHalfTy(Ctx));
   89   Constant *f32 = ConstantFP::get(Type::getFloatTy(Ctx), 0.0);
   90   Constant *f64 = ConstantFP::get(Type::getDoubleTy(Ctx), 123.45);
unittests/IR/ConstantsTest.cpp
  434     Constant *Vals[] = {ConstantFP::get(T, 0), ConstantFP::get(T, 1)};
  434     Constant *Vals[] = {ConstantFP::get(T, 0), ConstantFP::get(T, 1)};
  455     Constant *Vals[] = {ConstantFP::get(T, 0), ConstantFP::get(T, 1)};
  455     Constant *Vals[] = {ConstantFP::get(T, 0), ConstantFP::get(T, 1)};
unittests/IR/InstructionsTest.cpp
 1052   Constant *One = ConstantFP::get(FltTy, 1.0);
unittests/IR/MDBuilderTest.cpp
   40   ConstantFP *Val = mdconst::extract<ConstantFP>(Op);
   40   ConstantFP *Val = mdconst::extract<ConstantFP>(Op);
unittests/IR/PatternMatch.cpp
  582   Value *L = ConstantFP::get(FltTy, 1.0);
  583   Value *R = ConstantFP::get(FltTy, 2.0);
  632   Value *L = ConstantFP::get(FltTy, 1.0);
  633   Value *R = ConstantFP::get(FltTy, 2.0);
  683   Value *L = ConstantFP::get(FltTy, 1.0);
  684   Value *R = ConstantFP::get(FltTy, 2.0);
  733   Value *L = ConstantFP::get(FltTy, 1.0);
  734   Value *R = ConstantFP::get(FltTy, 2.0);
 1057   Value *One = ConstantFP::get(FltTy, 1.0);
 1058   Value *Z = ConstantFP::get(FltTy, 0.0);
 1059   Value *NZ = ConstantFP::get(FltTy, -0.0);
usr/include/c++/7.4.0/bits/unique_ptr.h
   68         default_delete(const default_delete<_Up>&) noexcept { }
   72       operator()(_Tp* __ptr) const
   74 	static_assert(!is_void<_Tp>::value,
   76 	static_assert(sizeof(_Tp)>0,
  122 	  using type = _Up*;
  137       using pointer = typename _Ptr<_Tp, _Dp>::type;
  161 	typename __uniq_ptr_impl<_Tp, _Up>::_DeleterConstraint::type;
  163       __uniq_ptr_impl<_Tp, _Dp> _M_t;
  166       using pointer	  = typename __uniq_ptr_impl<_Tp, _Dp>::pointer;
  167       using element_type  = _Tp;
  252 	unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
  297           __safe_conversion_up<_Up, _Ep>,
  301 	operator=(unique_ptr<_Up, _Ep>&& __u) noexcept
usr/include/c++/7.4.0/type_traits
  215     : public __is_void_helper<typename remove_cv<_Tp>::type>::type
  581     : public __or_<is_lvalue_reference<_Tp>,
  582                    is_rvalue_reference<_Tp>>::type
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  601     : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
  602                           is_void<_Tp>>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
  638     : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
 1554     { typedef _Tp     type; };
 1563     { typedef _Tp     type; };
 1574       remove_const<typename remove_volatile<_Tp>::type>::type     type;
 1645     { typedef _Tp&   type; };
 1650     : public __add_lvalue_reference_helper<_Tp>
utils/unittest/googletest/include/gtest/gtest-printers.h
  407                     T* p, ::std::ostream* os) {
  416     if (IsTrue(ImplicitlyConvertible<T*, const void*>::value)) {