Struct cranelift_codegen::ir::entities::GlobalValue [−][src]
pub struct GlobalValue(_);
An opaque reference to a global value.
A GlobalValue is a Value that will be live across the entire
function lifetime. It can be preloaded from other global values.
You can create a GlobalValue in the following ways:
- When compiling to WASM, you can use it to load values from a
VmContextusingFuncEnvironment::make_global. - When compiling to native code, you can use it for objects in static memory with
Module::declare_data_in_func. - For any compilation target, it can be registered with
FunctionBuilder::create_global_value.
GlobalValues can be retrieved with
InstBuilder:global_value.
While the order is stable, it is arbitrary.
Implementations
impl GlobalValue[src]
impl GlobalValue[src]impl GlobalValue[src]
impl GlobalValue[src]pub fn with_number(n: u32) -> Option<Self>[src]
Create a new global value reference from its number.
This method is for use by the parser.
Trait Implementations
impl Clone for GlobalValue[src]
impl Clone for GlobalValue[src]fn clone(&self) -> GlobalValue[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl From<GlobalValue> for AnyEntity[src]
impl From<GlobalValue> for AnyEntity[src]fn from(r: GlobalValue) -> Self[src]
impl Hash for GlobalValue[src]
impl Hash for GlobalValue[src]impl Ord for GlobalValue[src]
impl Ord for GlobalValue[src]impl PartialEq<GlobalValue> for GlobalValue[src]
impl PartialEq<GlobalValue> for GlobalValue[src]fn eq(&self, other: &GlobalValue) -> bool[src]
fn ne(&self, other: &GlobalValue) -> bool[src]
impl PartialOrd<GlobalValue> for GlobalValue[src]
impl PartialOrd<GlobalValue> for GlobalValue[src]impl ReservedValue for GlobalValue[src]
impl ReservedValue for GlobalValue[src]fn reserved_value() -> GlobalValue[src]
fn is_reserved_value(&self) -> bool[src]
impl Copy for GlobalValue[src]
impl Eq for GlobalValue[src]
impl StructuralEq for GlobalValue[src]
impl StructuralPartialEq for GlobalValue[src]
Auto Trait Implementations
impl RefUnwindSafe for GlobalValue
impl Send for GlobalValue
impl Sync for GlobalValue
impl Unpin for GlobalValue
impl UnwindSafe for GlobalValue
Blanket Implementations
impl<T> CallHasher for T where
T: Hash, [src]
impl<T> CallHasher for T where
T: Hash, [src]impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> SparseMapValue<T> for T where
T: EntityRef, [src]
impl<T> SparseMapValue<T> for T where
T: EntityRef, [src]