Struct cranelift_codegen::ir::constant::ConstantPool [−][src]
pub struct ConstantPool { /* fields omitted */ }
Expand description
Maintains the mapping between a constant handle (i.e. Constant
) and
its constant data (i.e. ConstantData
).
Implementations
Insert constant data into the pool, returning a handle for later referencing; when constant data is inserted that is a duplicate of previous constant data, the existing handle will be returned.
Retrieve the constant data given a handle.
Link a constant handle to its value. This does not de-duplicate data but does avoid
replacing any existing constant values. use set
to tie a specific const42
to its value;
use insert
to add a value and return the next available const
entity.
Iterate over the constants in insertion order.
Iterate over mutable entries in the constant pool in insertion order.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ConstantPool
impl Send for ConstantPool
impl Sync for ConstantPool
impl Unpin for ConstantPool
impl UnwindSafe for ConstantPool
Blanket Implementations
Mutably borrows from an owned value. Read more