Lines Matching defs:castOp
646 bool CastOp::canFoldIntoConsumerOp(CastOp castOp) {
648 llvm::dyn_cast<MemRefType>(castOp.getSource().getType());
649 MemRefType resultType = llvm::dyn_cast<MemRefType>(castOp.getType());
785 if (auto castOp = copyOp.getSource().getDefiningOp<CastOp>()) {
786 auto fromType = llvm::dyn_cast<MemRefType>(castOp.getSource().getType());
787 auto toType = llvm::dyn_cast<MemRefType>(castOp.getSource().getType());
793 copyOp.getSourceMutable().assign(castOp.getSource());
801 if (auto castOp = copyOp.getTarget().getDefiningOp<CastOp>()) {
802 auto fromType = llvm::dyn_cast<MemRefType>(castOp.getSource().getType());
803 auto toType = llvm::dyn_cast<MemRefType>(castOp.getSource().getType());
809 copyOp.getTargetMutable().assign(castOp.getSource());
865 auto castOp = operand.get().getDefiningOp<memref::CastOp>();
866 if (castOp && memref::CastOp::canFoldIntoConsumerOp(castOp)) {
867 operand.set(castOp.getOperand());
3195 auto castOp = subViewOp.getSource().getDefiningOp<CastOp>();
3196 if (!castOp)
3199 if (!CastOp::canFoldIntoConsumerOp(castOp))
3208 llvm::cast<MemRefType>(castOp.getSource().getType()),
3215 subViewOp.getLoc(), resultType, castOp.getSource(),