Lines Matching refs:cast
82 PHIUser = cast<Instruction>(U);
100 PHINode *scalarPHI = cast<PHINode>(InsertNewInstWith(
112 BinaryOperator *B0 = cast<BinaryOperator>(PHIUser);
248 // Canonicalize extractelement(cast) -> cast(extractelement).
329 unsigned InsertedIdx = cast<ConstantInt>(IdxOp)->getZExtValue();
342 cast<ConstantInt>(EI->getOperand(1))->getZExtValue();
455 unsigned NumElts = cast<VectorType>(V->getType())->getNumElements();
477 cast<ConstantInt>(EI->getOperand(1))->getZExtValue();
478 unsigned InsertedIdx = cast<ConstantInt>(IdxOp)->getZExtValue();
586 cast<ConstantInt>(EI->getOperand(1))->getZExtValue();
587 unsigned InsertedIdx = cast<ConstantInt>(IdxOp)->getZExtValue();
619 unsigned VWidth = cast<VectorType>(VecOp->getType())->getNumElements();
731 BinaryOperator *BO = cast<BinaryOperator>(I);
734 BinaryOperator::Create(cast<BinaryOperator>(I)->getOpcode(),
749 return new ICmpInst(I, cast<ICmpInst>(I)->getPredicate(),
753 return new FCmpInst(I, cast<FCmpInst>(I)->getPredicate(),
765 // the original cast. We recompute the destination type to match the mask.
769 assert(NewOps.size() == 1 && "cast with #ops != 1");
770 return CastInst::Create(cast<CastInst>(I)->getOpcode(), NewOps[0], DestTy,
777 cast<GetElementPtrInst>(I)->getSourceElementType(), Ptr, Idx, "", I);
778 GEP->setIsInBounds(cast<GetElementPtrInst>(I)->isInBounds());
811 Instruction *I = cast<Instruction>(V);
857 int Element = cast<ConstantInt>(I->getOperand(2))->getLimitedValue();
907 cast<VectorType>(SVI.getOperand(0)->getType())->getNumElements();
931 unsigned VWidth = cast<VectorType>(SVI.getType())->getNumElements();
943 unsigned LHSWidth = cast<VectorType>(LHS->getType())->getNumElements();
1028 VectorType *SrcTy = cast<VectorType>(V->getType());
1146 LHSOp0Width = cast<VectorType>(LHSOp0->getType())->getNumElements();
1150 RHSOp0Width = cast<VectorType>(RHSOp0->getType())->getNumElements();