Lines Matching refs:getDefiningOp
114 if (auto shapeOp = mlir::dyn_cast<fir::ShapeOp>(shapeVal.getDefiningOp())) { in rewriteDynamicShape()
118 mlir::dyn_cast<fir::ShapeShiftOp>(shapeVal.getDefiningOp()); in rewriteDynamicShape()
127 mlir::dyn_cast_or_null<fir::SliceOp>(s.getDefiningOp())) { in rewriteDynamicShape()
167 if (auto shapeOp = mlir::dyn_cast<fir::ShapeOp>(shapeVal.getDefiningOp())) in matchAndRewrite()
170 mlir::dyn_cast<fir::ShapeShiftOp>(shapeVal.getDefiningOp())) in matchAndRewrite()
173 mlir::dyn_cast<fir::ShiftOp>(shapeVal.getDefiningOp())) in matchAndRewrite()
183 mlir::dyn_cast_or_null<fir::SliceOp>(s.getDefiningOp())) { in matchAndRewrite()
226 if (auto shapeOp = mlir::dyn_cast<fir::ShapeOp>(shapeVal.getDefiningOp())) in matchAndRewrite()
229 mlir::dyn_cast<fir::ShapeShiftOp>(shapeVal.getDefiningOp())) in matchAndRewrite()
232 mlir::dyn_cast<fir::ShiftOp>(shapeVal.getDefiningOp())) in matchAndRewrite()
241 mlir::dyn_cast_or_null<fir::SliceOp>(s.getDefiningOp())) { in matchAndRewrite()
322 maybeEraseOp(opnd.getDefiningOp()); in doDCE()