Skip to content

feat(textual MLIR)!: add MLIR text output generation flow along with update CLI tests

Deeptanshu Sekhri requested to merge feature/textual-mlir-gen into main
  • update Python API:

    • renamed tflite_flatbuffer_to_tosa_mlir_bytecode to tflite_flatbuffer_to_tosa_mlir, with support to generate output as MLIR text.
    • introduce TosaConverterOutputFormat enum (Bytecode, Text) in C++ and Python wrapper.
    • update tflite_flatbuffer_to_tosa_mlir to optionally generate textual MLIR using a new output_format parameter (default: Bytecode).
  • update CLI with mutually exclusive --bytecode / --text flags to control output format

  • update README.md with Python API usage and add --bytecode / --text examples

BREAKING CHANGE: Python API function tflite_flatbuffer_to_tosa_mlir_bytecode has been removed. Use tflite_flatbuffer_to_tosa_mlir instead. CLI now uses --bytecode or --text to select output format, defaulting to —bytecode if none provided.

Merge request reports

Loading