Lines Matching defs:visited
63 static void visit(Operation *op, DenseSet<Operation *> &visited) {
68 // Ignore if already visited. Otherwise, mark as visited.
69 if (!visited.insert(op).second)
74 .Case<OperationOp>([&visited](auto operation) {
76 visit(operand.getDefiningOp(), visited);
78 .Case<ResultOp, ResultsOp>([&visited](auto result) {
79 visit(result.getParent().getDefiningOp(), visited);
84 visit(user, visited);
351 DenseSet<Operation *> visited;
374 visit(&op, visited);
376 } else if (!visited.count(&op)) {
377 // For the subsequent operations, check if already visited.