Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MastForest::advice_map for the data required in the advice provider before execution #1574

Draft
wants to merge 3 commits into
base: next
Choose a base branch
from

Conversation

greenhat
Copy link
Contributor

This PR implements VM-facing part of #1547 and adds advice data to the MastForest that is required to be in the advice provider when the MastForest executed.

TODO:

  • Move AdviceMap type to core;
  • Add MastForest::advice_map;
  • Load MastForest::advice_map before executing the MastForest;
  • Handle MastForest::advice_map when merging MAST forests (join with other AdviceMaps);
  • Serialization/deserialization of the MastForest should handle the AdviceMap as well.

TODO(compiler side):

  • Put rodata in MastForest::advice_map and not store it separately in the Package.

@greenhat greenhat force-pushed the greenhat/i1547-mastforest-add-advicemap branch from f1fd68b to a36a9af Compare November 15, 2024 11:36
Since the behavior if the key is already present is to replace the value
with the new one there is no other error that can possibly arise in this
method.
@greenhat greenhat force-pushed the greenhat/i1547-mastforest-add-advicemap branch from d890a6a to fe7a7da Compare November 15, 2024 12:15
@greenhat greenhat changed the base branch from main to next November 15, 2024 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant