Lines Matching defs:oldOp
51 Operation *createOpResultsNormalized(func::FuncOp funcOp, Operation *oldOp);
507 /// When the results of `oldOp` have memrefs with affine map, the memrefs are
509 /// returned. If all of the results of `oldOp` have no memrefs or memrefs
510 /// without affine map, `oldOp` is returned without modification.
512 Operation *oldOp) {
515 OperationState result(oldOp->getLoc(), oldOp->getName());
516 result.addOperands(oldOp->getOperands());
517 result.addAttributes(oldOp->getAttrs());
522 for (unsigned resIndex : llvm::seq<unsigned>(0, oldOp->getNumResults())) {
523 auto resultType = oldOp->getResult(resIndex).getType();
543 // When all of the results of `oldOp` have no memrefs or memrefs without
544 // affine map, `oldOp` is returned without modification.
546 OpBuilder bb(oldOp);
547 for (auto &oldRegion : oldOp->getRegions()) {
553 return oldOp;