Home
last modified time | relevance | path

Searched refs:shapeVal (Results 1 – 4 of 4) sorted by relevance

/llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/
H A DFactory.h147 inline llvm::SmallVector<mlir::Value> getExtents(mlir::Value shapeVal) { in getExtents() argument
148 if (shapeVal) in getExtents()
149 if (auto *shapeOp = shapeVal.getDefiningOp()) { in getExtents()
164 inline llvm::SmallVector<mlir::Value> getOrigins(mlir::Value shapeVal) { in getOrigins() argument
165 if (shapeVal) in getOrigins()
166 if (auto *shapeOp = shapeVal.getDefiningOp()) { in getOrigins()
187 mlir::Value shapeVal, mlir::ValueRange indices) { in originateIndices() argument
189 auto origins = getOrigins(shapeVal); in originateIndices()
191 assert(!shapeVal || mlir::isa<fir::ShapeOp>(shapeVal.getDefiningOp())); in originateIndices()
197 if (shapeVal) { in originateIndices()
[all …]
/llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/
H A DPreCGRewrite.cpp80 if (auto shapeVal = embox.getShape()) in matchAndRewrite() local
81 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() local
170 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() local
229 mlir::dyn_cast<fir::ShapeShiftOp>(shapeVal.getDefiningOp())) in matchAndRewrite()
[all …]
/llvm-project-15.0.7/flang/lib/Optimizer/Dialect/
H A DFIROps.cpp2232 if (auto shapeVal = getShape()) { in verify() local
2233 if (auto shiftTy = shapeVal.getType().dyn_cast<fir::ShiftType>()) { in verify()
2251 if (auto shapeVal = getShape()) { in verify() local
2252 auto ty = shapeVal.getType(); in verify()
2324 if (auto shapeVal = getShape()) { in verify() local
2325 auto shapeTy = shapeVal.getType(); in verify()
/llvm-project-15.0.7/flang/lib/Lower/
H A DConvertExpr.cpp273 mlir::Value shapeVal = load.getShape(); local
274 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() argument
5859 if (!shapeVal) { in padSlice()
5862 shapeVal.getDefiningOp())) { in padSlice()
[all …]