Lines Matching refs:embox

77   matchAndRewrite(fir::EmboxOp embox,  in matchAndRewrite()  argument
80 if (auto shapeVal = embox.getShape()) in matchAndRewrite()
81 return rewriteDynamicShape(embox, rewriter, shapeVal); in matchAndRewrite()
82 if (auto boxTy = embox.getType().dyn_cast<fir::BoxType>()) in matchAndRewrite()
85 return rewriteStaticShape(embox, rewriter, seqTy); in matchAndRewrite()
89 mlir::LogicalResult rewriteStaticShape(fir::EmboxOp embox, in rewriteStaticShape() argument
92 auto loc = embox.getLoc(); in rewriteStaticShape()
101 loc, embox.getType(), embox.getMemref(), shapeOpers, llvm::None, in rewriteStaticShape()
102 llvm::None, llvm::None, llvm::None, embox.getTypeparams()); in rewriteStaticShape()
103 LLVM_DEBUG(llvm::dbgs() << "rewriting " << embox << " to " << xbox << '\n'); in rewriteStaticShape()
104 rewriter.replaceOp(embox, xbox.getOperation()->getResults()); in rewriteStaticShape()
108 mlir::LogicalResult rewriteDynamicShape(fir::EmboxOp embox, in rewriteDynamicShape() argument
111 auto loc = embox.getLoc(); in rewriteDynamicShape()
125 if (auto s = embox.getSlice()) in rewriteDynamicShape()
136 loc, embox.getType(), embox.getMemref(), shapeOpers, shiftOpers, in rewriteDynamicShape()
137 sliceOpers, subcompOpers, substrOpers, embox.getTypeparams()); in rewriteDynamicShape()
138 LLVM_DEBUG(llvm::dbgs() << "rewriting " << embox << " to " << xbox << '\n'); in rewriteDynamicShape()
139 rewriter.replaceOp(embox, xbox.getOperation()->getResults()); in rewriteDynamicShape()
271 target.addDynamicallyLegalOp<fir::EmboxOp>([](fir::EmboxOp embox) { in runOn() argument
272 return !(embox.getShape() || embox.getType() in runOn()