Finally moving VM type registration to iree_vm_instance_t. (#12650) This allows for thread-safe type registration scoped to instances and unregistration of types as required by types in dynamically loaded modules that may wink out of existence at some point. The main trick here was changing the type ID from an ordinal in the type table to just the pointer of the type descriptor. This requires an extra 4 bytes per ref on 64-bit systems but who cares - now there's no round-tripping through the type table for common operations. As part of simplifying the way types are referenced VM type descriptors are now hidden behind iree_vm_ref_type_t. This makes refs much easier to work with as there's only one way to reference types and it always bottoms out on the registered descriptor handle. It also allows us to remove some type descriptor indirection we'd previously required in order to get reference counter offsets as we can share the same packed type identifier in type defs, refs, or lists. Thanks to @simon-camp for the required EmitC changes! --------- Co-authored-by: Simon Camphausen <simon.camphausen@iml.fraunhofer.de>
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.