Repository navigation
Replacing the HAL module with a C implementation. - #4767
Merged
Merged
Conversation
benvanik
force-pushed
the
benvanik-hal-c
branch
7 times, most recently
from
February 7, 2021 17:12
07a93c4 to
cbb5e8e
Compare
benvanik
force-pushed
the
benvanik-hal-c
branch
from
February 7, 2021 19:01
cbb5e8e to
bf48443
Compare
benvanik
force-pushed
the
benvanik-hal-c
branch
from
February 7, 2021 19:35
bf48443 to
1448e69
Compare
benvanik
force-pushed
the
benvanik-hal-c
branch
from
February 7, 2021 20:07
1448e69 to
e592193
Compare
benvanik
force-pushed
the
benvanik-cconv
branch
2 times, most recently
from
February 8, 2021 16:35
832f912 to
eb2ab14
Compare
benvanik
force-pushed
the
benvanik-hal-c
branch
from
February 8, 2021 17:15
e592193 to
2f71875
Compare
benvanik
marked this pull request as ready for review
February 8, 2021 17:15
stellaraccident
approved these changes
Feb 11, 2021
benvanik
force-pushed
the
benvanik-cconv
branch
from
February 11, 2021 02:25
eb2ab14 to
ae72be7
Compare
This avoids pointer misalignment issues that may arise based on where the iree_vm_ref_ts are located in the stack.
benvanik
force-pushed
the
benvanik-hal-c
branch
from
February 11, 2021 03:03
2f71875 to
2e8e44c
Compare
This was referenced Feb 11, 2021
Closed
Merged
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A 30KB drop, removes all allocs from the common command buffer recording path, and almost all operations are faster to boot (no extraneous ref counting). There's a lot less C++ magic too: 1k loc of template magic replaced with 140 loc of stupid simple macros and autogeneratable boilerplate.
Existing iree-run-module:

New iree-run-module:

Note that iree-run-module thwarts LTO so this number is larger than something minimal (has all the string utils/etc). These measurements don't include it but a large majority of this is in rdata now whereas before it was constructed by code on the heap - so both binary footprint and memory footprint go down.
Fixes #4678.