//===- TestMemRefStrideCalculation.cpp - Pass to test strides computation--===// // // 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 "mlir/Dialect/MemRef/IR/MemRef.h" #include "mlir/IR/BuiltinTypes.h" #include "mlir/Pass/Pass.h" usingnamespacemlir; namespace { struct TestMemRefStrideCalculation : public PassWrapper<TestMemRefStrideCalculation, InterfacePass<SymbolOpInterface>> { … }; } // namespace /// Traverse AllocOp and compute strides of each MemRefType independently. void TestMemRefStrideCalculation::runOnOperation() { … } namespace mlir { namespace test { void registerTestMemRefStrideCalculation() { … } } // namespace test } // namespace mlir