Searched refs:scopeOp (Results 1 – 1 of 1) sorted by relevance
125 matchAndRewrite(cir::ScopeOp scopeOp, in matchAndRewrite() argument128 mlir::Location loc = scopeOp.getLoc(); in matchAndRewrite()136 if (scopeOp.isEmpty()) { in matchAndRewrite()137 rewriter.eraseOp(scopeOp); in matchAndRewrite()146 if (scopeOp.getNumResults() > 0) in matchAndRewrite()147 continueBlock->addArguments(scopeOp.getResultTypes(), loc); in matchAndRewrite()150 mlir::Block *beforeBody = &scopeOp.getScopeRegion().front(); in matchAndRewrite()151 mlir::Block *afterBody = &scopeOp.getScopeRegion().back(); in matchAndRewrite()152 rewriter.inlineRegionBefore(scopeOp.getScopeRegion(), continueBlock); in matchAndRewrite()168 rewriter.replaceOp(scopeOp, continueBlock->getArguments()); in matchAndRewrite()