Lines Matching refs:cast
128 Operator *Cast = dyn_cast<Operator>(V);
129 if (Cast == nullptr || Cast->getOpcode() != Instruction::AddrSpaceCast)
132 Value *Src = Cast->getOperand(0);
133 PointerType *SrcTy = cast<PointerType>(Src->getType());
134 PointerType *DestTy = cast<PointerType>(Cast->getType());
157 Operator *Cast = cast<Operator>(NewOperand);
167 GEP->getSourceElementType(), Cast->getOperand(0), Indices,
179 GEP->getSourceElementType(), cast<Constant>(Cast->getOperand(0)),
194 Operator *Cast = cast<Operator>(NewOperand);
196 // Cast = addrspacecast Src
197 // BC = bitcast Cast
199 // Cast' = bitcast Src
200 // BC' = addrspacecast Cast'
201 Value *Src = Cast->getOperand(0);
217 ConstantExpr::getBitCast(cast<Constant>(Src), TypeOfNewCast);