//===- TestLoopMapping.cpp --- Parametric loop mapping 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 map scf.for loops to virtual // processing element dimensions. // //===----------------------------------------------------------------------===// #include "mlir/Dialect/Affine/IR/AffineOps.h" #include "mlir/Dialect/Affine/LoopUtils.h" #include "mlir/Dialect/SCF/IR/SCF.h" #include "mlir/IR/Builders.h" #include "mlir/Pass/Pass.h" usingnamespacemlir; usingnamespacemlir::affine; namespace { struct TestLoopMappingPass : public PassWrapper<TestLoopMappingPass, OperationPass<>> { … }; } // namespace namespace mlir { namespace test { void registerTestLoopMappingPass() { … } } // namespace test } // namespace mlir