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

Declarations

include/llvm/IR/Constants.h
  284   static Constant *get(Type* Ty, double V);

References

lib/Analysis/IVDescriptors.cpp
  741     return ConstantFP::get(Tp, 1.0L);
  744     return ConstantFP::get(Tp, 0.0L);
lib/Analysis/InstructionSimplify.cpp
 4679       return ConstantFP::get(Op0->getType(), 1.0);
 4691       return ConstantFP::get(Op0->getType(), -1.0);
 5080         return ConstantFP::get(Op0->getType(), 1.0);
lib/IR/AutoUpgrade.cpp
 3500       Args.push_back(ConstantFP::get(CI->getOperand(0)->getType(), 1.0));
lib/IR/Constants.cpp
 2357         return ConstantFP::get(Ty, 1.0);
 2378       return ConstantFP::get(Ty, 1.0);
lib/IR/Core.cpp
 1325   return wrap(ConstantFP::get(unwrap(RealTy), N));
lib/IR/MDBuilder.cpp
   33       createConstant(ConstantFP::get(Type::getFloatTy(Context), Accuracy));
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  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
  787           Value *nval = ConstantFP::get(CF->getType(), ftbl[i].result);
  828     Value *nval = B.CreateFDiv(ConstantFP::get(CF->getType(), 1.0),
  850     Value *nval1 = B.CreateFDiv(ConstantFP::get(opr1->getType(), 1.0),
  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);
 1035       cnval = ConstantFP::get(eltType, V);
 1189     Value *nval = B.CreateFDiv(ConstantFP::get(opr0->getType(), 1.0),
 1675     nval0 = ConstantFP::get(CI->getType(), DVal0[0]);
 1677       nval1 = ConstantFP::get(CI->getType(), DVal1[0]);
lib/Target/PowerPC/PPCISelLowering.cpp
 8292         ConstantFP::get(Type::getFloatTy(*DAG.getContext()), 1.0);
 8294         ConstantFP::get(Type::getFloatTy(*DAG.getContext()), -1.0);
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
  391       .addFPImm(cast<ConstantFP>(ConstantFP::get(Ty, CmpVal)));
  401         .addFPImm(cast<ConstantFP>(ConstantFP::get(Ty, 0.0)));
lib/Transforms/InstCombine/InstCombineAddSub.cpp
  332     ConstantFP::get(Ty, float(IntVal)) :
  594     Result = ConstantFP::get(Instr->getType(), 0.0);
 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/InstCombineCalls.cpp
 1742         Instruction::FDiv, ConstantFP::get(II->getArgOperand(0)->getType(), 1),
 1924         return BinaryOperator::CreateFDiv(ConstantFP::get(CI.getType(), 1.0),
 3425         Src0, ConstantFP::get(Src0->getType(), 0.0));
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/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/PartiallyInlineLibCalls.cpp
   78                                             ConstantFP::get(Ty, 0.0));
lib/Transforms/Scalar/Reassociate.cpp
  275     ConstantInt::getAllOnesValue(Ty) : ConstantFP::get(Ty, -1.0);
 1461         ConstantInt::get(Ty, NumFound) : ConstantFP::get(Ty, NumFound);
lib/Transforms/Utils/LoopUtils.cpp
  898       auto Rdx = Builder.CreateFMulReduce(ConstantFP::get(Ty, 1.0), Src);
lib/Transforms/Utils/SimplifyLibCalls.cpp
 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()));
 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/CGExprScalar.cpp
 2484                   llvm::ConstantFP::get(value->getType(), amount),
unittests/Analysis/ValueLatticeTest.cpp
   41   auto *C2 = ConstantFP::get(FloatTy, 1.1);
  138   auto *C1 = ConstantFP::get(FloatTy, 1.0);
  151       LV1.mergeIn(ValueLatticeElement::get(ConstantFP::get(FloatTy, 2.2)),
  176   auto LV3 = ValueLatticeElement::get(ConstantFP::get(FloatTy, 1.0));
unittests/FuzzMutate/OperationsTest.cpp
   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/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);