/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVInlineAsmLowering.cpp | 30 } else if (ConstantFP *CFP = dyn_cast<ConstantFP>(Val)) { in lowerAsmOperandForConstraint() local 31 Ops.push_back(MachineOperand::CreateFPImm(CFP)); in lowerAsmOperandForConstraint() 37 } else if (ConstantFP *CFP = dyn_cast<ConstantFP>(II->getOperand(0))) { in lowerAsmOperandForConstraint() local 38 Ops.push_back(MachineOperand::CreateFPImm(CFP)); in lowerAsmOperandForConstraint()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | DebugLocEntry.h | 55 const ConstantFP *CFP; member 68 DbgValueLocEntry(const ConstantFP *CFP) : EntryKind(E_ConstantFP) { in DbgValueLocEntry() argument 69 Constant.CFP = CFP; in DbgValueLocEntry() 89 const ConstantFP *getConstantFP() const { return Constant.CFP; } in getConstantFP() 104 Constant.CFP->dump(); in dump() 268 return A.Constant.CFP == B.Constant.CFP;
|
H A D | DwarfUnit.h | 230 void addConstantFPValue(DIE &Die, const ConstantFP *CFP);
|
H A D | DwarfUnit.cpp | 454 void DwarfUnit::addConstantFPValue(DIE &Die, const ConstantFP *CFP) { in addConstantFPValue() argument 456 addConstantValue(Die, CFP->getValueAPF().bitcastToAPInt(), true); in addConstantFPValue() 1774 if (const ConstantFP *CFP = dyn_cast_or_null<ConstantFP>(DT->getConstant())) in getOrCreateStaticMemberDIE() local 1775 addConstantFPValue(StaticMemberDIE, CFP); in getOrCreateStaticMemberDIE()
|
H A D | AsmPrinter.cpp | 3299 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP); 3541 static void emitGlobalConstantFP(const ConstantFP *CFP, AsmPrinter &AP) { in emitGlobalConstantFP() argument 3542 emitGlobalConstantFP(CFP->getValueAPF(), CFP->getType(), AP); in emitGlobalConstantFP() 3724 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(CV)) in emitGlobalConstantImpl() local 3725 return emitGlobalConstantFP(CFP, AP); in emitGlobalConstantImpl()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
H A D | PPCLowerMASSVEntries.cpp | 113 if (ConstantFP *CFP = dyn_cast_or_null<ConstantFP>(Exp->getSplatValue())) { in handlePowSpecialCases() local 119 if (!CFP->isExactlyValue(0.75) && !CFP->isExactlyValue(0.25)) in handlePowSpecialCases() 122 if (CFP->isExactlyValue(0.25) && !CI->hasNoSignedZeros()) in handlePowSpecialCases()
|
H A D | PPCFastISel.cpp | 169 unsigned PPCMaterializeFP(const ConstantFP *CFP, MVT VT); 1985 unsigned PPCFastISel::PPCMaterializeFP(const ConstantFP *CFP, MVT VT) { in PPCMaterializeFP() argument 1995 Align Alignment = DL.getPrefTypeAlign(CFP->getType()); in PPCMaterializeFP() 1996 unsigned Idx = MCP.getConstantPoolIndex(cast<Constant>(CFP), Alignment); in PPCMaterializeFP() 2257 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C)) in fastMaterializeConstant() local 2258 return PPCMaterializeFP(CFP, VT); in fastMaterializeConstant()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Constants.cpp | 58 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) in isNegativeZeroValue() local 59 return CFP->isZero() && CFP->isNegative(); in isNegativeZeroValue() 78 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) in isZeroValue() local 79 return CFP->isZero(); in isZeroValue() 96 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) in isNullValue() local 99 return CFP->isExactlyValue(+0.0); in isNullValue() 113 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) in isAllOnesValue() local 114 return CFP->getValueAPF().bitcastToAPInt().isAllOnes(); in isAllOnesValue() 130 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(this)) in isOneValue() local 131 return CFP->getValueAPF().bitcastToAPInt().isOne(); in isOneValue() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | MachineOperand.h | 171 const ConstantFP *CFP; // For MO_FPImmediate. member 568 return Contents.CFP; in getFPImm() 694 void setFPImm(const ConstantFP *CFP) { in setFPImm() argument 696 Contents.CFP = CFP; in setFPImm() 831 static MachineOperand CreateFPImm(const ConstantFP *CFP) { in CreateFPImm() 833 Op.Contents.CFP = CFP; 827 CreateFPImm(const ConstantFP * CFP) CreateFPImm() argument
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCasts.cpp | 1571 static bool fitsInFPType(ConstantFP *CFP, const fltSemantics &Sem) { in fitsInFPType() argument 1573 APFloat F = CFP->getValueAPF(); in fitsInFPType() 1578 static Type *shrinkFPConstant(ConstantFP *CFP, bool PreferBFloat) { in shrinkFPConstant() argument 1579 if (CFP->getType() == Type::getPPC_FP128Ty(CFP->getContext())) in shrinkFPConstant() 1582 if (PreferBFloat && fitsInFPType(CFP, APFloat::BFloat())) in shrinkFPConstant() 1583 return Type::getBFloatTy(CFP->getContext()); in shrinkFPConstant() 1585 if (!PreferBFloat && fitsInFPType(CFP, APFloat::IEEEhalf())) in shrinkFPConstant() 1586 return Type::getHalfTy(CFP->getContext()); in shrinkFPConstant() 1588 if (fitsInFPType(CFP, APFloat::IEEEsingle())) in shrinkFPConstant() 1589 return Type::getFloatTy(CFP->getContext()); in shrinkFPConstant() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/ |
H A D | XtensaAsmPrinter.cpp | 119 if (const auto *CFP = dyn_cast<ConstantFP>(C)) { in emitMachineConstantPoolEntry() local 121 CFP->getValueAPF().bitcastToAPInt().getSExtValue(), OutContext); in emitMachineConstantPoolEntry()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | MachineIRBuilder.cpp | 114 } else if (auto *CFP = dyn_cast<ConstantFP>(NumericConstant)) { in buildConstDbgValue() local 115 MIB.addFPImm(CFP); in buildConstDbgValue() 388 auto *CFP = in buildFConstant() local 390 return buildFConstant(Res, *CFP); in buildFConstant() 396 auto *CFP = ConstantFP::get(Ctx, Val); in buildFConstant() local 397 return buildFConstant(Res, *CFP); in buildFConstant()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | EarlyCSE.cpp | 123 auto *CFP = cast<ConstrainedFPIntrinsic>(CI); in canHandle() local 124 if (CFP->getExceptionBehavior() && in canHandle() 125 CFP->getExceptionBehavior() == fp::ebStrict) in canHandle() 129 if (CFP->getRoundingMode() && in canHandle() 130 CFP->getRoundingMode() == RoundingMode::Dynamic) in canHandle()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64FastISel.cpp | 269 unsigned materializeFP(const ConstantFP *CFP, MVT VT); 391 unsigned AArch64FastISel::materializeFP(const ConstantFP *CFP, MVT VT) { in materializeFP() argument 394 if (CFP->isNullValue()) in materializeFP() 395 return fastMaterializeFloatZero(CFP); in materializeFP() 400 const APFloat Val = CFP->getValueAPF(); in materializeFP() 419 .addImm(CFP->getValueAPF().bitcastToAPInt().getZExtValue()); in materializeFP() 431 Align Alignment = DL.getPrefTypeAlign(CFP->getType()); in materializeFP() 433 unsigned CPI = MCP.getConstantPoolIndex(cast<Constant>(CFP), Alignment); in materializeFP() 554 else if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C)) in fastMaterializeConstant() local 555 return materializeFP(CFP, VT); in fastMaterializeConstant() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonConstExtenders.cpp | 341 const ConstantFP *CFP; // MO_FPImmediate member 516 OS << "fpi:" << *ER.V.CFP; in operator <<() 703 V.CFP = Op.getFPImm(); in ExtRoot() 729 const APFloat &ThisF = V.CFP->getValueAPF(); in operator <() 730 const APFloat &OtherF = ER.V.CFP->getValueAPF(); in operator <() 779 return MachineOperand::CreateFPImm(V.CFP); in operator MachineOperand()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86FixupVectorConstants.cpp | 94 if (auto *CFP = dyn_cast<ConstantFP>(C)) in extractConstantBits() local 95 return CFP->getValue().bitcastToAPInt(); in extractConstantBits()
|
H A D | X86FastISel.cpp | 139 unsigned X86MaterializeFP(const ConstantFP *CFP, MVT VT); 3774 unsigned X86FastISel::X86MaterializeFP(const ConstantFP *CFP, MVT VT) { in X86MaterializeFP() argument 3775 if (CFP->isNullValue()) in X86MaterializeFP() 3776 return fastMaterializeFloatZero(CFP); in X86MaterializeFP() 3810 Align Alignment = DL.getPrefTypeAlign(CFP->getType()); in X86MaterializeFP() 3823 unsigned CPI = MCP.getConstantPoolIndex(CFP, Alignment); in X86MaterializeFP() 3896 if (const auto *CFP = dyn_cast<ConstantFP>(C)) in fastMaterializeConstant() local 3897 return X86MaterializeFP(CFP, VT); in fastMaterializeConstant()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 443 if (auto *CFP = dyn_cast<ConstantFP>(C)) { in ReadDataFromGlobal() local 444 if (CFP->getType()->isDoubleTy()) { in ReadDataFromGlobal() 448 if (CFP->getType()->isFloatTy()){ in ReadDataFromGlobal() 452 if (CFP->getType()->isHalfTy()){ in ReadDataFromGlobal() 1305 ConstantFP *CFP = dyn_cast<ConstantFP>(Operand); in FlushFPConstant() local 1306 if (!CFP) in FlushFPConstant() 1309 const APFloat &APF = CFP->getValueAPF(); in FlushFPConstant() 1314 Type *Ty = CFP->getType(); in FlushFPConstant()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | LegalizeDAG.cpp | 196 SDValue ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP); 311 SelectionDAGLegalize::ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP) { in ExpandConstantFP() argument 313 SDLoc dl(CFP); in ExpandConstantFP() 321 EVT VT = CFP->getValueType(0); in ExpandConstantFP() 322 ConstantFP *LLVMC = const_cast<ConstantFP*>(CFP->getConstantFPValue()); in ExpandConstantFP() 329 APFloat APF = CFP->getValueAPF(); in ExpandConstantFP() 433 if (ConstantFPSDNode *CFP = dyn_cast<ConstantFPSDNode>(Value)) { in OptimizeFloatStore() local 434 if (CFP->getValueType(0) == MVT::f32 && in OptimizeFloatStore() 436 SDValue Con = DAG.getConstant(CFP->getValueAPF(). in OptimizeFloatStore() 438 SDLoc(CFP), MVT::i32); in OptimizeFloatStore() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | MipsFastISel.cpp | 200 unsigned materializeFP(const ConstantFP *CFP, MVT VT); 384 unsigned MipsFastISel::materializeFP(const ConstantFP *CFP, MVT VT) { in materializeFP() argument 387 int64_t Imm = CFP->getValueAPF().bitcastToAPInt().getZExtValue(); in materializeFP() 450 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C)) in fastMaterializeConstant() local 451 return (UnsupportedFPMode) ? 0 : materializeFP(CFP, VT); in fastMaterializeConstant()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
H A D | ARMFastISel.cpp | 201 unsigned ARMMaterializeFP(const ConstantFP *CFP, MVT VT); 414 unsigned ARMFastISel::ARMMaterializeFP(const ConstantFP *CFP, MVT VT) { in ARMMaterializeFP() argument 415 const APFloat Val = CFP->getValueAPF(); in ARMMaterializeFP() 440 Align Alignment = DL.getPrefTypeAlign(CFP->getType()); in ARMMaterializeFP() 441 unsigned Idx = MCP.getConstantPoolIndex(cast<Constant>(CFP), Alignment); in ARMMaterializeFP() 631 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C)) in fastMaterializeConstant() local 632 return ARMMaterializeFP(CFP, VT); in fastMaterializeConstant()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPUInstCombineIntrinsic.cpp | 360 ConstantFP *CFP; in matchFPExtFromF16() local 361 if (match(Arg, m_ConstantFP(CFP))) { in matchFPExtFromF16() 363 APFloat Val(CFP->getValueAPF()); in matchFPExtFromF16()
|
H A D | AMDGPULibCalls.cpp | 600 const ConstantFP *CFP = dyn_cast<ConstantFP>(Elt); in isKnownIntegral() local 601 if (!CFP || !CFP->getValue().isInteger()) in isKnownIntegral()
|
H A D | R600ISelLowering.cpp | 786 if (ConstantFPSDNode * CFP = dyn_cast<ConstantFPSDNode>(Op)) { in isHWTrueValue() local 787 return CFP->isExactlyValue(1.0); in isHWTrueValue() 793 if (ConstantFPSDNode * CFP = dyn_cast<ConstantFPSDNode>(Op)) { in isHWFalseValue() local 794 return CFP->getValueAPF().isZero(); in isHWFalseValue()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
H A D | NumericalStabilitySanitizer.cpp | 473 if (ConstantFP *CFP = dyn_cast<ConstantFP>(C)) { in getShadowConstant() local 475 Type *Ty = Config.getExtendedFPType(CFP->getType()); in getShadowConstant() 477 Ty, extendConstantFP(CFP->getValueAPF(), Ty->getFltSemantics())); in getShadowConstant()
|