llvm/mlir/lib/Dialect/SCF/Transforms/RotateWhileLoop.cpp

//===- RotateWhileLoop.cpp - scf.while loop rotation ----------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
//
// Rotates `scf.while` loops.
//
//===----------------------------------------------------------------------===//

#include "mlir/Dialect/SCF/Transforms/Patterns.h"

#include "mlir/Dialect/SCF/IR/SCF.h"

usingnamespacemlir;

namespace {
struct RotateWhileLoopPattern : OpRewritePattern<scf::WhileOp> {};
} // namespace

namespace mlir {
namespace scf {
void populateSCFRotateWhileLoopPatterns(RewritePatternSet &patterns) {}
} // namespace scf
} // namespace mlir