Lines Matching refs:IToFP
310 static void expandIToFP(Instruction *IToFP) { in expandIToFP() argument
311 IRBuilder<> Builder(IToFP); in expandIToFP()
312 auto *IntVal = IToFP->getOperand(0); in expandIToFP()
316 unsigned FPMantissaWidth = IToFP->getType()->getFPMantissaWidth() - 1; in expandIToFP()
325 bool IsSigned = IToFP->getOpcode() == Instruction::SIToFP; in expandIToFP()
541 if (IToFP->getType()->isDoubleTy()) { in expandIToFP()
547 A4 = Builder.CreateBitCast(Or1, IToFP->getType()); in expandIToFP()
548 } else if (IToFP->getType()->isX86_FP80Ty()) { in expandIToFP()
551 A4 = Builder.CreateFPTrunc(A40, IToFP->getType()); in expandIToFP()
552 } else if (IToFP->getType()->isHalfTy() || IToFP->getType()->isBFloatTy()) { in expandIToFP()
557 A4 = Builder.CreateFPTrunc(A40, IToFP->getType()); in expandIToFP()
559 A4 = Builder.CreateBitCast(Or35, IToFP->getType()); in expandIToFP()
564 PHINode *Retval0 = Builder.CreatePHI(IToFP->getType(), 2); in expandIToFP()
566 Retval0->addIncoming(ConstantFP::getZero(IToFP->getType(), false), Entry); in expandIToFP()
568 IToFP->replaceAllUsesWith(Retval0); in expandIToFP()
569 IToFP->dropAllReferences(); in expandIToFP()
570 IToFP->eraseFromParent(); in expandIToFP()