Lines Matching defs:CFP
195 SDValue ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP);
310 SelectionDAGLegalize::ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP) {
312 SDLoc dl(CFP);
320 EVT VT = CFP->getValueType(0);
321 ConstantFP *LLVMC = const_cast<ConstantFP*>(CFP->getConstantFPValue());
328 APFloat APF = CFP->getValueAPF();
432 if (ConstantFPSDNode *CFP = dyn_cast<ConstantFPSDNode>(Value)) {
433 if (CFP->getValueType(0) == MVT::f32 &&
435 SDValue Con = DAG.getConstant(CFP->getValueAPF().
437 SDLoc(CFP), MVT::i32);
442 if (CFP->getValueType(0) == MVT::f64 &&
443 !TLI.isFPImmLegal(CFP->getValueAPF(), MVT::f64)) {
446 SDValue Con = DAG.getConstant(CFP->getValueAPF().bitcastToAPInt().
447 zextOrTrunc(64), SDLoc(CFP), MVT::i64);
456 const APInt &IntVal = CFP->getValueAPF().bitcastToAPInt();
3662 ConstantFPSDNode *CFP = cast<ConstantFPSDNode>(Node);
3665 if (!TLI.isFPImmLegal(CFP->getValueAPF(), Node->getValueType(0),
3667 Results.push_back(ExpandConstantFP(CFP, true));