cranelift-codegen: Prepare cranelift codegen for usage from Winch (#5413)
This commit prepares the x64 pieces from cranelift codegen to be consumed by Winch for binary emission. This change doesn't introduce or modifies functionality it makes the necessary pieces for binary emission public. This change also improves documentation where applicable.
This commit is contained in:
@@ -2486,7 +2486,8 @@ pub struct EmitInfo {
|
||||
}
|
||||
|
||||
impl EmitInfo {
|
||||
pub(crate) fn new(flags: settings::Flags, isa_flags: x64_settings::Flags) -> Self {
|
||||
/// Create a constant state for emission of instructions.
|
||||
pub fn new(flags: settings::Flags, isa_flags: x64_settings::Flags) -> Self {
|
||||
Self { flags, isa_flags }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user