Struct cranelift_codegen::ir::ExtFuncData [−][src]
An external function.
Information about a function that can be called directly with a direct call
instruction.
Fields
name: ExternalName
Name of the external function.
signature: SigRef
Call signature of function.
colocated: bool
Will this function be defined nearby, such that it will always be a certain distance away, after linking? If so, references to it can avoid going through a GOT or PLT. Note that symbols meant to be preemptible cannot be considered colocated.
If true
, some backends may use relocation forms that have limited range. The exact
distance depends on the code model in use. Currently on AArch64, for example, Cranelift
uses a custom code model supporting up to +/- 128MB displacements. If it is unknown how
far away the target will be, it is best not to set the colocated
flag; in general, this
flag is best used when the target is known to be in the same unit of code generation, such
as a Wasm module.
See the documentation for RelocDistance
for more details. A
colocated
flag value of true
implies RelocDistance::Near
.
Implementations
impl ExtFuncData
[src]
pub fn reloc_distance(&self) -> RelocDistance
[src]
Return an estimate of the distance to the referred-to function symbol.
Trait Implementations
impl Clone for ExtFuncData
[src]
fn clone(&self) -> ExtFuncData
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ExtFuncData
[src]
impl Display for ExtFuncData
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExtFuncData
impl Send for ExtFuncData
impl Sync for ExtFuncData
impl Unpin for ExtFuncData
impl UnwindSafe for ExtFuncData
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,