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

Declarations

include/llvm/IR/Constants.h
  291   static ConstantFP *get(LLVMContext &Context, const APFloat &V);

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));
lib/Analysis/ConstantFolding.cpp
  131       return ConstantFP::get(DestTy->getContext(), FP);
 1567     return ConstantFP::get(Ty->getContext(), APF);
 1570     return ConstantFP::get(Ty->getContext(), APFloat(V));
 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);
 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(),
 2294           return ConstantFP::get(Ty->getContext(), V);
lib/AsmParser/LLParser.cpp
 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/CodeGen/GlobalISel/LegalizerHelper.cpp
 1707     SrcMO.setFPImm(ConstantFP::get(Ctx, Val));
lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
  350       ConstantFP::get(Ctx, getAPFloatFromSize(Val, DstTy.getScalarSizeInBits()));
  357   auto *CFP = ConstantFP::get(Ctx, Val);
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
 1303   return getConstantFP(*ConstantFP::get(*getContext(), V), DL, VT, isTarget);
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/ConstantFold.cpp
  173       return ConstantFP::get(DestTy->getContext(),
  605       return ConstantFP::get(V->getContext(), Val);
  689       return ConstantFP::get(V->getContext(), apf);
  967       return ConstantFP::get(C->getContext(), neg(CV));
 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);
lib/IR/Constants.cpp
  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);
  723   Constant *C = get(Context, FV);
  733   ConstantFP *C = get(Ty->getContext(), V);
  748   Constant *C = get(Context, FV);
  760   Constant *C = get(Ty->getContext(), NaN);
  771   Constant *C = get(Ty->getContext(), NaN);
  782   Constant *C = get(Ty->getContext(), NaN);
  793   Constant *C = get(Ty->getContext(), NegZero);
  841   Constant *C = get(Ty->getContext(), APFloat::getInf(Semantics, Negative));
 2776     return ConstantFP::get(getContext(), getElementAsAPFloat(Elt));
lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp
  420               Arg = ConstantFP::get(Ctx, Val);
lib/Target/X86/X86ISelLowering.cpp
 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(),
lib/Transforms/InstCombine/InstCombineAddSub.cpp
  333     ConstantFP::get(Ty->getContext(), getFpVal());
lib/Transforms/InstCombine/InstCombineCalls.cpp
 3339         return replaceInstUsesWith(CI, ConstantFP::get(II->getContext(), Val));
 3361         return replaceInstUsesWith(CI, ConstantFP::get(II->getContext(),
 3486             ConstantFP::get(II->getContext(), Val0),
 3487             ConstantFP::get(II->getContext(), Val1) });
 3654             ConstantFP::get(Builder.getContext(), Result));
lib/Transforms/Scalar/Reassociate.cpp
 1573           Factor = ConstantFP::get(CF->getContext(), F);
lib/Transforms/Utils/LibCallsShrinkWrap.cpp
  115     Constant *V = ConstantFP::get(BBBuilder.getContext(), APFloat(Val));
  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/SimplifyLibCalls.cpp
 1246       return ConstantFP::get(Const->getContext(), F);
tools/clang/lib/CodeGen/CGBuiltin.cpp
 1543       return RValue::get(llvm::ConstantFP::get(getLLVMContext(),
 2279       Builder.CreateFCmpUGE(Abs, ConstantFP::get(V->getContext(), Smallest),
 2342       Builder.CreateFCmpUGE(VAbs, ConstantFP::get(V->getContext(), Smallest),
tools/clang/lib/CodeGen/CGDebugInfo.cpp
 1360         C = llvm::ConstantFP::get(CGM.getLLVMContext(), Value->getFloat());
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
  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));
 2506       amt = llvm::ConstantFP::get(VMContext,
 2509       amt = llvm::ConstantFP::get(VMContext,
 2525       amt = llvm::ConstantFP::get(VMContext, F);
tools/llvm-stress/llvm-stress.cpp
  444       return PT->push_back(ConstantFP::get(Ty->getContext(), RandomFloat));
unittests/CodeGen/GlobalISel/MachineIRBuilderTest.cpp
   66   ConstantFP *CF = ConstantFP::get(Ctx, DoubleVal);
unittests/CodeGen/GlobalISel/PatternMatchTest.cpp
  164   auto *CFP = ConstantFP::get(Context, APF);
  175   auto CFP64 = ConstantFP::get(Context, APF64);
  189   auto CFP16 = ConstantFP::get(Context, APF16);