-
Notifications
You must be signed in to change notification settings - Fork 1
feat: Essential Statements/Expressions #57
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
Conversation
pow/exp will instead be implemented in the corelib as a function for convenience.
implements a way for defining external functions
crates/metal-mir/src/parcel.rs
Outdated
/// All of the defined constants in this module. | ||
pub constants: Vec<stmt::constant::Constant>, | ||
/// All of the defined structs in this module. | ||
pub structs: Vec<super::structure::Struct>, |
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.
At this point, is there even a reason to keep .statements
?
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.
Honestly, it might be more the other way around. But this data is mostly convenience and searching, only statements
is used in codegen the others will be used in optimization and code checks.
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.
A bunch of doc comment corrections, otherwise looks good! Since we don't have any kind of specification or even just docs on what means what in Metal, i tried to avoid changing meaning.
Co-authored-by: lena <[email protected]>
Co-authored-by: lena <[email protected]>
Co-authored-by: lena <[email protected]>
Co-authored-by: lena <[email protected]>
Co-authored-by: lena <[email protected]>
Adds:
is_impl
andimpl_type
properties for implementing core types)