Lines Matching refs:CFP
184 SDValue ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP);
274 SelectionDAGLegalize::ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP) { in ExpandConstantFP() argument
276 SDLoc dl(CFP); in ExpandConstantFP()
284 EVT VT = CFP->getValueType(0); in ExpandConstantFP()
285 ConstantFP *LLVMC = const_cast<ConstantFP*>(CFP->getConstantFPValue()); in ExpandConstantFP()
292 APFloat APF = CFP->getValueAPF(); in ExpandConstantFP()
423 if (ConstantFPSDNode *CFP = dyn_cast<ConstantFPSDNode>(ST->getValue())) { in OptimizeFloatStore() local
424 if (CFP->getValueType(0) == MVT::f32 && in OptimizeFloatStore()
426 SDValue Con = DAG.getConstant(CFP->getValueAPF(). in OptimizeFloatStore()
428 SDLoc(CFP), MVT::i32); in OptimizeFloatStore()
433 if (CFP->getValueType(0) == MVT::f64) { in OptimizeFloatStore()
436 SDValue Con = DAG.getConstant(CFP->getValueAPF().bitcastToAPInt(). in OptimizeFloatStore()
437 zextOrTrunc(64), SDLoc(CFP), MVT::i64); in OptimizeFloatStore()
446 const APInt &IntVal = CFP->getValueAPF().bitcastToAPInt(); in OptimizeFloatStore()
3117 ConstantFPSDNode *CFP = cast<ConstantFPSDNode>(Node); in ExpandNode() local
3120 if (!TLI.isFPImmLegal(CFP->getValueAPF(), Node->getValueType(0))) in ExpandNode()
3121 Results.push_back(ExpandConstantFP(CFP, true)); in ExpandNode()