//===- TestLoopParametricTiling.cpp --- Parametric loop tiling pass -------===// // // 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 implements a pass to parametrically tile nests of standard loops. // //===----------------------------------------------------------------------===// #include "mlir/Dialect/SCF/IR/SCF.h" #include "mlir/Dialect/SCF/Utils/Utils.h" #include "mlir/IR/Builders.h" #include "mlir/Pass/Pass.h" usingnamespacemlir; namespace { // Extracts fixed-range loops for top-level loop nests with ranges defined in // the pass constructor. Assumes loops are permutable. class SimpleParametricLoopTilingPass : public PassWrapper<SimpleParametricLoopTilingPass, OperationPass<>> { … }; } // namespace namespace mlir { namespace test { void registerSimpleParametricTilingPass() { … } } // namespace test } // namespace mlir