llvm/mlir/test/lib/Dialect/SCF/TestUpliftWhileToFor.cpp

//===- TestUpliftWhileToFor.cpp - while to for loop uplifting test 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
//
//===----------------------------------------------------------------------===//
//
// Pass to test transforms SCF.WhileOp's into SCF.ForOp's.
//
//===----------------------------------------------------------------------===//

#include "mlir/Dialect/SCF/Transforms/Patterns.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Transforms/GreedyPatternRewriteDriver.h"

usingnamespacemlir;

namespace {

struct TestSCFUpliftWhileToFor
    : public PassWrapper<TestSCFUpliftWhileToFor, OperationPass<void>> {};

} // namespace

namespace mlir {
namespace test {
void registerTestSCFUpliftWhileToFor() {}
} // namespace test
} // namespace mlir