#include "mlir/Conversion/ShapeToStandard/ShapeToStandard.h"
#include "mlir/Dialect/ControlFlow/IR/ControlFlowOps.h"
#include "mlir/Dialect/SCF/IR/SCF.h"
#include "mlir/Dialect/Shape/IR/Shape.h"
#include "mlir/Dialect/Tensor/IR/Tensor.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Pass/PassRegistry.h"
#include "mlir/Transforms/GreedyPatternRewriteDriver.h"
namespace mlir {
#define GEN_PASS_DEF_CONVERTSHAPECONSTRAINTS
#include "mlir/Conversion/Passes.h.inc"
}
usingnamespacemlir;
namespace {
#include "ShapeToStandard.cpp.inc"
}
namespace {
class ConvertCstrRequireOp : public OpRewritePattern<shape::CstrRequireOp> { … };
}
void mlir::populateConvertShapeConstraintsConversionPatterns(
RewritePatternSet &patterns) { … }
namespace {
class ConvertShapeConstraints
: public impl::ConvertShapeConstraintsBase<ConvertShapeConstraints> { … };
}
std::unique_ptr<Pass> mlir::createConvertShapeConstraintsPass() { … }