-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Refactorings for rustc_codegen_ssa #56108
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
Labels
A-codegen
Area: Code generation
A-cranelift
Things relevant to the [future] cranelift backend
A-gcc
Things relevant to the [future] GCC backend
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
cc @eddyb |
I agree with all of these. There are also comments on #55627 that were left unaddressed, to avoid bitrot, that could be done now. |
bors
added a commit
that referenced
this issue
Dec 2, 2018
Refactor rustc_codegen_ssa cc #56108 (not all things are done yet) This removes an unsafe method from cg_ssa. r? @eddyb cc @sunfishcode
@rustbot modify labels:+A-cranelift |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Labels
A-codegen
Area: Code generation
A-cranelift
Things relevant to the [future] cranelift backend
A-gcc
Things relevant to the [future] GCC backend
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
This is a list of things I noticed in
rustc_codegen_{utils,ssa}
which I did like to be changed.rustc_codegen_ssa
.debuginfo_disabled_message
andshould_be_ignored_message
intoas_ref
.Cell
from the fieldsource_locations_enabled
and adapt several functions to take a mutable reference toFunctionDebugContext{,Data}
instead.Edit:
Context
is not used insiderustc_codegen_ssa
https://doc.rust-lang.org/nightly/nightly-rustc/rustc_codegen_ssa/traits/type_/trait.BaseTypeMethods.htmlhttps://doc.rust-lang.org/nightly/nightly-rustc/rustc_codegen_llvm/context/struct.CodegenCx.html#method.set_struct_body Why isset_struct_body
even a thing?Edit: update for current status
The text was updated successfully, but these errors were encountered: