Skip to content
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

Support 16-bit pointers in MIR #34174

Merged
merged 2 commits into from
Jun 11, 2016
Merged

Support 16-bit pointers in MIR #34174

merged 2 commits into from
Jun 11, 2016

Conversation

shepmaster
Copy link
Member

No description provided.

@rust-highfive
Copy link
Collaborator

r? @Aatch

(rust_highfive has picked a reviewer for you, use r? to override)

@shepmaster
Copy link
Member Author

This seems a bit suspicious to me as my local AVR work is based on 4b240fe, which AFAICT shouldn't have MIR enabled by default. Nonetheless, I was getting assertions in this code. Anything to be worried about here?

@Aatch
Copy link
Contributor

Aatch commented Jun 9, 2016

@shepmaster we always build the MIR, it's just not used for code generation by default yet, so it's not surprising that you got an assertion.

@shepmaster
Copy link
Member Author

In relation to #33460.

@shepmaster
Copy link
Member Author

we always build the MIR

@Aatch ah, good to know. Do you think that I'm likely to have covered most of the MIR codebase then, purely by accident?

@Aatch
Copy link
Contributor

Aatch commented Jun 9, 2016

@shepmaster grepping for sess.target.int_type in the librustc_mir and librustc_trans/mir folders would probably point to likely locations.

@shepmaster
Copy link
Member Author

shepmaster commented Jun 9, 2016

Good call. I've done that (and uint_type) and didn't find any new, obvious holes. However, I realized I could enable MIR and see what happens. Let me do that before this gets merged.

@shepmaster
Copy link
Member Author

@Aatch I've compiled libcore to LLVM-IR with -Z orbit and found this additional aspect. It touches a bit more code, but I think the readability gained from the new function is a win!

@Aatch
Copy link
Contributor

Aatch commented Jun 10, 2016

Theres a couple tidy errors, but looks good to me otherwise.

@shepmaster
Copy link
Member Author

@Aatch tidy issues addressed.

@eddyb
Copy link
Member

eddyb commented Jun 11, 2016

@bors r=Aatch

@bors
Copy link
Contributor

bors commented Jun 11, 2016

📌 Commit 1858cfb has been approved by Aatch

@bors
Copy link
Contributor

bors commented Jun 11, 2016

⌛ Testing commit 1858cfb with merge f80ff7d...

bors added a commit that referenced this pull request Jun 11, 2016
@bors bors merged commit 1858cfb into rust-lang:master Jun 11, 2016
@shepmaster shepmaster deleted the 16-bit-mir branch June 11, 2016 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants