#include "mlir/Dialect/SCF/Transforms/Passes.h"
#include "mlir/Dialect/Arith/IR/Arith.h"
#include "mlir/Dialect/SCF/IR/SCF.h"
#include "mlir/Dialect/SCF/Transforms/Transforms.h"
#include "mlir/Dialect/SCF/Utils/Utils.h"
#include "mlir/IR/IRMapping.h"
namespace mlir {
#define GEN_PASS_DEF_SCFFORLOOPRANGEFOLDING
#include "mlir/Dialect/SCF/Transforms/Passes.h.inc"
}
usingnamespacemlir;
usingnamespacemlir::scf;
namespace {
struct ForLoopRangeFolding
: public impl::SCFForLoopRangeFoldingBase<ForLoopRangeFolding> { … };
}
void ForLoopRangeFolding::runOnOperation() { … }
std::unique_ptr<Pass> mlir::createForLoopRangeFoldingPass() { … }