//===- TestMatchReduction.cpp - Test the match reduction utility ----------===// // // 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 // //===----------------------------------------------------------------------===// // // This file contains a test pass for the match reduction utility. // //===----------------------------------------------------------------------===// #include "mlir/Analysis/SliceAnalysis.h" #include "mlir/Interfaces/FunctionInterfaces.h" #include "mlir/Pass/Pass.h" usingnamespacemlir; namespace { void printReductionResult(Operation *redRegionOp, unsigned numOutput, Value reducedValue, ArrayRef<Operation *> combinerOps) { … } struct TestMatchReductionPass : public PassWrapper<TestMatchReductionPass, InterfacePass<FunctionOpInterface>> { … }; } // namespace namespace mlir { namespace test { void registerTestMatchReductionPass() { … } } // namespace test } // namespace mlir