/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | ConstantFolding.cpp | 133 return ConstantFP::get(DestTy->getContext(), FP); in FoldBitCast() 144 if (isa<ConstantFP>(C) || isa<ConstantInt>(C)) { in FoldBitCast() 408 if (auto *CFP = dyn_cast<ConstantFP>(C)) { in ReadDataFromGlobal() 1569 return ConstantFP::get(Ty->getContext(), APF); in GetConstantFoldFPValue() 1572 return ConstantFP::get(Ty->getContext(), APFloat(V)); in GetConstantFoldFPValue() 1646 double getValueAsDouble(ConstantFP *Op) { in getValueAsDouble() 1733 if (auto *Op = dyn_cast<ConstantFP>(Operands[0])) { in ConstantFoldScalarCall1() 1751 return ConstantFP::get(Ty->getContext(), U); in ConstantFoldScalarCall1() 1756 return ConstantFP::get(Ty->getContext(), U); in ConstantFoldScalarCall1() 1761 return ConstantFP::get(Ty->getContext(), U); in ConstantFoldScalarCall1() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPULibCalls.cpp | 750 ConstantFP *eltval = dyn_cast<ConstantFP>( in TDOFold() 785 if (ConstantFP *CF = dyn_cast<ConstantFP>(opr0)) { in TDOFold() 788 Value *nval = ConstantFP::get(CF->getType(), ftbl[i].result); in TDOFold() 825 if (ConstantFP *CF = dyn_cast<ConstantFP>(opr0)) { in fold_recip() 829 Value *nval = B.CreateFDiv(ConstantFP::get(CF->getType(), 1.0), in fold_recip() 844 ConstantFP *CF0 = dyn_cast<ConstantFP>(opr0); in fold_divide() 845 ConstantFP *CF1 = dyn_cast<ConstantFP>(opr1); in fold_divide() 851 Value *nval1 = B.CreateFDiv(ConstantFP::get(opr1->getType(), 1.0), in fold_divide() 878 ConstantFP *CF; in fold_pow() 888 CF = dyn_cast<ConstantFP>(opr1); in fold_pow() [all …]
|
D | AMDGPUPrintfRuntimeBinding.cpp | 240 ConstantFP *FpCons = dyn_cast<ConstantFP>(Arg); in lowerPrintfForGpu() 415 ConstantFP *fpCons = dyn_cast<ConstantFP>(Arg); in lowerPrintfForGpu() 421 Arg = ConstantFP::get(Ctx, Val); in lowerPrintfForGpu()
|
D | AMDGPUCodeGenPrepare.cpp | 529 const ConstantFP *CNum = dyn_cast<ConstantFP>(Num); in shouldKeepFDivF32() 688 Value *RCP = Builder.CreateFDiv(ConstantFP::get(F32Ty, 1.0), FB); in expandDivRem24() 798 Value *RCP_F32 = Builder.CreateFDiv(ConstantFP::get(F32Ty, 1.0), DEN_F32); in expandDivRem32() 799 Constant *UINT_MAX_PLUS_1 = ConstantFP::get(F32Ty, BitsToFloat(0x4f800000)); in expandDivRem32()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | Constants.cpp | 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() [all …]
|
D | ConstantFold.cpp | 155 if (isa<ConstantInt>(V) || isa<ConstantFP>(V)) in FoldBitCast() 173 return ConstantFP::get(DestTy->getContext(), in FoldBitCast() 182 if (ConstantFP *FP = dyn_cast<ConstantFP>(V)) { in FoldBitCast() 594 if (ConstantFP *FPC = dyn_cast<ConstantFP>(V)) { in ConstantFoldCastInstruction() 605 return ConstantFP::get(V->getContext(), Val); in ConstantFoldCastInstruction() 610 if (ConstantFP *FPC = dyn_cast<ConstantFP>(V)) { in ConstantFoldCastInstruction() 689 return ConstantFP::get(V->getContext(), apf); in ConstantFoldCastInstruction() 973 if (ConstantFP *CFP = dyn_cast<ConstantFP>(C)) { in ConstantFoldUnaryInstruction() 979 return ConstantFP::get(C->getContext(), neg(CV)); in ConstantFoldUnaryInstruction() 1115 return ConstantFP::getNaN(C1->getType()); in ConstantFoldBinaryInstruction() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/FuzzMutate/ |
D | OpDescriptor.cpp | 26 Cs.push_back(ConstantFP::get(Ctx, APFloat::getZero(Sem))); in makeConstantsWithType() 27 Cs.push_back(ConstantFP::get(Ctx, APFloat::getLargest(Sem))); in makeConstantsWithType() 28 Cs.push_back(ConstantFP::get(Ctx, APFloat::getSmallest(Sem))); in makeConstantsWithType()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineAtomicRMW.cpp | 24 if (auto CF = dyn_cast<ConstantFP>(RMWI.getValOperand())) in isIdempotentRMW() 62 if (auto CF = dyn_cast<ConstantFP>(RMWI.getValOperand())) in isSaturating() 146 RMWI.setOperand(1, ConstantFP::getNegativeZero(RMWI.getType())); in visitAtomicRMWInst()
|
D | InstCombineAddSub.cpp | 151 void set(const ConstantFP *Coefficient, Value *V) { in set() 332 ConstantFP::get(Ty, float(IntVal)) : in getValue() 333 ConstantFP::get(Ty->getContext(), getFpVal()); in getValue() 355 ConstantFP *C0, *C1; in drillValueDownOneStep() 358 if ((C0 = dyn_cast<ConstantFP>(Opnd0)) && C0->isZero()) in drillValueDownOneStep() 361 if ((C1 = dyn_cast<ConstantFP>(Opnd1)) && C1->isZero()) in drillValueDownOneStep() 392 if (ConstantFP *C = dyn_cast<ConstantFP>(V0)) { in drillValueDownOneStep() 397 if (ConstantFP *C = dyn_cast<ConstantFP>(V1)) { in drillValueDownOneStep() 594 Result = ConstantFP::get(Instr->getType(), 0.0); in simplifyFAdd() 666 Value *Zero = cast<Value>(ConstantFP::getZeroValueForNegation(V->getType())); in createFNeg() [all …]
|
D | InstCombineCalls.cpp | 106 assert((isa<ConstantInt>(Elt) || isa<ConstantFP>(Elt)) && in getNegativeIsTrueBoolVec() 110 : cast<ConstantFP>(Elt)->isNegative(); in getNegativeIsTrueBoolVec() 1748 Instruction::FDiv, ConstantFP::get(II->getArgOperand(0)->getType(), 1), in SimplifyNVVMIntrinsic() 1930 return BinaryOperator::CreateFDiv(ConstantFP::get(CI.getType(), 1.0), in visitCallInst() 2223 IID, X, ConstantFP::get(Arg0->getType(), Res)); in visitCallInst() 3465 if (const ConstantFP *C = dyn_cast<ConstantFP>(Src)) { in visitCallInst() 3473 return replaceInstUsesWith(CI, ConstantFP::get(II->getContext(), Val)); in visitCallInst() 3489 if (const ConstantFP *C = dyn_cast<ConstantFP>(Src)) { in visitCallInst() 3495 return replaceInstUsesWith(CI, ConstantFP::get(II->getContext(), in visitCallInst() 3559 Src0, ConstantFP::get(Src0->getType(), 0.0)); in visitCallInst() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | LibCallsShrinkWrap.cpp | 116 Constant *V = ConstantFP::get(BBBuilder.getContext(), APFloat(Val)); in createCond() 433 if (ConstantFP *CF = dyn_cast<ConstantFP>(Base)) { in generateCondForPow() 441 Constant *V = ConstantFP::get(CI->getContext(), APFloat(127.0f)); in generateCondForPow() 469 Constant *V = ConstantFP::get(CI->getContext(), APFloat(UpperV)); in generateCondForPow() 470 Constant *V0 = ConstantFP::get(CI->getContext(), APFloat(0.0f)); in generateCondForPow()
|
D | SimplifyLibCalls.cpp | 1285 if (ConstantFP *Const = dyn_cast<ConstantFP>(Val)) { in valueHasFloatPrecision() 1291 return ConstantFP::get(Const->getContext(), F); in valueHasFloatPrecision() 1556 return emitBinaryFloatFnCall(ConstantFP::get(Ty, 1.0), ExpoI, TLI, in replacePowWithExp() 1574 Value *FMul = B.CreateFMul(Expo, ConstantFP::get(Ty, N), "mul"); in replacePowWithExp() 1596 Log = ConstantFP::get(Ty, std::log2(BaseF->convertToFloat())); in replacePowWithExp() 1598 Log = ConstantFP::get(Ty, std::log2(BaseF->convertToDouble())); in replacePowWithExp() 1665 Value *PosInf = ConstantFP::getInfinity(Ty), in replacePowWithSqrt() 1666 *NegInf = ConstantFP::getInfinity(Ty, true); in replacePowWithSqrt() 1673 Sqrt = B.CreateFDiv(ConstantFP::get(Ty, 1.0), Sqrt, "reciprocal"); in replacePowWithSqrt() 1723 return B.CreateFDiv(ConstantFP::get(Ty, 1.0), Base, "reciprocal"); in optimizePow() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/ |
D | DebugLocEntry.h | 55 const ConstantFP *CFP; 71 DbgValueLoc(const DIExpression *Expr, const ConstantFP *CFP) in DbgValueLoc() 94 const ConstantFP *getConstantFP() const { return Constant.CFP; } in getConstantFP()
|
D | DwarfUnit.h | 33 class ConstantFP; variable 208 void addConstantFPValue(DIE &Die, const ConstantFP *CFP);
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | MachineOperand.h | 27 class ConstantFP; variable 169 const ConstantFP *CFP; // For MO_FPImmediate. 545 const ConstantFP *getFPImm() const { in getFPImm() 663 void setFPImm(const ConstantFP *CFP) { in setFPImm() 731 void ChangeToFPImmediate(const ConstantFP *FPImm); 773 static MachineOperand CreateFPImm(const ConstantFP *CFP) { in CreateFPImm()
|
D | FastISel.h | 40 class ConstantFP; variable 388 const ConstantFP *FPImm); 430 const ConstantFP *FPImm); 488 virtual unsigned fastMaterializeFloatZero(const ConstantFP *CF) { in fastMaterializeFloatZero()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | Float2Int.cpp | 232 } else if (!isa<ConstantFP>(O)) { in walkBackwards() 305 } else if (ConstantFP *CF = dyn_cast<ConstantFP>(O)) { in walkForwards() 450 } else if (ConstantFP *CF = dyn_cast<ConstantFP>(V)) { in convert()
|
D | Reassociate.cpp | 276 ConstantInt::getAllOnesValue(Ty) : ConstantFP::get(Ty, -1.0); in LowerNegateToMultiply() 1074 } else if (ConstantFP *FC1 = dyn_cast<ConstantFP>(Factor)) { in RemoveFactorFromExpression() 1075 if (ConstantFP *FC2 = dyn_cast<ConstantFP>(Factors[i].Op)) { in RemoveFactorFromExpression() 1462 ConstantInt::get(Ty, NumFound) : ConstantFP::get(Ty, NumFound); in OptimizeAdd() 1570 } else if (ConstantFP *CF = dyn_cast<ConstantFP>(Factor)) { in OptimizeAdd() 1574 Factor = ConstantFP::get(CF->getContext(), F); in OptimizeAdd() 2020 Negatible->setOperand(0, ConstantFP::get(Negatible->getType(), abs(*C))); in canonicalizeNegFPConstantsForOp() 2027 Negatible->setOperand(1, ConstantFP::get(Negatible->getType(), abs(*C))); in canonicalizeNegFPConstantsForOp() 2254 isa<ConstantFP>(Ops.back().Op) && in ReassociateExpression() 2255 cast<ConstantFP>(Ops.back().Op)->isExactlyValue(-1.0)) { in ReassociateExpression()
|
D | GVN.cpp | 1409 if (isa<ConstantFP>(LHS) && !cast<ConstantFP>(LHS)->isZero()) in impliesEquivalanceIfTrue() 1411 if (isa<ConstantFP>(RHS) && !cast<ConstantFP>(RHS)->isZero()) in impliesEquivalanceIfTrue() 1435 if (isa<ConstantFP>(LHS) && !cast<ConstantFP>(LHS)->isZero()) in impliesEquivalanceIfFalse() 1437 if (isa<ConstantFP>(RHS) && !cast<ConstantFP>(RHS)->isZero()) in impliesEquivalanceIfFalse()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/ |
D | Utils.h | 38 class ConstantFP; variable 132 const ConstantFP* getConstantFPVRegVal(unsigned VReg,
|
D | MIPatternMatch.h | 143 template <> struct bind_helper<const ConstantFP *> { 144 static bool bind(const MachineRegisterInfo &MRI, const ConstantFP *&F, 168 inline bind_ty<const ConstantFP *> m_GFCst(const ConstantFP *&C) { return C; }
|
D | CSEMIRBuilder.h | 106 const ConstantFP &Val) override;
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | Constants.h | 263 class ConstantFP final : public ConstantData { 268 ConstantFP(Type *Ty, const APFloat& V); 273 ConstantFP(const ConstantFP &) = delete; 291 static ConstantFP *get(LLVMContext &Context, const APFloat &V);
|
D | PatternMatch.h | 179 if (auto *CI = dyn_cast<ConstantFP>(V)) { in match() 185 if (auto *CI = dyn_cast_or_null<ConstantFP>(C->getSplatValue())) { in match() 285 if (const auto *CF = dyn_cast<ConstantFP>(V)) in match() 289 if (const auto *CF = dyn_cast_or_null<ConstantFP>(C->getSplatValue())) in match() 302 auto *CF = dyn_cast<ConstantFP>(Elt); in match() 594 inline bind_ty<ConstantFP> m_ConstantFP(ConstantFP *&C) { return C; } in m_ConstantFP() 638 if (const auto *CFP = dyn_cast<ConstantFP>(V)) in match() 642 if (auto *CFP = dyn_cast_or_null<ConstantFP>(C->getSplatValue())) in match()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/ |
D | Value.def | 79 HANDLE_CONSTANT(ConstantFP)
|