Lines Matching full:cfp
156 SDValue ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP);
247 SelectionDAGLegalize::ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP) {
249 SDLoc dl(CFP);
257 EVT VT = CFP->getValueType(0);
258 ConstantFP *LLVMC = const_cast<ConstantFP*>(CFP->getConstantFPValue());
269 if (ConstantFPSDNode::isValueValidForType(SVT, CFP->getValueAPF()) &&
683 if (ConstantFPSDNode *CFP = dyn_cast<ConstantFPSDNode>(ST->getValue())) {
684 if (CFP->getValueType(0) == MVT::f32 &&
686 SDValue Con = DAG.getConstant(CFP->getValueAPF().
688 SDLoc(CFP), MVT::i32);
693 if (CFP->getValueType(0) == MVT::f64) {
696 SDValue Con = DAG.getConstant(CFP->getValueAPF().bitcastToAPInt().
697 zextOrTrunc(64), SDLoc(CFP), MVT::i64);
706 const APInt &IntVal = CFP->getValueAPF().bitcastToAPInt();
3414 ConstantFPSDNode *CFP = cast<ConstantFPSDNode>(Node);
3417 if (!TLI.isFPImmLegal(CFP->getValueAPF(), Node->getValueType(0)))
3418 Results.push_back(ExpandConstantFP(CFP, true));