commit | 60b07642c3aeae106d41c60826c9d71be75be107 | [log] [tgz] |
---|---|---|
author | Scott Todd <scotttodd@google.com> | Thu Jun 15 09:41:01 2023 -0700 |
committer | GitHub <noreply@github.com> | Thu Jun 15 09:41:01 2023 -0700 |
tree | 81363aac25a70ce0ccfe7fbf8fc7f35ac224af4b | |
parent | 2e4487dd7ca7ad9acff8e0efa6fa79715537bc69 [diff] |
Allow defining `IREE_HOST_SIZE_T` to other types. (#14040) I tried redefining these: ```c // iree/base/config.h #if !defined(IREE_HOST_SIZE_T) #define IREE_HOST_SIZE_T size_t #define PRIhsz "zu" #endif // !IREE_HOST_SIZE_T ``` to `uint32_t` and `PRIu32` while debugging some issues with Emscripten builds, but many parts of the project failed to build. `IREE_HOST_SIZE_T` should really be set to `size_t` in most/all cases, but the project should still build if someone wants to redefine it. Some cases were obviously using the wrong format specifier (e.g. `zu` instead of `PRIhsz`), but other were more subtle (e.g. interop between `std::string` with `iree_string_view_t` or using `SIZE_MAX` instead of `IREE_HOST_SIZE_MAX`). I tried to update as many places as I could safely.
IREE (Intermediate Representation Execution Environment, pronounced as “eerie”) is an MLIR-based end-to-end compiler and runtime that lowers Machine Learning (ML) models to a unified IR that scales up to meet the needs of the datacenter and down to satisfy the constraints and special considerations of mobile and edge deployments.
See our website for project details, user guides, and instructions on building from source.
IREE is still in its early phase. We have settled down on the overarching infrastructure and are actively improving various software components as well as project logistics. It is still quite far from ready for everyday use and is made available without any support at the moment. With that said, we welcome any kind of feedback on any communication channels!
See our website for more information.
IREE is licensed under the terms of the Apache 2.0 License with LLVM Exceptions. See LICENSE for more information.