cranelift-codegen(x64): Expose CallInfo (#6005)

This commit exposes the `CallInfo` struct, needed by Winch to emit function
calls.
This commit is contained in:
Saúl Cabrera
2023-03-13 13:50:53 -04:00
committed by GitHub
parent 7956dc6ba2
commit d03612c2d9
3 changed files with 3 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ use args::*;
// `Inst` is defined inside ISLE as `MInst`. We publicly re-export it here. // `Inst` is defined inside ISLE as `MInst`. We publicly re-export it here.
pub use super::lower::isle::generated_code::MInst as Inst; pub use super::lower::isle::generated_code::MInst as Inst;
// Out-of-line data for calls, to keep the size of `Inst` downn. /// Out-of-line data for calls, to keep the size of `Inst` down.
#[derive(Clone, Debug)] #[derive(Clone, Debug)]
pub struct CallInfo { pub struct CallInfo {
/// Register uses of this call. /// Register uses of this call.

View File

@@ -1,6 +1,6 @@
//! X86_64-bit Instruction Set Architecture. //! X86_64-bit Instruction Set Architecture.
pub use self::inst::{args, EmitInfo, EmitState, Inst}; pub use self::inst::{args, CallInfo, EmitInfo, EmitState, Inst};
use super::{OwnedTargetIsa, TargetIsa}; use super::{OwnedTargetIsa, TargetIsa};
use crate::dominator_tree::DominatorTree; use crate::dominator_tree::DominatorTree;

View File

@@ -135,7 +135,7 @@ fn indirect_signature(isa: &dyn TargetIsa, wasm: &WasmFuncType) -> ir::Signature
return sig; return sig;
} }
/// Returns the cranelift fucntion signature of the function specified. /// Returns the cranelift function signature of the function specified.
/// ///
/// Note that this will determine the calling convention for the function, and /// Note that this will determine the calling convention for the function, and
/// namely includes an optimization where functions never exported from a module /// namely includes an optimization where functions never exported from a module