Lines Matching refs:CFP
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()
443 if (CFP->getValueType(0) == MVT::f64 && in OptimizeFloatStore()
444 !TLI.isFPImmLegal(CFP->getValueAPF(), MVT::f64)) { in OptimizeFloatStore()
447 SDValue Con = DAG.getConstant(CFP->getValueAPF().bitcastToAPInt(). in OptimizeFloatStore()
448 zextOrTrunc(64), SDLoc(CFP), MVT::i64); in OptimizeFloatStore()
457 const APInt &IntVal = CFP->getValueAPF().bitcastToAPInt(); in OptimizeFloatStore()
3737 ConstantFPSDNode *CFP = cast<ConstantFPSDNode>(Node); in ExpandNode() local
3740 if (!TLI.isFPImmLegal(CFP->getValueAPF(), Node->getValueType(0), in ExpandNode()
3742 Results.push_back(ExpandConstantFP(CFP, true)); in ExpandNode()