//===- TestShapeFunctions.cpp - Passes to test shape function ------------===// // // 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 <queue> #include "mlir/Dialect/Func/IR/FuncOps.h" #include "mlir/Dialect/Shape/IR/Shape.h" #include "mlir/IR/BuiltinDialect.h" #include "mlir/Interfaces/InferTypeOpInterface.h" #include "mlir/Pass/Pass.h" usingnamespacemlir; namespace { /// This is a pass that reports shape functions associated with ops. struct ReportShapeFnPass : public PassWrapper<ReportShapeFnPass, OperationPass<ModuleOp>> { … }; } // namespace void ReportShapeFnPass::runOnOperation() { … } namespace mlir { void registerShapeFunctionTestPasses() { … } } // namespace mlir