-
Notifications
You must be signed in to change notification settings - Fork 24
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
[3/x] Link Miden packages without cross-context calls lifting/lowering #353
Merged
Merged
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
313c33d
fix: mark exported only functions that were exported from Wasm core m…
greenhat 55f6c6e
fix: refine `Component` imports and exports to reference module imports
greenhat 61652e1
add `process_core_asset` to test passing and returning a struct
greenhat 682d00b
fix: fallback to `LibraryPath` unchecked ctor (Wasm CM styles names)
greenhat 5ca9e93
chore: remove stale expected artifact
greenhat 1952148
fix: skip registering already registered modules in Assembler
greenhat b237327
test: link stdlib when building p2id note script test
greenhat 7f7ebe2
fix: don't convert kebab case for unrecognized modules when recovering
greenhat 32f5845
chore: remove unused expect artifacts
greenhat bdefce9
test: add missing functions in miden::account, miden:note tx kernel s…
greenhat 5b3911a
fix: recover Wasm CM interfaces as module names in exports after
greenhat 9d3816d
fix: populate `Linker::allow_missing` with linked library exports
greenhat 665bf88
test: link miden tx kernel in p2id note script test, check library ex…
greenhat 090e5ad
test: update expected artifacts
greenhat 6179d55
chore: update VM
greenhat 0140596
test: fix sharing target dir between basic wallet and p2id tests
greenhat 6745c3f
chore: fix doc test false positive
greenhat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: When wiring up HIR2 to the frontend, the lowering from Wasm to HIR will need to create
Interface
operations in the top-levelComponent
which containFunction
ops corresponding to the exports of component instances in the original Wasm component. TheComponent
operation will also contain component-level function exports andModule
s corresponding to the core Wasm modules present in the original Wasm component. See Component Translation for further details.The new codegen crate no longer has its own Miden Assembly IR, so the
Library
andProgram
structs no longer exist. To the extent that some of this stuff still exists (by which I mean things like assembling to MAST, late-stage linking and the like), it will either be done in the newLinker
(which is much simpler than the current one, and runs just prior to codegen, rather than as a initial part of lowering into HIR), or in the compiler driver (i.e. in an appropriateStage
of the compiler). I expect that a lot of this will no longer be necessary though, since the new representation is more faithful to the Component Model, so fewer contortions are required to lower into Miden Assembly than we currently are forced to do.