Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd accessors for MCSubtargetInfo CPU and Feature tables #45
Conversation
rust-highfive
assigned
brson
Jul 16, 2016
This comment has been minimized.
This comment has been minimized.
rust-highfive
commented
Jul 16, 2016
|
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
This comment has been minimized.
This comment has been minimized.
rust-highfive
commented
Jul 16, 2016
bitshifter
referenced this pull request
Jul 16, 2016
Merged
Add help for target CPUs, features, relocation and code models. #34845
This comment has been minimized.
This comment has been minimized.
ranma42
commented
Jul 16, 2016
|
This would also allow a cleaner implementation of the target feature detection than that used in rust-lang/rust#31709 |
This comment has been minimized.
This comment has been minimized.
brson
commented
Jul 18, 2016
|
Thanks @ranma42! @alexcrichton how do you feel about carrying this patch? |
This comment has been minimized.
This comment has been minimized.
brson
commented
Jul 18, 2016
|
This is pretty tiny so presumably not hard to upstream. Maybe it's worth while implementing our feature to show that this is sufficient to do what we need to, then upstream (though of course the motivation to upstream will decrease once we've got the feature we need). |
This comment has been minimized.
This comment has been minimized.
|
Yeah this seems harmless to me, and as @ranma42 mentioned would make #31709 much cleaner! I think though that we'll still have to figure out how to work with non-bundled LLVM as we still want to be able to compile against an external LLVM. |
alexcrichton
merged commit a3c12a7
into
rust-lang:rust-llvm-2016-03-13
Jul 18, 2016
This comment has been minimized.
This comment has been minimized.
|
Thanks! I'll update rust-lang/rust#34845 to point at the official rust-llvm when I get home from work. |
This comment has been minimized.
This comment has been minimized.
brson
commented
Jul 19, 2016
|
Nice work @bitshifter ! |
bors
added a commit
to rust-lang/rust
that referenced
this pull request
Jul 29, 2016
bors
added a commit
to rust-lang/rust
that referenced
this pull request
Jul 30, 2016
bors
added a commit
to rust-lang/rust
that referenced
this pull request
Jul 30, 2016
bors
added a commit
to rust-lang/rust
that referenced
this pull request
Aug 11, 2016
This comment has been minimized.
This comment has been minimized.
infinity0
commented
Nov 3, 2016
|
Has this been submitted upstream to LLVM? I'm asking because I'm wondering if this will make it impossible to compile against vanilla LLVM - so that we would have to add another patch to our Debian LLVM package. |
This comment has been minimized.
This comment has been minimized.
|
@infinity0 That was discussed in rust-lang/rust#34845, and it should be used conditionally. This was included in Rust 1.12.0, and I don't have any problem using vanilla LLVM on Fedora. |
This comment has been minimized.
This comment has been minimized.
infinity0
commented
Nov 3, 2016
|
OK great, thanks! (would still be nice if it were submitted upstream, eventually) |
This comment has been minimized.
This comment has been minimized.
|
The command line options for things like |
bitshifter commentedJul 16, 2016
This is part of a fix for rust-lang/rust#30961. The rustc fix requires exposing some private members on MCSubtargetInfo so they can be printed from rustc.