Lines Matching defs:CFP
196 SDValue ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP);
311 SelectionDAGLegalize::ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP) {
313 SDLoc dl(CFP);
321 EVT VT = CFP->getValueType(0);
322 ConstantFP *LLVMC = const_cast<ConstantFP*>(CFP->getConstantFPValue());
329 APFloat APF = CFP->getValueAPF();
433 if (ConstantFPSDNode *CFP = dyn_cast<ConstantFPSDNode>(Value)) {
434 if (CFP->getValueType(0) == MVT::f32 &&
436 SDValue Con = DAG.getConstant(CFP->getValueAPF().
438 SDLoc(CFP), MVT::i32);
443 if (CFP->getValueType(0) == MVT::f64 &&
444 !TLI.isFPImmLegal(CFP->getValueAPF(), MVT::f64)) {
447 SDValue Con = DAG.getConstant(CFP->getValueAPF().bitcastToAPInt().
448 zextOrTrunc(64), SDLoc(CFP), MVT::i64);
457 const APInt &IntVal = CFP->getValueAPF().bitcastToAPInt();
3737 ConstantFPSDNode *CFP = cast<ConstantFPSDNode>(Node);
3740 if (!TLI.isFPImmLegal(CFP->getValueAPF(), Node->getValueType(0),
3742 Results.push_back(ExpandConstantFP(CFP, true));