commit | 303f865bbaafed4b73532987a6eb8f8bbab1590f | [log] [tgz] |
---|---|---|
author | Kojo Acquah <KoolJBlack@users.noreply.github.com> | Tue Jun 15 12:46:54 2021 -0700 |
committer | GitHub <noreply@github.com> | Tue Jun 15 12:46:54 2021 -0700 |
tree | d8260aaa114ee18b2f5b3a81e9c0df6d846eb7b9 | |
parent | aa7409fc0b48b2e3d1bd36795e4bcdb05a3c4568 [diff] |
IREE Static Library Loader Compiler Integration (#5950) Compiler integration for static library building: - Compiler integration for generating static libraries and header files - Fixed pointer references in `static_library_loader.c` ### Compiler Integration New flag: `--iree-llvm-static-library-output-path` specifies the location for the static library. 2 files are saved to this path: '.o' static object and generated header file. When a static library path is defined, the library name for the static loader is embedded into the executable instead of a dynamic library contents. The '.vmfb' output target is still specified with `-o` flag. Example static library generation: ``` bazel run :iree-translate -- \ /path/to/mlir/simple_embedding.mlir \ -iree-mlir-to-vm-bytecode-module \ -iree-hal-target-backends=dylib-llvm-aot \ -o /path/to/library/static.vmfb \ --iree-llvm-static-library-output-path=/path/to/library/static.o ``` Static libraries are generated and linked on Linux using the `dylib-llvm-aot` backend. Other platforms and targets triples may need further validation. Addresses issue #5666
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!
IREE is licensed under the terms of the Apache 2.0 License with LLVM Exceptions. See LICENSE for more information.