Lines Matching refs:CastInst

201     Res = CastInst::CreateIntegerCast(I->getOperand(0), Ty,  in EvaluateInDifferentType()
234 isEliminableCastPair(const CastInst *CI, ///< First cast instruction in isEliminableCastPair()
250 unsigned Res = CastInst::isEliminableCastPair(firstOp, secondOp, SrcTy, MidTy, in isEliminableCastPair()
274 if (const CastInst *CI = dyn_cast<CastInst>(V)) in ShouldOptimizeCast()
288 Instruction *InstCombiner::commonCastTransforms(CastInst &CI) { in commonCastTransforms()
293 if (CastInst *CSrc = dyn_cast<CastInst>(Src)) { // A->B->C cast in commonCastTransforms()
298 return CastInst::Create(opc, CSrc->getOperand(0), CI.getType()); in commonCastTransforms()
542 return CastInst::CreateIntegerCast(Shift, DestTy, false); in visitTrunc()
561 return CastInst::CreateIntegerCast(Shift, CI.getType(), true); in visitTrunc()
658 return CastInst::CreateIntegerCast(In, CI.getType(), false/*ZExt*/); in transformZExtICmp()
1045 return CastInst::CreateIntegerCast(In, CI.getType(), true/*SExt*/); in transformSExtICmp()
1358 return CastInst::CreateFPCast(ExactResult, CI.getType()); in visitFPTrunc()
1412 Instruction *InstCombiner::visitFPExt(CastInst &CI) { in visitFPExt()
1482 Instruction *InstCombiner::visitUIToFP(CastInst &CI) { in visitUIToFP()
1486 Instruction *InstCombiner::visitSIToFP(CastInst &CI) { in visitSIToFP()
1512 Instruction *InstCombiner::commonPointerCastTransforms(CastInst &CI) { in commonPointerCastTransforms()
1552 return CastInst::CreateIntegerCast(P, Ty, /*isSigned=*/false); in visitPtrToInt()
1845 CastInst *SrcCast = cast<CastInst>(Src); in visitBitCast()
1869 return CastInst::Create(Instruction::BitCast, Elem, DestTy); in visitBitCast()
1876 return CastInst::Create(Instruction::BitCast, IEI->getOperand(1), in visitBitCast()