Lines Matching defs:unwrap
27 return wrap(unwrap(rewriter)->getContext());
34 unwrap(rewriter)->clearInsertionPoint();
39 unwrap(rewriter)->setInsertionPoint(unwrap(op));
44 unwrap(rewriter)->setInsertionPointAfter(unwrap(op));
49 unwrap(rewriter)->setInsertionPointAfterValue(unwrap(value));
54 unwrap(rewriter)->setInsertionPointToStart(unwrap(block));
59 unwrap(rewriter)->setInsertionPointToEnd(unwrap(block));
63 return wrap(unwrap(rewriter)->getInsertionBlock());
67 return wrap(unwrap(rewriter)->getBlock());
82 return wrap(unwrap(rewriter)->createBlock(unwrap(insertBefore), unwrappedArgs,
88 return wrap(unwrap(rewriter)->insert(unwrap(op)));
95 return wrap(unwrap(rewriter)->clone(*unwrap(op)));
100 return wrap(unwrap(rewriter)->cloneWithoutRegions(*unwrap(op)));
106 unwrap(rewriter)->cloneRegionBefore(*unwrap(region), unwrap(before));
115 unwrap(rewriter)->inlineRegionBefore(*unwrap(region), unwrap(before));
123 unwrap(rewriter)->replaceOp(unwrap(op), unwrappedVals);
129 unwrap(rewriter)->replaceOp(unwrap(op), unwrap(newOp));
133 unwrap(rewriter)->eraseOp(unwrap(op));
137 unwrap(rewriter)->eraseBlock(unwrap(block));
147 unwrap(rewriter)->inlineBlockBefore(unwrap(source), unwrap(op),
156 unwrap(rewriter)->mergeBlocks(unwrap(source), unwrap(dest), unwrappedArgs);
161 unwrap(rewriter)->moveOpBefore(unwrap(op), unwrap(existingOp));
166 unwrap(rewriter)->moveOpAfter(unwrap(op), unwrap(existingOp));
171 unwrap(rewriter)->moveBlockBefore(unwrap(block), unwrap(existingBlock));
176 unwrap(rewriter)->startOpModification(unwrap(op));
181 unwrap(rewriter)->finalizeOpModification(unwrap(op));
186 unwrap(rewriter)->cancelOpModification(unwrap(op));
191 unwrap(rewriter)->replaceAllUsesWith(unwrap(from), unwrap(to));
202 unwrap(rewriter)->replaceAllUsesWith(unwrappedFromVals, unwrappedToVals);
211 unwrap(rewriter)->replaceAllOpUsesWith(unwrap(from), unwrappedToVals);
217 unwrap(rewriter)->replaceAllOpUsesWith(unwrap(from), unwrap(to));
227 unwrap(rewriter)->replaceOpUsesWithinBlock(unwrap(op), unwrappedVals,
228 unwrap(block));
234 unwrap(rewriter)->replaceAllUsesExcept(unwrap(from), unwrap(to),
235 unwrap(exceptedUser));
243 return wrap(new IRRewriter(unwrap(context)));
247 return wrap(new IRRewriter(unwrap(op)));
251 delete static_cast<IRRewriter *>(unwrap(rewriter));
258 inline mlir::RewritePatternSet &unwrap(MlirRewritePatternSet module) {
268 unwrap(MlirFrozenRewritePatternSet module) {
278 auto *m = new mlir::FrozenRewritePatternSet(std::move(unwrap(op)));
284 delete unwrap(op);
292 return wrap(mlir::applyPatternsGreedily(unwrap(op), *unwrap(patterns)));
300 inline mlir::PDLPatternModule *unwrap(MlirPDLPatternModule module) {
311 mlir::OwningOpRef<mlir::ModuleOp>(unwrap(op))));
315 delete unwrap(op);
321 auto *m = new mlir::RewritePatternSet(std::move(*unwrap(op)));