Home
last modified time | relevance | path

Searched refs:ShapeOp (Results 1 – 12 of 12) sorted by relevance

/llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/
H A DPreCGRewrite.cpp31 fir::ShapeOp shape) { in populateShape()
114 if (auto shapeOp = mlir::dyn_cast<fir::ShapeOp>(shapeVal.getDefiningOp())) { in rewriteDynamicShape()
167 if (auto shapeOp = mlir::dyn_cast<fir::ShapeOp>(shapeVal.getDefiningOp())) in matchAndRewrite()
226 if (auto shapeOp = mlir::dyn_cast<fir::ShapeOp>(shapeVal.getDefiningOp())) in matchAndRewrite()
H A DCodeGen.cpp3358 struct ShapeOpConversion : public MustBeDeadConversion<fir::ShapeOp> {
/llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/
H A DFactory.h150 if (auto shOp = mlir::dyn_cast<fir::ShapeOp>(shapeOp)) { in getExtents()
191 assert(!shapeVal || mlir::isa<fir::ShapeOp>(shapeVal.getDefiningOp())); in originateIndices()
198 assert(dimension == mlir::cast<fir::ShapeOp>(shapeVal.getDefiningOp()) in originateIndices()
/llvm-project-15.0.7/flang/include/flang/Lower/
H A DConvertExpr.h32 class ShapeOp; variable
/llvm-project-15.0.7/flang/unittests/Optimizer/Builder/
H A DFIRBuilderTest.cpp345 EXPECT_TRUE(mlir::isa<fir::ShapeOp>(shape.getDefiningOp())); in checkShapeOp()
346 fir::ShapeOp op = dyn_cast<fir::ShapeOp>(shape.getDefiningOp()); in checkShapeOp()
/llvm-project-15.0.7/flang/lib/Optimizer/Transforms/
H A DAffinePromotion.cpp347 static void populateIndexArgs(fir::ArrayCoorOp acoOp, fir::ShapeOp shape, in populateIndexArgs()
387 if (auto shape = acoOp.getShape().getDefiningOp<ShapeOp>()) in populateIndexArgs()
H A DArrayValueCopy.cpp792 if (auto s = mlir::dyn_cast_or_null<ShapeOp>(shapeOp)) { in getAdjustedExtents()
852 return rewriter.create<ShapeOp>(loc, shapeType, result); in getOrReadExtentsAndShapeOp()
/llvm-project-15.0.7/flang/lib/Optimizer/Builder/
H A DMutableBox.cpp40 shape = builder.create<fir::ShapeOp>(loc, shapeType, extents); in createNewFirBox()
H A DFIRBuilder.cpp361 return create<fir::ShapeOp>(loc, shapeType, exts); in genShape()
/llvm-project-15.0.7/flang/lib/Optimizer/Dialect/
H A DFIROps.cpp425 if (auto shOp = mlir::dyn_cast<fir::ShapeOp>(op)) { in getExtents()
3033 mlir::LogicalResult fir::ShapeOp::verify() { in verify()
/llvm-project-15.0.7/mlir/docs/
H A DDeclarativeRewrites.md508 [(StoreOp (AllocOp:$mem (ShapeOp $lhs)), (AddIOp $lhs, $rhs)),
/llvm-project-15.0.7/flang/lib/Lower/
H A DConvertExpr.cpp4743 static fir::ShapeOp genShapeOp(mlir::Location loc, fir::FirOpBuilder &builder, in genShapeOp()
4750 return builder.create<fir::ShapeOp>(loc, shapeTy, idxShape); in genShapeOp()
4753 fir::ShapeOp genShapeOp(llvm::ArrayRef<mlir::Value> shape) { in genShapeOp()
5861 } else if (auto shapeOp = mlir::dyn_cast_or_null<fir::ShapeOp>( in padSlice()