WARNING: This sample is under construction.
This sample demonstrates a compiler plugin which:
To use this, the plugin must be built into the compiler via:
-DIREE_COMPILER_PLUGIN_PATHS=samples/compiler_plugins/simple_io_sample
It can then be activated in either iree-opt
or iree-compile
via the option --iree-plugin=simple_io_sample
.
To compile a sample:
iree-compile --iree-plugin=simple_io_sample test/print.mlir -o /tmp/print.vmfb python run_mock.py /tmp/print.vmfb
Should print:
--- Loading /tmp/print.vmfb --- Running main() +++ HELLO FROM SIMPLE_IO