Skip to content

Specify an alignment on vm.rodata and use it in flatbuffers. - #5494

Merged
benvanik merged 1 commit into
mainfrom
benvanik-rodata-alignment
Apr 16, 2021
Merged

benvanik merged 1 commit into
mainfrom
benvanik-rodata-alignment

Conversation

@benvanik

Copy link
Copy Markdown
Collaborator

This required a minor tweak to start_as_root the flatbuffer root tables
prior to recording any data. This was discovered thanks to the gracious
help (and patience) of of the flatcc author:
dvidelabs/flatcc#179

With this all of our binary blobs embedded into the flatbuffers are now
16-byte aligned with the option to tweak it further via a vm.rodata
attribute. We don't need utf8 strings to be 16-byte aligned, for example.

This required a minor tweak to start_as_root the flatbuffer root tables
prior to recording any data. This was discovered thanks to the gracious
help (and patience) of of the flatcc author:
dvidelabs/flatcc#179

With this all of our binary blobs embedded into the flatbuffers are now
16-byte aligned with the option to tweak it further via a vm.rodata
attribute. We don't need utf8 strings to be 16-byte aligned, for example.
@benvanik benvanik added compiler/dialects Relating to the IREE compiler dialects (flow, hal, vm) performance ⚡ Performance/optimization related work across the compiler and runtime labels Apr 16, 2021
@benvanik
benvanik requested a review from ScottTodd April 16, 2021 20:40
@google-cla google-cla Bot added the cla: yes label Apr 16, 2021
@benvanik
benvanik merged commit 3c8880e into main Apr 16, 2021
@benvanik
benvanik deleted the benvanik-rodata-alignment branch April 16, 2021 22:16
@rsuderman rsuderman mentioned this pull request Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

compiler/dialects Relating to the IREE compiler dialects (flow, hal, vm) performance ⚡ Performance/optimization related work across the compiler and runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants