forked from iree-org/iree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replacing the ancient vm_util with function_io/function_util.
The new code is written using iree_io_stream_t instead of directly using files so that we have a consistent I/O interface. This also will allow us to use the flag handling code on platforms without stdio or from tools where we may want to avoid hitting the filesystem. The old iree/base/internal/file_io.h utilities aren't dead yet as they're currently the only place we support memory mapping files. Future changes will add a platform-specific file-backed stream type that allows for mapping so that we can change/enhance all APIs dealing with files to support mapping and bare metal execution without the need for the giant IREE_FILE_IO_ENABLE flag. The existing flag parsing is mostly compatible modulo changing numpy multi-array expansion to the explicit form of `--input=*foo.npy` to indicate that all remaining arrays in a file should be inserted. The parsing now supports consuming multiple inputs from a single binary file or singular arrays from a numpy file by using the same syntax as `--output=` has supported with `@` indicating start of file and `+` indicating continuation.
- Loading branch information
Showing
26 changed files
with
2,201 additions
and
1,568 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.