-
Notifications
You must be signed in to change notification settings - Fork 13.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Miri api refactor #50967
Merged
Merged
Miri api refactor #50967
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
9cc5d92
Add constant for `Size::from_bytes(0)`
oli-obk 1606e13
Rename PrimVal to Scalar
oli-obk ef2177c
Rename ByVal(Pair) to Scalar(Pair)
oli-obk 6436de8
Differentiate between interpret::Scalar and layout::Scalar
oli-obk 03a92b6
Eliminate the `Pointer` wrapper type
oli-obk d732463
Rename MemoryPointer to Pointer
oli-obk 3bbf2fd
Remove Pointer::zero in favor of Pointer::from
oli-obk 64a75ec
change `Value::Bytes` to `Value::Bits`
oli-obk bf39c7f
Floats are scalars!
oli-obk 4ca169c
Use the target types bitsize instead of the source type's
oli-obk 9456ba6
Accidentally used byte-size instead of bit-size
oli-obk ea8f544
Rebase fallout
oli-obk edbdf3d
Formatting nit
oli-obk 1550fd2
Use the destination type size instead of the source type size
oli-obk f82256e
primval -> scalar rename
oli-obk ff652b8
Update outdated comment
oli-obk 0da702a
Remove an instance of `scalar_size` in a `Debug` impl
oli-obk cc60a22
Get rid of `scalar_size`
oli-obk c420531
Replace `ScalarKind` with `Primitive`
oli-obk 97da01f
Remove the last mention of `Undef`
oli-obk 98e5129
Better variable naming
oli-obk 09a996b
Printing values should ignore whether bits are undefined
oli-obk bc3ba91
Printing a fn definition needs to know nothing about its ZST's value
oli-obk ca8c27e
Ensure llvm doesn't trigger an assert for crazy transmutes
oli-obk 1a2964a
Simplify a ScalarPair creation
oli-obk c6d25dc
Don't ICE on horrible transmutes in pattern constants
oli-obk 50628b7
Only defined bits are relevant
oli-obk cfd5fb5
Reuse `to_bits` instead of badly reinventing it
oli-obk 879d8f7
Properly check defined bits range
oli-obk f1ea9ef
Remove `ty_to_primitive`
oli-obk 1f9fa53
Sanity check the `bits` argument to the `from_bits` function
oli-obk 569ae80
Wrongly named a closure `clamp` when it was doing truncation
oli-obk bdd23bf
`tcx.lift_to_global` > `tcx.global_tcx().lift`
oli-obk d0610fd
Add missing newlines
oli-obk 6d513f7
Remove dead code
oli-obk 80a1488
Prefer `to_value_with_len` over manual expanison of it
oli-obk 5c8741f
Use in-band-lifetimes instead of unused explicit lifetimes
oli-obk 85de4ef
Rename `amt` variables to `shift`
oli-obk fb9060a
Revert "Ensure llvm doesn't trigger an assert for crazy transmutes"
oli-obk eceeb63
Update comment
oli-obk 50d3783
Sanity abort `to_bits` if used on zsts
oli-obk 5f599bb
Adjust test for 32 bit targets
oli-obk 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
Replace
ScalarKind
with Primitive
- Loading branch information
commit c420531304c1f02561bae5498d80447097ad5e75
There are no files selected for viewing
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
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.
This is only used in one function, can you inline it there? Seems very niche and potentially misusable.