//===- Visitors.cpp - MLIR Visitor Utilities ------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "mlir/IR/Visitors.h" #include "mlir/IR/Operation.h" usingnamespacemlir; WalkStage::WalkStage(Operation *op) : … { … } MutableArrayRef<Region> ForwardIterator::makeIterable(Operation &range) { … } void detail::walk(Operation *op, function_ref<void(Operation *, const WalkStage &)> callback) { … } WalkResult detail::walk( Operation *op, function_ref<WalkResult(Operation *, const WalkStage &)> callback) { … }