-
Notifications
You must be signed in to change notification settings - Fork 13.4k
rustc: split FnAbi's into definitions/direct calls ("of_instance") and indirect calls ("of_fn_ptr"). #65947
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
Merged
Merged
rustc: split FnAbi's into definitions/direct calls ("of_instance") and indirect calls ("of_fn_ptr"). #65947
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
552ea44
rustc: combine Instance::fn_sig_noadjust and Instance::fn_sig.
eddyb 4810cf1
rustc_mir: don't hardcode InstanceDef::VtableShim behavior to Adjustm…
eddyb a57aea8
rustc: expose the mir::Body reference lifetime from mir::ReadOnlyBody…
eddyb a7094f7
rustc_codegen_ssa: use &'tcx mir::Body<'tcx> instead of &'a ... for t…
eddyb fce40a2
rustc_codegen_ssa: make codegen_instance a simple wrapper for codegen…
eddyb 6a75768
rustc_codegen_ssa: clean up lifetimes on TerminatorCodegenHelper's me…
eddyb db477af
rustc_codegen_ssa: remove define_fn and define_internal_fn.
eddyb 95b9442
rustc_codegen_ssa: take a FnAbi instead of a FnSig in declare_fn.
eddyb 5b7d0f3
rustc_codegen_llvm: move NoReturn attribute to apply_attrs_llfn.
eddyb 4b68afe
rustc_codegen_ssa: use FnAbi::of_instance wherever possible.
eddyb 39e50e2
rustc: use ReifyShim for reifying Virtual call instances.
eddyb 052d0ed
rustc: compute FnAbi's for virtual calls through FnAbi::of_instance.
eddyb 2b921d5
rustc: rename FnAbi::new to FnAbi::of_fn_ptr.
eddyb 902433b
rustc: take a PolyFnSig instead of an FnSig in FnAbi::of_fn_ptr.
eddyb 8a8749b
rustc_codegen_llvm: rewrite debuginfo::get_function_signature to use …
eddyb cd3c324
rustc_codegen_llvm: take an Instance in attributes::from_fn_attrs.
eddyb e93aa10
rustc_codegen_llvm: privatize as much of attributes::* as possible.
eddyb 79d908b
rustc_target: add abi::call::Conv::Rust distinct from Conv::C.
eddyb 9da14a8
rustc: move Instance::fn_sig to ty::layout and privatize it.
eddyb c2f4c57
rustc: add docs to FnAbi::{of_fn_ptr,of_instance} and InstanceDef::Vi…
eddyb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.