#include "mlir/Dialect/Linalg/Passes.h"
#include "mlir/Dialect/Arith/IR/Arith.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/Linalg/IR/Linalg.h"
#include "mlir/Dialect/Linalg/Transforms/Transforms.h"
#include "mlir/IR/AffineExpr.h"
#include "mlir/IR/AffineMap.h"
#include "mlir/Transforms/GreedyPatternRewriteDriver.h"
namespace mlir {
#define GEN_PASS_DEF_LINALGINLINESCALAROPERANDSPASS
#include "mlir/Dialect/Linalg/Passes.h.inc"
}
usingnamespacemlir;
usingnamespacemlir::linalg;
namespace {
struct InlineScalarOperands : public OpRewritePattern<GenericOp> { … };
}
void mlir::linalg::populateInlineConstantOperandsPatterns(
RewritePatternSet &patterns) { … }
namespace {
struct LinalgInlineScalarOperandsPass
: public impl::LinalgInlineScalarOperandsPassBase<
LinalgInlineScalarOperandsPass> { … };
}