Lines Matching refs:IToFP
308 static void expandIToFP(Instruction *IToFP) { in expandIToFP() argument
309 IRBuilder<> Builder(IToFP); in expandIToFP()
310 auto *IntVal = IToFP->getOperand(0); in expandIToFP()
314 unsigned FPMantissaWidth = IToFP->getType()->getFPMantissaWidth() - 1; in expandIToFP()
322 bool IsSigned = IToFP->getOpcode() == Instruction::SIToFP; in expandIToFP()
538 if (IToFP->getType()->isDoubleTy()) { in expandIToFP()
544 A4 = Builder.CreateBitCast(Or1, IToFP->getType()); in expandIToFP()
545 } else if (IToFP->getType()->isX86_FP80Ty()) { in expandIToFP()
548 A4 = Builder.CreateFPTrunc(A40, IToFP->getType()); in expandIToFP()
549 } else if (IToFP->getType()->isHalfTy()) { in expandIToFP()
554 A4 = Builder.CreateFPTrunc(A40, IToFP->getType()); in expandIToFP()
556 A4 = Builder.CreateBitCast(Or35, IToFP->getType()); in expandIToFP()
561 PHINode *Retval0 = Builder.CreatePHI(IToFP->getType(), 2); in expandIToFP()
563 Retval0->addIncoming(ConstantFP::getZero(IToFP->getType(), false), Entry); in expandIToFP()
565 IToFP->replaceAllUsesWith(Retval0); in expandIToFP()
566 IToFP->dropAllReferences(); in expandIToFP()
567 IToFP->eraseFromParent(); in expandIToFP()