//===- TestSCFWrapInZeroTripCheck.cpp -- Pass to test SCF zero-trip-check -===// // // 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 the passes to test wrap-in-zero-trip-check transforms on // SCF loop ops. // //===----------------------------------------------------------------------===// #include "mlir/Dialect/Func/IR/FuncOps.h" #include "mlir/Dialect/SCF/IR/SCF.h" #include "mlir/Dialect/SCF/Transforms/Patterns.h" #include "mlir/Dialect/SCF/Transforms/Transforms.h" #include "mlir/IR/PatternMatch.h" #include "mlir/Pass/Pass.h" #include "mlir/Transforms/GreedyPatternRewriteDriver.h" usingnamespacemlir; namespace { struct TestWrapWhileLoopInZeroTripCheckPass : public PassWrapper<TestWrapWhileLoopInZeroTripCheckPass, OperationPass<func::FuncOp>> { … }; } // namespace namespace mlir { namespace test { void registerTestSCFWrapInZeroTripCheckPasses() { … } } // namespace test } // namespace mlir