Searched refs:shapeVal (Results 1 – 4 of 4) sorted by relevance
147 inline llvm::SmallVector<mlir::Value> getExtents(mlir::Value shapeVal) { in getExtents() argument148 if (shapeVal) in getExtents()149 if (auto *shapeOp = shapeVal.getDefiningOp()) { in getExtents()164 inline llvm::SmallVector<mlir::Value> getOrigins(mlir::Value shapeVal) { in getOrigins() argument165 if (shapeVal) in getOrigins()166 if (auto *shapeOp = shapeVal.getDefiningOp()) { in getOrigins()187 mlir::Value shapeVal, mlir::ValueRange indices) { in originateIndices() argument189 auto origins = getOrigins(shapeVal); in originateIndices()191 assert(!shapeVal || mlir::isa<fir::ShapeOp>(shapeVal.getDefiningOp())); in originateIndices()197 if (shapeVal) { in originateIndices()[all …]
80 if (auto shapeVal = embox.getShape()) in matchAndRewrite() local81 return rewriteDynamicShape(embox, rewriter, shapeVal); in matchAndRewrite()110 mlir::Value shapeVal) const { in rewriteDynamicShape()114 if (auto shapeOp = mlir::dyn_cast<fir::ShapeOp>(shapeVal.getDefiningOp())) { in rewriteDynamicShape()118 mlir::dyn_cast<fir::ShapeShiftOp>(shapeVal.getDefiningOp()); in rewriteDynamicShape()166 if (auto shapeVal = rebox.getShape()) { in matchAndRewrite() local170 mlir::dyn_cast<fir::ShapeShiftOp>(shapeVal.getDefiningOp())) in matchAndRewrite()173 mlir::dyn_cast<fir::ShiftOp>(shapeVal.getDefiningOp())) in matchAndRewrite()225 if (auto shapeVal = arrCoor.getShape()) { in matchAndRewrite() local229 mlir::dyn_cast<fir::ShapeShiftOp>(shapeVal.getDefiningOp())) in matchAndRewrite()[all …]
2232 if (auto shapeVal = getShape()) { in verify() local2233 if (auto shiftTy = shapeVal.getType().dyn_cast<fir::ShiftType>()) { in verify()2251 if (auto shapeVal = getShape()) { in verify() local2252 auto ty = shapeVal.getType(); in verify()2324 if (auto shapeVal = getShape()) { in verify() local2325 auto shapeTy = shapeVal.getType(); in verify()
273 mlir::Value shapeVal = load.getShape(); local274 if (shapeVal) {275 if (!mlir::isa<fir::ShiftOp>(shapeVal.getDefiningOp())) {276 auto extents = fir::factory::getExtents(shapeVal);277 auto origins = fir::factory::getOrigins(shapeVal);293 if (shapeVal) {297 origins = fir::factory::getOrigins(shapeVal);5852 padSlice(llvm::ArrayRef<mlir::Value> triples, mlir::Value shapeVal) { in padSlice() argument5859 if (!shapeVal) { in padSlice()5862 shapeVal.getDefiningOp())) { in padSlice()[all …]