//===- TestLowerToArmNeon.cpp - Test lowering to ArmNeon as a sink 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 for testing the lowering to ArmNeon as a // generally usable sink pass. // //===----------------------------------------------------------------------===// #include "mlir/Dialect/ArmNeon/ArmNeonDialect.h" #include "mlir/Dialect/ArmNeon/Transforms.h" #include "mlir/Dialect/Func/IR/FuncOps.h" #include "mlir/IR/PatternMatch.h" #include "mlir/Pass/Pass.h" #include "mlir/Pass/PassManager.h" #include "mlir/Transforms/GreedyPatternRewriteDriver.h" #define PASS_NAME … usingnamespacemlir; usingnamespacemlir::arm_neon; namespace { struct TestLowerToArmNeon : public PassWrapper<TestLowerToArmNeon, OperationPass<func::FuncOp>> { … }; } // namespace void TestLowerToArmNeon::runOnOperation() { … } namespace mlir { namespace test { void registerTestLowerToArmNeon() { … } } // namespace test } // namespace mlir