//===- TestCommutativityUtils.cpp - Pass to test the commutativity 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 pass tests the functionality of the commutativity utility pattern. // //===----------------------------------------------------------------------===// #include "mlir/Transforms/CommutativityUtils.h" #include "TestDialect.h" #include "mlir/Pass/Pass.h" #include "mlir/Transforms/GreedyPatternRewriteDriver.h" usingnamespacemlir; namespace { struct CommutativityUtils : public PassWrapper<CommutativityUtils, OperationPass<func::FuncOp>> { … }; } // namespace namespace mlir { namespace test { void registerCommutativityUtils() { … } } // namespace test } // namespace mlir