25 #define GEN_PASS_DEF_TOSATOTENSOR
26 #include "mlir/Conversion/Passes.h.inc"
33 struct TosaToTensor :
public impl::TosaToTensorBase<TosaToTensor> {
35 void runOnOperation()
override {
51 std::move(patterns))))
58 return std::make_unique<TosaToTensor>();
static MLIRContext * getContext(OpFoldResult val)
This class describes a specific conversion target.
void addLegalDialect(StringRef name, Names... names)
Register the operations of the given dialects as legal.
void addIllegalOp(OperationName op)
Register the given operation as illegal, i.e.
void populateTosaTypeConversion(TypeConverter &converter)
void populateTosaToTensorConversionPatterns(const TypeConverter &converter, RewritePatternSet *patterns)
std::unique_ptr< Pass > createTosaToTensor()
Include the generated interface declarations.
LogicalResult applyPartialConversion(ArrayRef< Operation * > ops, const ConversionTarget &target, const FrozenRewritePatternSet &patterns, ConversionConfig config=ConversionConfig())
Below we define several entry points for operation conversion.