Lines Matching refs:Cast
3957 if (const SCEVCastExpr *Cast = dyn_cast<SCEVCastExpr>(V)) {
3958 V = Cast->getOperand();
8215 if (const SCEVZeroExtendExpr *Cast = dyn_cast<SCEVZeroExtendExpr>(V)) {
8216 const SCEV *Op = getSCEVAtScope(Cast->getOperand(), L);
8217 if (Op == Cast->getOperand())
8218 return Cast; // must be loop invariant
8219 return getZeroExtendExpr(Op, Cast->getType());
8222 if (const SCEVSignExtendExpr *Cast = dyn_cast<SCEVSignExtendExpr>(V)) {
8223 const SCEV *Op = getSCEVAtScope(Cast->getOperand(), L);
8224 if (Op == Cast->getOperand())
8225 return Cast; // must be loop invariant
8226 return getSignExtendExpr(Op, Cast->getType());
8229 if (const SCEVTruncateExpr *Cast = dyn_cast<SCEVTruncateExpr>(V)) {
8230 const SCEV *Op = getSCEVAtScope(Cast->getOperand(), L);
8231 if (Op == Cast->getOperand())
8232 return Cast; // must be loop invariant
8233 return getTruncateExpr(Op, Cast->getType());