| /llvm-project-15.0.7/flang/include/flang/Optimizer/Builder/ |
| H A D | Factory.h | 149 if (auto *shapeOp = shapeVal.getDefiningOp()) { in getExtents() local 150 if (auto shOp = mlir::dyn_cast<fir::ShapeOp>(shapeOp)) { in getExtents() 154 if (auto shOp = mlir::dyn_cast<fir::ShapeShiftOp>(shapeOp)) { in getExtents() 166 if (auto *shapeOp = shapeVal.getDefiningOp()) { in getOrigins() local 167 if (auto shOp = mlir::dyn_cast<fir::ShapeShiftOp>(shapeOp)) { in getOrigins() 171 if (auto shOp = mlir::dyn_cast<fir::ShiftOp>(shapeOp)) { in getOrigins()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/ |
| H A D | ShapeInferencePass.cpp | 76 if (auto shapeOp = dyn_cast<ShapeInference>(op)) { in MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID() local 77 shapeOp.inferShapes(); in MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/ |
| H A D | ShapeInferencePass.cpp | 76 if (auto shapeOp = dyn_cast<ShapeInference>(op)) { in MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID() local 77 shapeOp.inferShapes(); in MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch4/mlir/ |
| H A D | ShapeInferencePass.cpp | 76 if (auto shapeOp = dyn_cast<ShapeInference>(op)) { in MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID() local 77 shapeOp.inferShapes(); in MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch5/mlir/ |
| H A D | ShapeInferencePass.cpp | 76 if (auto shapeOp = dyn_cast<ShapeInference>(op)) { in MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID() local 77 shapeOp.inferShapes(); in MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/ |
| H A D | PreCGRewrite.cpp | 114 if (auto shapeOp = mlir::dyn_cast<fir::ShapeOp>(shapeVal.getDefiningOp())) { in rewriteDynamicShape() local 115 populateShape(shapeOpers, shapeOp); in rewriteDynamicShape() 167 if (auto shapeOp = mlir::dyn_cast<fir::ShapeOp>(shapeVal.getDefiningOp())) in matchAndRewrite() local 168 populateShape(shapeOpers, shapeOp); in matchAndRewrite() 226 if (auto shapeOp = mlir::dyn_cast<fir::ShapeOp>(shapeVal.getDefiningOp())) in matchAndRewrite() local 227 populateShape(shapeOpers, shapeOp); in matchAndRewrite()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Transforms/ |
| H A D | ArrayValueCopy.cpp | 791 auto *shapeOp = shape.getDefiningOp(); in getAdjustedExtents() local 792 if (auto s = mlir::dyn_cast_or_null<ShapeOp>(shapeOp)) { in getAdjustedExtents() 795 } else if (auto s = mlir::dyn_cast_or_null<ShapeShiftOp>(shapeOp)) { in getAdjustedExtents() 943 mlir::Value dst, mlir::Value src, mlir::Value shapeOp, in genArrayCopy() argument 949 getAdjustedExtents(loc, rewriter, arrLoad, extents, shapeOp); in genArrayCopy() 967 loc, getEleTy(src.getType()), src, shapeOp, in genArrayCopy() 972 loc, getEleTy(dst.getType()), dst, shapeOp, in genArrayCopy() 1107 allocateArrayTemp(loc, rewriter, load, extents, shapeOp); in referenceToClone() 1114 rewriter, loc, getEleTy(load.getType()), eleTy, allocmem, shapeOp, in referenceToClone() 1155 allocateArrayTemp(loc, rewriter, load, extents, shapeOp); in materializeAssignment() [all …]
|
| /llvm-project-15.0.7/mlir/docs/Tutorials/Toy/ |
| H A D | Ch-4.md | 429 if (ShapeInference shapeOp = dyn_cast<ShapeInference>(op)) { 430 shapeOp.inferShapes();
|
| /llvm-project-15.0.7/flang/lib/Lower/ |
| H A D | ConvertExpr.cpp | 3870 mlir::Value shapeOp = builder.genShape(loc, shape); in lowerLazyArrayExpression() local 4472 auto shapeOp = builder.genShape(loc, extents); in prepareRaggedArrays() local 4474 loc, builder.getRefType(raggedTy), hdArr, shapeOp, in prepareRaggedArrays() 4565 mlir::Value shapeOp = builder.genShape(loc, extents); in genMasks() local 4568 implicitSpace->rebind(e, genMaskAccess(buff, shapeOp)); in genMasks() 4737 mlir::Value shapeOp = genShapeOp(shape); in createAndLoadSomeArrayTemp() local 4738 return builder.create<fir::ArrayLoadOp>(loc, seqTy, temp, shapeOp, in createAndLoadSomeArrayTemp() 5861 } else if (auto shapeOp = mlir::dyn_cast_or_null<fir::ShapeOp>( in padSlice() local 5863 for (auto ext : shapeOp.getExtents()) { in padSlice() 7688 mlir::Value shapeOp = builder.createShape(loc, exv); in genArrayLoad() local [all …]
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Dialect/ |
| H A D | FIROps.cpp | 372 if (auto shapeOp = getShape()) { in verify() local 373 auto shapeTy = shapeOp.getType(); in verify() 441 if (auto shapeOp = getShape()) { in verify() local 442 auto shapeTy = shapeOp.getType(); in verify()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/MemRefToLLVM/ |
| H A D | MemRefToLLVM.cpp | 1185 Value shapeOp = reshapeOp.getShape(); in convertSourceMemRefToDescriptor() local 1187 dimSize = rewriter.create<memref::LoadOp>(loc, shapeOp, index); in convertSourceMemRefToDescriptor()
|