-
Notifications
You must be signed in to change notification settings - Fork 129
Refactor folder structure #425
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
Refactor folder structure #425
Conversation
compiler/rustc_codegen_llvm/src/gotoc/mir_to_goto/metadata/current_fn.rs
Outdated
Show resolved
Hide resolved
b69a872 to
cc1b6c0
Compare
| use crate::gotoc::mir_to_goto::GotocCtx; | ||
|
|
||
| // Should move into rvalue | ||
| //make this a member function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this have an issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| } | ||
|
|
||
| //TODO fix this name | ||
| pub fn codegen_span_option2(&self, sp: Option<Span>) -> Location { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we fix the names for these as part of this refactor?
avanhatt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
* Created mir_to_goto folder, moved monomorphize into it * moved metadata files into metadata folder * moved codegen files to codegen folder * moved stubs and hooks to mir_to_goto * moved the final files into mir_to_goto * Comments * suppress warnings * added missing file * rename metadata as per PR comments * Remove pub modifier on modules that don't need it * Moved tuple_fld so that typ can be private mod * removed pub mod from stubs * moved overrides into their own folder * moved assumptions into codegen * utils folder * init debug properly * renamed backend to compiler_interface * gotoCtx should just take a MIR context at construction time * move more stuff out of utils to where it goes * names get their own util * better import in hooks
* Created mir_to_goto folder, moved monomorphize into it * moved metadata files into metadata folder * moved codegen files to codegen folder * moved stubs and hooks to mir_to_goto * moved the final files into mir_to_goto * Comments * suppress warnings * added missing file * rename metadata as per PR comments * Remove pub modifier on modules that don't need it * Moved tuple_fld so that typ can be private mod * removed pub mod from stubs * moved overrides into their own folder * moved assumptions into codegen * utils folder * init debug properly * renamed backend to compiler_interface * gotoCtx should just take a MIR context at construction time * move more stuff out of utils to where it goes * names get their own util * better import in hooks
* Created mir_to_goto folder, moved monomorphize into it * moved metadata files into metadata folder * moved codegen files to codegen folder * moved stubs and hooks to mir_to_goto * moved the final files into mir_to_goto * Comments * suppress warnings * added missing file * rename metadata as per PR comments * Remove pub modifier on modules that don't need it * Moved tuple_fld so that typ can be private mod * removed pub mod from stubs * moved overrides into their own folder * moved assumptions into codegen * utils folder * init debug properly * renamed backend to compiler_interface * gotoCtx should just take a MIR context at construction time * move more stuff out of utils to where it goes * names get their own util * better import in hooks
* Created mir_to_goto folder, moved monomorphize into it * moved metadata files into metadata folder * moved codegen files to codegen folder * moved stubs and hooks to mir_to_goto * moved the final files into mir_to_goto * Comments * suppress warnings * added missing file * rename metadata as per PR comments * Remove pub modifier on modules that don't need it * Moved tuple_fld so that typ can be private mod * removed pub mod from stubs * moved overrides into their own folder * moved assumptions into codegen * utils folder * init debug properly * renamed backend to compiler_interface * gotoCtx should just take a MIR context at construction time * move more stuff out of utils to where it goes * names get their own util * better import in hooks
Description of changes:
Refactored RMC code to have a proper directory structure that groups similar code together
Resolved issues:
Resolves #ISSUE-NUMBER
Call-outs:
The function
tuple_fldwhich belongs in utils.rs had been intyp.rs. I found this becuase typ.rs needed to be public only to export that function. I moved it.Testing:
How is this change tested? Existing regression test
Is this a refactor change? Yes
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.