Repository navigation
Adding optional import support to the VM. - #8916
Merged
Merged
Conversation
benvanik
force-pushed
the
benvanik-weak-imports
branch
2 times, most recently
from
April 18, 2022 19:34
ceb7703 to
f852aef
Compare
benvanik
marked this pull request as ready for review
April 18, 2022 20:02
benvanik
force-pushed
the
benvanik-weak-imports
branch
from
April 18, 2022 21:06
f852aef to
8d3bd21
Compare
benvanik
enabled auto-merge
April 19, 2022 01:03
stellaraccident
approved these changes
Apr 19, 2022
stellaraccident
left a comment
Collaborator
There was a problem hiding this comment.
This makes sense to me and the code looks good. I originally struggled with calling them "weak" (seemed more "optional" vs "required"), but I got over it (i.e. having a "weak" import doesn't stop us from later having a "weak" export with more traditional symbol hiding semantics).
Collaborator
Author
|
I can rename it to optional/required - I like that better anyway! |
benvanik
disabled auto-merge
April 19, 2022 05:02
benvanik
force-pushed
the
benvanik-weak-imports
branch
from
April 19, 2022 17:13
8d3bd21 to
00fa9c8
Compare
This allows us to add functions that may not exist at runtime based on older versions, compile-time optional features, or different tooling.
benvanik
force-pushed
the
benvanik-weak-imports
branch
from
April 19, 2022 17:19
00fa9c8 to
b006515
Compare
Collaborator
Author
|
Renamed to optional | required. |
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.
This allows us to add functions that may not exist at runtime based on older versions, compile-time optional features, or different tooling.
This finally lets us run programs using the
checkmodule outside ofiree-check-module, so tests can be easily passed toiree-run-module/iree-benchmark-module/etc.Fixes #5731.