#include "mlir/Conversion/TosaToMLProgram/TosaToMLProgram.h"
#include "mlir/Dialect/MLProgram/IR/MLProgram.h"
#include "mlir/Dialect/Tosa/IR/TosaOps.h"
#include "mlir/IR/IRMapping.h"
#include "mlir/IR/PatternMatch.h"
usingnamespacemlir;
usingnamespacetosa;
namespace {
class VariableOpConverter : public OpRewritePattern<tosa::VariableOp> { … };
class VariableWriteOpConverter
: public OpRewritePattern<tosa::VariableWriteOp> { … };
class VariableReadOpConverter : public OpRewritePattern<tosa::VariableReadOp> { … };
}
void mlir::tosa::populateTosaToMLProgramConversionPatterns(
RewritePatternSet *patterns) { … }