-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow Inlining C++ Runtime code in Vectorized Primitives
This commit allows inlining our C++ runtime code within vectorized primitives. We use the link-time optimization of clang for this: we compile a new `inkfuse_runtime_static` library with `-flto`. When generating our C code for the interpreter and compiling it to a shared library, we now link the objects from the `inkfuse_runtime_static` library into the generated fragments. This effectively removes the C/C++ compile-time/runtime optimization boundary that existed so far. Up until now we would always generate call statements into the runtime system. We can now effectively inline functions from our runtime system into the generated primitives.
- Loading branch information
Showing
12 changed files
with
367 additions
and
181 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
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.