Lines Matching refs:CFP
195 SDValue ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP);
295 SelectionDAGLegalize::ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP) { in ExpandConstantFP() argument
297 SDLoc dl(CFP); in ExpandConstantFP()
305 EVT VT = CFP->getValueType(0); in ExpandConstantFP()
306 ConstantFP *LLVMC = const_cast<ConstantFP*>(CFP->getConstantFPValue()); in ExpandConstantFP()
313 APFloat APF = CFP->getValueAPF(); in ExpandConstantFP()
454 if (ConstantFPSDNode *CFP = dyn_cast<ConstantFPSDNode>(Value)) { in OptimizeFloatStore() local
455 if (CFP->getValueType(0) == MVT::f32 && in OptimizeFloatStore()
457 SDValue Con = DAG.getConstant(CFP->getValueAPF(). in OptimizeFloatStore()
459 SDLoc(CFP), MVT::i32); in OptimizeFloatStore()
464 if (CFP->getValueType(0) == MVT::f64 && in OptimizeFloatStore()
465 !TLI.isFPImmLegal(CFP->getValueAPF(), MVT::f64)) { in OptimizeFloatStore()
468 SDValue Con = DAG.getConstant(CFP->getValueAPF().bitcastToAPInt(). in OptimizeFloatStore()
469 zextOrTrunc(64), SDLoc(CFP), MVT::i64); in OptimizeFloatStore()
478 const APInt &IntVal = CFP->getValueAPF().bitcastToAPInt(); in OptimizeFloatStore()
3662 ConstantFPSDNode *CFP = cast<ConstantFPSDNode>(Node); in ExpandNode() local
3665 if (!TLI.isFPImmLegal(CFP->getValueAPF(), Node->getValueType(0), in ExpandNode()
3667 Results.push_back(ExpandConstantFP(CFP, true)); in ExpandNode()