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

[WIP] Upgrade to and test LLVM 6 #47681

Closed
wants to merge 24 commits into from

Conversation

alexcrichton
Copy link
Member

This is pretty unlikely to ladn any time soon, but I'd like to start testing this now while we can using travis, so using a PR to do that.

alexcrichton and others added 17 commits January 22, 2018 14:23
Looks like they did some refactoring of flags in the backend and this should
catch us up!
Apparently LLVM also removed it!
Treat it similarly in Rust!
LLVM <= 4.0 used a non-standard interpretation of `DW_OP_plus`.  In the
DWARF standard, this adds two items on the expressions stack.  LLVM's
behavior was more like DWARF's `DW_OP_plus_uconst` -- adding a constant
that follows the op.  The patch series starting with [D33892] switched
to the standard DWARF interpretation, so we need to follow.

[D33892]: https://reviews.llvm.org/D33892
Some assertions in LLVM were popping up for the wasm backend, so this updates
the fat LTO backend to do the same thing as ThinLTO, which is to merge all the
DICompileUnit instances after merging all modules into one.
Apparently the `lib.exe` behavior added in llvm-mirror/llvm@0e34c359 is causing
breakage when attempting to link in `librustc_binaryen.rlib`, so let's see if
this fixes it.
@alexcrichton alexcrichton self-assigned this Jan 23, 2018
* Don't compile usage of `clearOperands`
* Conditionally use an optional code model
we know it's gonna fail
@kennytm kennytm added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jan 23, 2018
Looksl ike the clang with 16.04 fails to compile LLVM 6, but it looks like clang
in 18.04 can indeed compile LLVM 6.
@alexcrichton
Copy link
Member Author

Ok testing's done, I'll clean this up and resubmit a PR soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants