Searched defs:CFP (Results 1 - 10 of 10) sorted by relevance

/external/llvm/include/llvm/CodeGen/
H A DMachineOperand.h130 const ConstantFP *CFP; // For MO_FPImmediate. member in union:llvm::MachineOperand::__anon6433
372 return Contents.CFP;
483 static MachineOperand CreateFPImm(const ConstantFP *CFP) { argument
485 Op.Contents.CFP = CFP;
/external/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfDebug.h83 const ConstantFP *CFP; member in union:llvm::DotDebugLocEntry::__anon6606
98 Constant(true) { Constants.CFP = FPtr; EntryKind = E_ConstantFP; }
118 const ConstantFP *getConstantFP() { return Constants.CFP; }
H A DAsmPrinter.cpp1674 static void EmitGlobalConstantFP(const ConstantFP *CFP, unsigned AddrSpace, argument
1678 if (CFP->getType()->isDoubleTy()) {
1680 double Val = CFP->getValueAPF().convertToDouble();
1684 uint64_t Val = CFP->getValueAPF().bitcastToAPInt().getZExtValue();
1689 if (CFP->getType()->isFloatTy()) {
1691 float Val = CFP->getValueAPF().convertToFloat();
1694 uint64_t Val = CFP->getValueAPF().bitcastToAPInt().getZExtValue();
1699 if (CFP->getType()->isX86_FP80Ty()) {
1702 APInt API = CFP->getValueAPF().bitcastToAPInt();
1706 APFloat DoubleVal = CFP
[all...]
/external/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp335 static SDValue ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP, argument
338 DebugLoc dl = CFP->getDebugLoc();
346 EVT VT = CFP->getValueType(0);
347 ConstantFP *LLVMC = const_cast<ConstantFP*>(CFP->getConstantFPValue());
358 if (ConstantFPSDNode::isValueValidForType(SVT, CFP->getValueAPF()) &&
721 if (ConstantFPSDNode *CFP = dyn_cast<ConstantFPSDNode>(ST->getValue())) {
722 if (CFP->getValueType(0) == MVT::f32 &&
724 Tmp3 = DAG.getConstant(CFP->getValueAPF().
731 if (CFP->getValueType(0) == MVT::f64) {
734 Tmp3 = DAG.getConstant(CFP
[all...]
/external/llvm/lib/Target/CppBackend/
H A DCPPBackend.cpp134 void printCFP(const ConstantFP* CFP);
202 void CppWriter::printCFP(const ConstantFP *CFP) { argument
204 APFloat APF = APFloat(CFP->getValueAPF()); // copy
205 if (CFP->getType() == Type::getFloatTy(CFP->getContext()))
216 if (CFP->getType() == Type::getDoubleTy(CFP->getContext()))
223 std::string StrVal = ftostr(CFP->getValueAPF());
233 (CFP->isExactlyValue(atof(StrVal.c_str())))) {
234 if (CFP
[all...]
/external/llvm/lib/Target/ARM/
H A DARMCodeEmitter.cpp670 const ConstantFP *CFP = static_cast<const ConstantFP*>(C); local
671 if (CFP->getType()->isFloatTy())
672 emitWordLE(CFP->getValueAPF().bitcastToAPInt().getZExtValue());
673 else if (CFP->getType()->isDoubleTy())
674 emitDWordLE(CFP->getValueAPF().bitcastToAPInt().getZExtValue());
H A DARMFastISel.cpp180 unsigned ARMMaterializeFP(const ConstantFP *CFP, EVT VT);
498 unsigned ARMFastISel::ARMMaterializeFP(const ConstantFP *CFP, EVT VT) { argument
499 const APFloat Val = CFP->getValueAPF();
525 unsigned Align = TD.getPrefTypeAlignment(CFP->getType());
528 Align = TD.getTypeAllocSize(CFP->getType());
530 unsigned Idx = MCP.getConstantPoolIndex(cast<Constant>(CFP), Align);
649 if (const ConstantFP *CFP = dyn_cast<ConstantFP>(C))
650 return ARMMaterializeFP(CFP, VT);
/external/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1144 static Constant *FitsInFPType(ConstantFP *CFP, const fltSemantics &Sem) { argument
1146 APFloat F = CFP->getValueAPF();
1149 return ConstantFP::get(CFP->getContext(), F);
1163 if (ConstantFP *CFP = dyn_cast<ConstantFP>(V)) {
1164 if (CFP->getType() == Type::getPPC_FP128Ty(V->getContext()))
1167 if (Value *V = FitsInFPType(CFP, APFloat::IEEEsingle))
1169 if (CFP->getType()->isDoubleTy())
1171 if (Value *V = FitsInFPType(CFP, APFloat::IEEEdouble))
/external/llvm/lib/Target/CBackend/
H A DCBackend.cpp642 // isFPCSafeToPrint - Returns true if we may assume that CFP may be written out
644 // variable). We decide this by converting CFP to a string and back into a
646 // double to the original value of CFP. This depends on us and the target C
650 static bool isFPCSafeToPrint(const ConstantFP *CFP) { argument
653 if (CFP->getType() != Type::getFloatTy(CFP->getContext()) &&
654 CFP->getType() != Type::getDoubleTy(CFP->getContext()))
656 APFloat APF = APFloat(CFP->getValueAPF()); // copy
657 if (CFP
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DLoopStrengthReduce.cpp1561 Constant *CFP = ConstantFP::get(DestTy, C->getZExtValue()); local
1565 NewPH, CFP, "IV.S.next.", Incr);

Completed in 164 milliseconds