-
Notifications
You must be signed in to change notification settings - Fork 5
size_of_val, min_align_of_val implementation
#1092
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
Open
mariaKt
wants to merge
10
commits into
master
Choose a base branch
from
mk/intrinsics-impl
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
558c0c4
Added intrinsics tests to prove show list.
mariaKt d1c52ad
Added test for size_of_val (showing it is stuck)
mariaKt 52f39af
size_of_val intrinsic implementation (sized)
mariaKt 942e5a7
Update size_of_val test output
mariaKt a1b17d1
Added test for min_align_of_val (showing it is stuck)
mariaKt c6e238c
min_align_of_val intrinsic implementation (sized)
mariaKt 7e5e7d4
Update min_align_of_val test output
mariaKt 4bfd513
Removed intermediate test outputs (there only for PR review)
mariaKt 7340d2c
Update LLVM skip list
mariaKt ddd1c22
Update Haskell skip list
mariaKt 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
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
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
Oops, something went wrong.
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.
At first I thought this was too permissive as it only restricts
dynamicSize(1)for all slices. However, looking at rt/types.md the codomain of#metadataSizeis{ staticSize(N), dynamicSize(1), noMetadataSize }. So in this case,dynamicSize(1)is a sentinel value only.Not sure if it is worth changing but it would be nice to continue the pattern of using sentinels that are logically distinct from sensible values. I think
dynamicSize(-1)would be better here because if one knows that it is impossible immediately by reading it so either there is an error or it is a sentinel only.