-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Refactorings for rustc_codegen_ssa #56108
Copy link
Copy link
Open
Labels
A-codegenArea: Code generationArea: Code generationA-craneliftThings relevant to the [future] cranelift backendThings relevant to the [future] cranelift backendA-gccThings relevant to the [future] GCC backendThings relevant to the [future] GCC backendC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
A-codegenArea: Code generationArea: Code generationA-craneliftThings relevant to the [future] cranelift backendThings relevant to the [future] cranelift backendA-gccThings relevant to the [future] GCC backendThings relevant to the [future] GCC backendC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
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_messageandshould_be_ignored_messageintoas_ref.Cellfrom the fieldsource_locations_enabledand adapt several functions to take a mutable reference toFunctionDebugContext{,Data}instead.Edit:
Contextis not used insiderustc_codegen_ssahttps://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_bodyeven a thing?Edit: update for current status